From b0ddf286f087b31dc75626f709cfce3889de25dd Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Mon, 4 Oct 2021 15:34:56 +0200
Subject: feat(preview): changed text-retrieval to http

---
 components/Tweaks/BehaviorPanel.tsx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

(limited to 'components/Tweaks/BehaviorPanel.tsx')

diff --git a/components/Tweaks/BehaviorPanel.tsx b/components/Tweaks/BehaviorPanel.tsx
index 8edb986..0c22e1a 100644
--- a/components/Tweaks/BehaviorPanel.tsx
+++ b/components/Tweaks/BehaviorPanel.tsx
@@ -33,6 +33,26 @@ export const BehaviorPanel = (props: BehaviorPanelProps) => {
       paddingLeft={7}
       color="gray.800"
     >
+      <Flex alignItems="center" justifyContent="space-between">
+        <Text>Preview node</Text>
+        <Menu isLazy placement="right">
+          <MenuButton as={Button} rightIcon={<ChevronDownIcon />} colorScheme="" color="black">
+            <Text>
+              {mouse.preview ? mouse.preview[0]!.toUpperCase() + mouse.preview!.slice(1) : 'Never'}
+            </Text>
+          </MenuButton>
+          <Portal>
+            {' '}
+            <MenuList bgColor="gray.200" zIndex="popover">
+              <MenuItem onClick={() => setMouse({ ...mouse, preview: '' })}>Never</MenuItem>
+              <MenuItem onClick={() => setMouse({ ...mouse, preview: 'click' })}>Click</MenuItem>
+              <MenuItem onClick={() => setMouse({ ...mouse, preview: 'double' })}>
+                Double Click
+              </MenuItem>
+            </MenuList>
+          </Portal>
+        </Menu>
+      </Flex>
       <Flex alignItems="center" justifyContent="space-between">
         <Flex>
           <Text>Expand Node</Text>
-- 
cgit v1.2.3


From 33839479e269bed905f9eefc374060b9d3ee7e19 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Tue, 5 Oct 2021 12:35:40 +0200
Subject: feat(preview): filesystem basics in place

---
 components/BehaviorPanel.tsx         |  0
 components/Sidebar/Link.tsx          | 11 ++++++++
 components/Sidebar/index.tsx         |  5 ++++
 components/Tweaks/BehaviorPanel.tsx  | 17 ++++++++++++
 index.tsx                            |  0
 pages/filesystemtest.tsx             | 52 ++++++++++++++++++++++++++++++++++++
 util/FileSystem.tsx                  |  0
 util/checkFileSystemCompatibility.ts |  3 +++
 8 files changed, 88 insertions(+)
 create mode 100644 components/BehaviorPanel.tsx
 create mode 100644 components/Sidebar/Link.tsx
 create mode 100644 index.tsx
 create mode 100644 pages/filesystemtest.tsx
 create mode 100644 util/FileSystem.tsx
 create mode 100644 util/checkFileSystemCompatibility.ts

(limited to 'components/Tweaks/BehaviorPanel.tsx')

diff --git a/components/BehaviorPanel.tsx b/components/BehaviorPanel.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
new file mode 100644
index 0000000..789873a
--- /dev/null
+++ b/components/Sidebar/Link.tsx
@@ -0,0 +1,11 @@
+import { Text } from '@chakra-ui/react'
+
+export interface LinkProps {
+  id: string
+}
+
+export const Link = (props: LinkProps) => {
+  const { id } = props
+
+  return <Text>{id}</Text>
+}
diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx
index 05f5720..4f314da 100644
--- a/components/Sidebar/index.tsx
+++ b/components/Sidebar/index.tsx
@@ -51,6 +51,11 @@ const Sidebar = (props: SidebarProps) => {
         console.log(res)
         setPreviewText(res)
       })
+      .catch((e) => {
+        setPreviewText(
+          'Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it.',
+        )
+      })
   }
 
   useEffect(() => {
diff --git a/components/Tweaks/BehaviorPanel.tsx b/components/Tweaks/BehaviorPanel.tsx
index 0c22e1a..27906c5 100644
--- a/components/Tweaks/BehaviorPanel.tsx
+++ b/components/Tweaks/BehaviorPanel.tsx
@@ -10,12 +10,15 @@ import {
   StackDivider,
   VStack,
   Text,
+  Box,
 } from '@chakra-ui/react'
 import React from 'react'
 import { initialBehavior, initialMouse } from '../config'
 import { InfoTooltip } from './InfoTooltip'
 import { SliderWithInfo } from './SliderWithInfo'
 
+import { checkFileSystemCompatibility } from '../../util/checkFileSystemCompatibility'
+
 export interface BehaviorPanelProps {
   behavior: typeof initialBehavior
   setBehavior: any
@@ -163,6 +166,20 @@ export const BehaviorPanel = (props: BehaviorPanelProps) => {
         onChange={(value) => setBehavior({ ...behavior, zoomPadding: value })}
         infoText="How much to zoom out to accomodate all nodes when changing the view."
       />
+
+      <Box>
+        <Button width="100%" isDisabled={!checkFileSystemCompatibility()}>
+          Grant Filesystem Access
+        </Button>
+        {!checkFileSystemCompatibility() && (
+          <Box bg="gray.600" width="100%" padding={5}>
+            <Text>
+              You are not using a browser compatible with the FileSystem Access API. Only Chromium
+              based browsers are currently supported.
+            </Text>
+          </Box>
+        )}
+      </Box>
     </VStack>
   )
 }
diff --git a/index.tsx b/index.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/pages/filesystemtest.tsx b/pages/filesystemtest.tsx
new file mode 100644
index 0000000..4cadf0e
--- /dev/null
+++ b/pages/filesystemtest.tsx
@@ -0,0 +1,52 @@
+import React, { useEffect, useState } from 'react'
+import { Button } from '@chakra-ui/react'
+
+async function verifyPermission(fileHandle: any, readWrite: any) {
+  const options: any = {}
+  if (readWrite) {
+    options.mode = 'readwrite'
+  }
+  // Check if permission was already granted. If so, return true.
+  if ((await fileHandle.queryPermission(options)) === 'granted') {
+    return true
+  }
+  // Request permission. If the user grants permission, return true.
+  if ((await fileHandle.requestPermission(options)) === 'granted') {
+    return true
+  }
+  // The user didn't grant permission, so return false.
+  return false
+}
+
+export default function Testpage() {
+  const [text, setText] = useState(0)
+  const [dirHandle, setDirhandle] = useState<any>()
+  const [perm, setPerm] = useState(false)
+
+  const pick = async () => {
+    const dirHandle = await window.showDirectoryPicker()
+    console.log(dirHandle)
+    setDirhandle(dirHandle)
+  }
+
+  useEffect(() => {
+    ;(async () => {
+      console.log(dirHandle)
+      const newFileHandle = dirHandle ? await dirHandle.getFileHandle('inbox.org') : null
+      const file = await newFileHandle.getFile()
+      const ttext = await file.text()
+      setText(ttext)
+      const path = newFileHandle ? await dirHandle.resolve(newFileHandle) : null
+      console.log(path)
+    })()
+  }, [dirHandle])
+
+  return (
+    <div>
+      <Button onClick={() => pick()}> Press </Button>
+      <p>{text}</p>
+      <Button onClick={() => setPerm(verifyPermission(dirHandle, true))}>Check permission</Button>
+      <p>{perm ? '👍' : '👎'}</p>
+    </div>
+  )
+}
diff --git a/util/FileSystem.tsx b/util/FileSystem.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/util/checkFileSystemCompatibility.ts b/util/checkFileSystemCompatibility.ts
new file mode 100644
index 0000000..a96b68e
--- /dev/null
+++ b/util/checkFileSystemCompatibility.ts
@@ -0,0 +1,3 @@
+export const checkFileSystemCompatibility = () => {
+  return typeof window.showDirectoryPicker !== 'undefined'
+}
-- 
cgit v1.2.3


From 2384b30a244c7d6477e54de5385fe7f1cc62d43a Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Fri, 8 Oct 2021 23:39:37 +0200
Subject: feat(preview): proper file preview with api routing

---
 components/BehaviorPanel.tsx                       |   0
 components/Sidebar/Backlinks.tsx                   |  44 ++-
 components/Sidebar/Link.tsx                        | 208 ++++++++++---
 components/Sidebar/Note.tsx                        |  69 +++++
 components/Sidebar/Toolbar.tsx                     |  61 ++++
 components/Sidebar/index.tsx                       | 335 ++++-----------------
 components/Sidebar/noteStyle.ts                    | 140 +++++++++
 components/Tweaks/BehaviorPanel.tsx                |  16 -
 components/config.ts                               |   4 +-
 index.tsx                                          |   0
 org-roam-ui.el                                     |  11 +-
 out/404.html                                       |   2 +-
 .../static/LiCylS_Jd_Tfcv9U5eaVO/_buildManifest.js |   1 -
 .../static/LiCylS_Jd_Tfcv9U5eaVO/_ssgManifest.js   |   1 -
 .../static/chunks/1a48c3c1-836e56f8ef2d92f6d89b.js |   1 +
 .../static/chunks/599-110075714310a526c058.js      |   1 +
 .../static/chunks/750-c7323136e055e0306399.js      |   1 -
 .../chunks/pages/_app-85bcdbfb2d764277a926.js      |   1 +
 .../chunks/pages/_app-aa36b0112675ea597c0c.js      |   1 -
 .../chunks/pages/index-9ae71dd6e842cb285888.js     |   1 -
 .../chunks/pages/index-ae5392593603a38d540f.js     |   1 +
 .../static/chunks/webpack-8a4697025057d0bb5456.js  |   1 +
 .../static/chunks/webpack-9c7513cc478a82b87a1b.js  |   1 -
 out/_next/static/css/9aeb688eb5e47ce218d8.css      |   1 +
 ...-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2 | Bin 0 -> 28088 bytes
 ...S-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff | Bin 0 -> 33504 bytes
 ...MS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf | Bin 0 -> 63604 bytes
 ...aphic-Bold.0926786647deaf17d76d54f52ad74657.ttf | Bin 0 -> 12336 bytes
 ...hic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2 | Bin 0 -> 6932 bytes
 ...phic-Bold.ca08d02310fa9f19ba0299d17128e055.woff | Bin 0 -> 7704 bytes
 ...-Regular.3e19c488cac3849dd20a92525f4701cc.woff2 | Bin 0 -> 6912 bytes
 ...c-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff | Bin 0 -> 7648 bytes
 ...ic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf | Bin 0 -> 12316 bytes
 ...ktur-Bold.b956c7a12877a36343b891acffeefb5d.woff | Bin 0 -> 13284 bytes
 ...tur-Bold.bf17ccf46b827b19854aa4defe751127.woff2 | Bin 0 -> 11344 bytes
 ...aktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf | Bin 0 -> 19552 bytes
 ...ur-Regular.3298092a28560733527fd4a50510bafc.ttf | Bin 0 -> 19544 bytes
 ...-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2 | Bin 0 -> 11304 bytes
 ...r-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff | Bin 0 -> 13196 bytes
 ..._Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf | Bin 0 -> 51304 bytes
 ...ain-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2 | Bin 0 -> 25336 bytes
 ...Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff | Bin 0 -> 29904 bytes
 ...BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf | Bin 0 -> 32940 bytes
 ...ldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2 | Bin 0 -> 16752 bytes
 ...oldItalic.fcff27e282d1c5cb42152024912c5e2e.woff | Bin 0 -> 19400 bytes
 ...in-Italic.432673bb817dd78a6c12012ddc660a57.woff | Bin 0 -> 19664 bytes
 ...ain-Italic.68ec33c535171d771861ea56e7660894.ttf | Bin 0 -> 33548 bytes
 ...n-Italic.b3b010b2535ede725806a63aa7635e4f.woff2 | Bin 0 -> 16976 bytes
 ...-Regular.3fd0ceb35aff44106478820d1810a919.woff2 | Bin 0 -> 26252 bytes
 ...in-Regular.ce81924a0d43971b565b12e4421bc36f.ttf | Bin 0 -> 53552 bytes
 ...n-Regular.e939c6a296ec5f785a248019e41861ba.woff | Bin 0 -> 30764 bytes
 ...oldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff | Bin 0 -> 18656 bytes
 ...ldItalic.85a50d0b44230b474112e56a57ea55e7.woff2 | Bin 0 -> 16464 bytes
 ...BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf | Bin 0 -> 31168 bytes
 ...th-Italic.962a48c9434cfdf579ba5db3185719b6.woff | Bin 0 -> 18736 bytes
 ...ath-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf | Bin 0 -> 31276 bytes
 ...h-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2 | Bin 0 -> 16444 bytes
 ...rif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2 | Bin 0 -> 12172 bytes
 ...Serif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf | Bin 0 -> 24472 bytes
 ...erif-Bold.7227401d5436cf059385329a645d0ec3.woff | Bin 0 -> 14396 bytes
 ...if-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff | Bin 0 -> 14100 bytes
 ...f-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2 | Bin 0 -> 11956 bytes
 ...rif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf | Bin 0 -> 22332 bytes
 ...if-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf | Bin 0 -> 19408 bytes
 ...-Regular.abb48c18c3350196db971e54be76e5a6.woff2 | Bin 0 -> 10368 bytes
 ...f-Regular.c13f0338e43cbed1c89f6165b94e3650.woff | Bin 0 -> 12296 bytes
 ...pt-Regular.25b86a61b42992afecec60daddc856bb.ttf | Bin 0 -> 16620 bytes
 ...t-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff | Bin 0 -> 10576 bytes
 ...-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2 | Bin 0 -> 9620 bytes
 ...1-Regular.1882c67066d09e2e81ddec7c953860bc.woff | Bin 0 -> 6484 bytes
 ...-Regular.21f0471311ce052c2e54af595e8421b4.woff2 | Bin 0 -> 5420 bytes
 ...e1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf | Bin 0 -> 12200 bytes
 ...-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2 | Bin 0 -> 5192 bytes
 ...e2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf | Bin 0 -> 11480 bytes
 ...2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff | Bin 0 -> 6180 bytes
 ...e3-Regular.681badffdf434ad52e511cdb988232df.ttf | Bin 0 -> 7560 bytes
 ...-Regular.c1ea72eebf23ad29466ad040a318de37.woff2 | Bin 0 -> 3612 bytes
 ...3-Regular.c383b1becf152be4fcb9de127f861535.woff | Bin 0 -> 4412 bytes
 ...4-Regular.70d03400f4ee016200b2b74e42906cdd.woff | Bin 0 -> 5972 bytes
 ...-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2 | Bin 0 -> 4888 bytes
 ...e4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf | Bin 0 -> 10336 bytes
 ...-Regular.352d267c075ec07f8670bd9fd3877675.woff2 | Bin 0 -> 13552 bytes
 ...er-Regular.9120561f14585063cc9df4b7ae284aad.ttf | Bin 0 -> 27528 bytes
 ...r-Regular.9f1a86cb45a9fd167fdd638313959329.woff | Bin 0 -> 16016 bytes
 .../static/uFcKrVt5XdTdJl-0JAxhH/_buildManifest.js |   1 +
 .../static/uFcKrVt5XdTdJl-0JAxhH/_ssgManifest.js   |   1 +
 out/index.html                                     |   2 +-
 package-lock.json                                  |  58 ++++
 package.json                                       |   5 +-
 pages/api/notes/[[...slug]].ts                     |  17 ++
 pages/filesystemtest.tsx                           |  52 ----
 pages/index.tsx                                    | 139 ++++++---
 util/FileSystem.tsx                                |   0
 util/checkFileSystemCompatibility.ts               |   3 -
 util/processOrg.tsx                                |  46 ++-
 util/uniorg.tsx                                    |  57 ++--
 96 files changed, 783 insertions(+), 500 deletions(-)
 delete mode 100644 components/BehaviorPanel.tsx
 create mode 100644 components/Sidebar/Note.tsx
 create mode 100644 components/Sidebar/Toolbar.tsx
 create mode 100644 components/Sidebar/noteStyle.ts
 delete mode 100644 index.tsx
 delete mode 100644 out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_buildManifest.js
 delete mode 100644 out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_ssgManifest.js
 create mode 100644 out/_next/static/chunks/1a48c3c1-836e56f8ef2d92f6d89b.js
 create mode 100644 out/_next/static/chunks/599-110075714310a526c058.js
 delete mode 100644 out/_next/static/chunks/750-c7323136e055e0306399.js
 create mode 100644 out/_next/static/chunks/pages/_app-85bcdbfb2d764277a926.js
 delete mode 100644 out/_next/static/chunks/pages/_app-aa36b0112675ea597c0c.js
 delete mode 100644 out/_next/static/chunks/pages/index-9ae71dd6e842cb285888.js
 create mode 100644 out/_next/static/chunks/pages/index-ae5392593603a38d540f.js
 create mode 100644 out/_next/static/chunks/webpack-8a4697025057d0bb5456.js
 delete mode 100644 out/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js
 create mode 100644 out/_next/static/css/9aeb688eb5e47ce218d8.css
 create mode 100644 out/_next/static/media/KaTeX_AMS-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2
 create mode 100644 out/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff
 create mode 100644 out/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf
 create mode 100644 out/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf
 create mode 100644 out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2
 create mode 100644 out/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff
 create mode 100644 out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2
 create mode 100644 out/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff
 create mode 100644 out/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf
 create mode 100644 out/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff
 create mode 100644 out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2
 create mode 100644 out/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf
 create mode 100644 out/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf
 create mode 100644 out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2
 create mode 100644 out/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff
 create mode 100644 out/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf
 create mode 100644 out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2
 create mode 100644 out/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff
 create mode 100644 out/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf
 create mode 100644 out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2
 create mode 100644 out/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff
 create mode 100644 out/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff
 create mode 100644 out/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf
 create mode 100644 out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2
 create mode 100644 out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2
 create mode 100644 out/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf
 create mode 100644 out/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff
 create mode 100644 out/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff
 create mode 100644 out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2
 create mode 100644 out/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf
 create mode 100644 out/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff
 create mode 100644 out/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf
 create mode 100644 out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2
 create mode 100644 out/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff
 create mode 100644 out/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf
 create mode 100644 out/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff
 create mode 100644 out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2
 create mode 100644 out/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff
 create mode 100644 out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2
 create mode 100644 out/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf
 create mode 100644 out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2
 create mode 100644 out/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf
 create mode 100644 out/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff
 create mode 100644 out/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf
 create mode 100644 out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2
 create mode 100644 out/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff
 create mode 100644 out/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff
 create mode 100644 out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2
 create mode 100644 out/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf
 create mode 100644 out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2
 create mode 100644 out/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf
 create mode 100644 out/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff
 create mode 100644 out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_buildManifest.js
 create mode 100644 out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_ssgManifest.js
 create mode 100644 pages/api/notes/[[...slug]].ts
 delete mode 100644 pages/filesystemtest.tsx
 delete mode 100644 util/FileSystem.tsx
 delete mode 100644 util/checkFileSystemCompatibility.ts

(limited to 'components/Tweaks/BehaviorPanel.tsx')

diff --git a/components/BehaviorPanel.tsx b/components/BehaviorPanel.tsx
deleted file mode 100644
index e69de29..0000000
diff --git a/components/Sidebar/Backlinks.tsx b/components/Sidebar/Backlinks.tsx
index f899d3e..8c1e9bc 100644
--- a/components/Sidebar/Backlinks.tsx
+++ b/components/Sidebar/Backlinks.tsx
@@ -1,4 +1,4 @@
-import { LinksByNodeId, NodeById } from '../../pages/index'
+import { LinksByNodeId, NodeByCite, NodeById } from '../../pages/index'
 
 import { GraphData, NodeObject, LinkObject } from 'force-graph'
 
@@ -12,17 +12,34 @@ export interface BacklinksProps {
   setPreviewNode: any
   nodeById: NodeById
   linksByNodeId: LinksByNodeId
-  getText: any
+  nodeByCite: NodeByCite
+  setSidebarHighlightedNode: OrgRoamNode
 }
 
 import { PreviewLink } from './Link'
+import { OrgRoamNode } from '../../api'
 
 export const Backlinks = (props: BacklinksProps) => {
-  const { previewNode, setPreviewNode, nodeById, linksByNodeId, getText } = props
+  const {
+    previewNode,
+    setPreviewNode,
+    setSidebarHighlightedNode,
+    nodeById,
+    linksByNodeId,
+    nodeByCite,
+  } = props
   const links = linksByNodeId[previewNode?.id] ?? []
+
+  const backLinks = links
+    .filter((link: LinkObject) => {
+      const [source, target] = normalizeLinkEnds(link)
+      return source !== previewNode?.id
+    })
+    .map((l) => l.source)
+
   return (
     <Box>
-      <Heading pt={4}>{'Backlinks (' + links.length + ')'}</Heading>
+      <Heading pt={4}>{`Backlinks (${backLinks.length})`}</Heading>
       <VStack
         pt={2}
         spacing={3}
@@ -32,20 +49,19 @@ export const Backlinks = (props: BacklinksProps) => {
         color="gray.800"
       >
         {previewNode?.id &&
-          links.map((link: LinkObject, i: number) => {
-            const [source, target] = normalizeLinkEnds(link)
-            if (source === previewNode?.id) {
-              return
-            }
+          backLinks.map((link) => {
+            const title = nodeById[link as string]?.title ?? ''
             return (
-              <Box overflow="hidden" p={3} bg="gray.300" width="100%" key={source}>
+              <Box overflow="hidden" p={3} bg="gray.300" width="100%" key={link}>
                 <PreviewLink
-                  href={'id:' + source}
-                  children={nodeById[source]?.title}
+                  nodeByCite={nodeByCite}
+                  setSidebarHighlightedNode={setSidebarHighlightedNode}
+                  href={`id:${link as string}`}
                   nodeById={nodeById}
                   setPreviewNode={setPreviewNode}
-                  getText={getText}
-                />
+                >
+                  {nodeById[link as string]?.title}
+                </PreviewLink>
               </Box>
             )
           })}
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
index ff812ef..9515b6d 100644
--- a/components/Sidebar/Link.tsx
+++ b/components/Sidebar/Link.tsx
@@ -1,6 +1,7 @@
 import {
   Box,
   Button,
+  Link,
   Popover,
   PopoverArrow,
   PopoverBody,
@@ -10,9 +11,9 @@ import {
   PopoverTrigger,
   Portal,
   Text,
+  useTheme,
 } from '@chakra-ui/react'
-import React, { useState } from 'react'
-import UniOrg from '../../util/uniorg'
+import React, { ReactElement, useContext, useEffect, useMemo, useState } from 'react'
 
 import unified from 'unified'
 //import createStream from 'unified-stream'
@@ -22,57 +23,184 @@ import uniorg2rehype from 'uniorg-rehype'
 import katex from 'rehype-katex'
 import 'katex/dist/katex.css'
 import rehype2react from 'rehype-react'
+import { ThemeContext } from '../../util/themecontext'
+import { NodeByCite, NodeById } from '../../pages'
 
 export interface LinkProps {
-  href: string
+  href: any
   children: any
-  testProp: string
-  getText: any
   previewNode?: any
   setPreviewNode: any
+  setSidebarHighlightedNode: any
+  nodeByCite: NodeByCite
+  nodeById: NodeById
 }
 
-export const PreviewLink = (props: any) => {
-  const { href, children, nodeById, getText, previewNode, setPreviewNode } = props
-  const [previewText, setPreviewText] = useState('')
-  const [whatever, type, uri] = [...href.matchAll(/(.*?)\:(.*)/g)][0]
+export interface NormalLinkProps {
+  setPreviewNode: any
+  nodeById: NodeById
+  nodeByCite: NodeByCite
+  href: any
+  children: any
+  setSidebarHighlightedNode: any
+}
 
-  const processor = unified().use(uniorgParse).use(uniorg2rehype).use(katex).use(rehype2react, {
-    createElement: React.createElement,
-    // eslint-disable-next-line react/display-name
-  })
+import { hexToRGBA, getThemeColor } from '../../pages/index'
+import noteStyle from './noteStyle'
 
-  type === 'id' && getText(uri, setPreviewText)
+export const NormalLink = (props: NormalLinkProps) => {
+  const { setSidebarHighlightedNode, setPreviewNode, nodeById, href, children } = props
+  const { highlightColor } = useContext(ThemeContext)
 
+  const theme = useTheme()
+  const coolHighlightColor = getThemeColor(highlightColor, theme)
+  const [whatever, type, uri] = [...href.matchAll(/(.*?)\:(.*)/g)][0]
   return (
-    <>
-      <Popover trigger="hover" isLazy position="relative" zIndex="tooltip">
-        <PopoverTrigger>
-          <Button size="sm" onClick={() => setPreviewNode(nodeById[uri])} variant="link">
-            {children}
-          </Button>
-        </PopoverTrigger>
-        <Portal zIndex={100000} position="relative">
-          <PopoverContent boxShadow="xl" position="relative" zIndex="tooltip">
-            <PopoverHeader pl={5} fontSize="sm" zIndex="tooltip" fontWeight="semibold">
-              {children}
-            </PopoverHeader>
-            <PopoverArrow zIndex={10000} />
-            <PopoverCloseButton zIndex={10000} />
-            <PopoverBody
-              pb={5}
-              fontSize="xs"
-              px={5}
+    <Text
+      onMouseEnter={() => setSidebarHighlightedNode(nodeById[uri])}
+      onMouseLeave={() => setSidebarHighlightedNode({})}
+      tabIndex={0}
+      display="inline"
+      overflow="hidden"
+      fontWeight={500}
+      color={highlightColor}
+      textDecoration="underline"
+      onClick={() => setPreviewNode(nodeById[uri])}
+      _hover={{ textDecoration: 'none', cursor: 'pointer', bgColor: coolHighlightColor + '22' }}
+      _focus={{ outlineColor: highlightColor }}
+    >
+      {children}
+    </Text>
+  )
+}
+
+export const PreviewLink = (props: LinkProps) => {
+  const {
+    href,
+    children,
+    nodeById,
+    setSidebarHighlightedNode,
+    previewNode,
+    setPreviewNode,
+    nodeByCite,
+  } = props
+  // TODO figure out how to properly type this
+  // see https://github.com/rehypejs/rehype-react/issues/25
+  const [orgText, setOrgText] = useState<any>()
+  const [whatever, type, uri] = [...href.matchAll(/(.*?)\:(.*)/g)][0]
+
+  const getId = (type: string, uri: string) => {
+    if (type === 'id') {
+      return uri
+    }
+
+    if (type.includes('cite')) {
+      const node = nodeByCite[uri] ?? false
+      if (!node) {
+        return ''
+      }
+      if (node?.properties.FILELESS) {
+        return ''
+      }
+      return node?.id
+    }
+    return ''
+  }
+
+  const id = getId(type, uri)
+
+  const processor = unified()
+    .use(uniorgParse)
+    .use(uniorg2rehype)
+    .use(katex)
+    .use(rehype2react, {
+      createElement: React.createElement,
+      components: {
+        // eslint-disable-next-line react/display-name
+        a: ({ children, href }) => (
+          <NormalLink
+            setSidebarHighlightedNode={setSidebarHighlightedNode}
+            nodeById={nodeById}
+            nodeByCite={nodeByCite}
+            setPreviewNode={setPreviewNode}
+            {...{ children, href }}
+          />
+        ),
+      },
+    })
+
+  const file = encodeURIComponent(nodeById[id]?.file as string)
+  const getText = () => {
+    console.log(nodeById[id]?.title)
+    fetch(`api/notes/${file}`)
+      .then((res) => {
+        return res.text()
+      })
+      .then((res) => {
+        if (res !== 'error') {
+          const text = processor.processSync(res).result
+          setOrgText(text)
+          return
+        }
+      })
+      .catch((e) => {
+        console.log(e)
+        return 'Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it.'
+      })
+  }
+
+  useMemo(() => {
+    getText()
+  }, [id])
+  if (id) {
+    return (
+      <>
+        <Popover gutter={12} trigger="hover" placement="top-start">
+          <PopoverTrigger>
+            <Box display="inline">
+              <NormalLink
+                key={nodeById[id]?.title ?? id}
+                {...{
+                  setSidebarHighlightedNode,
+                  setPreviewNode,
+                  nodeById,
+                  href,
+                  children,
+                  nodeByCite,
+                }}
+              />
+            </Box>
+          </PopoverTrigger>
+          <Portal>
+            <PopoverContent
+              key={nodeById[id]?.title ?? id}
+              boxShadow="xl"
               position="relative"
               zIndex="tooltip"
-              maxHeight={300}
-              overflow="scroll"
+              onMouseEnter={() => setSidebarHighlightedNode(nodeById[id] ?? {})}
+              onMouseLeave={() => setSidebarHighlightedNode({})}
             >
-              {uri && <Box>{processor.processSync(previewText).result}</Box>}
-            </PopoverBody>
-          </PopoverContent>
-        </Portal>
-      </Popover>
-    </>
+              <PopoverArrow />
+              <PopoverBody
+                pb={5}
+                fontSize="xs"
+                px={5}
+                position="relative"
+                zIndex="tooltip"
+                maxHeight={300}
+                overflow="scroll"
+              >
+                <Box sx={noteStyle}>{orgText}</Box>
+              </PopoverBody>
+            </PopoverContent>
+          </Portal>
+        </Popover>
+      </>
+    )
+  }
+  return (
+    <Text display="inline" color="base.700" cursor="not-allowed">
+      {children}
+    </Text>
   )
 }
diff --git a/components/Sidebar/Note.tsx b/components/Sidebar/Note.tsx
new file mode 100644
index 0000000..ef2e2b2
--- /dev/null
+++ b/components/Sidebar/Note.tsx
@@ -0,0 +1,69 @@
+import React from 'react'
+import { NodeObject } from 'force-graph'
+
+import { NodeById, NodeByCite, LinksByNodeId } from '../../pages'
+import { Box, Flex } from '@chakra-ui/react'
+import { UniOrg } from '../../util/uniorg'
+import { Backlinks } from '../../components/Sidebar/Backlinks'
+import { noteStyle } from './noteStyle'
+
+export interface NoteProps {
+  setPreviewNode: any
+  previewNode: NodeObject
+  nodeById: NodeById
+  nodeByCite: NodeByCite
+  setSidebarHighlightedNode: any
+  justification: number
+  justificationList: string[]
+  linksByNodeId: LinksByNodeId
+}
+
+export const Note = (props: NoteProps) => {
+  const {
+    setPreviewNode,
+    justificationList,
+    justification,
+    previewNode,
+    nodeById,
+    nodeByCite,
+    setSidebarHighlightedNode,
+    linksByNodeId,
+  } = props
+  return (
+    <Box
+      pr={8}
+      overflow="scroll"
+      height="85%"
+      className="org"
+      sx={{
+        ...noteStyle,
+
+        textAlign: justificationList[justification],
+      }}
+    >
+      {previewNode?.id && (
+        <Flex height="100%" flexDirection="column" justifyContent="space-between">
+          <UniOrg
+            {...{
+              setPreviewNode,
+              previewNode,
+              nodeById,
+              nodeByCite,
+              setSidebarHighlightedNode,
+            }}
+          />
+          <Backlinks
+            {...{
+              setPreviewNode,
+              previewNode,
+              nodeById,
+              linksByNodeId,
+              nodeByCite,
+              setSidebarHighlightedNode,
+            }}
+          />
+        </Flex>
+      )}
+    </Box>
+  )
+}
diff --git a/components/Sidebar/Toolbar.tsx b/components/Sidebar/Toolbar.tsx
new file mode 100644
index 0000000..458361f
--- /dev/null
+++ b/components/Sidebar/Toolbar.tsx
@@ -0,0 +1,61 @@
+import React from 'react'
+import { Text, Flex, IconButton } from '@chakra-ui/react'
+import {
+  BiAlignJustify,
+  BiAlignLeft,
+  BiAlignMiddle,
+  BiAlignRight,
+  BiFont,
+  BiRightIndent,
+} from 'react-icons/bi'
+import { ChevronLeftIcon, ChevronRightIcon } from '@chakra-ui/icons'
+
+export interface ToolbarProps {
+  setJustification: any
+  justification: number
+  setIndent: any
+  setFont: any
+}
+
+export const Toolbar = (props: ToolbarProps) => {
+  const { setJustification, setIndent, setFont, justification } = props
+  return (
+    <Flex py={3} alignItems="center" justifyContent="space-between" pr={4}>
+      <Flex>
+        <IconButton variant="ghost" icon={<ChevronLeftIcon />} aria-label="Previous node" />
+        <IconButton variant="ghost" icon={<ChevronRightIcon />} aria-label="Previous node" />
+      </Flex>
+      <Flex>
+        <IconButton
+          variant="ghost"
+          aria-label="Justify content"
+          icon={
+            [
+              <BiAlignJustify key="justify" />,
+              <BiAlignLeft key="left" />,
+              <BiAlignRight key="right" />,
+              <BiAlignMiddle key="center" />,
+            ][justification]
+          }
+          onClick={() => setJustification((curr: number) => (curr + 1) % 4)}
+        />
+        <IconButton
+          variant="ghost"
+          aria-label="Indent Text"
+          icon={<BiRightIndent />}
+          onClick={() => {
+            setIndent((curr: number) => (curr ? 0 : 1))
+          }}
+        />
+        <IconButton
+          variant="ghost"
+          aria-label="Change font"
+          icon={<BiFont />}
+          onClick={() => {
+            setFont((curr: string) => (curr === 'sans serif' ? 'serif' : 'sans serif'))
+          }}
+        />
+      </Flex>
+    </Flex>
+  )
+}
diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx
index e56a25d..4d807ef 100644
--- a/components/Sidebar/index.tsx
+++ b/components/Sidebar/index.tsx
@@ -1,42 +1,17 @@
 import React, { useContext, useEffect, useState } from 'react'
 
-import { UniOrg } from '../../util/uniorg'
-import { Backlinks } from './Backlinks'
-import { getOrgText } from '../../util/webSocketFunctions'
+import { Toolbar } from './Toolbar'
+import { Note } from './Note'
 
-import {
-  Button,
-  Slide,
-  VStack,
-  Flex,
-  Heading,
-  Box,
-  CloseButton,
-  Text,
-  Drawer,
-  DrawerOverlay,
-  DrawerHeader,
-  DrawerBody,
-  DrawerCloseButton,
-  DrawerContent,
-  DrawerFooter,
-  IconButton,
-} from '@chakra-ui/react'
+import { Button, Slide, VStack, Flex, Heading, Box, IconButton } from '@chakra-ui/react'
 import { Scrollbars } from 'react-custom-scrollbars-2'
 import { ChevronLeftIcon, ChevronRightIcon, HamburgerIcon } from '@chakra-ui/icons'
-import {
-  BiFont,
-  BiAlignJustify,
-  BiAlignLeft,
-  BiAlignMiddle,
-  BiAlignRight,
-  BiRightIndent,
-} from 'react-icons/bi'
+import { BiFile } from 'react-icons/bi'
 
 import { GraphData, NodeObject, LinkObject } from 'force-graph'
 import { OrgRoamNode } from '../../api'
 import { ThemeContext } from '../../util/themecontext'
-import { LinksByNodeId, NodeById } from '../../pages/index'
+import { LinksByNodeId, NodeByCite, NodeById } from '../../pages/index'
 
 export interface SidebarProps {
   isOpen: boolean
@@ -46,68 +21,74 @@ export interface SidebarProps {
   previewNode: NodeObject
   setPreviewNode: any
   linksByNodeId: LinksByNodeId
+  nodeByCite: NodeByCite
+  setSidebarHighlightedNode: any
 }
 
 const Sidebar = (props: SidebarProps) => {
-  const { isOpen, onOpen, onClose, previewNode, setPreviewNode, nodeById, linksByNodeId } = props
+  const {
+    isOpen,
+    onOpen,
+    onClose,
+    previewNode,
+    setPreviewNode,
+    nodeById,
+    linksByNodeId,
+    nodeByCite,
+    setSidebarHighlightedNode,
+  } = props
 
   const { highlightColor } = useContext(ThemeContext)
   const [previewRoamNode, setPreviewRoamNode] = useState<OrgRoamNode>()
 
-  const getText = (id: string, setText: any) => {
-    fetch(`http://localhost:35901/note/${id}`)
-      .then((res) => {
-        return res.text()
-      })
-      .then((res) => setText(res))
-      .catch((e) => {
-        return (
-          'Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it.',
-          console.log(e)
-        )
-      })
-  }
-
   useEffect(() => {
-    if (!previewNode.id) {
+    if (!previewNode?.id) {
       onClose()
       return
     }
     onOpen()
     setPreviewRoamNode(previewNode as OrgRoamNode)
-  }, [previewNode.id])
+  }, [previewNode?.id])
 
-  const [justification, setJustification] = useState(0)
+  const [justification, setJustification] = useState(1)
   const justificationList = ['justify', 'start', 'end', 'center']
   const [font, setFont] = useState('sans serif')
   const [indent, setIndent] = useState(0)
   //maybe want to close it when clicking outside, but not sure
   //const outsideClickRef = useRef();
   return (
-    <Slide direction="right" in={isOpen} style={{ maxWidth: '50%' }} unmountOnExit>
+    <Slide
+      direction="right"
+      in={isOpen}
+      style={{ width: 'clamp(400px, 30%, 500px)' }}
+      unmountOnExit
+    >
       <Flex flexDirection="row" height="100%">
-        <Box pl={2} color="gray.800" bg="alt.100" w="100%" paddingBottom={15}>
+        <Box pl={2} color="black" bg="alt.100" w="100%" paddingBottom={15}>
           <Flex
             justifyContent="space-between"
             paddingTop={4}
-            pl={0}
+            pl={4}
             pb={5}
-            pr={2}
-            alignItems="center"
+            pr={3}
+            alignItems="top"
             color="black"
           >
-            <Flex>
-              <IconButton
-                variant="link"
-                size="md"
-                icon={<ChevronLeftIcon />}
-                aria-label="Previous node"
-              />
-              <Heading size="md" fontWeight={400}>
+            <Flex alignItems="center" whiteSpace="nowrap" textOverflow="ellipsis" overflow="hidden">
+              <BiFile />
+              <Heading
+                pl={2}
+                whiteSpace="nowrap"
+                textOverflow="ellipsis"
+                overflow="hidden"
+                lineHeight={1}
+                size="sm"
+                fontWeight={600}
+                color={'gray.800'}
+              >
                 {previewRoamNode?.title}
               </Heading>
             </Flex>
-
             <IconButton
               // eslint-disable-next-line react/jsx-no-undef
               icon={<HamburgerIcon />}
@@ -116,6 +97,7 @@ const Sidebar = (props: SidebarProps) => {
               onClick={onClose}
             />
           </Flex>
+          <Toolbar {...{ setJustification, setIndent, setFont, justification }} />
           <Scrollbars
             //autoHeight
             //autoHeightMax={600}
@@ -132,220 +114,19 @@ const Sidebar = (props: SidebarProps) => {
               />
             )}
           >
-            <VStack height="100%" alignItems="left" bg="alt.100" paddingLeft={10}>
-              <Box
-                pr={8}
-                overflow="scroll"
-                height="85%"
-                className="org"
-                sx={{
-                  '.katex': { overflowX: 'scroll' },
-                  h1: { fontSize: '20', fontWeight: 'bold', marginBottom: 3 },
-                  h2: {
-                    fontSize: '18',
-                    marginBottom: 2,
-                    color: 'black',
-                  },
-                  h3: {
-                    fontSize: '16',
-                    fontWeight: '600 !important',
-                    marginBottom: '.5em',
-                  },
-                  h4: {
-                    fontSize: '14',
-                    fontWeight: '500 !important',
-                    marginBottom: '.25em',
-                    fontStyle: 'italic',
-                  },
-                  a: {
-                    color: highlightColor,
-                  },
-                  ol: {
-                    paddingLeft: '5',
-                  },
-                  ul: {
-                    paddingLeft: '5',
-                  },
-                  p: {
-                    paddingBottom: '.5em',
-                  },
-                  div: {
-                    fontSize: 'small',
-                    hyphens: 'auto !important',
-                    textAlign: justificationList[justification],
-                  },
-                  '.title': {
-                    textAlign: 'center',
-                    marginBottom: '.2em',
-                  },
-                  '.subtitle': {
-                    textAlign: 'center',
-                    fontSize: 'medium',
-                    fontWeight: 'bold',
-                    marginTop: 0,
-                  },
-                  '.todo': { fontFamily: 'monospace', color: 'red' },
-                  '.equationContainer': {
-                    display: 'table',
-                    textAlign: 'center',
-                    width: '100%',
-                  },
-                  '.equation': {
-                    verticalAlign: 'middle',
-                  },
-                  '.equation-label': {
-                    display: 'tableCell',
-                    textAlign: 'right',
-                    verticalAlign: 'middle',
-                  },
-                  '.inlinetask': {
-                    padding: '10px',
-                    border: '2px solid gray',
-                    margin: '10px',
-                    background: '#ffffcc',
-                  },
-                  '#org-div-home-and-up': {
-                    textAlign: 'right',
-                    fontSize: '70 % ',
-                    whiteSpace: 'nowrap',
-                  },
-                  textarea: { overflowX: 'auto' },
-                  '.linenr': { fontSize: 'smaller' },
-                  '.code-highlighted': { backgroundColor: '#ffff00' },
-                  '.org-info-js_info-navigation': { borderStyle: 'none' },
-                  '#org-info-js_console-label': {
-                    fontSize: '10px',
-                    fontWeight: 'bold',
-                    whiteSpace: 'nowrap',
-                  },
-                  '.org-info-js_search-highlight': {
-                    backgroundColor: '#ffff00',
-                    color: '#000000',
-                    fontWeight: 'bold',
-                  },
-                  '.org-svg': { width: '90%' },
-                  '.done': { fontFamily: 'monospace', color: 'green' },
-                  '.priority': { fontFamily: 'monospace', color: 'orange' },
-                  '.tag': {
-                    backgroundColor: '#eee',
-                    fontFamily: 'monospace',
-                    padding: '2px',
-                    fontSize: '80%',
-                    fontWeight: 'normal',
-                  },
-                  '.timestamp': { color: '#bebebe' },
-                  '.timestamp-kwd': { color: '#5f9ea0' },
-                  '.org-right': { marginLeft: 'auto', marginRight: '0px', textAlign: 'right' },
-                  '.org-left': { marginLeft: '0px', marginRight: 'auto', textAlign: 'left' },
-                  '.org-center': { marginLeft: 'auto', marginRight: 'auto', textAlign: 'center' },
-                  '.underline': { textDecoration: 'underline' },
-                  '#postamble p': { fontSize: '90%', margin: '.2em' },
-                  '#preamble p': { fontSize: '90%', margin: '.2em' },
-                  'p.verse': { marginLeft: '3%' },
-                  pre: {
-                    border: '1px solid #e6e6e6',
-                    borderRadius: '3px',
-                    backgroundColor: '#f2f2f2',
-                    padding: '8pt',
-                    fontFamily: 'monospace',
-                    overflow: 'auto',
-                    margin: '1.2em',
-                  },
-                  'pre.src': {
-                    position: 'relative',
-                    overflow: 'auto',
-                  },
-                  'pre.src:before': {
-                    display: 'none',
-                    position: 'absolute',
-                    top: '-8px',
-                    right: '12px',
-                    padding: '3px',
-                    color: '#555',
-                    backgroundColor: '#f2f2f299',
-                  },
-                  'caption.t-above': { captionSide: 'top' },
-                  'caption.t-bottom': { captionSide: 'bottom' },
-                  'th.org-right': { textAlign: 'center' },
-                  'th.org-left': { textAlign: 'center' },
-                  'th.org-center': { textAlign: 'center' },
-                  'td.org-right': { textAlign: 'right' },
-                  'td.org-left': { textAlign: 'left' },
-                  'td.org-center': { textAlign: 'center' },
-                  '.footpara': { display: 'inline' },
-                  '.footdef': { marginBottom: '1em' },
-                  '.figure': { padding: '1em' },
-                  '.figure p': { textAlign: 'center' },
-                  // org-like indents
-                  'h1, h1 ~ *,h2 ~ h1,h2 ~ h1 ~ *,h3 ~ h1,h3 ~ h1 ~ *': {
-                    marginLeft: 0 * indent,
-                  },
-                  'h2 ~ *, h1 ~ h2,h1 ~ h2 ~ *:not(h1):not(h3)': {
-                    marginLeft: 2 * indent,
-                  },
-                  'h3 ~ *,h1 ~ h3,h1 ~ h3 ~ *:not(h1):not(h2)': {
-                    marginLeft: 4 * indent,
-                  },
+            <VStack height="100%" alignItems="left" bg="alt.100" paddingLeft={4}>
+              <Note
+                {...{
+                  setPreviewNode,
+                  previewNode,
+                  nodeById,
+                  nodeByCite,
+                  setSidebarHighlightedNode,
+                  justification,
+                  justificationList,
+                  linksByNodeId,
                 }}
-              >
-                {previewNode?.id && (
-                  <Box>
-                    <Flex pt={1} alignItems="center" justifyContent="flex-end">
-                      <IconButton
-                        variant="ghost"
-                        aria-label="Justify content"
-                        icon={
-                          [
-                            <BiAlignJustify key="justify" />,
-                            <BiAlignLeft key="left" />,
-                            <BiAlignRight key="right" />,
-                            <BiAlignMiddle key="center" />,
-                          ][justification]
-                        }
-                        onClick={() => setJustification((curr) => (curr + 1) % 4)}
-                      />
-                      <IconButton
-                        variant="ghost"
-                        aria-label="Indent Text"
-                        icon={<BiRightIndent />}
-                        onClick={() => {
-                          console.log(indent)
-                          setIndent((curr: number) => (indent ? 0 : 1))
-                        }}
-                      />
-                      <IconButton
-                        variant="ghost"
-                        aria-label="Change font"
-                        icon={<BiFont />}
-                        onClick={() => {
-                          setFont((curr: string) =>
-                            curr === 'sans serif' ? 'serif' : 'sans serif',
-                          )
-                        }}
-                      />
-                    </Flex>
-                    <Flex height="100%" flexDirection="column" justifyContent="space-between">
-                      <UniOrg
-                        {...{
-                          getText,
-                          setPreviewNode,
-                          previewNode,
-                          nodeById,
-                        }}
-                      />
-                      <Backlinks
-                        {...{
-                          setPreviewNode,
-                          previewNode,
-                          nodeById,
-                          linksByNodeId,
-                          getText,
-                        }}
-                      />
-                    </Flex>
-                  </Box>
-                )}
-              </Box>
+              />
             </VStack>
           </Scrollbars>
         </Box>
@@ -355,7 +136,3 @@ const Sidebar = (props: SidebarProps) => {
 }
 
 export default Sidebar
-
-/* <Box marginLeft="auto" zIndex={5000} bg="alt.100" maxHeight="100%" width= "30%" padding={8} borderRadius={2}>
-   <Heading size="sm">{previewNode.title}</Heading>
-</Box> */
diff --git a/components/Sidebar/noteStyle.ts b/components/Sidebar/noteStyle.ts
new file mode 100644
index 0000000..adf715d
--- /dev/null
+++ b/components/Sidebar/noteStyle.ts
@@ -0,0 +1,140 @@
+export const noteStyle = {
+  '.katex': { overflowX: 'scroll' },
+  h1: { color: 'black', lineHeight: '1.2', fontSize: '20', fontWeight: 'bold', marginBottom: 3 },
+  h2: {
+    fontSize: '18',
+    marginBottom: 2,
+    color: 'black',
+  },
+  h3: {
+    fontSize: '16',
+    fontWeight: '600 !important',
+    marginBottom: '.5em',
+
+    color: 'black',
+  },
+  h4: {
+    fontSize: '14',
+    fontWeight: '500 !important',
+    marginBottom: '.25em',
+    fontStyle: 'italic',
+    color: 'black',
+  },
+  ol: {
+    paddingLeft: '5',
+  },
+  ul: {
+    paddingLeft: '5',
+  },
+  p: {
+    fontSize: '14',
+    fontWeight: '500 !important',
+    paddingBottom: '.5em',
+  },
+  div: {
+    hyphens: 'auto !important',
+  },
+  '.title': {
+    textAlign: 'center',
+    marginBottom: '.2em',
+  },
+  '.subtitle': {
+    textAlign: 'center',
+    fontSize: 'medium',
+    fontWeight: 'bold',
+    marginTop: 0,
+  },
+  '.todo': { fontFamily: 'monospace', color: 'red' },
+  '.equationContainer': {
+    display: 'table',
+    textAlign: 'center',
+    width: '100%',
+  },
+  '.equation': {
+    verticalAlign: 'middle',
+  },
+  '.equation-label': {
+    display: 'tableCell',
+    textAlign: 'right',
+    verticalAlign: 'middle',
+  },
+  '.inlinetask': {
+    padding: '10px',
+    border: '2px solid gray',
+    margin: '10px',
+    background: '#ffffcc',
+  },
+  '#org-div-home-and-up': {
+    textAlign: 'right',
+    fontSize: '70 % ',
+    whiteSpace: 'nowrap',
+  },
+  textarea: { overflowX: 'auto' },
+  '.linenr': { fontSize: 'smaller' },
+  '.code-highlighted': { backgroundColor: '#ffff00' },
+  '.org-info-js_info-navigation': { borderStyle: 'none' },
+  '#org-info-js_console-label': {
+    fontSize: '10px',
+    fontWeight: 'bold',
+    whiteSpace: 'nowrap',
+  },
+  '.org-info-js_search-highlight': {
+    backgroundColor: '#ffff00',
+    color: '#000000',
+    fontWeight: 'bold',
+  },
+  '.org-svg': { width: '90%' },
+  '.done': { fontFamily: 'monospace', color: 'green' },
+  '.priority': { fontFamily: 'monospace', color: 'orange' },
+  '.tag': {
+    backgroundColor: '#eee',
+    fontFamily: 'monospace',
+    padding: '2px',
+    fontSize: '80%',
+    fontWeight: 'normal',
+  },
+  '.timestamp': { color: '#bebebe' },
+  '.timestamp-kwd': { color: '#5f9ea0' },
+  '.org-right': { marginLeft: 'auto', marginRight: '0px', textAlign: 'right' },
+  '.org-left': { marginLeft: '0px', marginRight: 'auto', textAlign: 'left' },
+  '.org-center': { marginLeft: 'auto', marginRight: 'auto', textAlign: 'center' },
+  '.underline': { textDecoration: 'underline' },
+  '#postamble p': { fontSize: '90%', margin: '.2em' },
+  '#preamble p': { fontSize: '90%', margin: '.2em' },
+  'p.verse': { marginLeft: '3%' },
+  pre: {
+    border: '1px solid #e6e6e6',
+    borderRadius: '3px',
+    backgroundColor: '#f2f2f2',
+    padding: '8pt',
+    fontFamily: 'monospace',
+    overflow: 'auto',
+    margin: '1.2em',
+  },
+  'pre.src': {
+    position: 'relative',
+    overflow: 'auto',
+  },
+  'pre.src:before': {
+    display: 'none',
+    position: 'absolute',
+    top: '-8px',
+    right: '12px',
+    padding: '3px',
+    color: '#555',
+    backgroundColor: '#f2f2f299',
+  },
+  'caption.t-above': { captionSide: 'top' },
+  'caption.t-bottom': { captionSide: 'bottom' },
+  'th.org-right': { textAlign: 'center' },
+  'th.org-left': { textAlign: 'center' },
+  'th.org-center': { textAlign: 'center' },
+  'td.org-right': { textAlign: 'right' },
+  'td.org-left': { textAlign: 'left' },
+  'td.org-center': { textAlign: 'center' },
+  '.footpara': { display: 'inline' },
+  '.footdef': { marginBottom: '1em' },
+  '.figure': { padding: '1em' },
+  '.figure p': { textAlign: 'center' },
+}
+export default noteStyle
diff --git a/components/Tweaks/BehaviorPanel.tsx b/components/Tweaks/BehaviorPanel.tsx
index 27906c5..651396d 100644
--- a/components/Tweaks/BehaviorPanel.tsx
+++ b/components/Tweaks/BehaviorPanel.tsx
@@ -17,8 +17,6 @@ import { initialBehavior, initialMouse } from '../config'
 import { InfoTooltip } from './InfoTooltip'
 import { SliderWithInfo } from './SliderWithInfo'
 
-import { checkFileSystemCompatibility } from '../../util/checkFileSystemCompatibility'
-
 export interface BehaviorPanelProps {
   behavior: typeof initialBehavior
   setBehavior: any
@@ -166,20 +164,6 @@ export const BehaviorPanel = (props: BehaviorPanelProps) => {
         onChange={(value) => setBehavior({ ...behavior, zoomPadding: value })}
         infoText="How much to zoom out to accomodate all nodes when changing the view."
       />
-
-      <Box>
-        <Button width="100%" isDisabled={!checkFileSystemCompatibility()}>
-          Grant Filesystem Access
-        </Button>
-        {!checkFileSystemCompatibility() && (
-          <Box bg="gray.600" width="100%" padding={5}>
-            <Text>
-              You are not using a browser compatible with the FileSystem Access API. Only Chromium
-              based browsers are currently supported.
-            </Text>
-          </Box>
-        )}
-      </Box>
     </VStack>
   )
 }
diff --git a/components/config.ts b/components/config.ts
index 0fe4bc1..e1923f2 100644
--- a/components/config.ts
+++ b/components/config.ts
@@ -119,8 +119,8 @@ export const initialBehavior = {
 
 export const initialMouse = {
   highlight: 'hover',
-  local: 'click',
-  follow: 'double',
+  local: 'double',
+  follow: 'never',
   context: 'right',
   preview: 'click',
 }
diff --git a/index.tsx b/index.tsx
deleted file mode 100644
index e69de29..0000000
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 0fbcf5e..2d10abb 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -237,10 +237,15 @@ This serves the web-build and API over HTTP."
                              (json-encode `((type . "orgText") (data . ,text))))))
 
 (defservlet* note/:id text/plain ()
-  (let* ((node (org-roam-populate (org-roam-node-create :id id)))
+  (if-let ((node (org-roam-populate (org-roam-node-create :id id)))
         (file (org-roam-node-file node)))
- (insert-file-contents-literally file)
-(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*")))
+      (progn
+        (insert-file-contents-literally file)
+        (message "we got one %s" file)
+        ))
+(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*"))
+        ;(insert "error")
+        ;(httpd-send-header t "text/plain" 200 :Access-Control-Allow-Origin "*")
 
 
 (defun org-roam-ui--on-save ()
diff --git a/out/404.html b/out/404.html
index 36c8ac9..b824279 100644
--- a/out/404.html
+++ b/out/404.html
@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-aa36b0112675ea597c0c.js" defer=""></script><script src="/_next/static/chunks/pages/_error-4a5d36cf6de80ea8be7a.js" defer=""></script><script src="/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_buildManifest.js" defer=""></script><script src="/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><h1 style="display:inline-block;border-right:1px solid rgba(0, 0, 0,.3);margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"LiCylS_Jd_Tfcv9U5eaVO","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
\ No newline at end of file
+<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-8a4697025057d0bb5456.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-85bcdbfb2d764277a926.js" defer=""></script><script src="/_next/static/chunks/pages/_error-4a5d36cf6de80ea8be7a.js" defer=""></script><script src="/_next/static/uFcKrVt5XdTdJl-0JAxhH/_buildManifest.js" defer=""></script><script src="/_next/static/uFcKrVt5XdTdJl-0JAxhH/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, &quot;Segoe UI&quot;, &quot;Fira Sans&quot;, Avenir, &quot;Helvetica Neue&quot;, &quot;Lucida Grande&quot;, sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><h1 style="display:inline-block;border-right:1px solid rgba(0, 0, 0,.3);margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"uFcKrVt5XdTdJl-0JAxhH","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
\ No newline at end of file
diff --git a/out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_buildManifest.js b/out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_buildManifest.js
deleted file mode 100644
index 2fc214b..0000000
--- a/out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_buildManifest.js
+++ /dev/null
@@ -1 +0,0 @@
-self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-0d6001c72a29ebec41eb.js","static/chunks/b5f2ed29-c14b12daa385c4cc7854.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/chunks/750-c7323136e055e0306399.js","static/chunks/pages/index-9ae71dd6e842cb285888.js"],"/_error":["static/chunks/pages/_error-4a5d36cf6de80ea8be7a.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_ssgManifest.js b/out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_ssgManifest.js
deleted file mode 100644
index 0511aa8..0000000
--- a/out/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_ssgManifest.js
+++ /dev/null
@@ -1 +0,0 @@
-self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB();
\ No newline at end of file
diff --git a/out/_next/static/chunks/1a48c3c1-836e56f8ef2d92f6d89b.js b/out/_next/static/chunks/1a48c3c1-836e56f8ef2d92f6d89b.js
new file mode 100644
index 0000000..24b2342
--- /dev/null
+++ b/out/_next/static/chunks/1a48c3c1-836e56f8ef2d92f6d89b.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[874],{47516:function(t,h,a){"use strict";a.d(h,{v9V:function(){return n},YSr:function(){return v},tr_:function(){return c},RXA:function(){return z},UY3:function(){return u},TlM:function(){return i},DvO:function(){return H},WHD:function(){return e}});var r=a(44405);function n(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 7h16v2H4zm0-4h16v2H4zm0 8h16v2H4zm0 4h16v2H4zm2 4h12v2H6z"}}]})(t)}function v(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 19h16v2H4zm0-4h11v2H4zm0-4h16v2H4zm0-8h16v2H4zm0 4h11v2H4z"}}]})(t)}function c(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 19h16v2H4zm3-4h10v2H7zm-3-4h16v2H4zm0-8h16v2H4zm3 4h10v2H7z"}}]})(t)}function z(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 19h16v2H4zm5-4h11v2H9zm-5-4h16v2H4zm0-8h16v2H4zm5 4h11v2H9z"}}]})(t)}function u(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.903 8.586a.997.997 0 0 0-.196-.293l-6-6a.997.997 0 0 0-.293-.196c-.03-.014-.062-.022-.094-.033a.991.991 0 0 0-.259-.051C13.04 2.011 13.021 2 13 2H6c-1.103 0-2 .897-2 2v16c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V9c0-.021-.011-.04-.013-.062a.952.952 0 0 0-.051-.259c-.01-.032-.019-.063-.033-.093zM16.586 8H14V5.414L16.586 8zM6 20V4h6v5a1 1 0 0 0 1 1h5l.002 10H6z"}},{tag:"path",attr:{d:"M8 12h8v2H8zm0 4h8v2H8zm0-8h2v2H8z"}}]})(t)}function i(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m11.307 4-6 16h2.137l1.875-5h6.363l1.875 5h2.137l-6-16h-2.387zm-1.239 9L12.5 6.515 14.932 13h-4.864z"}}]})(t)}function H(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 3c-1.654 0-3 1.346-3 3 0 .502.136.968.354 1.385l-1.116 1.302A3.976 3.976 0 0 0 13 8c-.739 0-1.425.216-2.02.566L9.566 7.152A3.449 3.449 0 0 0 10 5.5C10 3.57 8.43 2 6.5 2S3 3.57 3 5.5 4.57 9 6.5 9c.601 0 1.158-.166 1.652-.434L9.566 9.98A3.972 3.972 0 0 0 9 12c0 .997.38 1.899.985 2.601l-1.692 1.692.025.025A2.962 2.962 0 0 0 7 16c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3c0-.476-.121-.919-.318-1.318l.025.025 1.954-1.954c.421.15.867.247 1.339.247 2.206 0 4-1.794 4-4a3.96 3.96 0 0 0-.439-1.785l1.253-1.462c.364.158.764.247 1.186.247 1.654 0 3-1.346 3-3s-1.346-3-3-3zM7 20a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM5 5.5C5 4.673 5.673 4 6.5 4S8 4.673 8 5.5 7.327 7 6.5 7 5 6.327 5 5.5zm8 8.5c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm6-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(t)}function e(t){return(0,r.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 15h10v2H10zm-6 4h16v2H4zm6-8h10v2H10zm0-4h10v2H10zM4 3h16v2H4zm0 5v8l4-4z"}}]})(t)}}}]);
\ No newline at end of file
diff --git a/out/_next/static/chunks/599-110075714310a526c058.js b/out/_next/static/chunks/599-110075714310a526c058.js
new file mode 100644
index 0000000..35e6194
--- /dev/null
+++ b/out/_next/static/chunks/599-110075714310a526c058.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[599],{23646:function(e,t,n){var r=n(67228);e.exports=function(e){if(Array.isArray(e))return r(e)}},59713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},92137:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return o}})},22122:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},81253:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19756);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},34699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(82961);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},87329:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(50676);var o=n(82961);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},46860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},98206:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},319:function(e,t,n){var r=n(23646),o=n(46860),i=n(60379),a=n(98206);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},56769:function(e,t,n){"use strict";n.d(t,{UQ:function(){return N},KF:function(){return F},XE:function(){return H},Qd:function(){return j},Hk:function(){return B}});var r=n(70058),o=n(90063),i=n(2326),a=n(55284),s=n(29676),u=n(89384),c=n(15267),l=n(84461),d=n(73808),f=n(80658),p=n(28500),h=n(67294),m=n(21888),v=n(77581),g=n(51034),y=n(94577),b=n(72947),E=n(27277),_=n(47248);function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var[k,x,O,C]=(0,m.n)();function A(e){var{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i}=e,a=w(e,["onChange","defaultIndex","index","allowMultiple","allowToggle"]);!function(e){var t=e.index||e.defaultIndex,n=!(0,d.o8)(t)&&!(0,d.kJ)(t)&&e.allowMultiple;(0,f.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,f.ZK)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);var s=O(),[u,c]=(0,h.useState)(-1);(0,v.z)((()=>{c(-1)}));var[l,p]=(0,g.T)({value:r,defaultValue:()=>o?null!=n?n:[]:null!=n?n:-1,onChange:t});return{index:l,setIndex:p,htmlProps:a,getAccordionItemProps:e=>{var t=!1;null!==e&&(t=(0,d.kJ)(l)?l.includes(e):l===e);return{isOpen:t,onChange:t=>{if(null!==e)if(o&&(0,d.kJ)(l)){var n=t?(0,E.jX)(l,e):(0,E.cl)(l,e);p(n)}else t?p(e):i&&p(-1)}}},focusedIndex:u,setFocusedIndex:c,descendants:s}}var[S,M]=(0,p.k)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in `<Accordion />`"});function D(e){var{isDisabled:t,isFocusable:n,id:r}=e,o=w(e,["isDisabled","isFocusable","id"]),{getAccordionItemProps:i,setFocusedIndex:a}=M(),s=(0,h.useRef)(null),[u,c]=(0,y.ZS)(r,"accordion-button","accordion-panel");!function(e){(0,f.ZK)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n    "})}(e);var{register:d,index:p,descendants:m}=C({disabled:t&&!n}),{isOpen:v,onChange:g}=i(-1===p?null:p);!function(e){(0,f.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:v,isDisabled:t});var E=(0,h.useCallback)((()=>{null==g||g(!v),a(p)}),[p,a,v,g]),k=(0,h.useCallback)((e=>{var t={ArrowDown:()=>{var e=m.nextEnabled(p);e&&(0,_.T)(e.node)},ArrowUp:()=>{var e=m.prevEnabled(p);e&&(0,_.T)(e.node)},Home:()=>{var e=m.firstEnabled();e&&(0,_.T)(e.node)},End:()=>{var e=m.lastEnabled();e&&(0,_.T)(e.node)}}[(0,l.uh)(e)];t&&(e.preventDefault(),t(e))}),[m,p]),x=(0,h.useCallback)((()=>{a(p)}),[a,p]),O=(0,h.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),T({},e,{type:"button",ref:(0,b.l)(d,s,n),id:u,disabled:!!t,"aria-expanded":!!v,"aria-controls":c,onClick:(0,f.v0)(e.onClick,E),onFocus:(0,f.v0)(e.onFocus,x),onKeyDown:(0,f.v0)(e.onKeyDown,k)})}),[u,t,v,E,x,k,c,d]),A=(0,h.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),T({},e,{ref:t,role:"region",id:c,"aria-labelledby":u,hidden:!v})}),[u,v,c]);return{isOpen:v,isDisabled:t,isFocusable:n,onOpen:()=>{null==g||g(!0)},onClose:()=>{null==g||g(!1)},getButtonProps:O,getPanelProps:A,htmlProps:o}}function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function P(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var N=(0,o.G)(((e,t)=>{var{children:n,reduceMotion:r}=e,o=P(e,["children","reduceMotion"]),c=(0,i.j)("Accordion",o),d=A((0,a.Lr)(o)),{htmlProps:f,descendants:p}=d,m=P(d,["htmlProps","descendants"]),v=h.useMemo((()=>I({},m,{reduceMotion:!!r})),[m,r]);return h.createElement(k,{value:p},h.createElement(S,{value:v},h.createElement(s.Fo,{value:c},h.createElement(u.m$.div,I({ref:t},f,{className:(0,l.cx)("chakra-accordion",o.className)}),n))))}));d.Ts&&(N.displayName="Accordion");var[R,L]=(0,p.k)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `<AccordionItem />` "}),j=(0,o.G)(((e,t)=>{var{children:n,className:r}=e,o=D(e),{htmlProps:i}=o,a=P(o,["htmlProps"]),c=I({},(0,s.yK)().container,{overflowAnchor:"none"}),d=h.useMemo((()=>a),[a]);return h.createElement(R,{value:d},h.createElement(u.m$.div,I({ref:t},i,{className:(0,l.cx)("chakra-accordion__item",r),__css:c}),(0,f.Pu)(n,{isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled})))}));d.Ts&&(j.displayName="AccordionItem");var F=(0,o.G)(((e,t)=>{var{getButtonProps:n}=L(),r=n(e,t),o=I({display:"flex",alignItems:"center",width:"100%",outline:0},(0,s.yK)().button);return h.createElement(u.m$.button,I({},r,{className:(0,l.cx)("chakra-accordion__button",e.className),__css:o}))}));d.Ts&&(F.displayName="AccordionButton");var B=(0,o.G)(((e,t)=>{var{reduceMotion:n}=M(),{getPanelProps:r,isOpen:o}=L(),i=r(e,t),a=(0,l.cx)("chakra-accordion__panel",e.className),d=(0,s.yK)();n||delete i.hidden;var f=h.createElement(u.m$.div,I({},i,{__css:d.panel,className:a}));return n?f:h.createElement(c.U,{in:o},f)}));d.Ts&&(B.displayName="AccordionPanel");var H=e=>{var{isOpen:t,isDisabled:n}=L(),{reduceMotion:o}=M(),i=(0,l.cx)("chakra-accordion__icon",e.className),a=I({opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:o?void 0:"transform 0.2s",transformOrigin:"center"},(0,s.yK)().icon);return h.createElement(r.J,I({viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a},e),h.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};d.Ts&&(H.displayName="AccordionIcon")},40419:function(e,t,n){"use strict";t.__esModule=!0,t.ButtonGroup=t.useButtonGroup=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,i.createContext)({strict:!1,name:"ButtonGroupContext"}),l=c[0],d=c[1];t.useButtonGroup=d;var f=(0,r.forwardRef)((function(e,t){var n=e.size,i=e.colorScheme,s=e.variant,c=e.className,d=e.spacing,f=void 0===d?"0.5rem":d,p=e.isAttached,h=e.isDisabled,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),v=(0,o.cx)("chakra-button__group",c),g=a.useMemo((function(){return{size:n,colorScheme:i,variant:s,isDisabled:h}}),[n,i,s,h]),y={display:"inline-flex"};return y=u({},y,p?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:f}}),a.createElement(l,{value:g},a.createElement(r.chakra.div,u({ref:t,role:"group",__css:y,className:v},m)))}));t.ButtonGroup=f,o.__DEV__&&(f.displayName="ButtonGroup")},24686:function(e,t,n){"use strict";t.__esModule=!0,t.Button=void 0;var r=n(19277),o=n(90716),i=n(48121),a=n(66751),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),u=n(40419);function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=(0,i.forwardRef)((function(e,t){var n,o=(0,u.useButtonGroup)(),c=(0,i.useStyleConfig)("Button",d({},o,e)),f=(0,i.omitThemingProps)(e),m=f.isDisabled,v=void 0===m?null==o?void 0:o.isDisabled:m,g=f.isLoading,y=f.isActive,b=f.isFullWidth,E=f.children,_=f.leftIcon,T=f.rightIcon,w=f.loadingText,k=f.iconSpacing,x=void 0===k?"0.5rem":k,O=f.type,C=f.spinner,A=f.spinnerPlacement,S=void 0===A?"start":A,M=f.className,D=f.as,I=l(f,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),P=(0,a.mergeWith)({},null!=(n=null==c?void 0:c._focus)?n:{},{zIndex:1}),N=d({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:b?"100%":"auto"},c,!!o&&{_focus:P}),R=function(e){var t=s.useState(!e),n=t[0],r=t[1],o=s.useCallback((function(e){e&&r("BUTTON"===e.tagName)}),[]),i=n?"button":void 0;return{ref:o,type:i}}(D),L=R.ref,j=R.type;return s.createElement(i.chakra.button,d({disabled:v||g,ref:(0,r.mergeRefs)(t,L),as:D,type:null!=O?O:j,"data-active":(0,a.dataAttr)(y),"data-loading":(0,a.dataAttr)(g),__css:N,className:(0,a.cx)("chakra-button",M)},I),_&&!g&&s.createElement(p,{marginEnd:x},_),g&&"start"===S&&s.createElement(h,{className:"chakra-button__spinner--start",label:w,placement:"start"},C),g?w||s.createElement(i.chakra.span,{opacity:0},E):E,g&&"end"===S&&s.createElement(h,{className:"chakra-button__spinner--end",label:w,placement:"end"},C),T&&!g&&s.createElement(p,{marginStart:x},T))}));t.Button=f,a.__DEV__&&(f.displayName="Button");var p=function(e){var t=e.children,n=e.className,r=l(e,["children","className"]),o=s.isValidElement(t)?s.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,u=(0,a.cx)("chakra-button__icon",n);return s.createElement(i.chakra.span,d({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:u}),o)};a.__DEV__&&(p.displayName="ButtonIcon");var h=function(e){var t,n=e.label,r=e.placement,u=(e.spacing,e.children),c=void 0===u?s.createElement(o.Spinner,{color:"currentColor",width:"1em",height:"1em"}):u,f=e.className,p=e.__css,h=l(e,["label","placement","spacing","children","className","__css"]),m=(0,a.cx)("chakra-button__spinner",f),v=d(((t={display:"flex",alignItems:"center",position:n?"relative":"absolute"})["start"===r?"marginEnd":"marginStart"]=n?"0.5rem":0,t.fontSize="1em",t.lineHeight="normal",t),p);return s.createElement(i.chakra.div,d({className:m},h,{__css:v}),c)};a.__DEV__&&(h.displayName="ButtonSpinner")},84175:function(e,t,n){"use strict";t.__esModule=!0,t.IconButton=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(24686);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=e.icon,r=e.children,o=e.isRound,s=e["aria-label"],c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["icon","children","isRound","aria-label"]),l=n||r,d=i.isValidElement(l)?i.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return i.createElement(a.Button,u({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s},c),d)}));t.IconButton=c,o.__DEV__&&(c.displayName="IconButton")},46017:function(e,t,n){"use strict";t.__esModule=!0;var r=n(24686);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(40419);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(84175);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},40155:function(e,t,n){"use strict";n.d(t,{z:function(){return x}});var r=n(72947),o=n(70917),i=n(90063),a=n(2326),s=n(55284),u=n(89384),c=n(84461),l=n(73808),d=n(65415),f=n(67294);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=(0,o.keyframes)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),m=(0,i.G)(((e,t)=>{var n=(0,a.m)("Spinner",e),r=(0,s.Lr)(e),{label:o="Loading...",thickness:i="2px",speed:l="0.45s",emptyColor:m="transparent",className:v}=r,g=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["label","thickness","speed","emptyColor","className"]),y=(0,c.cx)("chakra-spinner",v),b=p({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:m,borderLeftColor:m,animation:h+" "+l+" linear infinite"},n);return f.createElement(u.m$.div,p({ref:t,__css:b,className:y},g),o&&f.createElement(d.TX,null,o))}));l.Ts&&(m.displayName="Spinner");var v=n(38554),g=n.n(v),y=n(28500);function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[E,_]=(0,y.k)({strict:!1,name:"ButtonGroupContext"}),T=(0,i.G)(((e,t)=>{var{size:n,colorScheme:r,variant:o,className:i,spacing:a="0.5rem",isAttached:s,isDisabled:l}=e,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),p=(0,c.cx)("chakra-button__group",i),h=f.useMemo((()=>({size:n,colorScheme:r,variant:o,isDisabled:l})),[n,r,o,l]),m={display:"inline-flex"};return m=b({},m,s?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:a}}),f.createElement(E,{value:h},f.createElement(u.m$.div,b({ref:t,role:"group",__css:m,className:p},d)))}));function w(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}l.Ts&&(T.displayName="ButtonGroup");var x=(0,i.G)(((e,t)=>{var n,o=_(),i=(0,a.m)("Button",k({},o,e)),l=(0,s.Lr)(e),{isDisabled:d=(null==o?void 0:o.isDisabled),isLoading:p,isActive:h,isFullWidth:m,children:v,leftIcon:y,rightIcon:b,loadingText:E,iconSpacing:T="0.5rem",type:x,spinner:A,spinnerPlacement:S="start",className:M,as:D}=l,I=w(l,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),P=g()({},null!=(n=null==i?void 0:i._focus)?n:{},{zIndex:1}),N=k({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:m?"100%":"auto"},i,!!o&&{_focus:P}),{ref:R,type:L}=function(e){var[t,n]=f.useState(!e),r=f.useCallback((e=>{e&&n("BUTTON"===e.tagName)}),[]),o=t?"button":void 0;return{ref:r,type:o}}(D);return f.createElement(u.m$.button,k({disabled:d||p,ref:(0,r.l)(t,R),as:D,type:null!=x?x:L,"data-active":(0,c.PB)(h),"data-loading":(0,c.PB)(p),__css:N,className:(0,c.cx)("chakra-button",M)},I),y&&!p&&f.createElement(O,{marginEnd:T},y),p&&"start"===S&&f.createElement(C,{className:"chakra-button__spinner--start",label:E,placement:"start"},A),p?E||f.createElement(u.m$.span,{opacity:0},v):v,p&&"end"===S&&f.createElement(C,{className:"chakra-button__spinner--end",label:E,placement:"end"},A),b&&!p&&f.createElement(O,{marginStart:T},b))}));l.Ts&&(x.displayName="Button");var O=e=>{var{children:t,className:n}=e,r=w(e,["children","className"]),o=f.isValidElement(t)?f.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=(0,c.cx)("chakra-button__icon",n);return f.createElement(u.m$.span,k({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:i}),o)};l.Ts&&(O.displayName="ButtonIcon");var C=e=>{var{label:t,placement:n,children:r=f.createElement(m,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:i}=e,a=w(e,["label","placement","spacing","children","className","__css"]),s=(0,c.cx)("chakra-button__spinner",o),l=k({display:"flex",alignItems:"center",position:t?"relative":"absolute",["start"===n?"marginEnd":"marginStart"]:t?"0.5rem":0,fontSize:"1em",lineHeight:"normal"},i);return f.createElement(u.m$.div,k({className:s},a,{__css:l}),r)};l.Ts&&(C.displayName="ButtonSpinner")},48420:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(90063),o=n(73808),i=n(67294),a=n(40155);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.G)(((e,t)=>{var{icon:n,children:r,isRound:o,"aria-label":u}=e,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["icon","children","isRound","aria-label"]),l=n||r,d=i.isValidElement(l)?i.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return i.createElement(a.z,s({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":u},c),d)}));o.Ts&&(u.displayName="IconButton")},31033:function(e,t,n){"use strict";n.d(t,{P:function(){return f}});var r=n(70058),o=n(90063),i=n(2326),a=n(55284),s=n(89384),u=n(73808),c=n(67294);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=e=>c.createElement(r.J,l({focusable:"false","aria-hidden":!0},e),c.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})),f=(0,o.G)(((e,t)=>{var n=(0,i.m)("CloseButton",e),r=(0,a.Lr)(e),{children:o,isDisabled:u,__css:f}=r,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["children","isDisabled","__css"]);return c.createElement(s.m$.button,l({type:"button","aria-label":"Close",ref:t,disabled:u,__css:l({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,f)},p),o||c.createElement(d,{width:"1em",height:"1em"}))}));u.Ts&&(f.displayName="CloseButton")},45771:function(e,t,n){"use strict";t.__esModule=!0,t.ColorModeProvider=d,t.useColorModeValue=function(e,t){return"dark"===l().colorMode?t:e},t.LightMode=t.DarkMode=t.useColorMode=t.ColorModeContext=void 0;var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(77570),a=n(68346);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=o.createContext({});t.ColorModeContext=c,r.__DEV__&&(c.displayName="ColorModeContext");var l=function(){var e=o.useContext(c);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function d(e){var t=e.value,n=e.children,s=e.options,u=s.useSystemColorMode,l=s.initialColorMode,d=e.colorModeManager,f=void 0===d?a.localStorageManager:d,p=o.useState("cookie"===f.type?f.get(l):l),h=p[0],m=p[1];o.useEffect((function(){if(r.isBrowser&&"localStorage"===f.type){var e=u?(0,i.getColorScheme)(l):i.root.get()||f.get();e&&m(e)}}),[f,u,l]),o.useEffect((function(){var e="dark"===h;(0,i.syncBodyClassName)(e),i.root.set(e?"dark":"light")}),[h]);var v=o.useCallback((function(e){f.set(e),m(e)}),[f]),g=o.useCallback((function(){v("light"===h?"dark":"light")}),[h,v]);o.useEffect((function(){var e;return u&&(e=(0,i.addListener)(v)),function(){e&&u&&e()}}),[v,u]);var y=o.useMemo((function(){return{colorMode:null!=t?t:h,toggleColorMode:t?r.noop:g,setColorMode:t?r.noop:v}}),[h,v,g,t]);return o.createElement(c.Provider,{value:y},n)}t.useColorMode=l,r.__DEV__&&(d.displayName="ColorModeProvider");var f=function(e){return o.createElement(c.Provider,u({value:{colorMode:"dark",toggleColorMode:r.noop,setColorMode:r.noop}},e))};t.DarkMode=f,r.__DEV__&&(f.displayName="DarkMode");var p=function(e){return o.createElement(c.Provider,u({value:{colorMode:"light",toggleColorMode:r.noop,setColorMode:r.noop}},e))};t.LightMode=p,r.__DEV__&&(p.displayName="LightMode")},79002:function(e,t,n){"use strict";t.__esModule=!0,t.ColorModeScript=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){var t,n,r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";try{t=localStorage.getItem("chakra-ui-color-mode")}catch(o){console.log("Chakra UI: localStorage is not available. Color mode persistence might not work as expected")}(n="string"===typeof t?t:"system"===e?r:e)&&document.documentElement.style.setProperty("--chakra-ui-color-mode",n)}t.ColorModeScript=function(e){var t=e.initialColorMode,n=void 0===t?"light":t,o="("+String(i)+")('"+n+"')";return r.createElement("script",{nonce:e.nonce,dangerouslySetInnerHTML:{__html:o}})}},77570:function(e,t,n){"use strict";t.__esModule=!0,t.syncBodyClassName=function(e){var t=r.isBrowser?document.body:a;t.classList.add(e?i:o),t.classList.remove(e?o:i)},t.getColorScheme=function(e){var t;return(null!=(t=function(e){var t=null==window.matchMedia?void 0:window.matchMedia(e);if(!t)return;return!!t.media===t.matches}(s.dark))?t:"dark"===e)?"dark":"light"},t.addListener=function(e){if(!("matchMedia"in window))return r.noop;var t=window.matchMedia(s.dark),n=function(){e(t.matches?"dark":"light")};return n(),t.addListener(n),function(){t.removeListener(n)}},t.root=t.darkQuery=t.lightQuery=t.queries=void 0;var r=n(66751),o="chakra-ui-light",i="chakra-ui-dark",a={classList:{add:r.noop,remove:r.noop}};var s={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"};t.queries=s;var u=s.light;t.lightQuery=u;var c=s.dark;t.darkQuery=c;var l={get:function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")},set:function(e){r.isBrowser&&document.documentElement.style.setProperty("--chakra-ui-color-mode",e)}};t.root=l},12094:function(e,t,n){"use strict";t.__esModule=!0;var r=n(45771);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(68346);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(79002);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},68346:function(e,t,n){"use strict";t.__esModule=!0,t.cookieStorageManager=t.localStorageManager=t.storageKey=void 0;var r=n(66751),o=function(){return"undefined"!==typeof Storage},i="chakra-ui-color-mode";t.storageKey=i;var a={get:function(e){if(!o())return e;try{var t=localStorage.getItem(i);return null!=t?t:e}catch(n){return r.__DEV__&&console.log(n),e}},set:function(e){if(o())try{localStorage.setItem(i,e)}catch(t){r.__DEV__&&console.log(t)}},type:"localStorage"};t.localStorageManager=a;t.cookieStorageManager=function(e){return void 0===e&&(e=""),{get:function(t){var n=e.match(new RegExp("(^| )"+i+"=([^;]+)"));return n?n[2]:t},set:function(e){document.cookie=i+"="+e+"; max-age=31536000; path=/"},type:"cookie"}}},62300:function(e,t,n){"use strict";var r=n(89384),o=n(73808),i=n(67294);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=e=>{var{type:t="checkbox",_hover:n,_invalid:o,_disabled:s,_focus:u,_checked:c,_child:l={opacity:0},_checkedAndChild:d={opacity:1},_checkedAndDisabled:f,_checkedAndFocus:p,_checkedAndHover:h,children:m}=e,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["type","_hover","_invalid","_disabled","_focus","_checked","_child","_checkedAndChild","_checkedAndDisabled","_checkedAndFocus","_checkedAndHover","children"]),g="input[type="+t+"]:checked:disabled + &",y="input[type="+t+"]:checked:hover:not(:disabled) + &",b="input[type="+t+"]:checked:focus + &",E="input[type="+t+"]:disabled + &",_="input[type="+t+"]:focus + &",T="input[type="+t+"]:hover:not(:disabled):not(:checked) + &",w="input[type="+t+"]:checked + &, input[type="+t+"][aria-checked=mixed] + &",k="input[type="+t+"][aria-invalid=true] + &",x="& > *";return i.createElement(r.m$.div,a({},v,{"aria-hidden":!0,__css:{display:"inline-flex",alignItems:"center",justifyContent:"center",transitionProperty:"common",transitionDuration:"fast",flexShrink:0,[_]:u,[T]:n,[E]:s,[k]:o,[g]:f,[b]:p,[y]:h,[x]:l,[w]:a({},c,{[x]:d})}}),m)};o.Ts&&(s.displayName="ControlBox")},21888:function(e,t,n){"use strict";n.d(t,{n:function(){return m}});var r=n(28500),o=n(72947),i=n(67294);function a(e){return e.sort(((e,t)=>{var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function s(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function u(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}var c="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(){var e=this;d(this,"descendants",new Map),d(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),d(this,"unregister",(e=>{this.descendants.delete(e);var t=a(Array.from(this.descendants.keys()));this.assignIndex(t)})),d(this,"destroy",(()=>{this.descendants.clear()})),d(this,"assignIndex",(e=>{this.descendants.forEach((t=>{var n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),d(this,"count",(()=>this.descendants.size)),d(this,"enabledCount",(()=>this.enabledValues().length)),d(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),d(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),d(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),d(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),d(this,"first",(()=>this.item(0))),d(this,"firstEnabled",(()=>this.enabledItem(0))),d(this,"last",(()=>this.item(this.descendants.size-1))),d(this,"lastEnabled",(()=>{var e=this.enabledValues().length-1;return this.enabledItem(e)})),d(this,"indexOf",(e=>{var t,n;return e&&null!=(t=null==(n=this.descendants.get(e))?void 0:n.index)?t:-1})),d(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),d(this,"next",(function(t,n){void 0===n&&(n=!0);var r=s(t,e.count(),n);return e.item(r)})),d(this,"nextEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}})),d(this,"prev",(function(t,n){void 0===n&&(n=!0);var r=u(t,e.count()-1,n);return e.item(r)})),d(this,"prevEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}})),d(this,"registerNode",((e,t)=>{if(e&&!this.descendants.has(e)){var n=a(Array.from(this.descendants.keys()).concat(e));null!=t&&t.disabled&&(t.disabled=!!t.disabled);var r=l({node:e,index:-1},t);this.descendants.set(e,r),this.assignIndex(n)}}))}}var[p,h]=(0,r.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function m(){return[p,()=>h(),()=>function(){var[e]=(0,i.useState)((()=>new f));return c((()=>()=>e.destroy())),e}(),e=>function(e){var t=h(),[n,r]=(0,i.useState)(-1),a=(0,i.useRef)(null);c((()=>()=>{a.current&&t.unregister(a.current)}),[]),c((()=>{if(a.current){var e=Number(a.current.dataset.index);n==e||Number.isNaN(e)||r(e)}}));var s=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(a.current),register:(0,o.l)(s,a)}}(e)]}},71312:function(e,t,n){"use strict";t.__esModule=!0,t.FormHelperText=t.FormControl=t.useFormControlContext=void 0;var r=n(81959),o=n(48121),i=n(66751),a=n(19277),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var d=(0,a.createContext)({strict:!1,name:"FormControlContext"}),f=d[0],p=d[1];t.useFormControlContext=p;var h=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("Form",e),u=function(e){var t=e.id,n=e.isRequired,o=e.isInvalid,u=e.isDisabled,d=e.isReadOnly,f=l(e,["id","isRequired","isInvalid","isDisabled","isReadOnly"]),p=(0,r.useId)(),h=t||"field-"+p,m=h+"-label",v=h+"-feedback",g=h+"-helptext",y=s.useState(!1),b=y[0],E=y[1],_=s.useState(!1),T=_[0],w=_[1],k=(0,r.useBoolean)(),x=k[0],O=k[1],C=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:g},e,{ref:(0,a.mergeRefs)(t,(function(e){e&&w(!0)}))})}),[g]),A=s.useCallback((function(e,t){var n,r;return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,"data-focus":(0,i.dataAttr)(x),"data-disabled":(0,i.dataAttr)(u),"data-invalid":(0,i.dataAttr)(o),"data-readonly":(0,i.dataAttr)(d),id:null!=(n=e.id)?n:m,htmlFor:null!=(r=e.htmlFor)?r:h})}),[h,u,x,o,d,m]),S=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:v},e,{ref:(0,a.mergeRefs)(t,(function(e){e&&E(!0)})),"aria-live":"polite"})}),[v]),M=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,f,{ref:t,role:"group"})}),[f]),D=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]),I=s.useCallback((function(){(0,i.scheduleMicrotask)(O.on)}),[O]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!d,isDisabled:!!u,isFocused:!!x,onFocus:I,onBlur:O.off,hasFeedbackText:b,setHasFeedbackText:E,hasHelpText:T,setHasHelpText:w,id:h,labelId:m,feedbackId:v,helpTextId:g,htmlProps:f,getHelpTextProps:C,getErrorMessageProps:S,getRootProps:M,getLabelProps:A,getRequiredIndicatorProps:D}}((0,o.omitThemingProps)(e)),d=u.getRootProps,p=(u.htmlProps,l(u,["getRootProps","htmlProps"])),h=(0,i.cx)("chakra-form-control",e.className),m=s.useMemo((function(){return p}),[p]);return s.createElement(f,{value:m},s.createElement(o.StylesProvider,{value:n},s.createElement(o.chakra.div,c({},d({},t),{className:h,__css:{width:"100%",position:"relative"}}))))}));t.FormControl=h,i.__DEV__&&(h.displayName="FormControl");var m=(0,o.forwardRef)((function(e,t){var n=p(),r=(0,o.useStyles)(),a=(0,i.cx)("chakra-form__helper-text",e.className);return s.createElement(o.chakra.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));t.FormHelperText=m,i.__DEV__&&(m.displayName="FormHelperText")},7609:function(e,t,n){"use strict";t.__esModule=!0,t.FormErrorIcon=t.FormErrorMessage=void 0;var r,o=(r=n(29559))&&r.__esModule?r:{default:r},i=n(48121),a=n(66751),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),u=n(71312);function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=(0,i.forwardRef)((function(e,t){var n=(0,i.useMultiStyleConfig)("FormError",e),r=(0,i.omitThemingProps)(e),o=(0,u.useFormControlContext)();return null!=o&&o.isInvalid?s.createElement(i.StylesProvider,{value:n},s.createElement(i.chakra.div,l({},null==o?void 0:o.getErrorMessageProps(r,t),{className:(0,a.cx)("chakra-form__error-message",e.className),__css:l({display:"flex",alignItems:"center"},n.text)}))):null}));t.FormErrorMessage=d,a.__DEV__&&(d.displayName="FormErrorMessage");var f=(0,i.forwardRef)((function(e,t){var n=(0,i.useStyles)(),r=(0,u.useFormControlContext)();if(null==r||!r.isInvalid)return null;var c=(0,a.cx)("chakra-form__error-icon",e.className);return s.createElement(o.default,l({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:c}),s.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));t.FormErrorIcon=f,a.__DEV__&&(f.displayName="FormErrorIcon")},22786:function(e,t,n){"use strict";t.__esModule=!0,t.RequiredIndicator=t.FormLabel=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(71312);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n,s=(0,r.useStyleConfig)("FormLabel",e),c=(0,r.omitThemingProps)(e),d=(c.className,c.children),f=c.requiredIndicator,p=void 0===f?i.createElement(l,null):f,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(c,["className","children","requiredIndicator"]),m=(0,a.useFormControlContext)(),v=null!=(n=null==m?void 0:m.getLabelProps(h,t))?n:u({ref:t},h);return i.createElement(r.chakra.label,u({},v,{className:(0,o.cx)("chakra-form__label",c.className),__css:u({display:"block",textAlign:"start"},s)}),d,null!=m&&m.isRequired?p:null)}));t.FormLabel=c,o.__DEV__&&(c.displayName="FormLabel");var l=(0,r.forwardRef)((function(e,t){var n=(0,a.useFormControlContext)(),s=(0,r.useStyles)();if(null==n||!n.isRequired)return null;var c=(0,o.cx)("chakra-form__required-indicator",e.className);return i.createElement(r.chakra.span,u({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:s.requiredIndicator,className:c}))}));t.RequiredIndicator=l,o.__DEV__&&(l.displayName="RequiredIndicator")},88323:function(e,t,n){"use strict";t.__esModule=!0;var r=n(71312);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(436);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(7609);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(22786);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},436:function(e,t,n){"use strict";t.__esModule=!0,t.useFormControl=function(e){var t=s(e),n=t.isDisabled,o=t.isInvalid,u=t.isReadOnly,c=t.isRequired;return i({},a(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:u,required:c,"aria-invalid":(0,r.ariaAttr)(o),"aria-required":(0,r.ariaAttr)(c),"aria-readonly":(0,r.ariaAttr)(u)})},t.useFormControlProps=s;var r=n(66751),o=n(71312);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(e){var t,n,s,u=(0,o.useFormControlContext)(),c=e.id,l=e.disabled,d=e.readOnly,f=e.required,p=e.isRequired,h=e.isInvalid,m=e.isReadOnly,v=e.isDisabled,g=e.onFocus,y=e.onBlur,b=a(e,["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"]),E=[];return null!=u&&u.hasFeedbackText&&null!=u&&u.isInvalid&&E.push(u.feedbackId),null!=u&&u.hasHelpText&&E.push(u.helpTextId),i({},b,{"aria-describedby":E.join(" ")||void 0,id:null!=c?c:null==u?void 0:u.id,isDisabled:null!=(t=null!=l?l:v)?t:null==u?void 0:u.isDisabled,isReadOnly:null!=(n=null!=d?d:m)?n:null==u?void 0:u.isReadOnly,isRequired:null!=(s=null!=f?f:p)?s:null==u?void 0:u.isRequired,isInvalid:null!=h?h:null==u?void 0:u.isInvalid,onFocus:(0,r.callAllHandlers)(null==u?void 0:u.onFocus,g),onBlur:(0,r.callAllHandlers)(null==u?void 0:u.onBlur,y)})}},81959:function(e,t,n){"use strict";t.__esModule=!0;var r=n(59627);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(69038);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(26872);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(46903);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(6993);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(75624);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(33243);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(97649);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(31948);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(33131);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(53498);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(19867);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(59457);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(92695);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(34281);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(8042);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(19679);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(24754);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var _=n(12166);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}));var T=n(89395);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var w=n(3267);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var k=n(26465);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[e]))}));var x=n(30474);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var O=n(129);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||(t[e]=O[e]))}));var C=n(70709);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||(t[e]=C[e]))}));var A=n(19197);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||(t[e]=A[e]))}));var S=n(43670);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||(t[e]=S[e]))}));var M=n(42093);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||(t[e]=M[e]))}));var D=n(52594);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||(t[e]=D[e]))}));var I=n(70005);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||(t[e]=I[e]))}))},59627:function(e,t,n){"use strict";t.__esModule=!0,t.useBoolean=function(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],o=t[1],i=(0,r.useCallback)((function(){o(!0)}),[]),a=(0,r.useCallback)((function(){o(!1)}),[]),s=(0,r.useCallback)((function(){o((function(e){return!e}))}),[]);return[n,{on:i,off:a,toggle:s}]};var r=n(67294)},69038:function(e,t,n){"use strict";t.__esModule=!0,t.useCallbackRef=function(e,t){void 0===t&&(t=[]);var n=r.useRef(e);return(0,o.useSafeLayoutEffect)((function(){n.current=e})),r.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)}),t)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(70709);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},26872:function(e,t,n){"use strict";t.__esModule=!0,t.useClipboard=function(e,t){void 0===t&&(t={});var n=(0,o.useState)(!1),r=n[0],a=n[1],s="number"===typeof t?{timeout:t}:t,u=s.timeout,c=void 0===u?1500:u,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,["timeout"]),d=(0,o.useCallback)((function(){var t=(0,i.default)(e,l);a(t)}),[e,l]);return(0,o.useEffect)((function(){var e=null;return r&&(e=window.setTimeout((function(){a(!1)}),c)),function(){e&&window.clearTimeout(e)}}),[c,r]),{value:e,onCopy:d,hasCopied:r}};var r,o=n(67294),i=(r=n(20640))&&r.__esModule?r:{default:r}},46903:function(e,t,n){"use strict";t.__esModule=!0,t.useConst=function(e){var t=(0,r.useRef)(null);null===t.current&&(t.current="function"===typeof e?e():e);return t.current};var r=n(67294)},6993:function(e,t,n){"use strict";t.__esModule=!0,t.useControllableProp=function(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]},t.useControllableState=function(e){var t=e.value,n=e.defaultValue,a=e.onChange,s=e.shouldUpdate,u=void 0===s?function(e,t){return e!==t}:s,c=(0,i.useCallbackRef)(a),l=(0,i.useCallbackRef)(u),d=o.useState(n),f=d[0],p=d[1],h=void 0!==t,m=h?t:f,v=o.useCallback((function(e){var t=(0,r.runIfFn)(e,m);l(m,t)&&(h||p(t),c(t))}),[h,c,m,l]);return[m,v]};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(69038);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},75624:function(e,t,n){"use strict";t.__esModule=!0,t.useDimensions=function(e,t){var n=r.useState(null),a=n[0],s=n[1],u=r.useRef();return(0,i.useSafeLayoutEffect)((function(){if(e.current){var n=e.current;return r(),t&&(window.addEventListener("resize",r),window.addEventListener("scroll",r)),function(){t&&(window.removeEventListener("resize",r),window.removeEventListener("scroll",r)),u.current&&cancelAnimationFrame(u.current)}}function r(){u.current=requestAnimationFrame((function(){var e=(0,o.getBox)(n);s(e)}))}}),[t]),a};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(66751),i=n(70709);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},33243:function(e,t,n){"use strict";t.__esModule=!0,t.useDisclosure=function(e){void 0===e&&(e={});var t=e,n=t.onClose,s=t.onOpen,c=t.isOpen,l=t.id,d=o.useState(e.defaultIsOpen||!1),f=d[0],p=d[1],h=(0,i.useControllableProp)(c,f),m=h[0],v=h[1],g=(0,a.useId)(l,"disclosure"),y=o.useCallback((function(){m||p(!1),null==n||n()}),[m,n]),b=o.useCallback((function(){m||p(!0),null==s||s()}),[m,s]),E=o.useCallback((function(){(v?y:b)()}),[v,b,y]);return{isOpen:!!v,onOpen:b,onClose:y,onToggle:E,isControlled:m,getButtonProps:function(e){return void 0===e&&(e={}),u({},e,{"aria-expanded":"true","aria-controls":g,onClick:(0,r.callAllHandlers)(e.onClick,E)})},getDisclosureProps:function(e){return void 0===e&&(e={}),u({},e,{hidden:!v,id:g})}}};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(6993),a=n(8042);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},97649:function(e,t,n){"use strict";t.__esModule=!0,t.useEventCallback=function(e){var t=r.useRef(e);return(0,o.useSafeLayoutEffect)((function(){t.current=e})),r.useCallback((function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.current.apply(t,[e].concat(r))}),[])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(70709);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},33131:function(e,t,n){"use strict";t.__esModule=!0,t.useEventListenerMap=function(){var e=o.useRef(new Map),t=e.current,n=o.useCallback((function(t,n,o,i){var a=(0,r.wrapPointerEventHandler)(o,"pointerdown"===n);e.current.set(o,{__listener:a,type:(0,r.getPointerEventName)(n),el:t,options:i}),t.addEventListener(n,a,i)}),[]),i=o.useCallback((function(t,n,r,o){var i=e.current.get(r).__listener;t.removeEventListener(n,i,o),e.current.delete(i)}),[]);return o.useEffect((function(){return function(){t.forEach((function(e,t){i(e.el,e.type,t,e.options)}))}}),[i,t]),{add:n,remove:i}};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},31948:function(e,t,n){"use strict";t.__esModule=!0,t.useEventListener=function(e,t,n,a){var s=(0,i.useCallbackRef)(t);return o.useEffect((function(){var t,o=null!=(t=(0,r.runIfFn)(n))?t:document;return o.addEventListener(e,s,a),function(){o.removeEventListener(e,s,a)}}),[e,n,a,s]),function(){var t;(null!=(t=(0,r.runIfFn)(n))?t:document).removeEventListener(e,s,a)}};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(69038);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},53498:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusEffect=function(e,t){var n=t.shouldFocus,i=t.preventScroll;(0,o.useUpdateEffect)((function(){var t=e.current;t&&n&&((0,r.hasFocusWithin)(t)||(0,r.focus)(t,{preventScroll:i,nextTick:!0}))}),[n,e,i])};var r=n(66751),o=n(52594)},19867:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnHide=function(e,t){var n=t.shouldFocus,i=t.visible,a=t.focusRef,s=n&&!i;(0,o.useUpdateEffect)((function(){if(s&&!function(e){var t=e.current;if(!t)return!1;var n=(0,r.getActiveElement)(t);return!!n&&(!(0,r.contains)(t,n)&&!!(0,r.isTabbable)(n))}(e)){var t=(null==a?void 0:a.current)||e.current;t&&(0,r.focus)(t,{nextTick:!0})}}),[s,e,a])};var r=n(66751),o=n(52594)},59457:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnPointerDown=function(e){var t=e.ref,n=e.elements,i=e.enabled,a=(0,r.detectBrowser)("Safari");(0,o.usePointerEvent)((function(){return(0,r.getOwnerDocument)(t.current)}),"pointerdown",(function(e){if(a&&i){var o=e.target,s=(null!=n?n:[t]).some((function(e){var t=(0,r.isRefObject)(e)?e.current:e;return(0,r.contains)(t,o)}));!(0,r.isActiveElement)(o)&&s&&(e.preventDefault(),(0,r.focus)(o))}}))};var r=n(66751),o=n(30474)},92695:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnShow=function(e,t){void 0===t&&(t=s);var n=t,u=n.focusRef,c=n.preventScroll,l=n.shouldFocus,d=n.visible,f=(0,r.isRefObject)(e)?e.current:e,p=l&&d,h=(0,o.useCallback)((function(){if(f&&p&&!(0,r.contains)(f,document.activeElement))if(null!=u&&u.current)(0,r.focus)(u.current,{preventScroll:c,nextTick:!0});else{var e=(0,r.getAllFocusable)(f);e.length>0&&(0,r.focus)(e[0],{preventScroll:c,nextTick:!0})}}),[p,c,f,u]);(0,a.useUpdateEffect)((function(){h()}),[h]),(0,i.useEventListener)("transitionend",h,f)};var r=n(66751),o=n(67294),i=n(31948),a=n(52594),s={preventScroll:!0,shouldFocus:!1}},34281:function(e,t,n){"use strict";t.__esModule=!0,t.useForceUpdate=function(){var e=r.useRef(!1),t=r.useState(0),n=t[0],i=t[1];return(0,o.useUnmountEffect)((function(){e.current=!0})),r.useCallback((function(){e.current||i(n+1)}),[n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(42093);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},8042:function(e,t,n){"use strict";t.__esModule=!0,t.useId=u,t.useIds=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=u(e);return r.useMemo((function(){return n.map((function(e){return e+"-"+i}))}),[i,n])},t.useOptionalPart=function(e){var t=r.useState(null),n=t[0],o=t[1];return{ref:r.useCallback((function(t){o(t?e:null)}),[e]),id:n,isRendered:Boolean(n)}},t.IdProvider=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var i={prefix:Math.round(1e10*Math.random()),current:0},a=r.createContext(i),s=r.memo((function(e){var t=e.children,n=r.useContext(a),o=n===i,s=r.useMemo((function(){return{prefix:o?0:++n.prefix,current:0}}),[o,n]);return r.createElement(a.Provider,{value:s},t)}));function u(e,t){var n=r.useContext(a);return r.useMemo((function(){return e||[t,n.prefix,++n.current].filter(Boolean).join("-")}),[e,t])}t.IdProvider=s},19679:function(e,t,n){"use strict";t.__esModule=!0,t.useInterval=function(e,t){var n=(0,o.useCallbackRef)(e);r.useEffect((function(){var e=null;return null!==t&&(e=window.setInterval((function(){return n()}),t)),function(){e&&window.clearInterval(e)}}),[t,n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(69038);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},24754:function(e,t,n){"use strict";t.__esModule=!0,t.useLatestRef=function(e){var t=r.useRef(null);return t.current=e,t};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},12166:function(e,t,n){"use strict";t.__esModule=!0,t.assignRef=i,t.useMergeRefs=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){t&&i(t,e)}))}}),t)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}},89395:function(e,t,n){"use strict";t.__esModule=!0,t.useMouseDownRef=function(e){void 0===e&&(e=!0);var t=o.default.useRef();return(0,i.useEventListener)("mousedown",(function(n){e&&(t.current=n.target)})),t};var r,o=(r=n(67294))&&r.__esModule?r:{default:r},i=n(31948)},3267:function(e,t,n){"use strict";t.__esModule=!0,t.useOutsideClick=function(e){var t=e.ref,n=e.handler,s=(0,i.useCallbackRef)(n),u=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,o.useEffect)((function(){var e=function(e){a(e,t)&&(u.isPointerDown=!0)},o=function(e){u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&n&&a(e,t)&&(u.isPointerDown=!1,s(e))},i=function(e){u.ignoreEmulatedMouseEvents=!0,n&&u.isPointerDown&&a(e,t)&&(u.isPointerDown=!1,s(e))},c=(0,r.getOwnerDocument)(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",o,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",i,!0),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",o,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",i,!0)}}),[n,t,s,u])};var r=n(66751),o=n(67294),i=n(69038);function a(e,t){var n,o=e.target;if(e.button>0)return!1;if(o&&!(0,r.getOwnerDocument)(o).body.contains(o))return!1;return!(null!=(n=t.current)&&n.contains(o))}},26465:function(e,t,n){"use strict";t.__esModule=!0,t.usePanGesture=function(e,t){var n=t.onPan,s=t.onPanStart,u=t.onPanEnd,c=t.onPanSessionStart,l=t.onPanSessionEnd,d=Boolean(n||s||u||c||l),f=(0,o.useRef)(null),p={onSessionStart:c,onSessionEnd:l,onStart:s,onMove:n,onEnd:function(e,t){f.current=null,null==u||u(e,t)}};(0,o.useEffect)((function(){var e;null==(e=f.current)||e.updateHandlers(p)})),(0,i.usePointerEvent)((function(){return e.current}),"pointerdown",d?function(e){f.current=new r.PanSession(e,p)}:r.noop),(0,a.useUnmountEffect)((function(){var e;null==(e=f.current)||e.end(),f.current=null}))};var r=n(66751),o=n(67294),i=n(30474),a=n(42093)},30474:function(e,t,n){"use strict";t.__esModule=!0,t.usePointerEvent=function(e,t,n,i){return(0,o.useEventListener)((0,r.getPointerEventName)(t),(0,r.wrapPointerEventHandler)(n,"pointerdown"===t),e,i)};var r=n(66751),o=n(31948)},129:function(e,t,n){"use strict";t.__esModule=!0,t.usePrevious=function(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e}),[e]),t.current};var r=n(67294)},70709:function(e,t,n){"use strict";t.__esModule=!0,t.useSafeLayoutEffect=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var i=n(66751).isBrowser?r.useLayoutEffect:r.useEffect;t.useSafeLayoutEffect=i},19197:function(e,t,n){"use strict";t.__esModule=!0,t.useShortcut=function(e){void 0===e&&(e={});var t=e,n=t.timeout,o=void 0===n?300:n,i=t.preventDefault,a=void 0===i?function(){return!0}:i,s=r.useState([]),u=s[0],c=s[1],l=r.useRef(),d=function(){l.current&&(clearTimeout(l.current),l.current=null)},f=function(){d(),l.current=setTimeout((function(){c([]),l.current=null}),o)};return r.useEffect((function(){return d}),[]),function(e){return function(t){if("Backspace"===t.key){var n=[].concat(u);return n.pop(),void c(n)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var r=u.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),c(r),e(r.join("")),f()}}}};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},43670:function(e,t,n){"use strict";t.__esModule=!0,t.useTimeout=function(e,t){var n=(0,o.useCallbackRef)(e);r.useEffect((function(){if(null!=t){var e;return e=window.setTimeout((function(){n()}),t),function(){e&&window.clearTimeout(e)}}}),[t,n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(69038);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},42093:function(e,t,n){"use strict";t.__esModule=!0,t.useUnmountEffect=function(e,t){void 0===t&&(t=[]);return r.useEffect((function(){return function(){return e()}}),t)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},52594:function(e,t,n){"use strict";t.__esModule=!0,t.useUpdateEffect=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}t.useUpdateEffect=function(e,t){var n=r.useRef(!1);return r.useEffect((function(){if(n.current)return e();n.current=!0}),t),n.current}},70005:function(e,t,n){"use strict";t.__esModule=!0,t.useWhyDidYouUpdate=function(e,t){var n=r.useRef();r.useEffect((function(){if(n.current){var r=Object.keys(i({},n.current,t)),o={};r.forEach((function(e){n.current[e]!==t[e]&&(o[e]={from:n.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}n.current=t}))};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},90639:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(67294);function o(e){void 0===e&&(e=!1);var[t,n]=(0,r.useState)(e);return[t,{on:(0,r.useCallback)((()=>{n(!0)}),[]),off:(0,r.useCallback)((()=>{n(!1)}),[]),toggle:(0,r.useCallback)((()=>{n((e=>!e))}),[])}]}},10762:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(67294),o=n(68327);function i(e,t){void 0===t&&(t=[]);var n=r.useRef(e);return(0,o.G)((()=>{n.current=e})),r.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),t)}},51034:function(e,t,n){"use strict";n.d(t,{p:function(){return a},T:function(){return s}});var r=n(80658),o=n(67294),i=n(10762);function a(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]}function s(e){var{value:t,defaultValue:n,onChange:a,shouldUpdate:s=((e,t)=>e!==t)}=e,u=(0,i.W)(a),c=(0,i.W)(s),[l,d]=o.useState(n),f=void 0!==t,p=f?t:l,h=o.useCallback((e=>{var t=(0,r.Pu)(e,p);c(p,t)&&(f||d(t),u(t))}),[f,u,p,c]);return[p,h]}},74860:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(80658),o=n(67294),i=n(51034),a=n(94577);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){void 0===e&&(e={});var{onClose:t,onOpen:n,isOpen:u,id:c}=e,[l,d]=o.useState(e.defaultIsOpen||!1),[f,p]=(0,i.p)(u,l),h=(0,a.Me)(c,"disclosure"),m=o.useCallback((()=>{f||d(!1),null==t||t()}),[f,t]),v=o.useCallback((()=>{f||d(!0),null==n||n()}),[f,n]),g=o.useCallback((()=>{(p?m:v)()}),[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:g,isControlled:f,getButtonProps:function(e){return void 0===e&&(e={}),s({},e,{"aria-expanded":"true","aria-controls":h,onClick:(0,r.v0)(e.onClick,g)})},getDisclosureProps:function(e){return void 0===e&&(e={}),s({},e,{hidden:!p,id:h})}}}},34941:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(80658),o=n(67294),i=n(10762);function a(e,t,n,a){var s=(0,i.W)(t);return o.useEffect((()=>{var t,o=null!=(t=(0,r.Pu)(n))?t:document;return o.addEventListener(e,s,a),()=>{o.removeEventListener(e,s,a)}}),[e,n,a,s]),()=>{var t;(null!=(t=(0,r.Pu)(n))?t:document).removeEventListener(e,s,a)}}},22911:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(84461),o=n(17768),i=n(47248),a=n(22653);function s(e,t){var{shouldFocus:n,visible:s,focusRef:u}=t,c=n&&!s;(0,a.r)((()=>{if(c&&!function(e){var t=e.current;if(!t)return!1;var n=(0,r.vY)(t);return!!n&&!(0,r.r3)(t,n)&&!!(0,o.Wq)(n)}(e)){var t=(null==u?void 0:u.current)||e.current;t&&(0,i.T)(t,{nextTick:!0})}}),[c,e,u])}},63158:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var r=n(75027),o=n(34941);function i(e,t,n,i){return(0,o.O)((0,r.f7)(t),(0,r.JN)(n,"pointerdown"===t),e,i)}},68327:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(67294),o=n(84461).jU?r.useLayoutEffect:r.useEffect},77581:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(67294);function o(e,t){return void 0===t&&(t=[]),r.useEffect((()=>()=>e()),t)}},22653:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67294),o=(e,t)=>{var n=r.useRef(!1);return r.useEffect((()=>{if(n.current)return e();n.current=!0}),t),n.current}},87474:function(e,t,n){"use strict";t.__esModule=!0,t.createIcon=function(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,s=e.d,c=e.path,l=e.displayName,d=e.defaultProps,f=void 0===d?{}:d,p=(0,r.forwardRef)((function(e,t){return i.createElement(a.Icon,u({ref:t,viewBox:n},f,e),null!=c?c:i.createElement("path",{fill:"currentColor",d:s}))}));o.__DEV__&&(p.displayName=l);return p};var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(41120);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},41120:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.Icon=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u={path:i.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},i.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),i.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),i.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},c=(0,r.forwardRef)((function(e,t){var n=e.as,a=e.viewBox,c=e.color,l=void 0===c?"currentColor":c,d=e.focusable,f=void 0!==d&&d,p=e.children,h=e.className,m=e.__css,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["as","viewBox","color","focusable","children","className","__css"]),g={ref:t,focusable:f,className:(0,o.cx)("chakra-icon",h),__css:s({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l},m)},y=null!=a?a:u.viewBox;if(n&&"string"!==typeof n)return i.createElement(r.chakra.svg,s({as:n},g,v));var b=null!=p?p:u.path;return i.createElement(r.chakra.svg,s({verticalAlign:"middle",viewBox:y},g,v),b)}));t.Icon=c,o.__DEV__&&(c.displayName="Icon");var l=c;t.default=l},29559:function(e,t,n){"use strict";t.__esModule=!0;var r={};t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(41120));t.default=o.default,Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(87474);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}))},89867:function(e,t,n){"use strict";n.d(t,{I:function(){return u}});var r=n(90063),o=n(73808),i=n(67294),a=n(70058);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){var{viewBox:t="0 0 24 24",d:n,path:u,displayName:c,defaultProps:l={}}=e,d=(0,r.G)(((e,r)=>i.createElement(a.J,s({ref:r,viewBox:t},l,e),null!=u?u:i.createElement("path",{fill:"currentColor",d:n}))));return o.Ts&&(d.displayName=c),d}},70058:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(90063),o=n(89384),i=n(84461),a=n(73808),s=n(67294);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={path:s.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},s.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),s.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),s.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},l=(0,r.G)(((e,t)=>{var{as:n,viewBox:r,color:a="currentColor",focusable:l=!1,children:d,className:f,__css:p}=e,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["as","viewBox","color","focusable","children","className","__css"]),m={ref:t,focusable:l,className:(0,i.cx)("chakra-icon",f),__css:u({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},p)},v=null!=r?r:c.viewBox;if(n&&"string"!==typeof n)return s.createElement(o.m$.svg,u({as:n},m,h));var g=null!=d?d:c.path;return s.createElement(o.m$.svg,u({verticalAlign:"middle",viewBox:v},m,h),g)}));a.Ts&&(l.displayName="Icon")},79095:function(e,t,n){"use strict";t.__esModule=!0,t.AddIcon=void 0;var r=(0,n(29559).createIcon)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});t.AddIcon=r},41725:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowBackIcon=void 0;var r=(0,n(29559).createIcon)({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});t.ArrowBackIcon=r},16748:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowDownIcon=void 0;var r=(0,n(29559).createIcon)({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});t.ArrowDownIcon=r},75616:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowForwardIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});t.ArrowForwardIcon=r},30820:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowLeftIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ArrowLeftIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),o.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))});t.ArrowLeftIcon=a},57243:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowRightIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ArrowRightIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),o.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))});t.ArrowRightIcon=a},38677:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});t.ArrowUpIcon=r},94707:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowUpDownIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});t.ArrowUpDownIcon=r},64551:function(e,t,n){"use strict";t.__esModule=!0,t.AtSignIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});t.AtSignIcon=r},78281:function(e,t,n){"use strict";t.__esModule=!0,t.AttachmentIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});t.AttachmentIcon=r},94688:function(e,t,n){"use strict";t.__esModule=!0,t.BellIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});t.BellIcon=r},51713:function(e,t,n){"use strict";t.__esModule=!0,t.CalendarIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});t.CalendarIcon=r},92547:function(e,t,n){"use strict";t.__esModule=!0,t.ChatIcon=void 0;var r=(0,n(29559).createIcon)({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});t.ChatIcon=r},26324:function(e,t,n){"use strict";t.__esModule=!0,t.CheckIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({viewBox:"0 0 14 14",path:o.createElement("g",{fill:"currentColor"},o.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))});t.CheckIcon=a},91204:function(e,t,n){"use strict";t.__esModule=!0,t.CheckCircleIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});t.CheckCircleIcon=r},62628:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronDownIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});t.ChevronDownIcon=r},65128:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronLeftIcon=void 0;var r=(0,n(29559).createIcon)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});t.ChevronLeftIcon=r},7659:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronRightIcon=void 0;var r=(0,n(29559).createIcon)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});t.ChevronRightIcon=r},48959:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});t.ChevronUpIcon=r},34066:function(e,t,n){"use strict";t.__esModule=!0,t.CloseIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});t.CloseIcon=r},68789:function(e,t,n){"use strict";t.__esModule=!0,t.CopyIcon=void 0;var r=(0,n(29559).createIcon)({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});t.CopyIcon=r},60915:function(e,t,n){"use strict";t.__esModule=!0,t.DeleteIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"DeleteIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))});t.DeleteIcon=a},5013:function(e,t,n){"use strict";t.__esModule=!0,t.DownloadIcon=void 0;var r=(0,n(29559).createIcon)({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});t.DownloadIcon=r},54411:function(e,t,n){"use strict";t.__esModule=!0,t.DragHandleIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});t.DragHandleIcon=r},27915:function(e,t,n){"use strict";t.__esModule=!0,t.EditIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"EditIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))});t.EditIcon=a},9079:function(e,t,n){"use strict";t.__esModule=!0,t.EmailIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"EmailIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),o.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))});t.EmailIcon=a},59096:function(e,t,n){"use strict";t.__esModule=!0,t.ExternalLinkIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ExternalLinkIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("path",{d:"M15 3h6v6"}),o.createElement("path",{d:"M10 14L21 3"}))});t.ExternalLinkIcon=a},14122:function(e,t,n){"use strict";t.__esModule=!0,t.HamburgerIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});t.HamburgerIcon=r},49537:function(e,t,n){"use strict";t.__esModule=!0,t.InfoIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});t.InfoIcon=r},20883:function(e,t,n){"use strict";t.__esModule=!0,t.InfoOutlineIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"InfoOutlineIcon",path:o.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},o.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),o.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),o.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))});t.InfoOutlineIcon=a},25929:function(e,t,n){"use strict";t.__esModule=!0,t.LinkIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"LinkIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),o.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))});t.LinkIcon=a},81971:function(e,t,n){"use strict";t.__esModule=!0,t.LockIcon=void 0;var r=(0,n(29559).createIcon)({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});t.LockIcon=r},49888:function(e,t,n){"use strict";t.__esModule=!0,t.MinusIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"MinusIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});t.MinusIcon=a},38054:function(e,t,n){"use strict";t.__esModule=!0,t.MoonIcon=void 0;var r=(0,n(29559).createIcon)({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});t.MoonIcon=r},7846:function(e,t,n){"use strict";t.__esModule=!0,t.NotAllowedIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});t.NotAllowedIcon=r},98271:function(e,t,n){"use strict";t.__esModule=!0,t.PhoneIcon=void 0;var r=(0,n(29559).createIcon)({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});t.PhoneIcon=r},12779:function(e,t,n){"use strict";t.__esModule=!0,t.PlusSquareIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"PlusSquareIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),o.createElement("path",{d:"M12 8v8"}),o.createElement("path",{d:"M8 12h8"}))});t.PlusSquareIcon=a},93942:function(e,t,n){"use strict";t.__esModule=!0,t.QuestionIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});t.QuestionIcon=r},43370:function(e,t,n){"use strict";t.__esModule=!0,t.QuestionOutlineIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"QuestionOutlineIcon",path:o.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},o.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),o.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),o.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))});t.QuestionOutlineIcon=a},46889:function(e,t,n){"use strict";t.__esModule=!0,t.RepeatIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"RepeatIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),o.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))});t.RepeatIcon=a},46364:function(e,t,n){"use strict";t.__esModule=!0,t.RepeatClockIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"RepeatClockIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),o.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))});t.RepeatClockIcon=a},43761:function(e,t,n){"use strict";t.__esModule=!0,t.SearchIcon=void 0;var r=(0,n(29559).createIcon)({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});t.SearchIcon=r},66264:function(e,t,n){"use strict";t.__esModule=!0,t.Search2Icon=void 0;var r=(0,n(29559).createIcon)({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});t.Search2Icon=r},11375:function(e,t,n){"use strict";t.__esModule=!0,t.SettingsIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});t.SettingsIcon=r},23961:function(e,t,n){"use strict";t.__esModule=!0,t.SmallAddIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:o.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});t.SmallAddIcon=a},2746:function(e,t,n){"use strict";t.__esModule=!0,t.SmallCloseIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:o.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});t.SmallCloseIcon=a},28317:function(e,t,n){"use strict";t.__esModule=!0,t.SpinnerIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SpinnerIcon",path:o.createElement(o.Fragment,null,o.createElement("defs",null,o.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},o.createElement("stop",{stopColor:"currentColor",offset:"0%"}),o.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),o.createElement("g",{transform:"translate(2)",fill:"none"},o.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),o.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),o.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))});t.SpinnerIcon=a},82190:function(e,t,n){"use strict";t.__esModule=!0,t.StarIcon=void 0;var r=(0,n(29559).createIcon)({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});t.StarIcon=r},71033:function(e,t,n){"use strict";t.__esModule=!0,t.SunIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SunIcon",path:o.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},o.createElement("circle",{cx:"12",cy:"12",r:"5"}),o.createElement("path",{d:"M12 1v2"}),o.createElement("path",{d:"M12 21v2"}),o.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),o.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),o.createElement("path",{d:"M1 12h2"}),o.createElement("path",{d:"M21 12h2"}),o.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),o.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});t.SunIcon=a},40430:function(e,t,n){"use strict";t.__esModule=!0,t.TimeIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"TimeIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),o.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))});t.TimeIcon=a},33670:function(e,t,n){"use strict";t.__esModule=!0,t.TriangleDownIcon=void 0;var r=(0,n(29559).createIcon)({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});t.TriangleDownIcon=r},27258:function(e,t,n){"use strict";t.__esModule=!0,t.TriangleUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});t.TriangleUpIcon=r},82125:function(e,t,n){"use strict";t.__esModule=!0,t.UnlockIcon=void 0;var r=(0,n(29559).createIcon)({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});t.UnlockIcon=r},48690:function(e,t,n){"use strict";t.__esModule=!0,t.UpDownIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});t.UpDownIcon=r},74624:function(e,t,n){"use strict";t.__esModule=!0,t.ViewIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ViewIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),o.createElement("circle",{cx:"12",cy:"12",r:"2"}))});t.ViewIcon=a},25766:function(e,t,n){"use strict";t.__esModule=!0,t.ViewOffIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ViewOffIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),o.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});t.ViewOffIcon=a},7265:function(e,t,n){"use strict";t.__esModule=!0,t.WarningIcon=void 0;var r=(0,n(29559).createIcon)({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});t.WarningIcon=r},34237:function(e,t,n){"use strict";t.__esModule=!0,t.WarningTwoIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});t.WarningTwoIcon=r},71018:function(e,t,n){"use strict";t.__esModule=!0;var r=n(68789);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(43761);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(66264);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(38054);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(71033);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(79095);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(23961);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(11375);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(91204);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(81971);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(82125);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(74624);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(25766);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(5013);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(60915);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(46889);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(46364);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(27915);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var _=n(65128);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}));var T=n(7659);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var w=n(62628);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var k=n(48959);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[e]))}));var x=n(41725);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var O=n(75616);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||(t[e]=O[e]))}));var C=n(38677);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||(t[e]=C[e]))}));var A=n(94707);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||(t[e]=A[e]))}));var S=n(16748);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||(t[e]=S[e]))}));var M=n(59096);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||(t[e]=M[e]))}));var D=n(25929);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||(t[e]=D[e]))}));var I=n(12779);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||(t[e]=I[e]))}));var P=n(51713);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||(t[e]=P[e]))}));var N=n(92547);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||(t[e]=N[e]))}));var R=n(40430);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||(t[e]=R[e]))}));var L=n(57243);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||(t[e]=L[e]))}));var j=n(30820);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||(t[e]=j[e]))}));var F=n(64551);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||(t[e]=F[e]))}));var B=n(78281);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||(t[e]=B[e]))}));var H=n(48690);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||(t[e]=H[e]))}));var U=n(82190);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||(t[e]=U[e]))}));var z=n(9079);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||(t[e]=z[e]))}));var V=n(98271);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||(t[e]=V[e]))}));var G=n(54411);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||(t[e]=G[e]))}));var W=n(28317);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||(t[e]=W[e]))}));var K=n(34066);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||(t[e]=K[e]))}));var q=n(2746);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||(t[e]=q[e]))}));var Y=n(7846);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||(t[e]=Y[e]))}));var $=n(33670);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||(t[e]=$[e]))}));var Z=n(27258);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||(t[e]=Z[e]))}));var X=n(20883);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||(t[e]=X[e]))}));var Q=n(94688);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||(t[e]=Q[e]))}));var J=n(49537);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||(t[e]=J[e]))}));var ee=n(93942);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||(t[e]=ee[e]))}));var te=n(43370);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||(t[e]=te[e]))}));var ne=n(7265);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||(t[e]=ne[e]))}));var re=n(34237);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||(t[e]=re[e]))}));var oe=n(26324);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||(t[e]=oe[e]))}));var ie=n(49888);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||(t[e]=ie[e]))}));var ae=n(14122);Object.keys(ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||(t[e]=ae[e]))}));var se=n(29559);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||(t[e]=se[e]))}))},50862:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r=(0,n(89867).I)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"})},93441:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ArrowRightIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),o.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))})},6569:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=(0,n(89867).I)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},35255:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=(0,n(89867).I)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"})},56884:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var r=(0,n(89867).I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},48931:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r=(0,n(89867).I)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},2827:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"DeleteIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))})},46617:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"EditIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))})},68928:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ExternalLinkIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("path",{d:"M15 3h6v6"}),o.createElement("path",{d:"M10 14L21 3"}))})},61475:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var r=(0,n(89867).I)({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"})},24189:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"InfoOutlineIcon",path:o.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},o.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),o.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),o.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))})},94030:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"PlusSquareIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),o.createElement("path",{d:"M12 8v8"}),o.createElement("path",{d:"M8 12h8"}))})},67546:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"RepeatIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),o.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))})},83986:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"RepeatClockIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),o.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))})},93924:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var r=(0,n(89867).I)({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"})},55830:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ViewIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),o.createElement("circle",{cx:"12",cy:"12",r:"2"}))})},87409:function(e,t,n){"use strict";t.__esModule=!0;var r=n(35236);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(8471);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(89216);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(52832);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},8471:function(e,t,n){"use strict";t.__esModule=!0,t.InputRightAddon=t.InputLeftAddon=t.InputAddon=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},c=(0,r.chakra)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),l=(0,r.forwardRef)((function(e,t){var n,o=e.placement,a=void 0===o?"left":o,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["placement"]),d=null!=(n=u[a])?n:{},f=(0,r.useStyles)();return i.createElement(c,s({ref:t},l,{__css:s({},f.addon,d)}))}));t.InputAddon=l,o.__DEV__&&(l.displayName="InputAddon");var d=(0,r.forwardRef)((function(e,t){return i.createElement(l,s({ref:t,placement:"left"},e,{className:(0,o.cx)("chakra-input__left-addon",e.className)}))}));t.InputLeftAddon=d,o.__DEV__&&(d.displayName="InputLeftAddon"),d.id="InputLeftAddon";var f=(0,r.forwardRef)((function(e,t){return i.createElement(l,s({ref:t,placement:"right"},e,{className:(0,o.cx)("chakra-input__right-addon",e.className)}))}));t.InputRightAddon=f,o.__DEV__&&(f.displayName="InputRightAddon"),f.id="InputRightAddon"},52832:function(e,t,n){"use strict";t.__esModule=!0,t.InputRightElement=t.InputLeftElement=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var c=(0,r.chakra)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),l=(0,r.forwardRef)((function(e,t){var n,o,a,l=e.placement,d=void 0===l?"left":l,f=u(e,["placement"]),p=(0,r.useStyles)().field,h=((a={})["left"===d?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==p?void 0:p.height)?n:null==p?void 0:p.h,a.height=null!=(o=null==p?void 0:p.height)?o:null==p?void 0:p.h,a.fontSize=null==p?void 0:p.fontSize,a);return i.createElement(c,s({ref:t,__css:h},f))}));l.id="InputElement",o.__DEV__&&(l.displayName="InputElement");var d=(0,r.forwardRef)((function(e,t){var n=e.className,r=u(e,["className"]),a=(0,o.cx)("chakra-input__left-element",n);return i.createElement(l,s({ref:t,placement:"left",className:a},r))}));t.InputLeftElement=d,d.id="InputLeftElement",o.__DEV__&&(d.displayName="InputLeftElement");var f=(0,r.forwardRef)((function(e,t){var n=e.className,r=u(e,["className"]),a=(0,o.cx)("chakra-input__right-element",n);return i.createElement(l,s({ref:t,placement:"right",className:a},r))}));t.InputRightElement=f,f.id="InputRightElement",o.__DEV__&&(f.displayName="InputRightElement")},89216:function(e,t,n){"use strict";t.__esModule=!0,t.InputGroup=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useMultiStyleConfig)("Input",e),s=(0,r.omitThemingProps)(e),c=s.children,l=s.className,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,["children","className"]),f=(0,o.cx)("chakra-input__group",l),p={},h=(0,i.getValidChildren)(c),m=n.field;h.forEach((function(e){if(n){var t,r;if(m&&"InputLeftElement"===e.type.id)p.paddingStart=null!=(t=m.height)?t:m.h;if(m&&"InputRightElement"===e.type.id)p.paddingEnd=null!=(r=m.height)?r:m.h;"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0)}}));var v=h.map((function(t){var n,r,o={size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant};return"Input"!==t.type.id?a.cloneElement(t,o):a.cloneElement(t,Object.assign(o,p,t.props))}));return a.createElement(r.chakra.div,u({className:f,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},d),a.createElement(r.StylesProvider,{value:n},v))}));t.InputGroup=c,o.__DEV__&&(c.displayName="InputGroup")},35236:function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var r=n(88323),o=n(48121),i=n(66751),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("Input",e),s=(0,o.omitThemingProps)(e),c=(0,r.useFormControl)(s),l=(0,i.cx)("chakra-input",e.className);return a.createElement(o.chakra.input,u({},c,{__css:n.field,ref:t,className:l}))}));t.Input=c,i.__DEV__&&(c.displayName="Input"),c.id="Input"},74770:function(e,t,n){"use strict";t.__esModule=!0,t.AspectRatio=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=e.ratio,a=void 0===n?4/3:n,u=e.children,c=e.className,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["ratio","children","className"]),d=i.Children.only(u),f=(0,o.cx)("chakra-aspect-ratio",c);return i.createElement(r.chakra.div,s({ref:t,position:"relative",className:f,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.mapResponsive)(a,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},l),d)}));t.AspectRatio=u,o.__DEV__&&(u.displayName="AspectRatio")},63061:function(e,t,n){"use strict";t.__esModule=!0,t.Badge=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Badge",e),a=(0,r.omitThemingProps)(e),u=(a.className,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.span,s({ref:t,className:(0,o.cx)("chakra-badge",e.className)},u,{__css:s({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));t.Badge=u,o.__DEV__&&(u.displayName="Badge")},26932:function(e,t,n){"use strict";t.__esModule=!0,t.Circle=t.Square=t.Box=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var c=(0,r.chakra)("div");t.Box=c,o.__DEV__&&(c.displayName="Box");var l=(0,r.forwardRef)((function(e,t){var n=e.size,r=e.centerContent,o=void 0===r||r,a=u(e,["size","centerContent"]),l=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return i.createElement(c,s({ref:t,boxSize:n,__css:s({},l,{flexShrink:0,flexGrow:0})},a))}));t.Square=l,o.__DEV__&&(l.displayName="Square");var d=(0,r.forwardRef)((function(e,t){var n=e.size,r=u(e,["size"]);return i.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));t.Circle=d,o.__DEV__&&(d.displayName="Circle")},21184:function(e,t,n){"use strict";t.__esModule=!0,t.AbsoluteCenter=t.Center=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.chakra)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.Center=u,o.__DEV__&&(u.displayName="Center");var c={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},l=(0,r.forwardRef)((function(e,t){var n=e.axis,o=void 0===n?"both":n,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["axis"]);return i.createElement(r.chakra.div,s({ref:t,__css:c[o]},a,{position:"absolute"}))}));t.AbsoluteCenter=l},9754:function(e,t,n){"use strict";t.__esModule=!0,t.Code=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Code",e),a=(0,r.omitThemingProps)(e),u=(a.className,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.code,s({ref:t,className:(0,o.cx)("chakra-code",e.className)},u,{__css:s({display:"inline-block"},n)}))}));t.Code=u,o.__DEV__&&(u.displayName="Code")},28210:function(e,t,n){"use strict";t.__esModule=!0,t.Container=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.omitThemingProps)(e),a=n.className,u=n.centerContent,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["className","centerContent"]),l=(0,r.useStyleConfig)("Container",e);return i.createElement(r.chakra.div,s({ref:t,className:(0,o.cx)("chakra-container",a)},c,{__css:s({},l,u&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));t.Container=u,o.__DEV__&&(u.displayName="Container")},43698:function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Divider",e),a=n.borderLeftWidth,c=n.borderBottomWidth,l=n.borderTopWidth,d=n.borderRightWidth,f=n.borderWidth,p=n.borderStyle,h=n.borderColor,m=u(n,["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"]),v=(0,r.omitThemingProps)(e),g=v.className,y=v.orientation,b=void 0===y?"horizontal":y,E=v.__css,_=u(v,["className","orientation","__css"]),T={vertical:{borderLeftWidth:a||d||f||"1px",height:"100%"},horizontal:{borderBottomWidth:c||l||f||"1px",width:"100%"}};return i.createElement(r.chakra.hr,s({ref:t,"aria-orientation":b},_,{__css:s({},m,{border:"0",borderColor:h,borderStyle:p},T[b],E),className:(0,o.cx)("chakra-divider",g)}))}));t.Divider=c,o.__DEV__&&(c.displayName="Divider")},87481:function(e,t,n){"use strict";t.__esModule=!0,t.Flex=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=e.direction,o=e.align,a=e.justify,u=e.wrap,c=e.basis,l=e.grow,d=e.shrink,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:o,justifyContent:a,flexWrap:u,flexBasis:c,flexGrow:l,flexShrink:d};return i.createElement(r.chakra.div,s({ref:t,__css:p},f))}));t.Flex=u,o.__DEV__&&(u.displayName="Flex")},51870:function(e,t,n){"use strict";t.__esModule=!0,t.GridItem=t.Grid=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=e.area,o=e.templateAreas,a=e.gap,c=e.rowGap,l=e.columnGap,d=e.column,f=e.row,p=e.autoFlow,h=e.autoRows,m=e.templateRows,v=e.autoColumns,g=e.templateColumns,y=u(e,["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"]),b={display:"grid",gridArea:n,gridTemplateAreas:o,gridGap:a,gridRowGap:c,gridColumnGap:l,gridAutoColumns:v,gridColumn:d,gridRow:f,gridAutoFlow:p,gridAutoRows:h,gridTemplateRows:m,gridTemplateColumns:g};return i.createElement(r.chakra.div,s({ref:t,__css:b},y))}));function l(e){return(0,o.mapResponsive)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}t.Grid=c,o.__DEV__&&(c.displayName="Grid");var d=(0,r.forwardRef)((function(e,t){var n=e.colSpan,a=e.colStart,c=e.colEnd,d=e.rowEnd,f=e.rowSpan,p=e.rowStart,h=u(e,["colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"]),m=(0,o.filterUndefined)({gridColumn:l(n),gridRow:l(f),gridColumnStart:a,gridColumnEnd:c,gridRowStart:p,gridRowEnd:d});return i.createElement(r.chakra.div,s({ref:t,__css:m},h))}));t.GridItem=d},6813:function(e,t,n){"use strict";t.__esModule=!0,t.Heading=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Heading",e),a=(0,r.omitThemingProps)(e),u=(a.className,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.h2,s({ref:t,className:(0,o.cx)("chakra-heading",e.className)},u,{__css:n}))}));t.Heading=u,o.__DEV__&&(u.displayName="Heading")},11487:function(e,t,n){"use strict";t.__esModule=!0;var r=n(74770);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(63061);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(26932);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(21184);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(9754);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(28210);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(43698);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(87481);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(51870);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(6813);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(12947);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(6976);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(72755);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(6293);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(7133);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(96030);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(80434);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(88189);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var _=n(41525);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}))},12947:function(e,t,n){"use strict";t.__esModule=!0,t.Kbd=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Kbd",e),a=(0,r.omitThemingProps)(e),u=a.className,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]);return i.createElement(r.chakra.kbd,s({ref:t,className:(0,o.cx)("chakra-kbd",u)},c,{__css:s({fontFamily:"mono"},n)}))}));t.Kbd=u,o.__DEV__&&(u.displayName="Kbd")},41525:function(e,t,n){"use strict";t.__esModule=!0,t.LinkBox=t.LinkOverlay=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=e.isExternal,a=e.target,c=e.rel,l=e.className,d=u(e,["isExternal","target","rel","className"]);return i.createElement(r.chakra.a,s({},d,{ref:t,className:(0,o.cx)("chakra-linkbox__overlay",l),rel:n?"noopener noreferrer":c,target:n?"_blank":a,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}}))}));t.LinkOverlay=c;var l=(0,r.forwardRef)((function(e,t){var n=e.className,a=u(e,["className"]);return i.createElement(r.chakra.div,s({ref:t,position:"relative"},a,{className:(0,o.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}}))}));t.LinkBox=l},6976:function(e,t,n){"use strict";t.__esModule=!0,t.Link=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Link",e),a=(0,r.omitThemingProps)(e),u=a.className,c=a.isExternal,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className","isExternal"]);return i.createElement(r.chakra.a,s({target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,ref:t,className:(0,o.cx)("chakra-link",u)},l,{__css:n}))}));t.Link=u,o.__DEV__&&(u.displayName="Link")},72755:function(e,t,n){"use strict";t.__esModule=!0,t.ListIcon=t.ListItem=t.UnorderedList=t.OrderedList=t.List=void 0;var r=n(29559),o=n(48121),i=n(66751),a=n(19277),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var d=(0,o.forwardRef)((function(e,t){var n,r=(0,o.useMultiStyleConfig)("List",e),i=(0,o.omitThemingProps)(e),u=i.children,d=i.styleType,f=void 0===d?"none":d,p=i.stylePosition,h=i.spacing,m=l(i,["children","styleType","stylePosition","spacing"]),v=(0,a.getValidChildren)(u),g=h?((n={})["& > *:not(style) ~ *:not(style)"]={mt:h},n):{};return s.createElement(o.StylesProvider,{value:r},s.createElement(o.chakra.ul,c({ref:t,listStyleType:f,listStylePosition:p,role:"list",__css:c({},r.container,g)},m),v))}));t.List=d,i.__DEV__&&(d.displayName="List");var f=(0,o.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(d,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));t.OrderedList=f,i.__DEV__&&(f.displayName="OrderedList");var p=(0,o.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(d,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));t.UnorderedList=p,i.__DEV__&&(p.displayName="UnorderedList");var h=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return s.createElement(o.chakra.li,c({ref:t},e,{__css:n.item}))}));t.ListItem=h,i.__DEV__&&(h.displayName="ListItem");var m=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return s.createElement(r.Icon,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));t.ListIcon=m,i.__DEV__&&(m.displayName="ListIcon")},6293:function(e,t,n){"use strict";t.__esModule=!0,t.SimpleGrid=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(51870);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n,r,s=e.columns,c=e.spacingX,l=e.spacingY,d=e.spacing,f=e.minChildWidth,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["columns","spacingX","spacingY","spacing","minChildWidth"]),h=f?(r=f,(0,o.mapResponsive)(r,(function(e){return(0,o.isNull)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,o.isNumber)(t)?t+"px":t)+", 1fr))");var t}))):(n=s,(0,o.mapResponsive)(n,(function(e){return(0,o.isNull)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return i.createElement(a.Grid,u({ref:t,gap:d,columnGap:c,rowGap:l,templateColumns:h},p))}));t.SimpleGrid=c,o.__DEV__&&(c.displayName="SimpleGrid")},7133:function(e,t,n){"use strict";t.__esModule=!0,t.Spacer=void 0;var r=n(48121),o=n(66751),i=(0,r.chakra)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.Spacer=i,o.__DEV__&&(i.displayName="Spacer")},96030:function(e,t,n){"use strict";t.__esModule=!0,t.VStack=t.HStack=t.Stack=t.StackItem=t.StackDivider=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),s=n(2552);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.StackDivider=function(e){return a.createElement(r.chakra.div,c({className:"chakra-stack__divider"},e,{__css:c({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})}))};var l=function(e){return a.createElement(r.chakra.div,c({className:"chakra-stack__item"},e,{__css:c({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))};t.StackItem=l;var d=(0,r.forwardRef)((function(e,t){var n,u=e.isInline,d=e.direction,f=e.align,p=e.justify,h=e.spacing,m=void 0===h?"0.5rem":h,v=e.wrap,g=e.children,y=e.divider,b=e.className,E=e.shouldWrapChildren,_=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),T=u?"row":null!=d?d:"column",w=a.useMemo((function(){return(0,s.getStackStyles)({direction:T,spacing:m})}),[T,m]),k=a.useMemo((function(){return(0,s.getDividerStyles)({spacing:m,direction:T})}),[m,T]),x=!!y,O=!E&&!x,C=(0,i.getValidChildren)(g),A=O?C:C.map((function(e,t){var n=t+1===C.length,r=E?a.createElement(l,{key:t},e):e;if(!x)return r;var o=n?null:a.cloneElement(y,{__css:k});return a.createElement(a.Fragment,{key:t},r,o)})),S=(0,o.cx)("chakra-stack",b);return a.createElement(r.chakra.div,c({ref:t,display:"flex",alignItems:f,justifyContent:p,flexDirection:w.flexDirection,flexWrap:v,className:S,__css:x?{}:(n={},n[s.selector]=w[s.selector],n)},_),A)}));t.Stack=d,o.__DEV__&&(d.displayName="Stack");var f=(0,r.forwardRef)((function(e,t){return a.createElement(d,c({align:"center"},e,{direction:"row",ref:t}))}));t.HStack=f,o.__DEV__&&(f.displayName="HStack");var p=(0,r.forwardRef)((function(e,t){return a.createElement(d,c({align:"center"},e,{direction:"column",ref:t}))}));t.VStack=p,o.__DEV__&&(p.displayName="VStack")},2552:function(e,t,n){"use strict";t.__esModule=!0,t.getStackStyles=function(e){var t,n=e.spacing,i=e.direction,a={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:i})[o]=(0,r.mapResponsive)(i,(function(e){return a[e]})),t},t.getDividerStyles=function(e){var t=e.spacing,n=e.direction,o={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,r.mapResponsive)(n,(function(e){return o[e]}))}},t.selector=void 0;var r=n(66751),o="& > *:not(style) ~ *:not(style)";t.selector=o},80434:function(e,t,n){"use strict";t.__esModule=!0,t.Text=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Text",e),a=(0,r.omitThemingProps)(e),u=(a.className,a.align,a.decoration,a.casing,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className","align","decoration","casing"])),c=(0,o.filterUndefined)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return i.createElement(r.chakra.p,s({ref:t,className:(0,o.cx)("chakra-text",e.className)},c,u,{__css:n}))}));t.Text=u,o.__DEV__&&(u.displayName="Text")},88189:function(e,t,n){"use strict";t.__esModule=!0,t.WrapItem=t.Wrap=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=e.spacing,a=void 0===n?"0.5rem":n,c=e.children,d=e.justify,f=e.direction,p=e.align,h=e.className,m=e.shouldWrapChildren,v=u(e,["spacing","children","justify","direction","align","className","shouldWrapChildren"]),g=i.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,o.mapResponsive)(a,(function(t){return(0,r.tokenToCSSVar)("space",t)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:p,flexDirection:f,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[a,d,p,f]),y=m?i.Children.map(c,(function(e,t){return i.createElement(l,{key:t},e)})):c;return i.createElement(r.chakra.div,s({ref:t,className:(0,o.cx)("chakra-wrap",h)},v),i.createElement(r.chakra.ul,{className:"chakra-wrap__list",__css:g},y))}));t.Wrap=c,o.__DEV__&&(c.displayName="Wrap");var l=(0,r.forwardRef)((function(e,t){var n=e.className,a=u(e,["className"]);return i.createElement(r.chakra.li,s({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,o.cx)("chakra-wrap__listitem",n)},a))}));t.WrapItem=l,o.__DEV__&&(l.displayName="WrapItem")},48017:function(e,t,n){"use strict";n.d(t,{xu:function(){return c}});var r=n(89384),o=n(90063),i=n(73808),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var c=(0,r.m$)("div");i.Ts&&(c.displayName="Box");var l=(0,o.G)(((e,t)=>{var{size:n,centerContent:r=!0}=e,o=u(e,["size","centerContent"]),i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(c,s({ref:t,boxSize:n,__css:s({},i,{flexShrink:0,flexGrow:0})},o))}));i.Ts&&(l.displayName="Square");var d=(0,o.G)(((e,t)=>{var{size:n}=e,r=u(e,["size"]);return a.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));i.Ts&&(d.displayName="Circle")},94096:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(90063),o=n(89384),i=n(73808),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.G)(((e,t)=>{var{direction:n,align:r,justify:i,wrap:u,basis:c,grow:l,shrink:d}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:r,justifyContent:i,flexWrap:u,flexBasis:c,flexGrow:l,flexShrink:d};return a.createElement(o.m$.div,s({ref:t,__css:p},f))}));i.Ts&&(u.displayName="Flex")},336:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var r=n(90063),o=n(2326),i=n(55284),a=n(89384),s=n(84461),u=n(73808),c=n(67294);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=(0,r.G)(((e,t)=>{var n=(0,o.m)("Heading",e),r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}((0,i.Lr)(e),["className"]);return c.createElement(a.m$.h2,l({ref:t,className:(0,s.cx)("chakra-heading",e.className)},r,{__css:n}))}));u.Ts&&(d.displayName="Heading")},72026:function(e,t,n){"use strict";n.d(t,{cX:function(){return p},gC:function(){return g}});var r=n(89384),o=n(90063),i=n(84461),a=n(73808),s=n(24255),u=n(67294),c=n(4651);Object.freeze(["base","sm","md","lg","xl","2xl"]);function l(e,t){return(0,a.kJ)(e)?e.map((e=>null===e?null:t(e))):(0,a.Kn)(e)?(0,c.Yd)(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}):null!=e?t(e):null}var d="& > *:not(style) ~ *:not(style)";function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=e=>u.createElement(r.m$.div,f({className:"chakra-stack__divider"},e,{__css:f({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})})),h=e=>u.createElement(r.m$.div,f({className:"chakra-stack__item"},e,{__css:f({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)})),m=(0,o.G)(((e,t)=>{var{isInline:n,direction:o,align:a,justify:c,spacing:p="0.5rem",wrap:m,children:v,divider:g,className:y,shouldWrapChildren:b}=e,E=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),_=n?"row":null!=o?o:"column",T=u.useMemo((()=>function(e){var{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[d]:l(n,(e=>r[e]))}}({direction:_,spacing:p})),[_,p]),w=u.useMemo((()=>function(e){var{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":l(n,(e=>r[e]))}}({spacing:p,direction:_})),[p,_]),k=!!g,x=!b&&!k,O=(0,s.W)(v),C=x?O:O.map(((e,t)=>{var n=t+1===O.length,r=b?u.createElement(h,{key:t},e):e;if(!k)return r;var o=n?null:u.cloneElement(g,{__css:w});return u.createElement(u.Fragment,{key:t},r,o)})),A=(0,i.cx)("chakra-stack",y);return u.createElement(r.m$.div,f({ref:t,display:"flex",alignItems:a,justifyContent:c,flexDirection:T.flexDirection,flexWrap:m,className:A,__css:k?{}:{[d]:T[d]}},E),C)}));a.Ts&&(m.displayName="Stack");var v=(0,o.G)(((e,t)=>u.createElement(m,f({align:"center"},e,{direction:"row",ref:t}))));a.Ts&&(v.displayName="HStack");var g=(0,o.G)(((e,t)=>u.createElement(m,f({align:"center"},e,{direction:"column",ref:t}))));a.Ts&&(g.displayName="VStack")},64115:function(e,t,n){"use strict";n.d(t,{x:function(){return f}});var r=n(90063),o=n(2326),i=n(55284),a=n(89384),s=n(4651),u=n(84461),c=n(73808),l=n(67294);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=(0,r.G)(((e,t)=>{var n=(0,o.m)("Text",e),r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}((0,i.Lr)(e),["className","align","decoration","casing"]),c=(0,s.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return l.createElement(a.m$.p,d({ref:t,className:(0,u.cx)("chakra-text",e.className)},c,r,{__css:n}))}));c.Ts&&(f.displayName="Text")},67897:function(e,t,n){"use strict";n.d(t,{v2:function(){return q},j2:function(){return $},R:function(){return se},sN:function(){return ee},ii:function(){return ne},qy:function(){return Q},__:function(){return re}});var r=n(2326),o=n(55284),i=n(29676),a=n(90063),s=n(89384),u=n(80658),c=n(73808),l=n(84461),d=n(39629),f=n(67294),p=n(72947);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e){var t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function v(e){void 0===e&&(e={});var{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:a,onMouseUp:s,onClick:u,onKeyDown:c,onKeyUp:d,tabIndex:v,onMouseOver:g,onMouseLeave:y}=e,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"]),[E,_]=f.useState(!0),[T,w]=f.useState(!1),k=function(){var e=f.useRef(new Map),t=e.current,n=f.useCallback(((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)}),[]),r=f.useCallback(((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)}),[]);return f.useEffect((()=>()=>{t.forEach(((e,t)=>{r(e.el,e.type,t,e.options)}))}),[r,t]),{add:n,remove:r}}(),x=E?v:v||0,O=n&&!r,C=f.useCallback((e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)}),[n,u]),A=f.useCallback((e=>{T&&m(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",A,!1))}),[T,k]),S=f.useCallback((e=>{if(null==c||c(e),!(n||e.defaultPrevented||e.metaKey)&&m(e.nativeEvent)&&!E){var t=o&&"Enter"===e.key;if(i&&" "===e.key&&(e.preventDefault(),w(!0)),t)e.preventDefault(),e.currentTarget.click();k.add(document,"keyup",A,!1)}}),[n,E,c,o,i,k,A]),M=f.useCallback((e=>{(null==d||d(e),n||e.defaultPrevented||e.metaKey)||m(e.nativeEvent)&&!E&&i&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())}),[i,E,n,d]),D=f.useCallback((e=>{0===e.button&&(w(!1),k.remove(document,"mouseup",D,!1))}),[k]),I=f.useCallback((e=>{if(!(0,l.dO)(e)){if(n)return e.stopPropagation(),void e.preventDefault();E||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",D,!1),null==a||a(e)}}),[n,E,a,k,D]),P=f.useCallback((e=>{(0,l.dO)(e)||(E||w(!1),null==s||s(e))}),[s,E]),N=f.useCallback((e=>{n?e.preventDefault():null==g||g(e)}),[n,g]),R=f.useCallback((e=>{T&&(e.preventDefault(),w(!1)),null==y||y(e)}),[T,y]),L=(0,p.l)(t,(e=>{e&&"BUTTON"!==e.tagName&&_(!1)}));return h({},b,E?{ref:L,type:"button","aria-disabled":O?void 0:n,disabled:O,onClick:C,onMouseDown:a,onMouseUp:s,onKeyUp:d,onKeyDown:c,onMouseOver:g,onMouseLeave:y}:{ref:L,role:"button","data-active":(0,l.PB)(T),"aria-disabled":n?"true":void 0,tabIndex:O?void 0:x,onClick:C,onMouseDown:I,onMouseUp:P,onKeyUp:M,onKeyDown:S,onMouseOver:N,onMouseLeave:R})}var g=n(21888),y=n(74860),b=n(10762);function E(e,t){var n,r=e.target;if(e.button>0)return!1;if(r&&!(0,l.lZ)(r).body.contains(r))return!1;return!(null!=(n=t.current)&&n.contains(r))}var _=n(22653),T=n(22911),w=n(94577),k=n(77581);function x(e){void 0===e&&(e={});var{timeout:t=300,preventDefault:n=(()=>!0)}=e,[r,o]=f.useState([]),i=f.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return f.useEffect((()=>a),[]),function(e){return s=>{if("Backspace"===s.key){var u=[...r];return u.pop(),void o(u)}if(function(e){var{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(s)){var c=r.concat(s.key);n(s)&&(s.preventDefault(),s.stopPropagation()),o(c),e(c.join("")),a(),i.current=setTimeout((()=>{o([]),i.current=null}),t)}}}}var O=n(51034),C=n(8931),A=n(28500),S=n(24255),M=n(47248),D=n(27277),I=n(55463),P=n(17768);function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var[L,j,F,B]=(0,g.n)(),[H,U]=(0,A.k)({strict:!1,name:"MenuContext"});function z(e){void 0===e&&(e={});var{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:i,isOpen:a,defaultIsOpen:s,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:p="unmount",computePositionOnMount:h}=e,m=R(e,["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","computePositionOnMount"]),{isOpen:v,onOpen:g,onClose:x,onToggle:O}=(0,y.q)({isOpen:a,defaultIsOpen:s,onClose:u,onOpen:c}),A=f.useRef(null),S=f.useRef(null);!function(e){var{ref:t,handler:n}=e,r=(0,b.W)(n),o=(0,f.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,f.useEffect)((()=>{var e=e=>{E(e,t)&&(o.isPointerDown=!0)},i=e=>{o.ignoreEmulatedMouseEvents?o.ignoreEmulatedMouseEvents=!1:o.isPointerDown&&n&&E(e,t)&&(o.isPointerDown=!1,r(e))},a=e=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&E(e,t)&&(o.isPointerDown=!1,r(e))},s=(0,l.lZ)(t.current);return s.addEventListener("mousedown",e,!0),s.addEventListener("mouseup",i,!0),s.addEventListener("touchstart",e,!0),s.addEventListener("touchend",a,!0),()=>{s.removeEventListener("mousedown",e,!0),s.removeEventListener("mouseup",i,!0),s.removeEventListener("touchstart",e,!0),s.removeEventListener("touchend",a,!0)}}),[n,t,r,o])}({ref:A,handler:e=>{var t;!v||!r||null!=(t=S.current)&&t.contains(e.target)||x()}});var D=(0,C.D)(N({},m,{enabled:v||h,placement:d})),[I,P]=f.useState(-1),L=F();(0,_.r)((()=>{v||P(-1)}),[v]),(0,T.C)(A,{focusRef:S,visible:v,shouldFocus:!0});var[j,B]=(0,w.ZS)(t,"menu-button","menu-list"),H=f.useCallback((()=>{g(),(0,M.T)(A.current,{nextTick:!0,selectTextIfInput:!1})}),[g,A]),U=f.useRef(new Set([]));return(0,k.z)((()=>{U.current.forEach((e=>clearTimeout(e))),U.current.clear()})),{openAndFocusMenu:H,openAndFocusFirstItem:f.useCallback((()=>{g();var e=setTimeout((()=>{var e=L.firstEnabled();e&&P(e.index)}));U.current.add(e)}),[g,P,L]),openAndFocusLastItem:f.useCallback((()=>{g();var e=setTimeout((()=>{var e=L.lastEnabled();e&&P(e.index)}));U.current.add(e)}),[g,P,L]),onTransitionEnd:f.useCallback((()=>{var e,t,n=(0,l.lZ)(A.current),r=null==(e=A.current)?void 0:e.contains(n.activeElement);if(v&&!r){var o=null==(t=L.item(I))?void 0:t.node;o&&(0,M.T)(o,{selectTextIfInput:!1})}}),[v,I,L]),descendants:L,popper:D,buttonId:j,menuId:B,forceUpdate:D.forceUpdate,orientation:"vertical",isOpen:v,onToggle:O,onOpen:g,onClose:x,menuRef:A,buttonRef:S,focusedIndex:I,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:P,isLazy:i,lazyBehavior:p}}function V(e){var t;return e instanceof HTMLElement&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function G(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:i,isDisabled:a,isFocusable:s,closeOnSelect:u}=e,c=R(e,["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect"]),l=U(),{setFocusedIndex:d,focusedIndex:h,closeOnSelect:m,onClose:g,menuRef:y,isOpen:b,menuId:E}=l,T=f.useRef(null),k=E+"-menuitem-"+(0,w.Me)(),{index:x,register:O}=B({disabled:a&&!s}),C=f.useCallback((e=>{null==n||n(e),a||d(x)}),[d,x,a,n]),A=f.useCallback((e=>{null==r||r(e),T.current&&!(0,P.H9)(T.current)&&C(e)}),[C,r]),S=f.useCallback((e=>{null==o||o(e),a||d(-1)}),[d,a,o]),D=f.useCallback((e=>{null==i||i(e),V(e.currentTarget)&&(null!=u?u:m)&&g()}),[g,i,m,u]),I=x===h,L=a&&!s;return(0,_.r)((()=>{b&&(I&&!L&&T.current?(0,M.T)(T.current,{nextTick:!0,selectTextIfInput:!1}):y.current&&!(0,P.H9)(y.current)&&(0,M.T)(y.current))}),[I,L,y,b]),N({},c,v({onClick:D,onMouseEnter:C,onMouseMove:A,onMouseLeave:S,ref:(0,p.l)(O,T,t),isDisabled:a,isFocusable:s}),{id:k,role:"menuitem",tabIndex:I?0:-1})}function W(){return(W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function K(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var q=e=>{var{children:t}=e,n=(0,r.j)("Menu",e),a=z((0,o.Lr)(e)),{descendants:s}=a,c=K(a,["descendants"]),l=f.useMemo((()=>c),[c]),{isOpen:d,onClose:p,forceUpdate:h}=l;return f.createElement(L,{value:s},f.createElement(H,{value:l},f.createElement(i.Fo,{value:n},(0,u.Pu)(t,{isOpen:d,onClose:p,forceUpdate:h}))))};c.Ts&&(q.displayName="Menu");var Y=(0,a.G)(((e,t)=>{var n=(0,i.yK)();return f.createElement(s.m$.button,W({ref:t},e,{__css:W({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))})),$=(0,a.G)(((e,t)=>{var{as:n}=e,r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=U(),{isOpen:r,onClose:o,autoSelect:i,popper:a,openAndFocusFirstItem:s,openAndFocusLastItem:c,openAndFocusMenu:d}=n,h=f.useCallback((()=>{r?o():(i?s:d)()}),[i,r,o,s,d]),m=f.useCallback((e=>{var t=(0,l.uh)(e),n={Enter:s,ArrowDown:s,ArrowUp:c}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))}),[s,c]);return N({},e,{ref:(0,p.l)(n.buttonRef,t,a.referenceRef),id:n.buttonId,"data-active":(0,l.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,u.v0)(e.onClick,h),onKeyDown:(0,u.v0)(e.onKeyDown,m)})}(K(e,["children","as"]),t),o=n||Y;return f.createElement(o,W({},r,{className:(0,l.cx)("chakra-menu__menu-button",e.className)}),f.createElement(s.m$.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))}));c.Ts&&($.displayName="MenuButton");var Z={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},X="custom"in d.E?d.E.custom(s.m$.div):(0,d.E)(s.m$.div),Q=(0,a.G)(((e,t)=>{var n,r,{rootProps:o}=e,a=K(e,["rootProps"]),{isOpen:c,onTransitionEnd:d}=U(),h=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=U();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var{focusedIndex:r,setFocusedIndex:o,menuRef:i,isOpen:a,onClose:s,menuId:c,isLazy:d,lazyBehavior:h}=n,m=j(),v=x({preventDefault:e=>" "!==e.key&&V(e.target)}),g=f.useCallback((e=>{var t=(0,l.uh)(e),n={Tab:e=>e.preventDefault(),Escape:s,ArrowDown:()=>{var e=m.nextEnabled(r);e&&o(e.index)},ArrowUp:()=>{var e=m.prevEnabled(r);e&&o(e.index)}}[t];if(n)return e.preventDefault(),void n(e);var i=v((e=>{var t=(0,D.LP)(m.values(),e,(e=>{var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""}),m.item(r));if(t){var n=m.indexOf(t.node);o(n)}}));V(e.target)&&i(e)}),[m,r,v,s,o]),y=f.useRef(!1);a&&(y.current=!0);var b=(0,I.V)({hasBeenSelected:y.current,isLazy:d,lazyBehavior:h,isSelected:a});return N({},e,{ref:(0,p.l)(i,t),children:b?e.children:null,tabIndex:-1,role:"menu",id:c,style:N({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:(0,u.v0)(e.onKeyDown,g)})}(a,t),m=function(e){void 0===e&&(e={});var{popper:t,isOpen:n}=U();return t.getPopperProps(N({},e,{style:N({visibility:n?"visible":"hidden"},e.style)}))}(o),v=(0,i.yK)();return f.createElement(s.m$.div,W({},m,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=v.list)?void 0:r.zIndex}}),f.createElement(X,W({},h,{onUpdate:d,className:(0,l.cx)("chakra-menu__menu-list",h.className),variants:Z,initial:!1,animate:c?"enter":"exit",__css:W({outline:0},v.list)})))}));c.Ts&&(Q.displayName="MenuList");var J=(0,a.G)(((e,t)=>{var{type:n}=e,r=K(e,["type"]),o=(0,i.yK)(),a=r.as?null!=n?n:void 0:"button",u=W({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item);return f.createElement(s.m$.button,W({ref:t,type:a},r,{__css:u}))})),ee=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:i="0.75rem",children:a}=e,s=G(K(e,["icon","iconSpacing","command","commandSpacing","children"]),t),u=n||o?f.createElement("span",{style:{pointerEvents:"none",flex:1}},a):a;return f.createElement(J,W({},s,{className:(0,l.cx)("chakra-menu__menuitem",s.className)}),n&&f.createElement(ae,{fontSize:"0.8em",marginEnd:r},n),u,o&&f.createElement(ie,{marginStart:i},o))}));c.Ts&&(ee.displayName="MenuItem");var te=e=>f.createElement("svg",W({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),f.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})),ne=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem"}=e,o=K(e,["icon","iconSpacing"]),i=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{type:n="radio",isChecked:r}=e;return N({},G(R(e,["type","isChecked"]),t),{role:"menuitem"+n,"aria-checked":r})}(o,t);return f.createElement(J,W({},i,{className:(0,l.cx)("chakra-menu__menuitem-option",o.className)}),f.createElement(ae,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||f.createElement(te,null)),f.createElement("span",{style:{flex:1}},i.children))}));ne.id="MenuItemOption",c.Ts&&(ne.displayName="MenuItemOption");var re=e=>{var{className:t,title:n}=e,r=function(e){void 0===e&&(e={});var{children:t,type:n="radio",value:r,defaultValue:o,onChange:i}=e,a=R(e,["children","type","value","defaultValue","onChange"]),s="radio"===n?"":[],[u,l]=(0,O.T)({defaultValue:null!=o?o:s,value:r,onChange:i}),d=f.useCallback((e=>{if("radio"===n&&(0,c.HD)(u)&&l(e),"checkbox"===n&&(0,c.kJ)(u)){var t=u.includes(e)?(0,D.cl)(u,e):(0,D.jX)(u,e);l(t)}}),[u,l,n]);return N({},a,{children:(0,S.W)(t).map((e=>{if("MenuItemOption"!==e.type.id)return e;var t="radio"===n?e.props.value===u:u.includes(e.props.value);return f.cloneElement(e,{type:n,onClick:t=>{d(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})}))})}(K(e,["className","title"]));return f.createElement(oe,W({title:n,className:(0,l.cx)("chakra-menu__option-group",t)},r))};c.Ts&&(re.displayName="MenuOptionGroup");var oe=(0,a.G)(((e,t)=>{var{title:n,children:r,className:o}=e,a=K(e,["title","children","className"]),u=(0,l.cx)("chakra-menu__group__title",o),c=(0,i.yK)();return f.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&f.createElement(s.m$.p,W({className:u},a,{__css:c.groupTitle}),n),r)}));c.Ts&&(oe.displayName="MenuGroup");var ie=(0,a.G)(((e,t)=>{var n=(0,i.yK)();return f.createElement(s.m$.span,W({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))}));c.Ts&&(ie.displayName="MenuCommand");var ae=e=>{var{className:t,children:n}=e,r=K(e,["className","children"]),o=f.Children.only(n),i=f.isValidElement(o)?f.cloneElement(o,{focusable:"false","aria-hidden":!0,className:(0,l.cx)("chakra-menu__icon",o.props.className)}):null,a=(0,l.cx)("chakra-menu__icon-wrapper",t);return f.createElement(s.m$.span,W({className:a},r,{__css:{flexShrink:0}}),i)};c.Ts&&(ae.displayName="MenuIcon");var se=e=>{var{className:t}=e,n=K(e,["className"]),r=(0,i.yK)();return f.createElement(s.m$.hr,W({role:"separator","aria-orientation":"horizontal",className:(0,l.cx)("chakra-menu__divider",t)},n,{__css:r.divider}))};c.Ts&&(se.displayName="MenuDivider")},34552:function(e,t,n){"use strict";n.d(t,{u_:function(){return Vt},fe:function(){return $t},ol:function(){return Xt},hz:function(){return Wt},mz:function(){return Zt},xB:function(){return Yt},ZA:function(){return qt}});var r=n(31033),o=n(67294),i=n(19756),a=n(22122),s=(n(45697),"data-focus-lock"),u="data-focus-lock-disabled";function c(e,t){return function(e,t){var n=(0,o.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var l={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},d=function(e){var t=e.children;return o.createElement(o.Fragment,null,o.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}),t,t&&o.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:l}))};d.propTypes={},d.defaultProps={children:null};var f=n(70655);function p(e){return e}function h(e,t){void 0===t&&(t=p);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function m(e,t){return void 0===t&&(t=p),h(e,t)}function v(e){void 0===e&&(e={});var t=h(null);return t.options=f.pi({async:!0,ssr:!1},e),t}var g=m({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),y=m(),b=m(),E=v({async:!0}),_=[],T=o.forwardRef((function(e,t){var n,r=o.useState(),i=r[0],d=r[1],f=o.useRef(),p=o.useRef(!1),h=o.useRef(null),m=e.children,v=e.disabled,b=e.noFocusGuards,T=e.persistentFocus,w=e.crossFrame,k=e.autoFocus,x=(e.allowTextSelection,e.group),O=e.className,C=e.whiteList,A=e.shards,S=void 0===A?_:A,M=e.as,D=void 0===M?"div":M,I=e.lockProps,P=void 0===I?{}:I,N=e.sideCar,R=e.returnFocus,L=e.onActivation,j=e.onDeactivation,F=o.useState({})[0],B=o.useCallback((function(){h.current=h.current||document&&document.activeElement,f.current&&L&&L(f.current),p.current=!0}),[L]),H=o.useCallback((function(){p.current=!1,j&&j(f.current)}),[j]),U=o.useCallback((function(e){var t=h.current;if(Boolean(R)&&t&&t.focus){var n="object"===typeof R?R:void 0;h.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[R]),z=o.useCallback((function(e){p.current&&g.useMedium(e)}),[]),V=y.useMedium,G=o.useCallback((function(e){f.current!==e&&(f.current=e,d(e))}),[]);var W=(0,a.Z)(((n={})[u]=v&&"disabled",n[s]=x,n),P),K=!0!==b,q=K&&"tail"!==b,Y=c([t,G]);return o.createElement(o.Fragment,null,K&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:v?-1:0,style:l}),o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:v?-1:1,style:l})],!v&&o.createElement(N,{id:F,sideCar:E,observed:i,disabled:v,persistentFocus:T,crossFrame:w,autoFocus:k,whiteList:C,shards:S,onActivation:B,onDeactivation:H,returnFocus:U}),o.createElement(D,(0,a.Z)({ref:Y},W,{className:O,onBlur:V,onFocus:z}),m),q&&o.createElement("div",{"data-focus-guard":!0,tabIndex:v?-1:0,style:l}))}));T.propTypes={},T.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var w=T;function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x=function(e,t){return function(n){var r,i=[];function a(){r=e(i.map((function(e){return e.props}))),t(r)}var s,u,c,l=function(e){var t,s;function u(){return e.apply(this,arguments)||this}s=e,(t=u).prototype=Object.create(s.prototype),t.prototype.constructor=t,k(t,s),u.peek=function(){return r};var c=u.prototype;return c.componentDidMount=function(){i.push(this),a()},c.componentDidUpdate=function(){a()},c.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},c.render=function(){return o.createElement(n,this.props)},u}(o.PureComponent);return s=l,u="displayName",c="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",u in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,l}},O=function(e){return"INPUT"===e.tagName&&"radio"===e.type},C=function(e,t){return O(e)&&e.name?function(e,t){return t.filter(O).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},A=function(e){return e[0]&&e.length>1?C(e[0],e):e[0]},S=function(e,t){return e.length>1?e.indexOf(C(e[t],e)):t},M=function(e){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(e,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&M(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode);var t},D=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},I=function(e){return!D(e)},P=function(e){return Boolean(e)},N="NEW_FOCUS",R=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=D(n);if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),c=r?t.indexOf(r):u,l=r?e.indexOf(r):-1,d=u-c,f=t.indexOf(i),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(C(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=h.indexOf(n)-(r?h.indexOf(r):u),v=S(e,0),g=S(e,o-1);return-1===u||-1===l?N:!d&&l>=0?l:u<=f&&s&&Math.abs(d)>1?g:u>=p&&s&&Math.abs(d)>1?v:d&&Math.abs(m)>1?l:u<=f?g:u>p?v:d?Math.abs(d)>1?l:(o+l+d)%o:void 0}},L=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},j=function(e){return Array.isArray(e)?e:[e]},F=function(e){return e.parentNode?F(e.parentNode):e},B=function(e){return j(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(s);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(L(F(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+u+'="disabled"])'))):[t]),e}),[])},H=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},U=function(e,t,n){return L(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(H)},z=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),V=z+", [data-focus-guard]",G=function(e,t){return e.reduce((function(e,n){return e.concat(L(n.querySelectorAll(t?V:z)),n.parentNode?L(n.parentNode.querySelectorAll(z)).filter((function(e){return e===n})):[])}),[])},W=function(e){return L(e).filter((function(e){return M(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},K=function(e,t){return U(W(G(e,t)),!0,t)},q=function(e){return U(W(G(e)),!1)},Y=function(e){return W(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return L(t).map((function(e){return G([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e))},$=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&$(e.parentNode,t),t},Z=function(e,t){for(var n=$(e),r=$(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},X=function(e,t,n){var r=j(e),o=j(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Z(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Z(i,e);t&&(a=!a||t.contains(a)?t:Z(t,a))}))})),a},Q=function(e,t){var n=document&&document.activeElement,r=B(e).filter(I),o=X(n||e,e,r),i=q(r),a=K(r).filter((function(e){var t=e.node;return I(t)}));if(a[0]||(a=i)[0]){var s,u=q([o]).map((function(e){return e.node})),c=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(P)}(u,a),l=c.map((function(e){return e.node})),d=R(l,u,n,t);if(d===N){var f=i.map((function(e){return e.node})).filter((s=function(e){return e.reduce((function(e,t){return e.concat(Y(t))}),[])}(r),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||s.indexOf(e)>=0}));return{node:f&&f.length?A(f):A(l)}}return void 0===d?d:c[d]}},J=0,ee=!1,te=function(e,t){var n,r=Q(e,t);if(!ee&&r){if(J>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ee=!0,void setTimeout((function(){ee=!1}),1);J++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),J--}},ne=function(e){return Boolean(L(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},re=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&B(e).reduce((function(e,n){return e||n.contains(t)||ne(n)}),!1)};function oe(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var ie=function(){return document&&document.activeElement===document.body||document&&L(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},ae=null,se=null,ue=null,ce=!1,le=function(){return!0};function de(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var fe=function(e){return e&&"current"in e?e.current:e},pe=function(){var e,t=!1;if(ae){var n=ae,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||ue&&ue.portaledElement,c=document&&document.activeElement;if(u){var l=[u].concat(a.map(fe).filter(Boolean));if(c&&!function(e){return(ae.whiteList||le)(e)}(c)||(o||(s?Boolean(ce):"meanwhile"===ce)||!ie()||!se&&i)&&(!u||re(l)||(e=c,ue&&ue.portaledElement===e)||(document&&!se&&c&&!i?(c.blur&&c.blur(),document.body.focus()):(t=te(l,se),ue={})),ce=!1,se=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var t=B(e).filter(I),n=X(e,e,t),r=K([n],!0),o=K(t).filter((function(e){var t=e.node;return I(t)})).map((function(e){return e.node}));return r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:D(t)}}))}(l),p=f.map((function(e){return e.node})).indexOf(d);p>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),de(p,f.length,1,f),de(p,-1,-1,f))}}}return t},he=function(e){pe()&&e&&(e.stopPropagation(),e.preventDefault())},me=function(){return oe(pe)},ve=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ue={observerNode:n,portaledElement:t})},ge=function(){ce="just",setTimeout((function(){ce="meanwhile"}),0)};g.assignSyncMedium(ve),y.assignMedium(me),b.assignMedium((function(e){return e({moveFocusInside:te,focusInside:re})}));var ye=x((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!ae&&(document.addEventListener("focusin",he,!0),document.addEventListener("focusout",me),window.addEventListener("blur",ge));var n=ae,r=n&&t&&t.id===n.id;ae=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(se=null,r&&n.observed===t.observed||t.onActivation(),pe(),oe(pe)):(document.removeEventListener("focusin",he,!0),document.removeEventListener("focusout",me),window.removeEventListener("blur",ge),se=null)}))((function(){return null})),be=o.forwardRef((function(e,t){return o.createElement(w,(0,a.Z)({sideCar:ye,ref:t},e))})),Ee=w.propTypes||{};Ee.sideCar,(0,i.Z)(Ee,["sideCar"]);be.propTypes={};var _e=be,Te=n(77658),we=n(47248),ke=n(73808),xe=e=>{var{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:a,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:l}=e,d=o.useCallback((()=>{if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===(0,Te.t5)(r.current).length&&(0,we.T)(r.current,{nextTick:!0})}}),[t,r]),f=o.useCallback((()=>{var e;null==n||null==(e=n.current)||e.focus()}),[n]),p=i&&!n;return o.createElement(_e,{crossFrame:l,persistentFocus:c,autoFocus:u,disabled:s,onActivation:d,onDeactivation:f,returnFocus:p},a)};ke.Ts&&(xe.displayName="FocusLock");var Oe=n(67273),Ce=n(2326),Ae=n(29676),Se=n(89384),Me=n(90063),De=n(84461),Ie=n(53869),Pe=n(39629),Ne=n(24722);function Re(){return(Re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Le={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,{transition:n,transitionEnd:r,delay:o}=void 0===e?{}:e;return{opacity:1,transition:null!=(t=null==n?void 0:n.enter)?t:Ne.p$.enter(Ne.R.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,{transition:n,transitionEnd:r,delay:o}=void 0===e?{}:e;return{opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:Ne.p$.exit(Ne.R.exit,o),transitionEnd:null==r?void 0:r.exit}}}},je=o.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,className:i,transition:a,transitionEnd:s,delay:u}=e,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","className","transition","transitionEnd","delay"]),l=r||n?"enter":"exit",d=!n||r&&n,f={transition:a,transitionEnd:s,delay:u};return o.createElement(Ie.M,{custom:f},d&&o.createElement(Pe.E.div,Re({ref:t,className:(0,De.cx)("chakra-fade",i),custom:f},Le,{animate:l},c)))}));ke.Ts&&(je.displayName="Fade");var Fe=n(80658),Be=n(28500),He=n(69283),Ue="right-scroll-bar-position",ze="width-before-scroll-bar",Ve=v(),Ge=function(){},We=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:Ge,onWheelCapture:Ge,onTouchMoveCapture:Ge}),i=r[0],a=r[1],s=e.forwardProps,u=e.children,l=e.className,d=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,g=e.inert,y=e.allowPinchZoom,b=e.as,E=void 0===b?"div":b,_=f._T(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),T=m,w=c([n,t]),k=f.pi({},_,i);return o.createElement(o.Fragment,null,p&&o.createElement(T,{sideCar:Ve,removeScrollBar:d,shards:h,noIsolation:v,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:n}),s?o.cloneElement(o.Children.only(u),f.pi({},k,{ref:w})):o.createElement(E,f.pi({},k,{className:l,ref:w}),u))}));We.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},We.classNames={fullWidth:ze,zeroRight:Ue};var Ke,qe=function(e){var t=e.sideCar,n=f._T(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return o.createElement(r,f.pi({},n))};qe.isSideCarExport=!0;function Ye(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ke||n.nc;return t&&e.setAttribute("nonce",t),e}var $e=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Ye())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ze=function(){var e=function(){var e=$e();return function(t){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},Xe={left:0,top:0,right:0,gap:0},Qe=function(e){return parseInt(e||"",10)||0},Je=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Xe;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Qe(n),Qe(r),Qe(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},et=Ze(),tt=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .with-scroll-bars-hidden {\n   overflow: hidden "+r+";\n   padding-right: "+s+"px "+r+";\n  }\n  body {\n    overflow: hidden "+r+";\n    "+[t&&"position: relative "+r+";","margin"===n&&"\n    padding-left: "+o+"px;\n    padding-top: "+i+"px;\n    padding-right: "+a+"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: "+s+"px "+r+";\n    ","padding"===n&&"padding-right: "+s+"px "+r+";"].filter(Boolean).join("")+"\n  }\n  \n  ."+Ue+" {\n    right: "+s+"px "+r+";\n  }\n  \n  ."+ze+" {\n    margin-right: "+s+"px "+r+";\n  }\n  \n  ."+Ue+" ."+Ue+" {\n    right: 0 "+r+";\n  }\n  \n  ."+ze+" ."+ze+" {\n    margin-right: 0 "+r+";\n  }\n  \n  body {\n    --removed-body-scroll-bar-size: "+s+"px;\n  }\n"},nt=function(e){var t=o.useState(Je(e.gapMode)),n=t[0],r=t[1];o.useEffect((function(){r(Je(e.gapMode))}),[e.gapMode]);var i=e.noRelative,a=e.noImportant,s=e.gapMode,u=void 0===s?"margin":s;return o.createElement(et,{styles:tt(n,!i,u,a?"":"!important")})},rt=function(e,t){var n=t;do{if(ot(e,n)){var r=it(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ot=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},it=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},at=!1;if("undefined"!==typeof window)try{var st=Object.defineProperty({},"passive",{get:function(){return at=!0,!0}});window.addEventListener("test",st,st),window.removeEventListener("test",st,st)}catch(Qt){at=!1}var ut=!!at&&{passive:!1},ct=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},lt=function(e){return[e.deltaX,e.deltaY]},dt=function(e){return e&&"current"in e?e.current:e},ft=function(e){return"\n  .block-interactivity-"+e+" {pointer-events: none;}\n  .allow-interactivity-"+e+" {pointer-events: all;}\n"},pt=0,ht=[];var mt,vt=(mt=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(pt++)[0],a=o.useState((function(){return Ze()}))[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+i);var t=[e.lockRef.current].concat((e.shards||[]).map(dt)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+i)})),function(){document.body.classList.remove("block-interactivity-"+i),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+i)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=ct(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],l=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v",f=rt(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=rt(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,s=t.contains(a),u=!1,c=i>0,l=0,d=0;do{var f=it(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&&ot(e,a)&&(l+=h,d+=p),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(o&&0===l||!o&&i>l)||!c&&(o&&0===d||!o&&-i>d))&&(u=!0),u}(p,t,e,"h"===p?u:c,!0)}),[]),c=o.useCallback((function(e){var n=e;if(ht.length&&ht[ht.length-1]===a){var r="deltaY"in n?lt(n):ct(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var i=(s.current.shards||[]).map(dt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?u(n,i[0]):!s.current.noIsolation)&&n.preventDefault()}}}),[]),l=o.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=o.useCallback((function(e){n.current=ct(e),r.current=void 0}),[]),f=o.useCallback((function(t){l(t.type,lt(t),t.target,u(t,e.lockRef.current))}),[]),p=o.useCallback((function(t){l(t.type,ct(t),t.target,u(t,e.lockRef.current))}),[]);o.useEffect((function(){return ht.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ut),document.addEventListener("touchmove",c,ut),document.addEventListener("touchstart",d,ut),function(){ht=ht.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,ut),document.removeEventListener("touchmove",c,ut),document.removeEventListener("touchstart",d,ut)}}),[]);var h=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:ft(i)}):null,h?o.createElement(nt,{gapMode:"margin"}):null)},Ve.useMedium(mt),qe),gt=o.forwardRef((function(e,t){return o.createElement(We,f.pi({},e,{ref:t,sideCar:vt}))}));gt.classNames=We.classNames;var yt=gt;function bt(){return(bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Et={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t,{offsetX:n,offsetY:r,transition:o,transitionEnd:i,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:Ne.p$.exit(Ne.R.exit,a),transitionEnd:null==i?void 0:i.exit}},enter:e=>{var t,{transition:n,transitionEnd:r,delay:o}=e;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:Ne.p$.enter(Ne.R.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t,{offsetY:n,offsetX:r,transition:o,transitionEnd:i,reverse:a,delay:s}=e,u={x:r,y:n};return bt({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:Ne.p$.exit(Ne.R.exit,s)},a?bt({},u,{transitionEnd:null==i?void 0:i.exit}):{transitionEnd:bt({},u,null==i?void 0:i.exit)})}}},_t=o.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:i=!0,className:a,offsetX:s=0,offsetY:u=8,transition:c,transitionEnd:l,delay:d}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"]),p=!n||r&&n,h=r||n?"enter":"exit",m={offsetX:s,offsetY:u,reverse:i,transition:c,transitionEnd:l,delay:d};return o.createElement(Ie.M,{custom:m},p&&o.createElement(Pe.E.div,bt({ref:t,className:(0,De.cx)("chakra-offset-slide",a),custom:m},Et,{animate:h},f)))}));function Tt(){return(Tt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ke.Ts&&(_t.displayName="SlideFade");var wt={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t,{reverse:n,initialScale:r,transition:o,transitionEnd:i,delay:a}=e;return Tt({opacity:0},n?{scale:r,transitionEnd:null==i?void 0:i.exit}:{transitionEnd:Tt({scale:r},null==i?void 0:i.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:Ne.p$.exit(Ne.R.exit,a)})},enter:e=>{var t,{transitionEnd:n,transition:r,delay:o}=e;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:Ne.p$.enter(Ne.R.enter,o),transitionEnd:null==n?void 0:n.enter}}}},kt=o.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:i=!0,initialScale:a=.95,className:s,transition:u,transitionEnd:c,delay:l}=e,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"]),f=!n||r&&n,p=r||n?"enter":"exit",h={initialScale:a,reverse:i,transition:u,transitionEnd:c,delay:l};return o.createElement(Ie.M,{custom:h},f&&o.createElement(Pe.E.div,Tt({ref:t,className:(0,De.cx)("chakra-offset-slide",s)},wt,{animate:p,custom:h},d)))}));function xt(){return(xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ke.Ts&&(kt.displayName="ScaleFade");var Ot={slideInBottom:xt({},Et,{custom:{offsetY:16,reverse:!0}}),slideInRight:xt({},Et,{custom:{offsetX:16,reverse:!0}}),scale:xt({},wt,{custom:{initialScale:.95,reverse:!0}}),none:{}},Ct=(0,Se.m$)(Pe.E.section),At=o.forwardRef(((e,t)=>{var{preset:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["preset"]),i=Ot[n];return o.createElement(Ct,xt({ref:t},i,r))})),St=n(94577),Mt=n(72947),Dt=new WeakMap,It=new WeakMap,Pt={},Nt=0,Rt=function(e,t,n){void 0===t&&(t=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];Pt[n]||(Pt[n]=new WeakMap);var o=Pt[n],i=[],a=new Set,s=function(e){e&&!a.has(e)&&(a.add(e),s(e.parentNode))};r.forEach(s);var u=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))u(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,s=(Dt.get(e)||0)+1,c=(o.get(e)||0)+1;Dt.set(e,s),o.set(e,c),i.push(e),1===s&&r&&It.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),a.clear(),Nt++,function(){i.forEach((function(e){var t=Dt.get(e)-1,r=o.get(e)-1;Dt.set(e,t),o.set(e,r),t||(It.has(e)||e.removeAttribute("aria-hidden"),It.delete(e)),r||e.removeAttribute(n)})),--Nt||(Dt=new WeakMap,Dt=new WeakMap,It=new WeakMap,Pt={})}};var Lt=new class{constructor(){var e,t,n;n=void 0,(t="modals")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter((t=>t!==e))}isTopModal(e){return this.modals[this.modals.length-1]===e}};function jt(){return(jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ft(e){var t,n,{isOpen:r,onClose:i,id:a,closeOnOverlayClick:s=!0,closeOnEsc:u=!0,useInert:c=!0,onOverlayClick:l,onEsc:d}=e,f=(0,o.useRef)(null),p=(0,o.useRef)(null),[h,m,v]=(0,St.ZS)(a,"chakra-modal","chakra-modal--header","chakra-modal--body");t=f,n=r&&c,(0,o.useEffect)((()=>{if(t.current){var e=null;return n&&t.current&&(e=Rt(t.current)),()=>{n&&(null==e||e())}}}),[n,t]),function(e,t){(0,o.useEffect)((()=>(t&&Lt.add(e),()=>{Lt.remove(e)})),[t,e])}(f,r);var g=(0,o.useRef)(null),y=(0,o.useCallback)((e=>{g.current=e.target}),[]),b=(0,o.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),u&&(null==i||i()),null==d||d())}),[u,i,d]),[E,_]=(0,o.useState)(!1),[T,w]=(0,o.useState)(!1),k=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),jt({role:"dialog"},e,{ref:(0,Mt.l)(t,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":T?v:void 0,onClick:(0,Fe.v0)(e.onClick,(e=>e.stopPropagation()))})}),[v,T,h,m,E]),x=(0,o.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&Lt.isTopModal(f)&&(s&&(null==i||i()),null==l||l())}),[i,s,l]),O=(0,o.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),jt({},e,{ref:(0,Mt.l)(t,p),onClick:(0,Fe.v0)(e.onClick,x),onKeyDown:(0,Fe.v0)(e.onKeyDown,b),onMouseDown:(0,Fe.v0)(e.onMouseDown,y)})}),[b,y,x]);return{isOpen:r,onClose:i,headerId:m,bodyId:v,setBodyMounted:w,setHeaderMounted:_,dialogRef:f,overlayRef:p,getDialogProps:k,getDialogContainerProps:O}}function Bt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ht(){return(Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[Ut,zt]=(0,Be.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Vt=e=>{var{portalProps:t,children:n,autoFocus:r,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:l,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p}=e,h=(0,Ce.j)("Modal",e),m=Ht({},Ft(e),{autoFocus:r,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:l,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p});return o.createElement(Ut,{value:m},o.createElement(Ae.Fo,{value:h},o.createElement(Ie.M,null,m.isOpen&&o.createElement(Oe.h,t,n))))};Vt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},ke.Ts&&(Vt.displayName="Modal");var Gt=(0,Se.m$)(Pe.E.div),Wt=(0,Me.G)(((e,t)=>{var{className:n,children:r,containerProps:i}=e,a=Bt(e,["className","children","containerProps"]),{getDialogProps:s,getDialogContainerProps:u}=zt(),c=s(a,t),l=u(i),d=(0,De.cx)("chakra-modal__content",n),f=(0,Ae.yK)(),p=Ht({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},f.dialog),h=Ht({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},f.dialogContainer),{motionPreset:m}=zt();return o.createElement(Kt,null,o.createElement(Se.m$.div,Ht({},l,{className:"chakra-modal__content-container",__css:h}),o.createElement(At,Ht({preset:m,className:d},c,{__css:p}),r)))}));function Kt(e){var{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:l,lockFocusAcrossFrames:d}=zt(),[f,p]=(0,He.oO)();return o.useEffect((()=>{!f&&p&&setTimeout(p)}),[f,p]),o.createElement(xe,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d},o.createElement(yt,{removeScrollBar:!l,allowPinchZoom:s,enabled:a,forwardProps:!0},e.children))}ke.Ts&&(Wt.displayName="ModalContent");var qt=(0,Me.G)(((e,t)=>{var{className:n}=e,r=Bt(e,["className","transition"]),i=(0,De.cx)("chakra-modal__overlay",n),a=Ht({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,Ae.yK)().overlay),{motionPreset:s}=zt(),u="none"===s?{}:Le;return o.createElement(Gt,Ht({},u,{__css:a,ref:t,className:i},r))}));ke.Ts&&(qt.displayName="ModalOverlay");var Yt=(0,Me.G)(((e,t)=>{var{className:n}=e,r=Bt(e,["className"]),{headerId:i,setHeaderMounted:a}=zt();o.useEffect((()=>(a(!0),()=>a(!1))),[a]);var s=(0,De.cx)("chakra-modal__header",n),u=Ht({flex:0},(0,Ae.yK)().header);return o.createElement(Se.m$.header,Ht({ref:t,className:s,id:i},r,{__css:u}))}));ke.Ts&&(Yt.displayName="ModalHeader");var $t=(0,Me.G)(((e,t)=>{var{className:n}=e,r=Bt(e,["className"]),{bodyId:i,setBodyMounted:a}=zt();o.useEffect((()=>(a(!0),()=>a(!1))),[a]);var s=(0,De.cx)("chakra-modal__body",n),u=(0,Ae.yK)();return o.createElement(Se.m$.div,Ht({ref:t,className:s,id:i},r,{__css:u.body}))}));ke.Ts&&($t.displayName="ModalBody");var Zt=(0,Me.G)(((e,t)=>{var{className:n}=e,r=Bt(e,["className"]),i=(0,De.cx)("chakra-modal__footer",n),a=Ht({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,Ae.yK)().footer);return o.createElement(Se.m$.footer,Ht({ref:t},r,{__css:a,className:i}))}));ke.Ts&&(Zt.displayName="ModalFooter");var Xt=(0,Me.G)(((e,t)=>{var{onClick:n,className:i}=e,a=Bt(e,["onClick","className"]),{onClose:s}=zt(),u=(0,De.cx)("chakra-modal__close-btn",i),c=(0,Ae.yK)();return o.createElement(r.P,Ht({ref:t,__css:c.closeButton,className:u,onClick:(0,Fe.v0)(n,(e=>{e.stopPropagation(),s()}))},a))}));ke.Ts&&(Xt.displayName="ModalCloseButton")},45170:function(e,t,n){"use strict";n.d(t,{J2:function(){return V},QH:function(){return Y},b:function(){return q},yk:function(){return W},xo:function(){return G}});n(31033);var r=n(2326),o=n(55284),i=n(29676),a=n(90063),s=n(89384),u=n(80658),c=n(73808),l=n(84461),d=n(67294),f=n(28500),[p,h]=(0,f.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),m=n(39629),v=n(38554),g=n.n(v);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var b=e=>{if(e)return g()(e,{enter:{visibility:"visible"},exit:{transitionEnd:{visibility:"hidden"}}})},E=(0,m.E)(s.m$.section),_=d.forwardRef(((e,t)=>{var{isOpen:n}=h();return d.createElement(E,y({ref:t,variants:b(e.variants)},e,{initial:!1,animate:n?"enter":"exit"}))}));_.defaultProps={variants:{exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}}};var T=n(74860),w=n(94577);var k=n(17768),x=n(47248),O=n(63158);function C(e){var t,{ref:n,elements:r,enabled:o}=e,i=(t="Safari",!!l.jU&&function(e){var{userAgent:t,vendor:n}=e,r=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case r&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(n):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case r:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===t);(0,O.m)((()=>(0,l.lZ)(n.current)),"pointerdown",(e=>{if(i&&o){var t=e.target,a=(null!=r?r:[n]).some((e=>{var n=(0,c.Ik)(e)?e.current:e;return(0,l.r3)(n,t)}));!(0,k.H9)(t)&&a&&(e.preventDefault(),(0,x.T)(t))}}))}var A=n(22911),S=n(77658),M=n(34941),D=n(22653),I={preventScroll:!0,shouldFocus:!1};var P=n(8931),N=n(23459),R=n(72947),L=n(55463),j=n(88456);function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var B={click:"click",hover:"hover"};function H(e){void 0===e&&(e={});var{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:o,returnFocusOnClose:i=!0,autoFocus:a=!0,arrowSize:s,arrowShadowColor:f,trigger:p=B.click,openDelay:h=200,closeDelay:m=200,isLazy:v,lazyBehavior:g="unmount",computePositionOnMount:y}=e,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["closeOnBlur","closeOnEsc","initialFocusRef","id","returnFocusOnClose","autoFocus","arrowSize","arrowShadowColor","trigger","openDelay","closeDelay","isLazy","lazyBehavior","computePositionOnMount"]),{isOpen:E,onClose:_,onOpen:k,onToggle:O}=(0,T.q)(e),H=(0,d.useRef)(null),U=(0,d.useRef)(null),z=(0,d.useRef)(!1),V=(0,d.useRef)(!1);E&&(V.current=!0);var[G,W]=(0,d.useState)(!1),[K,q]=(0,d.useState)(!1),[Y,$,Z,X]=(0,w.ZS)(o,"popover-trigger","popover-content","popover-header","popover-body"),{referenceRef:Q,getArrowProps:J,getPopperProps:ee,getArrowInnerProps:te,forceUpdate:ne}=(0,P.D)(F({},b,{enabled:E||y}));C({enabled:E,ref:H}),(0,A.C)(U,{focusRef:H,visible:E,shouldFocus:i&&p===B.click}),function(e,t){void 0===t&&(t=I);var{focusRef:n,preventScroll:r,shouldFocus:o,visible:i}=t,a=(0,c.Ik)(e)?e.current:e,s=o&&i,u=(0,d.useCallback)((()=>{if(a&&s&&!(0,l.r3)(a,document.activeElement))if(null!=n&&n.current)(0,x.T)(n.current,{preventScroll:r,nextTick:!0});else{var e=(0,S.t5)(a);e.length>0&&(0,x.T)(e[0],{preventScroll:r,nextTick:!0})}}),[s,r,a,n]);(0,D.r)((()=>{u()}),[u]),(0,M.O)("transitionend",u,a)}(U,{focusRef:r,visible:E,shouldFocus:a&&p===B.click});var re=(0,L.V)({hasBeenSelected:V.current,isLazy:v,lazyBehavior:g,isSelected:E}),oe=(0,d.useCallback)((function(e,r){void 0===e&&(e={}),void 0===r&&(r=null);var o=F({},e,{style:F({},e.style,{transformOrigin:N.Dq.transformOrigin.varRef,[N.Dq.arrowSize.var]:s?(0,j.px)(s):void 0,[N.Dq.arrowShadowColor.var]:f}),ref:(0,R.l)(U,r),children:re?e.children:null,id:$,tabIndex:-1,role:"dialog",onKeyDown:(0,u.v0)(e.onKeyDown,(e=>{n&&"Escape"===e.key&&_()})),onBlur:(0,u.v0)(e.onBlur,(e=>{var n=(0,l.wN)(e),r=(0,l.r3)(U.current,n),o=(0,l.r3)(H.current,n);E&&t&&(!r&&!o)&&_()})),"aria-labelledby":G?Z:void 0,"aria-describedby":K?X:void 0});return p===B.hover&&(o.role="tooltip",o.onMouseEnter=(0,u.v0)(e.onMouseEnter,(()=>{z.current=!0})),o.onMouseLeave=(0,u.v0)(e.onMouseLeave,(()=>{z.current=!1,setTimeout(_,m)}))),o}),[re,$,G,Z,K,X,p,n,_,E,t,m,f,s]),ie=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ee(F({},e,{style:F({visibility:E?"visible":"hidden"},e.style)}),t)}),[E,ee]),ae=(0,d.useRef)(),se=(0,d.useRef)(),ue=(0,d.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=F({},e,{ref:(0,R.l)(H,t,Q),id:Y,"aria-haspopup":"dialog","aria-expanded":E,"aria-controls":$});return p===B.click&&(n.onClick=(0,u.v0)(e.onClick,O)),p===B.hover&&(n.onFocus=(0,u.v0)(e.onFocus,k),n.onBlur=(0,u.v0)(e.onBlur,_),n.onKeyDown=(0,u.v0)(e.onKeyDown,(e=>{"Escape"===e.key&&_()})),n.onMouseEnter=(0,u.v0)(e.onMouseEnter,(()=>{z.current=!0,ae.current=window.setTimeout(k,h)})),n.onMouseLeave=(0,u.v0)(e.onMouseLeave,(()=>{z.current=!1,ae.current&&(clearTimeout(ae.current),ae.current=void 0),se.current=window.setTimeout((()=>{!1===z.current&&_()}),m)}))),n}),[Y,E,$,p,Q,O,k,_,h,m]);(0,d.useEffect)((()=>()=>{ae.current&&clearTimeout(ae.current),se.current&&clearTimeout(se.current)}),[]);var ce=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),F({},e,{id:Z,ref:(0,R.l)(t,(e=>{W(!!e)}))})}),[Z]),le=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),F({},e,{id:X,ref:(0,R.l)(t,(e=>{q(!!e)}))})}),[X]);return{forceUpdate:ne,isOpen:E,onClose:_,getArrowProps:J,getArrowInnerProps:te,getPopoverPositionerProps:ie,getPopoverProps:oe,getTriggerProps:ue,getHeaderProps:ce,getBodyProps:le}}function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function z(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var V=e=>{var t=(0,r.j)("Popover",e),n=(0,o.Lr)(e),{children:a}=n,s=H(z(n,["children"]));return d.createElement(p,{value:s},d.createElement(i.Fo,{value:t},(0,u.Pu)(a,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate})))};c.Ts&&(V.displayName="Popover");var G=e=>{var t=d.Children.only(e.children),{getTriggerProps:n}=h();return d.cloneElement(t,n(t.props,t.ref))};c.Ts&&(G.displayName="PopoverTrigger");var W=(0,a.G)(((e,t)=>{var{rootProps:n}=e,r=z(e,["rootProps"]),{getPopoverProps:o,getPopoverPositionerProps:a}=h(),u=(0,i.yK)(),c=U({position:"relative",display:"flex",flexDirection:"column"},u.content);return d.createElement(s.m$.div,U({},a(n),{__css:u.popper,className:"chakra-popover__popper"}),d.createElement(_,U({},o(r,t),{className:(0,l.cx)("chakra-popover__content",e.className),__css:c})))}));c.Ts&&(W.displayName="PopoverContent");var K=(0,a.G)(((e,t)=>{var{getHeaderProps:n}=h(),r=(0,i.yK)();return d.createElement(s.m$.header,U({},n(e,t),{className:(0,l.cx)("chakra-popover__header",e.className),__css:r.header}))}));c.Ts&&(K.displayName="PopoverHeader");var q=(0,a.G)(((e,t)=>{var{getBodyProps:n}=h(),r=(0,i.yK)();return d.createElement(s.m$.div,U({},n(e,t),{className:(0,l.cx)("chakra-popover__body",e.className),__css:r.body}))}));c.Ts&&(q.displayName="PopoverBody");c.Ts;c.Ts;var Y=e=>{var t,{bg:n,bgColor:r,backgroundColor:o}=e,{getArrowProps:a,getArrowInnerProps:u}=h(),c=(0,i.yK)(),f=null!=(t=null!=n?n:r)?t:o;return d.createElement(s.m$.div,U({},a(),{className:"chakra-popover__arrow-positioner"}),d.createElement(s.m$.div,U({className:(0,l.cx)("chakra-popover__arrow",e.className)},u(e),{__css:U({},c.arrow,{"--popper-arrow-bg":f?"colors."+f+", "+f:void 0})})))};c.Ts&&(Y.displayName="PopoverArrow")},8931:function(e,t,n){"use strict";n.d(t,{D:function(){return be}});var r=n(72947);function o(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function i(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function a(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function s(e){return e instanceof i(e).Element||e instanceof Element}function u(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function c(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return(s(e)?e.ownerDocument:e.document).documentElement}function d(e){return o(l(e)).left+a(e).scrollLeft}function f(e){return i(e).getComputedStyle(e)}function p(e){var t=f(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function h(e,t,n){void 0===n&&(n=!1);var r=l(t),s=o(e),f=u(t),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(f||!f&&!n)&&(("body"!==c(t)||p(r))&&(h=function(e){return e!==i(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:a(e);var t}(t)),u(t)?((m=o(t)).x+=t.clientLeft,m.y+=t.clientTop):r&&(m.x=d(r))),{x:s.left+h.scrollLeft-m.x,y:s.top+h.scrollTop-m.y,width:s.width,height:s.height}}function m(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function v(e){return"html"===c(e)?e:e.assignedSlot||e.parentNode||e.host||l(e)}function g(e){return["html","body","#document"].indexOf(c(e))>=0?e.ownerDocument.body:u(e)&&p(e)?e:g(v(e))}function y(e,t){void 0===t&&(t=[]);var n=g(e),r="body"===c(n),o=i(n),a=r?[o].concat(o.visualViewport||[],p(n)?n:[]):n,s=t.concat(a);return r?s:s.concat(y(v(a)))}function b(e){return["table","td","th"].indexOf(c(e))>=0}function E(e){if(!u(e)||"fixed"===f(e).position)return null;var t=e.offsetParent;if(t){var n=l(t);if("body"===c(t)&&"static"===f(t).position&&"static"!==f(n).position)return n}return t}function _(e){for(var t=i(e),n=E(e);n&&b(n)&&"static"===f(n).position;)n=E(n);return n&&"body"===c(n)&&"static"===f(n).position?t:n||function(e){for(var t=v(e);u(t)&&["html","body"].indexOf(c(t))<0;){var n=f(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var T="top",w="bottom",k="right",x="left",O="auto",C=[T,w,k,x],A="start",S="end",M="viewport",D="popper",I=C.reduce((function(e,t){return e.concat([t+"-"+A,t+"-"+S])}),[]),P=[].concat(C,[O]).reduce((function(e,t){return e.concat([t,t+"-"+A,t+"-"+S])}),[]),N=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function R(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function L(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var j={placement:"bottom",modifiers:[],strategy:"absolute"};function F(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function B(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?j:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},j),i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],u=!1,c={state:o,setOptions:function(n){l(),o.options=Object.assign(Object.assign(Object.assign({},i),o.options),n),o.scrollParents={reference:s(e)?y(e):e.contextElement?y(e.contextElement):[],popper:y(t)};var u=function(e){var t=R(e);return N.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:c,options:r}),u=function(){};a.push(s||u)}})),c.update()},forceUpdate:function(){if(!u){var e=o.elements,t=e.reference,n=e.popper;if(F(t,n)){o.rects={reference:h(t,_(n),"fixed"===o.options.strategy),popper:m(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,l=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:l,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:L((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){l(),u=!0}};if(!F(e,t))return c;function l(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var H={passive:!0};function U(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function V(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?U(o):null,a=o?z(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case T:t={x:s,y:n.y-r.height};break;case w:t={x:s,y:n.y+n.height};break;case k:t={x:n.x+n.width,y:u};break;case x:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?V(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case A:t[c]=Math.floor(t[c])-Math.floor(n[l]/2-r[l]/2);break;case S:t[c]=Math.floor(t[c])+Math.ceil(n[l]/2-r[l]/2)}}return t}var W={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(a),f=d.x,p=d.y,h=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=x,g=T,y=window;if(c){var b=_(n);b===i(n)&&(b=l(n)),o===T&&(g=w,p-=b.clientHeight-r.height,p*=u?1:-1),o===x&&(v=k,f-=b.clientWidth-r.width,f*=u?1:-1)}var E,O=Object.assign({position:s},c&&W);return u?Object.assign(Object.assign({},O),{},((E={})[g]=m?"0":"",E[v]=h?"0":"",E.transform=(y.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",E)):Object.assign(Object.assign({},O),{},((t={})[g]=m?p+"px":"",t[v]=h?f+"px":"",t.transform="",t))}var q={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(e){return e.replace(/left|right|bottom|top/g,(function(e){return q[e]}))}var $={start:"end",end:"start"};function Z(e){return e.replace(/start|end/g,(function(e){return $[e]}))}function X(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Q(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J(e,t){return t===M?Q(function(e){var t=i(e),n=l(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:o,height:a,x:s+d(e),y:u}}(e)):u(t)?function(e){var t=o(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Q(function(e){var t=l(e),n=a(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+d(e),u=-n.scrollTop;return"rtl"===f(r||t).direction&&(s+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}(l(e)))}function ee(e,t,n){var r="clippingParents"===t?function(e){var t=y(v(e)),n=["absolute","fixed"].indexOf(f(e).position)>=0&&u(e)?_(e):e;return s(n)?t.filter((function(e){return s(e)&&X(e,n)&&"body"!==c(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=J(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),J(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function te(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function ne(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function re(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.boundary,u=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?M:c,f=n.elementContext,p=void 0===f?D:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,g=void 0===v?0:v,y=te("number"!==typeof g?g:ne(g,C)),b=p===D?"reference":D,E=e.elements.reference,_=e.rects.popper,x=e.elements[m?b:p],O=ee(s(x)?x:x.contextElement||l(e.elements.popper),u,d),A=o(E),S=G({reference:A,element:_,strategy:"absolute",placement:i}),I=Q(Object.assign(Object.assign({},_),S)),P=p===D?I:A,N={top:O.top-P.top+y.top,bottom:P.bottom-O.bottom+y.bottom,left:O.left-P.left+y.left,right:P.right-O.right+y.right},R=e.modifiersData.offset;if(p===D&&R){var L=R[i];Object.keys(N).forEach((function(e){var t=[k,w].indexOf(e)>=0?1:-1,n=[T,w].indexOf(e)>=0?"y":"x";N[e]+=L[n]*t}))}return N}function oe(e,t,n){return Math.max(e,Math.min(t,n))}function ie(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ae(e){return[T,k,w,x].some((function(t){return e[t]>=0}))}var se=B({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,u=void 0===s||s,c=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,H)})),u&&c.addEventListener("resize",n.update,H),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,H)})),u&&c.removeEventListener("resize",n.update,H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s={placement:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),K(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),K(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];u(o)&&c(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});u(r)&&c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=P.reduce((function(e,n){return e[n]=function(e,t,n){var r=U(e),o=[x,T].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[x,k].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=U(v),y=u||(g===v||!h?[Y(v)]:function(e){if(U(e)===O)return[];var t=Y(e);return[Z(e),t,Z(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(U(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?P:u,l=z(r),d=l?s?I:I.filter((function(e){return z(e)===l})):C,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=re(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[U(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),E=t.rects.reference,_=t.rects.popper,S=new Map,M=!0,D=b[0],N=0;N<b.length;N++){var R=b[N],L=U(R),j=z(R)===A,F=[T,w].indexOf(L)>=0,B=F?"width":"height",H=re(t,{placement:R,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),V=F?j?k:x:j?w:T;E[B]>_[B]&&(V=Y(V));var G=Y(V),W=[];if(i&&W.push(H[L]<=0),s&&W.push(H[V]<=0,H[G]<=0),W.every((function(e){return e}))){D=R,M=!1;break}S.set(R,W)}if(M)for(var K=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},q=h?3:1;q>0;q--){if("break"===K(q))break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,v=void 0===h?0:h,g=re(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),y=U(t.placement),b=z(t.placement),E=!b,O=V(y),C="x"===O?"y":"x",S=t.modifiersData.popperOffsets,M=t.rects.reference,D=t.rects.popper,I="function"===typeof v?v(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):v,P={x:0,y:0};if(S){if(i){var N="y"===O?T:x,R="y"===O?w:k,L="y"===O?"height":"width",j=S[O],F=S[O]+g[N],B=S[O]-g[R],H=p?-D[L]/2:0,G=b===A?M[L]:D[L],W=b===A?-D[L]:-M[L],K=t.elements.arrow,q=p&&K?m(K):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=Y[N],Z=Y[R],X=oe(0,M[L],q[L]),Q=E?M[L]/2-H-X-$-I:G-X-$-I,J=E?-M[L]/2+H+X+Z+I:W+X+Z+I,ee=t.elements.arrow&&_(t.elements.arrow),te=ee?"y"===O?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,ie=S[O]+Q-ne-te,ae=S[O]+J-ne,se=oe(p?Math.min(F,ie):F,j,p?Math.max(B,ae):B);S[O]=se,P[O]=se-j}if(s){var ue="x"===O?T:x,ce="x"===O?w:k,le=S[C],de=oe(le+g[ue],le,le-g[ce]);S[C]=de,P[C]=de-le}t.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=U(n.placement),s=V(a),u=[x,k].indexOf(a)>=0?"height":"width";if(o&&i){var c=n.modifiersData[r+"#persistent"].padding,l=m(o),d="y"===s?T:x,f="y"===s?w:k,p=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],h=i[s]-n.rects.reference[s],v=_(o),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=p/2-h/2,b=c[d],E=g-l[u]-c[f],O=g/2-l[u]/2+y,C=oe(b,O,E),A=s;n.modifiersData[r]=((t={})[A]=C,t.centerOffset=C-O,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,a=n.padding,s=void 0===a?0:a;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i)))&&X(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:te("number"!==typeof s?s:ne(s,C))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=re(t,{elementContext:"reference"}),s=re(t,{altBoundary:!0}),u=ie(a,r),c=ie(s,o,i),l=ae(u),d=ae(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),ue=n(67294),ce=n(23459),le={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{var{state:t}=e;t.styles.popper.width=t.rects.reference.width+"px"},effect:e=>{var{state:t}=e;return()=>{var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},de={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{var{state:t}=e;fe(t)},effect:e=>{var{state:t}=e;return()=>{fe(t)}}},fe=e=>{e.elements.popper.style.setProperty(ce.Dq.transformOrigin.var,(0,ce.mv)(e.placement))},pe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{var{state:t}=e;he(t)}},he=e=>{var t;if(e.placement){var n=me(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ce.Dq.arrowSize.varRef,height:ce.Dq.arrowSize.varRef,zIndex:-1});var r={[ce.Dq.arrowSizeHalf.var]:"calc("+ce.Dq.arrowSize.varRef+" / 2)",[ce.Dq.arrowOffset.var]:"calc("+ce.Dq.arrowSizeHalf.varRef+" * -1)"};for(var o in r)e.elements.arrow.style.setProperty(o,r[o])}}},me=e=>e.startsWith("top")?{property:"bottom",value:ce.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ce.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ce.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ce.Dq.arrowOffset.varRef}:void 0,ve={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{var{state:t}=e;ge(t)},effect:e=>{var{state:t}=e;return()=>{ge(t)}}},ge=e=>{if(e.elements.arrow){var t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");t&&Object.assign(t.style,{transform:"rotate(45deg)",background:ce.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(0,ce.Ke)(e.placement)})}};function ye(){return(ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function be(e){void 0===e&&(e={});var{enabled:t=!0,modifiers:n=[],placement:o="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:u,gutter:c=8,flip:l=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p}=e,h=(0,ue.useRef)(null),m=(0,ue.useRef)(null),v=(0,ue.useRef)(null),g=(0,ue.useRef)((()=>{})),y=(0,ue.useCallback)((()=>{t&&h.current&&m.current&&(null==g.current||g.current(),v.current=se(h.current,m.current,{placement:o,modifiers:[ve,pe,de,ye({},le,{enabled:!!p}),ye({name:"eventListeners"},(0,ce.$B)(s)),{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=u?u:[0,c]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n],strategy:i}),v.current.forceUpdate(),g.current=v.current.destroy)}),[t,o,n,p,s,a,u,c,l,f,d,i]);(0,ue.useEffect)((()=>()=>{var e;h.current||m.current||(null==(e=v.current)||e.destroy(),v.current=null)}),[]);var b=(0,ue.useCallback)((e=>{h.current=e,y()}),[y]),E=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:(0,r.l)(b,t)})}),[b]),_=(0,ue.useCallback)((e=>{m.current=e,y()}),[y]),T=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:(0,r.l)(_,t),style:ye({},e.style,{position:i,minWidth:"max-content",inset:"0 auto auto 0"})})}),[i,_]),w=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size","shadowColor","bg","style"]),{ref:t,"data-popper-arrow":"",style:Ee(e)})}),[]),k=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:ce.Dq.transformOrigin.varRef,referenceRef:b,popperRef:_,getPopperProps:T,getArrowProps:w,getArrowInnerProps:k,getReferenceProps:E}}function Ee(e){var{size:t,shadowColor:n,bg:r,style:o}=e,i=ye({},o,{position:"absolute"});return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}},23459:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Dq:function(){return i},Ke:function(){return a},mv:function(){return u},$B:function(){return l}});var o=(e,t)=>({var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}),i={arrowShadowColor:o("--popper-arrow-shadow-color"),arrowSize:o("--popper-arrow-size","8px"),arrowSizeHalf:o("--popper-arrow-size-half"),arrowBg:o("--popper-arrow-bg"),transformOrigin:o("--popper-transform-origin"),arrowOffset:o("--popper-arrow-offset")};function a(e){return e.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0}var s={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},u=e=>s[e],c={scroll:!0,resize:!0};function l(e){return"object"===typeof e?{enabled:!0,options:r({},c,e)}:{enabled:e,options:c}}},67273:function(e,t,n){"use strict";n.d(t,{h:function(){return b}});var r=n(67294),o=n(77581);function i(){var e=r.useRef(!1),[t,n]=r.useState(0);return(0,o.z)((()=>{e.current=!0})),r.useCallback((()=>{e.current||n(t+1)}),[t])}var a=n(68327),s=n(84461),u=n(73808),c=n(28500),l=n(73935),d=n(34288);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[p,h]=(0,c.k)({strict:!1,name:"PortalContext"}),m="chakra-portal",v=e=>r.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children),g=e=>{var{appendToParentPortal:t,children:n}=e,o=r.useRef(null),s=r.useRef(null),u=i(),c=h(),f=(0,d.L)();(0,a.G)((()=>{if(o.current){var e=o.current.ownerDocument,n=t&&null!=c?c:e.body;if(n){s.current=e.createElement("div"),s.current.className=m,n.appendChild(s.current),u();var r=s.current;return()=>{n.contains(r)&&n.removeChild(r)}}}}),[]);var g=null!=f&&f.zIndex?r.createElement(v,{zIndex:null==f?void 0:f.zIndex},n):n;return s.current?(0,l.createPortal)(r.createElement(p,{value:s.current},g),s.current):r.createElement("span",{ref:o})},y=e=>{var{children:t,containerRef:n,appendToParentPortal:o}=e,u=n.current,c=null!=u?u:s.jU?document.body:void 0,d=r.useMemo((()=>{var e=null==u?void 0:u.ownerDocument.createElement("div");return e&&(e.className=m),e}),[u]),f=i();return(0,a.G)((()=>{f()}),[]),(0,a.G)((()=>{if(d&&c)return c.appendChild(d),()=>{c.removeChild(d)}}),[d,c]),c&&d?(0,l.createPortal)(r.createElement(p,{value:o?d:null},t),d):null};function b(e){var{containerRef:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["containerRef"]);return t?r.createElement(y,f({containerRef:t},n)):r.createElement(g,n)}b.defaultProps={appendToParentPortal:!0},b.className=m,b.selector=".chakra-portal",u.Ts&&(b.displayName="Portal")},60418:function(e,t,n){"use strict";t.__esModule=!0,t.getValidChildren=function(e){return r.Children.toArray(e).filter((function(e){return r.isValidElement(e)}))};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},40805:function(e,t,n){"use strict";t.__esModule=!0,t.createContext=function(e){void 0===e&&(e={});var t=e,n=t.strict,o=void 0===n||n,i=t.errorMessage,a=void 0===i?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":i,s=t.name,u=r.createContext(void 0);return u.displayName=s,[u.Provider,function e(){var t=r.useContext(u);if(!t&&o){var n=new Error(a);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},u]};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},19277:function(e,t,n){"use strict";t.__esModule=!0;var r=n(73702);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(40805);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(47412);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(60418);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},73702:function(e,t,n){"use strict";t.__esModule=!0,t.assignRef=o,t.mergeRefs=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){return o(t,e)}))}};var r=n(66751);function o(e,t){if(null!=e)if((0,r.isFunction)(e))e(t);else try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}},47412:function(){},24255:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(67294);function o(e){return r.Children.toArray(e).filter((e=>r.isValidElement(e)))}},72947:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(73808);function o(e,t){if(null!=e)if((0,r.mf)(e))e(t);else try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>o(t,e)))}}},40980:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return o.useTheme}});n(62300);var r=n(84806);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var o=n(11180)},46049:function(e,t,n){"use strict";n.d(t,{Ph:function(){return I}});var r=n(84461),o=n(80658),i=n(94577),a=n(90639),s=n(90063),u=n(2326),c=n(55284),l=n(29676),d=n(89384),f=n(73808),p=n(28500),h=n(72947),m=n(67294);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var[y,b]=(0,p.k)({strict:!1,name:"FormControlContext"});var E=(0,s.G)(((e,t)=>{var n=(0,u.j)("Form",e),s=function(e){var{id:t,isRequired:n,isInvalid:s,isDisabled:u,isReadOnly:c}=e,l=g(e,["id","isRequired","isInvalid","isDisabled","isReadOnly"]),d=(0,i.Me)(),f=t||"field-"+d,p=f+"-label",y=f+"-feedback",b=f+"-helptext",[E,_]=m.useState(!1),[T,w]=m.useState(!1),[k,x]=(0,a.k)(),O=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({id:b},e,{ref:(0,h.l)(t,(e=>{e&&w(!0)}))})}),[b]),C=m.useCallback((function(e,t){var n,o;return void 0===e&&(e={}),void 0===t&&(t=null),v({},e,{ref:t,"data-focus":(0,r.PB)(k),"data-disabled":(0,r.PB)(u),"data-invalid":(0,r.PB)(s),"data-readonly":(0,r.PB)(c),id:null!=(n=e.id)?n:p,htmlFor:null!=(o=e.htmlFor)?o:f})}),[f,u,k,s,c,p]),A=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({id:y},e,{ref:(0,h.l)(t,(e=>{e&&_(!0)})),"aria-live":"polite"})}),[y]),S=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({},e,l,{ref:t,role:"group"})}),[l]),M=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]),D=m.useCallback((()=>{(0,o.A4)(x.on)}),[x]);return{isRequired:!!n,isInvalid:!!s,isReadOnly:!!c,isDisabled:!!u,isFocused:!!k,onFocus:D,onBlur:x.off,hasFeedbackText:E,setHasFeedbackText:_,hasHelpText:T,setHasHelpText:w,id:f,labelId:p,feedbackId:y,helpTextId:b,htmlProps:l,getHelpTextProps:O,getErrorMessageProps:A,getRootProps:S,getLabelProps:C,getRequiredIndicatorProps:M}}((0,c.Lr)(e)),{getRootProps:f}=s,p=g(s,["getRootProps","htmlProps"]),b=(0,r.cx)("chakra-form-control",e.className),E=m.useMemo((()=>p),[p]);return m.createElement(y,{value:E},m.createElement(l.Fo,{value:n},m.createElement(d.m$.div,v({},f({},t),{className:b,__css:{width:"100%",position:"relative"}}))))}));f.Ts&&(E.displayName="FormControl");var _=(0,s.G)(((e,t)=>{var n=b(),o=(0,l.yK)(),i=(0,r.cx)("chakra-form__helper-text",e.className);return m.createElement(d.m$.div,v({},null==n?void 0:n.getHelpTextProps(e,t),{__css:o.helperText,className:i}))}));function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function k(e){var t=function(e){var t,n,r,i=b(),{id:a,disabled:s,readOnly:u,required:c,isRequired:l,isInvalid:d,isReadOnly:f,isDisabled:p,onFocus:h,onBlur:m}=e,v=w(e,["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"]),g=[];null!=i&&i.hasFeedbackText&&null!=i&&i.isInvalid&&g.push(i.feedbackId);null!=i&&i.hasHelpText&&g.push(i.helpTextId);return T({},v,{"aria-describedby":g.join(" ")||void 0,id:null!=a?a:null==i?void 0:i.id,isDisabled:null!=(t=null!=s?s:p)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=u?u:f)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(r=null!=c?c:l)?r:null==i?void 0:i.isRequired,isInvalid:null!=d?d:null==i?void 0:i.isInvalid,onFocus:(0,o.v0)(null==i?void 0:i.onFocus,h),onBlur:(0,o.v0)(null==i?void 0:i.onBlur,m)})}(e),{isDisabled:n,isInvalid:i,isReadOnly:a,isRequired:s}=t;return T({},w(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:a,required:s,"aria-invalid":(0,r.Qm)(i),"aria-required":(0,r.Qm)(s),"aria-readonly":(0,r.Qm)(a)})}f.Ts&&(_.displayName="FormHelperText");var x=n(9421),O=n(4651),C=n(38554),A=n.n(C);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function M(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var D=(0,s.G)(((e,t)=>{var{children:n,placeholder:o,className:i}=e,a=k(M(e,["children","placeholder","className"]));return m.createElement(d.m$.select,S({},a,{ref:t,className:(0,r.cx)("chakra-select",i)}),o&&m.createElement("option",{value:""},o),n)}));f.Ts&&(D.displayName="SelectField");var I=(0,s.G)(((e,t)=>{var n=(0,u.j)("Select",e),r=(0,c.Lr)(e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:f,minH:p,minHeight:h,iconColor:v,iconSize:g}=r,y=M(r,["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize","isFullWidth"]),[b,E]=(0,O.Vl)(y,x.layoutPropNames),_={width:"100%",height:"fit-content",position:"relative",color:s},T=A()({},n.field,{paddingEnd:"2rem",_focus:{zIndex:"unset"}});return m.createElement(d.m$.div,S({className:"chakra-select__wrapper",__css:_},b,o),m.createElement(D,S({ref:t,height:null!=f?f:l,minH:null!=p?p:h,placeholder:i},E,{__css:T}),e.children),m.createElement(R,S({"data-disabled":e.isDisabled},(v||s)&&{color:v||s},{__css:n.icon},g&&{fontSize:g}),a))}));f.Ts&&(I.displayName="Select");var P=e=>m.createElement("svg",S({viewBox:"0 0 24 24"},e),m.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),N=(0,d.m$)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),R=e=>{var{children:t=m.createElement(P,null)}=e,n=M(e,["children"]),r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return m.createElement(N,S({},n,{className:"chakra-select__icon-wrapper"}),m.isValidElement(t)?r:null)};f.Ts&&(R.displayName="SelectIcon")},24682:function(e,t,n){"use strict";n.d(t,{iR:function(){return K},Ms:function(){return $},gs:function(){return q},Uj:function(){return Y}});var r=n(90063),o=n(2326),i=n(55284),a=n(29676),s=n(89384),u=n(73808),c=n(84461),l=n(28500),d=n(67294),f=n(10762),p=n(51034),h=n(90639);var m=n(94577),v=n(78244),g=n(68327);var y=n(22653),b=n(9839),E=n(75027),_=n(80658);function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k{constructor(e,t,n){if(w(this,"history",[]),w(this,"startEvent",null),w(this,"lastEvent",null),w(this,"lastEventInfo",null),w(this,"handlers",{}),w(this,"removeListeners",_.ZT),w(this,"threshold",3),w(this,"updatePoint",(()=>{if(this.lastEvent&&this.lastEventInfo){var e=A(this.lastEventInfo,this.history),t=null!==this.startEvent,n=(0,_.TE)(e.offset,{x:0,y:0})>=this.threshold;if(t||n){var{timestamp:r}=(0,b.$B)();this.history.push(T({},e.point,{timestamp:r}));var{onStart:o,onMove:i}=this.handlers;t||(null==o||o(this.lastEvent,e),this.startEvent=this.lastEvent),null==i||i(this.lastEvent,e)}}})),w(this,"onPointerMove",((e,t)=>{this.lastEvent=e,this.lastEventInfo=t,(0,E.N5)(e)&&0===e.buttons?this.onPointerUp(e,t):b.ZP.update(this.updatePoint,!0)})),w(this,"onPointerUp",((e,t)=>{var n=A(t,this.history),{onEnd:r,onSessionEnd:o}=this.handlers;null==o||o(e,n),this.end(),r&&this.startEvent&&(null==r||r(e,n))})),!(0,E.N2)(e)){this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var r=(0,E.Qk)(e),{timestamp:o}=(0,b.$B)();this.history=[T({},r.point,{timestamp:o})];var{onSessionStart:i}=t;null==i||i(e,A(r,this.history)),this.removeListeners=(0,_.zG)((0,E.aM)(window,"pointermove",this.onPointerMove),(0,E.aM)(window,"pointerup",this.onPointerUp),(0,E.aM)(window,"pointercancel",this.onPointerUp))}}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),b.qY.update(this.updatePoint)}}function x(e,t){return{x:e.x-t.x,y:e.y-t.y}}function O(e){return e[0]}function C(e){return e[e.length-1]}function A(e,t){return{point:e.point,delta:x(e.point,C(t)),offset:x(e.point,O(t)),velocity:S(t,.1)}}function S(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var M=n(63158),D=n(77581);var I=n(72947);Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;function P(e,t){var n=function(e){var t=parseFloat(e);return(0,u.iy)(t)?0:t}(e),r=10**(null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function N(e,t,n){return 100*(e-t)/(n-t)}function R(e,t,n){return P(Math.round((e-t)/n)*n+t,function(e){if(!Number.isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(n))}function L(e,t,n){return null==e?e:((0,_.ZK)({condition:n<t,message:"clamp: max cannot be less than min"}),Math.min(Math.max(e,t),n))}var j=n(47248);function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function B(e){var{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}function H(){return(H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function U(e){var t,{min:n=0,max:r=100,onChange:o,value:i,defaultValue:a,isReversed:s,orientation:u="horizontal",id:l,isDisabled:b,isReadOnly:E,onChangeStart:T,onChangeEnd:w,step:x=1,getAriaValueText:O,"aria-valuetext":C,"aria-label":A,"aria-labelledby":S,name:P,focusThumbOnChange:U=!0}=e,V=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["min","max","onChange","value","defaultValue","isReversed","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"]),G=(0,f.W)(T),W=(0,f.W)(w),K=(0,f.W)(O),[q,Y]=(0,p.T)({value:i,defaultValue:null!=a?a:z(n,r),onChange:o}),[$,Z]=(0,h.k)(),X=function(e){var t=(0,d.useRef)();return(0,d.useEffect)((()=>{t.current=e}),[e]),t.current}($),[Q,J]=(0,h.k)(),ee=(0,d.useRef)(null),te=!(b||E),ne=L(q,n,r),re=function(e){var t=d.useRef(null);return t.current=e,t}(ne),oe=(0,d.useRef)(re.current),ie=N(s?r-ne+n:ne,n,r),ae="vertical"===u,se=(0,d.useRef)(null),ue=(0,d.useRef)(null),ce=(0,d.useRef)(null),[le,de]=(0,m.ZS)(l,"slider-thumb","slider-track"),fe=(0,d.useCallback)((e=>{var t,o;if(se.current){ee.current="pointer";var i=(0,v.getBox)(se.current).borderBox,{clientX:a,clientY:u}=null!=(t=null==(o=e.touches)?void 0:o[0])?t:e,c=(ae?i.bottom-u:a-i.left)/(ae?i.height:i.width);s&&(c=1-c);var l=function(e,t,n){return(n-t)*e+t}(c,n,r);return x&&(l=parseFloat(R(l,n,x))),l=L(l,n,r)}}),[ae,s,r,n,x]),pe=(r-n)/10,he=x||(r-n)/100,me=(0,d.useCallback)((e=>{te&&(e=L(e=parseFloat(R(e,n,he)),n,r),Y(e))}),[he,r,n,Y,te]),ve=(0,d.useMemo)((()=>({stepUp:function(e){void 0===e&&(e=he),me(s?ne-e:ne+e)},stepDown:function(e){void 0===e&&(e=he),me(s?ne+e:ne-e)},reset:()=>me(a||0),stepTo:e=>me(e)})),[me,s,ne,he,a]),ge=(0,d.useCallback)((e=>{var t={ArrowRight:()=>ve.stepUp(),ArrowUp:()=>ve.stepUp(),ArrowLeft:()=>ve.stepDown(),ArrowDown:()=>ve.stepDown(),PageUp:()=>ve.stepUp(pe),PageDown:()=>ve.stepDown(pe),Home:()=>me(n),End:()=>me(r)}[(0,c.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),ee.current="keyboard")}),[ve,me,r,n,pe]),ye=null!=(t=null==K?void 0:K(ne))?t:C,be=function(e,t){var[n,r]=d.useState(null),o=d.useRef();return(0,g.G)((()=>{if(e.current){var n=e.current;return i(),t&&(window.addEventListener("resize",i),window.addEventListener("scroll",i)),()=>{t&&(window.removeEventListener("resize",i),window.removeEventListener("scroll",i)),o.current&&cancelAnimationFrame(o.current)}}function i(){o.current=requestAnimationFrame((()=>{var e=(0,v.getBox)(n);r(e)}))}}),[t]),n}(ue),{thumbStyle:Ee,rootStyle:_e,trackStyle:Te,innerTrackStyle:we}=(0,d.useMemo)((()=>{var e,t=null!=(e=null==be?void 0:be.borderBox)?e:{width:0,height:0};return function(e){var{orientation:t,trackPercent:n,thumbRect:r,isReversed:o}=e,i=F({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none"},B({orientation:t,vertical:{bottom:"calc("+n+"% - "+r.height/2+"px)"},horizontal:{left:"calc("+n+"% - "+r.width/2+"px)"}})),a=F({position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},B({orientation:t,vertical:{paddingLeft:r.width/2,paddingRight:r.width/2},horizontal:{paddingTop:r.height/2,paddingBottom:r.height/2}})),s=F({position:"absolute"},B({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}}));return{trackStyle:s,innerTrackStyle:F({},s,B({orientation:t,vertical:o?{height:100-n+"%",top:0}:{height:n+"%",bottom:0},horizontal:o?{width:100-n+"%",right:0}:{width:n+"%",left:0}})),rootStyle:a,thumbStyle:i}}({isReversed:s,orientation:u,thumbRect:t,trackPercent:ie})}),[s,u,null==be?void 0:be.borderBox,ie]),ke=(0,d.useCallback)((()=>{ue.current&&U&&setTimeout((()=>(0,j.T)(ue.current)))}),[U]);(0,y.r)((()=>{ke(),"keyboard"===ee.current&&(null==w||w(re.current))}),[ne,w]);var xe=e=>{var t=fe(e);null!=t&&t!==re.current&&Y(t)};!function(e,t){var{onPan:n,onPanStart:r,onPanEnd:o,onPanSessionStart:i,onPanSessionEnd:a}=t,s=Boolean(n||r||o||i||a),u=(0,d.useRef)(null),c={onSessionStart:i,onSessionEnd:a,onStart:r,onMove:n,onEnd(e,t){u.current=null,null==o||o(e,t)}};(0,d.useEffect)((()=>{var e;null==(e=u.current)||e.updateHandlers(c)})),(0,M.m)((()=>e.current),"pointerdown",s?function(e){u.current=new k(e,c)}:_.ZT),(0,D.z)((()=>{var e;null==(e=u.current)||e.end(),u.current=null}))}(ce,{onPanSessionStart(e){te&&xe(e)},onPanSessionEnd(){te&&(X||oe.current===re.current||(null==W||W(re.current),oe.current=re.current))},onPanStart(){te&&(Z.on(),null==G||G(re.current))},onPan(e){te&&xe(e)},onPanEnd(){te&&(Z.off(),null==W||W(re.current))}});var Oe=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),H({},e,V,{ref:(0,I.l)(t,ce),tabIndex:-1,"aria-disabled":(0,c.Qm)(b),"data-focused":(0,c.PB)(Q),style:H({},e.style,_e)})}),[V,b,Q,_e]),Ce=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),H({},e,{ref:(0,I.l)(t,se),id:de,"data-disabled":(0,c.PB)(b),style:H({},e.style,Te)})}),[b,de,Te]),Ae=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),H({},e,{ref:t,style:H({},e.style,we)})}),[we]),Se=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),H({},e,{ref:(0,I.l)(t,ue),role:"slider",tabIndex:te?0:void 0,id:le,"data-active":(0,c.PB)($),"aria-valuetext":ye,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":ne,"aria-orientation":u,"aria-disabled":(0,c.Qm)(b),"aria-readonly":(0,c.Qm)(E),"aria-label":A,"aria-labelledby":A?void 0:S,style:H({},e.style,Ee),onKeyDown:(0,_.v0)(e.onKeyDown,ge),onFocus:(0,_.v0)(e.onFocus,J.on),onBlur:(0,_.v0)(e.onBlur,J.off)})}),[A,S,b,$,E,te,r,n,ge,u,J.off,J.on,le,Ee,ne,ye]),Me=(0,d.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var o=!(e.value<n||e.value>r),i=ne>=e.value,a=N(e.value,n,r),l=H({position:"absolute",pointerEvents:"none"},function(e){var{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}({orientation:u,vertical:{bottom:s?100-a+"%":a+"%"},horizontal:{left:s?100-a+"%":a+"%"}}));return H({},e,{ref:t,role:"presentation","aria-hidden":!0,"data-disabled":(0,c.PB)(b),"data-invalid":(0,c.PB)(!o),"data-highlighted":(0,c.PB)(i),style:H({},e.style,l)})}),[b,s,r,n,u,ne]),De=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),H({},e,{ref:t,type:"hidden",value:ne,name:P})}),[P,ne]);return{state:{value:ne,isFocused:Q,isDragging:$},actions:ve,getRootProps:Oe,getTrackProps:Ce,getInnerTrackProps:Ae,getThumbProps:Se,getMarkerProps:Me,getInputProps:De}}function z(e,t){return t<e?e:e+(t-e)/2}function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[G,W]=(0,l.k)({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <Slider />"}),K=(0,r.G)(((e,t)=>{var n=(0,o.j)("Slider",e),r=U((0,i.Lr)(e)),{getInputProps:u,getRootProps:c}=r,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["getInputProps","getRootProps"]),f=c(),p=u({},t),h=V({display:"inline-block",position:"relative",cursor:"pointer"},n.container);return d.createElement(G,{value:l},d.createElement(a.Fo,{value:n},d.createElement(s.m$.div,V({},f,{className:"chakra-slider",__css:h}),e.children,d.createElement("input",p))))}));K.defaultProps={orientation:"horizontal"},u.Ts&&(K.displayName="Slider");var q=(0,r.G)(((e,t)=>{var{getThumbProps:n}=W(),r=V({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0},(0,a.yK)().thumb),o=n(e,t);return d.createElement(s.m$.div,V({},o,{className:(0,c.cx)("chakra-slider__thumb",e.className),__css:r}))}));u.Ts&&(q.displayName="SliderThumb");var Y=(0,r.G)(((e,t)=>{var{getTrackProps:n}=W(),r=V({overflow:"hidden"},(0,a.yK)().track),o=n(e,t);return d.createElement(s.m$.div,V({},o,{className:(0,c.cx)("chakra-slider__track",e.className),__css:r}))}));u.Ts&&(Y.displayName="SliderTrack");var $=(0,r.G)(((e,t)=>{var{getInnerTrackProps:n}=W(),r=V({width:"inherit",height:"inherit"},(0,a.yK)().filledTrack),o=n(e,t);return d.createElement(s.m$.div,V({},o,{className:"chakra-slider__filled-track",__css:r}))}));u.Ts&&($.displayName="SliderFilledTrack");var Z=(0,r.G)(((e,t)=>{var{getMarkerProps:n}=W(),r=n(e,t);return d.createElement(s.m$.div,V({},r,{className:(0,c.cx)("chakra-slider__marker",e.className)}))}));u.Ts&&(Z.displayName="SliderMark")},90716:function(e,t,n){"use strict";t.__esModule=!0;var r=n(55478);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},55478:function(e,t,n){"use strict";t.__esModule=!0,t.Spinner=void 0;var r=n(48121),o=n(66751),i=n(22944),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.keyframes)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),l=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Spinner",e),s=(0,r.omitThemingProps)(e),l=s.label,d=void 0===l?"Loading...":l,f=s.thickness,p=void 0===f?"2px":f,h=s.speed,m=void 0===h?"0.45s":h,v=s.emptyColor,g=void 0===v?"transparent":v,y=s.className,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,["label","thickness","speed","emptyColor","className"]),E=(0,o.cx)("chakra-spinner",y),_=u({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:p,borderBottomColor:g,borderLeftColor:g,animation:c+" "+m+" linear infinite"},n);return a.createElement(r.chakra.div,u({ref:t,__css:_,className:E},b),d&&a.createElement(i.VisuallyHidden,null,d))}));t.Spinner=l,o.__DEV__&&(l.displayName="Spinner")},56693:function(e,t,n){"use strict";t.__esModule=!0,t.background=void 0;var r=n(77050),o={background:r.t.colors("background"),backgroundColor:r.t.colors("backgroundColor"),backgroundImage:r.t.propT("backgroundImage",r.transforms.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:r.transforms.bgClip},bgSize:r.t.prop("backgroundSize"),bgPosition:r.t.prop("backgroundPosition"),bg:r.t.colors("background"),bgColor:r.t.colors("backgroundColor"),bgPos:r.t.prop("backgroundPosition"),bgRepeat:r.t.prop("backgroundRepeat"),bgAttachment:r.t.prop("backgroundAttachment"),bgGradient:r.t.propT("backgroundImage",r.transforms.gradient),bgClip:{transform:r.transforms.bgClip}};t.background=o,Object.assign(o,{bgImage:o.backgroundImage,bgImg:o.backgroundImage})},24689:function(e,t,n){"use strict";t.__esModule=!0,t.border=void 0;var r=n(77050),o={border:r.t.borders("border"),borderWidth:r.t.borderWidths("borderWidth"),borderStyle:r.t.borderStyles("borderStyle"),borderColor:r.t.colors("borderColor"),borderRadius:r.t.radii("borderRadius"),borderTop:r.t.borders("borderTop"),borderBlockStart:r.t.borders("borderBlockStart"),borderTopLeftRadius:r.t.radii("borderTopLeftRadius"),borderStartStartRadius:r.t.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:r.t.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:r.t.radii("borderTopRightRadius"),borderStartEndRadius:r.t.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:r.t.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:r.t.borders("borderRight"),borderInlineEnd:r.t.borders("borderInlineEnd"),borderBottom:r.t.borders("borderBottom"),borderBlockEnd:r.t.borders("borderBlockEnd"),borderBottomLeftRadius:r.t.radii("borderBottomLeftRadius"),borderBottomRightRadius:r.t.radii("borderBottomRightRadius"),borderLeft:r.t.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:r.t.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:r.t.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:r.t.borders(["borderLeft","borderRight"]),borderInline:r.t.borders("borderInline"),borderY:r.t.borders(["borderTop","borderBottom"]),borderBlock:r.t.borders("borderBlock"),borderTopWidth:r.t.borderWidths("borderTopWidth"),borderBlockStartWidth:r.t.borderWidths("borderBlockStartWidth"),borderTopColor:r.t.colors("borderTopColor"),borderBlockStartColor:r.t.colors("borderBlockStartColor"),borderTopStyle:r.t.borderStyles("borderTopStyle"),borderBlockStartStyle:r.t.borderStyles("borderBlockStartStyle"),borderBottomWidth:r.t.borderWidths("borderBottomWidth"),borderBlockEndWidth:r.t.borderWidths("borderBlockEndWidth"),borderBottomColor:r.t.colors("borderBottomColor"),borderBlockEndColor:r.t.colors("borderBlockEndColor"),borderBottomStyle:r.t.borderStyles("borderBottomStyle"),borderBlockEndStyle:r.t.borderStyles("borderBlockEndStyle"),borderLeftWidth:r.t.borderWidths("borderLeftWidth"),borderInlineStartWidth:r.t.borderWidths("borderInlineStartWidth"),borderLeftColor:r.t.colors("borderLeftColor"),borderInlineStartColor:r.t.colors("borderInlineStartColor"),borderLeftStyle:r.t.borderStyles("borderLeftStyle"),borderInlineStartStyle:r.t.borderStyles("borderInlineStartStyle"),borderRightWidth:r.t.borderWidths("borderRightWidth"),borderInlineEndWidth:r.t.borderWidths("borderInlineEndWidth"),borderRightColor:r.t.colors("borderRightColor"),borderInlineEndColor:r.t.colors("borderInlineEndColor"),borderRightStyle:r.t.borderStyles("borderRightStyle"),borderInlineEndStyle:r.t.borderStyles("borderInlineEndStyle"),borderTopRadius:r.t.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:r.t.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:r.t.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:r.t.radii(["borderTopRightRadius","borderBottomRightRadius"])};t.border=o,Object.assign(o,{rounded:o.borderRadius,roundedTop:o.borderTopRadius,roundedTopLeft:o.borderTopLeftRadius,roundedTopRight:o.borderTopRightRadius,roundedTopStart:o.borderStartStartRadius,roundedTopEnd:o.borderStartEndRadius,roundedBottom:o.borderBottomRadius,roundedBottomLeft:o.borderBottomLeftRadius,roundedBottomRight:o.borderBottomRightRadius,roundedBottomStart:o.borderEndStartRadius,roundedBottomEnd:o.borderEndEndRadius,roundedLeft:o.borderLeftRadius,roundedRight:o.borderRightRadius,roundedStart:o.borderInlineStartRadius,roundedEnd:o.borderInlineEndRadius,borderStart:o.borderInlineStart,borderEnd:o.borderInlineEnd,borderTopStartRadius:o.borderStartStartRadius,borderTopEndRadius:o.borderStartEndRadius,borderBottomStartRadius:o.borderEndStartRadius,borderBottomEndRadius:o.borderEndEndRadius,borderStartRadius:o.borderInlineStartRadius,borderEndRadius:o.borderInlineEndRadius,borderStartWidth:o.borderInlineStartWidth,borderEndWidth:o.borderInlineEndWidth,borderStartColor:o.borderInlineStartColor,borderEndColor:o.borderInlineEndColor,borderStartStyle:o.borderInlineStartStyle,borderEndStyle:o.borderInlineEndStyle})},4561:function(e,t,n){"use strict";t.__esModule=!0,t.color=void 0;var r=n(77050),o={color:r.t.colors("color"),textColor:r.t.colors("color"),fill:r.t.colors("fill"),stroke:r.t.colors("stroke")};t.color=o},93103:function(e,t,n){"use strict";t.__esModule=!0,t.effect=void 0;var r=n(77050),o={boxShadow:r.t.shadows("boxShadow"),mixBlendMode:!0,blendMode:r.t.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:r.t.prop("backgroundBlendMode"),opacity:!0};t.effect=o,Object.assign(o,{shadow:o.boxShadow})},94015:function(e,t,n){"use strict";t.__esModule=!0,t.filter=void 0;var r=n(77050),o={filter:{transform:r.transforms.filter},blur:r.t.blur("--chakra-blur"),brightness:r.t.propT("--chakra-brightness",r.transforms.brightness),contrast:r.t.propT("--chakra-contrast",r.transforms.contrast),hueRotate:r.t.degreeT("--chakra-hue-rotate"),invert:r.t.propT("--chakra-invert",r.transforms.invert),saturate:r.t.propT("--chakra-saturate",r.transforms.saturate),dropShadow:r.t.propT("--chakra-drop-shadow",r.transforms.dropShadow),backdropFilter:{transform:r.transforms.backdropFilter},backdropBlur:r.t.blur("--chakra-backdrop-blur"),backdropBrightness:r.t.propT("--chakra-backdrop-brightness",r.transforms.brightness),backdropContrast:r.t.propT("--chakra-backdrop-contrast",r.transforms.contrast),backdropHueRotate:r.t.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:r.t.propT("--chakra-backdrop-invert",r.transforms.invert),backdropSaturate:r.t.propT("--chakra-backdrop-saturate",r.transforms.saturate)};t.filter=o},17608:function(e,t,n){"use strict";t.__esModule=!0,t.flexbox=void 0;var r=n(77050),o=n(41629),i=n(23744),a={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:r.transforms.flexDirection},experimental_spaceX:{static:i.spaceXTemplate,transform:(0,o.createTransform)({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:i.spaceYTemplate,transform:(0,o.createTransform)({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:r.t.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};t.flexbox=a,Object.assign(a,{flexDir:a.flexDirection})},41474:function(e,t,n){"use strict";t.__esModule=!0,t.grid=void 0;var r=n(77050),o={gridGap:r.t.space("gridGap"),gridColumnGap:r.t.space("gridColumnGap"),gridRowGap:r.t.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};t.grid=o},10147:function(e,t,n){"use strict";t.__esModule=!0;var r=n(56693);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(24689);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(4561);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(93103);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(94015);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(17608);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(41474);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(54497);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(24569);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(59472);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(51237);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(90130);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(39650);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(19309);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(86705);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(75438);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(63646);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(58275);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}))},54497:function(e,t,n){"use strict";t.__esModule=!0,t.interactivity=void 0;var r=n(77050),o={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:r.transforms.outline},outlineOffset:!0,outlineColor:r.t.colors("outlineColor")};t.interactivity=o},24569:function(e,t,n){"use strict";t.__esModule=!0,t.layout=void 0;var r=n(77050),o={width:r.t.sizesT("width"),inlineSize:r.t.sizesT("inlineSize"),height:r.t.sizes("height"),blockSize:r.t.sizes("blockSize"),boxSize:r.t.sizes(["width","height"]),minWidth:r.t.sizes("minWidth"),minInlineSize:r.t.sizes("minInlineSize"),minHeight:r.t.sizes("minHeight"),minBlockSize:r.t.sizes("minBlockSize"),maxWidth:r.t.sizes("maxWidth"),maxInlineSize:r.t.sizes("maxInlineSize"),maxHeight:r.t.sizes("maxHeight"),maxBlockSize:r.t.sizes("maxBlockSize"),d:r.t.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:r.t.propT("float",r.transforms.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};t.layout=o,Object.assign(o,{w:o.width,h:o.height,minW:o.minWidth,maxW:o.maxWidth,minH:o.minHeight,maxH:o.maxHeight,overscroll:o.overscrollBehavior,overscrollX:o.overscrollBehaviorX,overscrollY:o.overscrollBehaviorY})},59472:function(e,t,n){"use strict";t.__esModule=!0,t.list=void 0;var r=n(77050),o={listStyleType:!0,listStylePosition:!0,listStylePos:r.t.prop("listStylePosition"),listStyleImage:!0,listStyleImg:r.t.prop("listStyleImage")};t.list=o},51237:function(e,t,n){"use strict";t.__esModule=!0,t.others=void 0;var r=n(66751),o={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},i={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},a=function(e,t,n){var o={},i=(0,r.memoizedGet)(e,t,{});for(var a in i){a in n&&null!=n[a]||(o[a]=i[a])}return o},s={srOnly:{transform:function(e){return!0===e?o:"focusable"===e?i:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return a(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return a(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return a(t,e,n)}}};t.others=s},90130:function(e,t,n){"use strict";t.__esModule=!0,t.position=void 0;var r=n(77050),o={position:!0,pos:r.t.prop("position"),zIndex:r.t.prop("zIndex","zIndices"),inset:r.t.spaceT(["top","right","bottom","left"]),insetX:r.t.spaceT(["left","right"]),insetInline:r.t.spaceT("insetInline"),insetY:r.t.spaceT(["top","bottom"]),insetBlock:r.t.spaceT("insetBlock"),top:r.t.spaceT("top"),insetBlockStart:r.t.spaceT("insetBlockStart"),bottom:r.t.spaceT("bottom"),insetBlockEnd:r.t.spaceT("insetBlockEnd"),left:r.t.spaceT("left"),insetInlineStart:r.t.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:r.t.spaceT("right"),insetInlineEnd:r.t.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};t.position=o,Object.assign(o,{insetStart:o.insetInlineStart,insetEnd:o.insetInlineEnd})},39650:function(e,t,n){"use strict";t.__esModule=!0,t.ring=void 0;var r=n(77050),o={ring:{transform:r.transforms.ring},ringColor:r.t.colors("--chakra-ring-color"),ringOffset:r.t.prop("--chakra-ring-offset-width"),ringOffsetColor:r.t.colors("--chakra-ring-offset-color"),ringInset:r.t.prop("--chakra-ring-inset")};t.ring=o},19309:function(e,t,n){"use strict";t.__esModule=!0,t.space=void 0;var r=n(77050),o={margin:r.t.spaceT("margin"),marginTop:r.t.spaceT("marginTop"),marginBlockStart:r.t.spaceT("marginBlockStart"),marginRight:r.t.spaceT("marginRight"),marginInlineEnd:r.t.spaceT("marginInlineEnd"),marginBottom:r.t.spaceT("marginBottom"),marginBlockEnd:r.t.spaceT("marginBlockEnd"),marginLeft:r.t.spaceT("marginLeft"),marginInlineStart:r.t.spaceT("marginInlineStart"),marginX:r.t.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:r.t.spaceT("marginInline"),marginY:r.t.spaceT(["marginTop","marginBottom"]),marginBlock:r.t.spaceT("marginBlock"),padding:r.t.space("padding"),paddingTop:r.t.space("paddingTop"),paddingBlockStart:r.t.space("paddingBlockStart"),paddingRight:r.t.space("paddingRight"),paddingBottom:r.t.space("paddingBottom"),paddingBlockEnd:r.t.space("paddingBlockEnd"),paddingLeft:r.t.space("paddingLeft"),paddingInlineStart:r.t.space("paddingInlineStart"),paddingInlineEnd:r.t.space("paddingInlineEnd"),paddingX:r.t.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:r.t.space("paddingInline"),paddingY:r.t.space(["paddingTop","paddingBottom"]),paddingBlock:r.t.space("paddingBlock")};t.space=o,Object.assign(o,{m:o.margin,mt:o.marginTop,mr:o.marginRight,me:o.marginInlineEnd,marginEnd:o.marginInlineEnd,mb:o.marginBottom,ml:o.marginLeft,ms:o.marginInlineStart,marginStart:o.marginInlineStart,mx:o.marginX,my:o.marginY,p:o.padding,pt:o.paddingTop,py:o.paddingY,px:o.paddingX,pb:o.paddingBottom,pl:o.paddingLeft,ps:o.paddingInlineStart,paddingStart:o.paddingInlineStart,pr:o.paddingRight,pe:o.paddingInlineEnd,paddingEnd:o.paddingInlineEnd})},86705:function(e,t,n){"use strict";t.__esModule=!0,t.textDecoration=void 0;var r=n(77050),o={textDecorationColor:r.t.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:r.t.shadows("textShadow")};t.textDecoration=o},75438:function(e,t,n){"use strict";t.__esModule=!0,t.transform=void 0;var r=n(77050),o={clipPath:!0,transform:r.t.propT("transform",r.transforms.transform),transformOrigin:!0,translateX:r.t.spaceT("--chakra-translate-x"),translateY:r.t.spaceT("--chakra-translate-y"),skewX:r.t.degreeT("--chakra-skew-x"),skewY:r.t.degreeT("--chakra-skew-y"),scaleX:r.t.prop("--chakra-scale-x"),scaleY:r.t.prop("--chakra-scale-y"),scale:r.t.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:r.t.degreeT("--chakra-rotate")};t.transform=o},63646:function(e,t,n){"use strict";t.__esModule=!0,t.transition=void 0;var r=n(77050),o={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:r.t.prop("transitionDuration","transition.duration"),transitionProperty:r.t.prop("transitionProperty","transition.property"),transitionTimingFunction:r.t.prop("transitionTimingFunction","transition.easing")};t.transition=o},58275:function(e,t,n){"use strict";t.__esModule=!0,t.typography=void 0;var r=n(77050),o={fontFamily:r.t.prop("fontFamily","fonts"),fontSize:r.t.prop("fontSize","fontSizes",r.transforms.px),fontWeight:r.t.prop("fontWeight","fontWeights"),lineHeight:r.t.prop("lineHeight","lineHeights"),letterSpacing:r.t.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}};t.typography=o},38986:function(e,t,n){"use strict";t.__esModule=!0,t.calc=void 0;var r=n(66751);function o(e){return(0,r.isObject)(e)&&e.reference?e.reference:String(e)}var i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(o).join(" "+e+" ").replace(/calc/g,"")},a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["+"].concat(t))+")"},s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["-"].concat(t))+")"},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["*"].concat(t))+")"},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["/"].concat(t))+")"},l=function(e){var t=o(e);return null==t||Number.isNaN(parseFloat(t))?u(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},d=Object.assign((function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(a.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(s.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(u.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(c.apply(void 0,[e].concat(n)))},negate:function(){return d(l(e))},toString:function(){return e.toString()}}}),{add:a,subtract:s,multiply:u,divide:c,negate:l});t.calc=d},98179:function(e,t,n){"use strict";t.__esModule=!0,t.createThemeVars=function(e,t){var n={cssMap:{},cssVars:{}};return(0,r.walkObject)(e,(function(e,r){var o,i=r[0],a=(null!=(o=s[i])?o:s.defaultHandler)(r,e,t),u=a.cssVars,c=a.cssMap;Object.assign(n.cssVars,u),Object.assign(n.cssMap,c)})),n};var r=n(66751),o=n(38986),i=n(21541);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s={space:function(e,t,n){var r,u=s.defaultHandler(e,t,n),c=e[0]+".-"+e.slice(1).join("."),l=e.join("-"),d=(0,i.cssVar)(l,void 0,n.cssVarPrefix),f=d.variable,p=d.reference,h=o.calc.negate(t),m=o.calc.negate(p);return{cssVars:u.cssVars,cssMap:a({},u.cssMap,(r={},r[c]={value:""+h,var:""+f,varRef:m},r))}},defaultHandler:function(e,t,n){var r,o,a=e.join("."),s=e.join("-"),u=(0,i.cssVar)(s,void 0,n.cssVarPrefix),c=u.variable,l=u.reference;return{cssVars:(r={},r[c]=t,r),cssMap:(o={},o[a]={value:t,var:c,varRef:l},o)}}}},21541:function(e,t){"use strict";function n(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?t.replace(".","\\."):e}function r(e,t){return void 0===t&&(t=""),[t,n(e)].filter(Boolean).join("-")}function o(e,t){return"var("+n(e)+(t?", "+t:"")+")"}function i(e,t){return void 0===t&&(t=""),"--"+r(e,t)}t.__esModule=!0,t.addPrefix=r,t.toVarReference=o,t.toVarDefinition=i,t.cssVar=function(e,t,n){var r=i(e,n);return{variable:r,reference:o(r,t)}}},13991:function(e,t,n){"use strict";t.__esModule=!0;var r=n(38986);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(21541);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(51898);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},88708:function(e,t,n){"use strict";t.__esModule=!0,t.extractTokens=function(e){var t=o;return(0,r.pick)(e,t)},t.omitVars=function(e){e.__cssMap,e.__cssVars,e.__breakpoints;return function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["__cssMap","__cssVars","__breakpoints"])};var r=n(66751);var o=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"]},51898:function(e,t,n){"use strict";t.__esModule=!0,t.toCSSVar=function(e){var t,n=(0,i.omitVars)(e),s=(0,i.extractTokens)(n),u=null==(t=n.config)?void 0:t.cssVarPrefix,c=(0,o.createThemeVars)(s,{cssVarPrefix:u}),l=c.cssMap,d=c.cssVars;return Object.assign(n,{__cssVars:a({},{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},d),__cssMap:l,__breakpoints:(0,r.analyzeBreakpoints)(n.breakpoints)}),n};var r=n(66751),o=n(98179),i=n(88708);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},49423:function(e,t,n){"use strict";t.__esModule=!0,t.getCss=d,t.css=void 0;var r=n(66751),o=n(61527),i=n(19113),a=n(41329);function s(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=function(e,t){return e.startsWith("--")&&(0,r.isString)(t)&&!(0,r.isCssVar)(t)},l=function(e,t){var n,r;if(null==t)return t;var o=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},i=function(e){var t;return null!=(t=o(e))?t:e},a=t.split(",").map((function(e){return e.trim()})),s=a[0],u=a[1];return t=null!=(n=null!=(r=o(s))?r:i(u))?n:i(t)};function d(e){var t=e.configs,n=void 0===t?{}:t,o=e.pseudos,i=void 0===o?{}:o,u=e.theme;return function e(t,o){void 0===o&&(o=!1);var d=(0,r.runIfFn)(t,u),f=(0,a.expandResponsive)(d)(u),p={};for(var h in f){var m,v,g,y,b,E=f[h],_=(0,r.runIfFn)(E,u);h in i&&(h=i[h]),c(h,_)&&(_=l(u,_));var T=n[h];if(!0===T&&(T={property:h}),(0,r.isObject)(_)){var w;p[h]=null!=(w=p[h])?w:{},p[h]=(0,r.mergeWith)({},p[h],e(_,!0))}else{var k=null!=(m=null==(v=T)||null==v.transform?void 0:v.transform(_,u,d))?m:_;k=null!=(g=T)&&g.processResult?e(k,!0):k;var x=(0,r.runIfFn)(null==(y=T)?void 0:y.property,u);if(!o&&null!=(b=T)&&b.static){var O=(0,r.runIfFn)(T.static,u);p=(0,r.mergeWith)({},p,O)}if(x&&Array.isArray(x))for(var C,A=s(x);!(C=A()).done;){p[C.value]=k}else x?"&"===x&&(0,r.isObject)(k)?p=(0,r.mergeWith)({},p,k):p[x]=k:(0,r.isObject)(k)?p=(0,r.mergeWith)({},p,k):p[h]=k}}return p}}t.css=function(e){return function(t){return d({theme:t,pseudos:o.pseudoSelectors,configs:i.systemProps})(e)}}},39907:function(e,t,n){"use strict";t.__esModule=!0;var r={tokenToCSSVar:!0};t.tokenToCSSVar=void 0;var o=n(10147);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(49423);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(83306);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(21644);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(19113);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(13991);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(41629);t.tokenToCSSVar=l.tokenToCSSVar},61527:function(e,t,n){"use strict";t.__esModule=!0,t.pseudoPropNames=t.pseudoSelectors=void 0;var r=n(66751),o=function(e){return e+":focus &, "+e+"[data-focus] &"},i=function(e){return e+":active &, "+e+"[data-active] &"},a=function(e){return e+":disabled &, "+e+"[data-disabled] &"},s=function(e){return e+":invalid &, "+e+"[data-invalid] &"},u=function(e){return e+":checked &, "+e+"[data-checked] &"},c=function(e){return l(e,"[role=group]","[data-group]",".group")},l=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},d={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:c((function(e){return e+":hover &, "+e+"[data-hover] &"})),_groupFocus:c(o),_groupActive:c(i),_groupDisabled:c(a),_groupInvalid:c(s),_groupChecked:c(u),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"};t.pseudoSelectors=d;var f=(0,r.objectKeys)(d);t.pseudoPropNames=f},19113:function(e,t,n){"use strict";t.__esModule=!0,t.isStyleProp=t.propNames=t.layoutPropNames=t.systemProps=void 0;var r=n(66751),o=n(10147),i=n(61527);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.mergeWith)({},o.background,o.border,o.color,o.flexbox,o.layout,o.filter,o.ring,o.interactivity,o.grid,o.others,o.position,o.effect,o.space,o.typography,o.textDecoration,o.transform,o.list,o.transition);t.systemProps=s;var u=Object.assign({},o.space,o.layout,o.flexbox,o.grid,o.position),c=(0,r.objectKeys)(u);t.layoutPropNames=c;var l=[].concat((0,r.objectKeys)(s),i.pseudoPropNames);t.propNames=l;var d=a({},s,i.pseudoSelectors);t.isStyleProp=function(e){return e in d}},83306:function(){},21644:function(){},41629:function(e,t,n){"use strict";t.__esModule=!0,t.createTransform=function(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,i){var a,s=o(t,e)(i),u=null!=(a=null==n?void 0:n(s,i))?a:s;return r&&(u=r(u,i)),u}},t.tokenToCSSVar=void 0;var r=n(66751),o=function(e,t){return function(n){var o=String(t),i=e?e+"."+o:o;return(0,r.isObject)(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t}};t.tokenToCSSVar=o},41329:function(e,t,n){"use strict";t.__esModule=!0,t.expandResponsive=void 0;var r=n(66751);t.expandResponsive=function(e){return function(t){if(!t.__breakpoints)return e;var n=t.__breakpoints,o=n.isResponsive,i=n.toArrayValue,a=n.media,s={};for(var u in e){var c=(0,r.runIfFn)(e[u],t);if(null!=c)if(c=(0,r.isObject)(c)&&o(c)?i(c):c,Array.isArray(c))for(var l=c.slice(0,a.length).length,d=0;d<l;d+=1){var f=null==a?void 0:a[d];f?(s[f]=s[f]||{},null!=c[d]&&(s[f][u]=c[d])):s[u]=c[d]}else s[u]=c}return s}}},77050:function(e,t,n){"use strict";t.__esModule=!0;var r={t:!0,transforms:!0};t.t=void 0;var o=n(41629),i=n(36282),a=n(69131);t.transforms=a.transformFunctions;var s=n(86925);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c={borderWidths:(0,i.toConfig)("borderWidths"),borderStyles:(0,i.toConfig)("borderStyles"),colors:(0,i.toConfig)("colors"),borders:(0,i.toConfig)("borders"),radii:(0,i.toConfig)("radii",a.transformFunctions.px),space:(0,i.toConfig)("space",a.transformFunctions.px),spaceT:(0,i.toConfig)("space",a.transformFunctions.px),degreeT:function(e){return{property:e,transform:a.transformFunctions.degree}},prop:function(e,t,n){return u({property:e,scale:t},t&&{transform:(0,o.createTransform)({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:(0,i.toConfig)("sizes",a.transformFunctions.px),sizesT:(0,i.toConfig)("sizes",a.transformFunctions.fraction),shadows:(0,i.toConfig)("shadows"),logical:i.logical,blur:(0,i.toConfig)("blur",a.transformFunctions.blur)};t.t=c},21612:function(e,t){"use strict";function n(e,t){n=function(e,t){return new u(e,void 0,t)};var i=o(RegExp),a=RegExp.prototype,s=new WeakMap;function u(e,t,n){var r=i.call(this,e,t);return s.set(r,n||s.get(e)),r}function c(e,t){var n=s.get(t);return Object.keys(n).reduce((function(t,r){return t[r]=e[n[r]],t}),Object.create(null))}return r(u,i),u.prototype.exec=function(e){var t=a.exec.call(this,e);return t&&(t.groups=c(t,this)),t},u.prototype[Symbol.replace]=function(e,t){if("string"===typeof t){var n=s.get(this);return a[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+n[t]})))}if("function"===typeof t){var r=this;return a[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==typeof e[e.length-1]&&e.push(c(e,r)),t.apply(this,e)}))}return a[Symbol.replace].call(this,e,t)},n.apply(this,arguments)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function o(e){var t="function"===typeof Map?new Map:void 0;return(o=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function i(e,t,n){return(i=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.__esModule=!0,t.parseGradient=p,t.gradientTransform=t.globalSet=void 0;var c={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},l=new Set(Object.values(c)),d=new Set(["none","-moz-initial","inherit","initial","revert","unset"]);t.globalSet=d;var f=function(e){return e.trim()};function p(e,t){var r,o;if(null==e||d.has(e))return e;var i=null!=(r=null==(o=n(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:o.groups)?r:{},a=i.type,s=i.values;if(!a||!s)return e;var u=a.includes("-gradient")?a:a+"-gradient",p=s.split(",").map(f).filter(Boolean),h=p[0],m=p.slice(1);if(0===(null==m?void 0:m.length))return e;var v=h in c?c[h]:h;return m.unshift(v),u+"("+m.map((function(e){if(l.has(e))return e;var n=e.split(" "),r=n[0],o=n[1],i="colors."+r,a=i in t.__cssMap?t.__cssMap[i].varRef:r;return o?[a,o].join(" "):a})).join(", ")+")"}t.gradientTransform=function(e,t){return p(e,null!=t?t:{})}},36282:function(e,t,n){"use strict";t.__esModule=!0,t.toConfig=function(e,t){return function(n){var o={property:n,scale:e};return o.transform=(0,r.createTransform)({scale:e,transform:t}),o}},t.logical=function(e){var t=e.property,n=e.scale,i=e.transform;return{scale:n,property:o(t),transform:n?(0,r.createTransform)({scale:n,compose:i}):i}};var r=n(41629);var o=function(e){var t=e.rtl,n=e.ltr;return function(e){return"rtl"===e.direction?t:n}}},23744:function(e,t){"use strict";var n,r;t.__esModule=!0,t.getTransformTemplate=function(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(o).join(" ")},t.getTransformGpuTemplate=function(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(o).join(" ")},t.getRingTemplate=function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}},t.spaceYTemplate=t.spaceXTemplate=t.flexDirectionTemplate=t.backdropFilterTemplate=t.filterTemplate=void 0;var o=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var i={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")};t.filterTemplate=i;var a={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};t.backdropFilterTemplate=a;t.flexDirectionTemplate={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}};var s="& > :not(style) ~ :not(style)",u=((n={})[s]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},n);t.spaceXTemplate=u;var c=((r={})[s]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},r);t.spaceYTemplate=c},69131:function(e,t,n){"use strict";t.__esModule=!0,t.transformFunctions=void 0;var r=n(66751),o=n(23744),i=n(21612),a=function(e){return function(t){return e+"("+t+")"}},s={filter:function(e){return"auto"!==e?e:o.filterTemplate},backdropFilter:function(e){return"auto"!==e?e:o.backdropFilterTemplate},ring:function(e){return(0,o.getRingTemplate)(s.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?(0,o.getTransformTemplate)():"auto-gpu"===e?(0,o.getTransformGpuTemplate)():e},px:function(e){return null==e?e:function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e).unitless||(0,r.isNumber)(e)?e+"px":e},fraction:function(e){return!(0,r.isNumber)(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,r.isCssVar)(e)||null==e)return e;var t=(0,r.isString)(e)&&!e.endsWith("deg");return(0,r.isNumber)(e)||t?e+"deg":e},gradient:i.gradientTransform,blur:a("blur"),opacity:a("opacity"),brightness:a("brightness"),contrast:a("contrast"),dropShadow:a("drop-shadow"),grayscale:a("grayscale"),hueRotate:a("hue-rotate"),invert:a("invert"),saturate:a("saturate"),sepia:a("sepia"),bgImage:function(e){return null==e||u(e)||i.globalSet.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=o.flexDirectionTemplate[e])?t:{},r=n.space,i=n.divide,a={flexDirection:e};return r&&(a[r]=1),i&&(a[i]=1),a}};t.transformFunctions=s;var u=function(e){return(0,r.isString)(e)&&e.includes("(")&&e.includes(")")}},86925:function(){},88134:function(e,t,n){"use strict";n.d(t,{r:function(){return T}});var r=n(10762),o=n(90639),i=n(51034),a=n(68327),s=n(72947),u=n(80658),c=n(84461),l=n(47248),d=n(65415),f=n(67294);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e){void 0===e&&(e={});var{defaultIsChecked:t,defaultChecked:n=t,isChecked:h,isFocusable:v,isDisabled:g,isReadOnly:y,isRequired:b,onChange:E,isIndeterminate:_,isInvalid:T,name:w,value:k,id:x,onBlur:O,onFocus:C,"aria-label":A,"aria-labelledby":S,"aria-invalid":M,"aria-describedby":D}=e,I=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["defaultIsChecked","defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isIndeterminate","isInvalid","name","value","id","onBlur","onFocus","aria-label","aria-labelledby","aria-invalid","aria-describedby"]),P=(0,r.W)(E),N=(0,r.W)(O),R=(0,r.W)(C),[L,j]=(0,o.k)(),[F,B]=(0,o.k)(),[H,U]=(0,o.k)(),z=(0,f.useRef)(null),[V,G]=(0,f.useState)(!0),[W,K]=(0,f.useState)(!!n),[q,Y]=(0,i.p)(h,W);(0,u.ZK)({condition:!!t,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var $=(0,f.useCallback)((e=>{y||g?e.preventDefault():(q||K(Y?e.target.checked:!!_||e.target.checked),null==P||P(e))}),[y,g,Y,q,_,P]);(0,a.G)((()=>{z.current&&(z.current.indeterminate=Boolean(_))}),[_]);var Z=g&&!v,X=(0,f.useCallback)((e=>{" "===e.key&&U.on()}),[U]),Q=(0,f.useCallback)((e=>{" "===e.key&&U.off()}),[U]);(0,a.G)((()=>{z.current&&(z.current.checked!==Y&&K(z.current.checked))}),[z.current]);var J=(0,f.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return p({},e,{ref:t,"data-active":(0,c.PB)(H),"data-hover":(0,c.PB)(F),"data-checked":(0,c.PB)(Y),"data-focus":(0,c.PB)(L),"data-indeterminate":(0,c.PB)(_),"data-disabled":(0,c.PB)(g),"data-invalid":(0,c.PB)(T),"data-readonly":(0,c.PB)(y),"aria-hidden":!0,onMouseDown:(0,u.v0)(e.onMouseDown,(e=>{e.preventDefault(),U.on()})),onMouseUp:(0,u.v0)(e.onMouseUp,U.off),onMouseEnter:(0,u.v0)(e.onMouseEnter,B.on),onMouseLeave:(0,u.v0)(e.onMouseLeave,B.off)})}),[H,Y,g,L,F,_,T,y,U,B.off,B.on]),ee=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},I,e,{ref:(0,s.l)(t,(e=>{e&&G("LABEL"===e.tagName)})),onClick:(0,u.v0)(e.onClick,(()=>{var e;V||(null==(e=z.current)||e.click(),(0,l.T)(z.current,{nextTick:!0}))})),"data-disabled":(0,c.PB)(g)})}),[I,g,V]),te=(0,f.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return p({},e,{ref:(0,s.l)(z,t),type:"checkbox",name:w,value:k,id:x,onChange:(0,u.v0)(e.onChange,$),onBlur:(0,u.v0)(e.onBlur,N,j.off),onFocus:(0,u.v0)(e.onFocus,R,(()=>{(0,u.A4)(j.on)})),onKeyDown:(0,u.v0)(e.onKeyDown,X),onKeyUp:(0,u.v0)(e.onKeyUp,Q),required:b,checked:Y,disabled:Z,readOnly:y,"aria-label":A,"aria-labelledby":S,"aria-invalid":M?Boolean(M):T,"aria-describedby":D,"aria-disabled":g,style:d.NL})}),[w,k,x,$,j.off,j.on,N,R,X,Q,b,Y,Z,y,A,S,M,T,D,g]),ne=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:t,onMouseDown:(0,u.v0)(e.onMouseDown,m),onTouchStart:(0,u.v0)(e.onTouchStart,m),"data-disabled":(0,c.PB)(g),"data-checked":(0,c.PB)(Y),"data-invalid":(0,c.PB)(T)})}),[Y,g,T]);return{state:{isInvalid:T,isFocused:L,isChecked:Y,isActive:H,isHovered:F,isIndeterminate:_,isDisabled:g,isReadOnly:y,isRequired:b},getRootProps:ee,getCheckboxProps:J,getInputProps:te,getLabelProps:ne,htmlProps:I}}function m(e){e.preventDefault(),e.stopPropagation()}var v=n(90063),g=n(2326),y=n(55284),b=n(89384),E=n(73808);function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var T=(0,v.G)(((e,t)=>{var n=(0,g.j)("Switch",e),r=(0,y.Lr)(e),{spacing:o="0.5rem",children:i}=r,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["spacing","children"]),{state:s,getInputProps:u,getCheckboxProps:l,getRootProps:d,getLabelProps:p}=h(a),m=f.useMemo((()=>_({display:"inline-block",verticalAlign:"middle",lineHeight:"normal"},n.container)),[n.container]),v=f.useMemo((()=>_({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)),[n.track]),E=f.useMemo((()=>_({userSelect:"none",marginStart:o},n.label)),[o,n.label]);return f.createElement(b.m$.label,_({},d(),{className:(0,c.cx)("chakra-switch",e.className),__css:m}),f.createElement("input",_({className:"chakra-switch__input"},u({},t))),f.createElement(b.m$.span,_({},l(),{className:"chakra-switch__track",__css:v}),f.createElement(b.m$.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":(0,c.PB)(s.isChecked),"data-hover":(0,c.PB)(s.isHovered)})),i&&f.createElement(b.m$.span,_({className:"chakra-switch__label"},p(),{__css:E}),i))}));E.Ts&&(T.displayName="Switch")},15867:function(e,t,n){"use strict";t.__esModule=!0,t.forwardRef=function(e){return r.forwardRef(e)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},46063:function(e,t,n){"use strict";t.__esModule=!0,t.useChakra=d,t.useToken=function(e,t,n){var r=(0,u.useTheme)();if(Array.isArray(t)){var o=[];return n&&(o=Array.isArray(n)?n:[n]),t.map((function(t,n){var a,s=e+"."+t;return(0,i.memoizedGet)(r,s,null!=(a=o[n])?a:t)}))}var a=e+"."+t;return(0,i.memoizedGet)(r,a,null!=n?n:t)},t.useProps=function(e,t){var n,r,o=d(),u=o.theme,f=o.colorMode,p=t.styleConfig||(null==(n=u.components)?void 0:n[e]),h=l({},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,i.filterUndefined)(t)),m=(0,a.useRef)({}),v=(0,i.mergeWith)({},h,{theme:u,colorMode:f});return{styles:(0,a.useMemo)((function(){if(p){var e,t,n,r,o,a=(0,i.runIfFn)(null!=(e=p.baseStyle)?e:{},v),u=(0,i.runIfFn)(null!=(t=null==(n=p.variants)?void 0:n[v.variant])?t:{},v),c=(0,i.runIfFn)(null!=(r=null==(o=p.sizes)?void 0:o[v.size])?r:{},v),l=(0,i.mergeWith)(a,c,u);p.parts&&p.parts.forEach((function(e){var t;l[e]=null!=(t=l[e])?t:{}})),(0,s.default)(m.current,l)||(m.current=l)}return m.current}),[p,v]),props:(0,c.omitThemingProps)(h)}};var r,o=n(12094),i=n(66751),a=n(67294),s=(r=n(69590))&&r.__esModule?r:{default:r},u=n(4867),c=n(93138);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(){return l({},(0,o.useColorMode)(),{theme:(0,u.useTheme)()})}},48121:function(e,t,n){"use strict";t.__esModule=!0;var r={keyframes:!0,omitThemingProps:!0,shouldForwardProp:!0};t.shouldForwardProp=t.omitThemingProps=t.keyframes=void 0;var o=n(12094);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(39907);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(70917);t.keyframes=a.keyframes;var s=n(46063);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(39824);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(4867);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(93138);t.omitThemingProps=l.omitThemingProps;var d=n(40065);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(15867);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(80011);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(99214);t.shouldForwardProp=h.shouldForwardProp},4867:function(e,t,n){"use strict";t.__esModule=!0,t.useTheme=function(){var e=u.useContext(s.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e},t.GlobalStyle=t.useStyles=t.StylesProvider=t.ThemeProvider=void 0;var r=n(12094),o=n(39907),i=n(66751),a=n(19277),s=n(70917),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}t.ThemeProvider=function(e){var t=e.cssVarsRoot,n=void 0===t?":host, :root":t,r=e.theme,i=e.children,a=u.useMemo((function(){return(0,o.toCSSVar)(r)}),[r]);return u.createElement(s.ThemeProvider,{theme:a},u.createElement(s.Global,{styles:function(e){var t;return(t={})[n]=e.__cssVars,t}}),i)};var l=(0,a.createContext)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),d=l[0],f=l[1];t.useStyles=f,t.StylesProvider=d;t.GlobalStyle=function(){var e=(0,r.useColorMode)().colorMode;return u.createElement(s.Global,{styles:function(t){var n=(0,i.memoizedGet)(t,"styles.global"),r=(0,i.runIfFn)(n,{theme:t,colorMode:e});if(r){var a=(0,o.css)(r)(t);return a}}})}},99214:function(e,t,n){"use strict";t.__esModule=!0,t.shouldForwardProp=void 0;var r=n(39907),o=new Set([].concat(r.propNames,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),i=new Set(["htmlWidth","htmlHeight","htmlSize"]);t.shouldForwardProp=function(e){return i.has(e)||!o.has(e)}},40065:function(e,t,n){"use strict";t.__esModule=!0,t.styled=d,t.chakra=t.toCSSObject=void 0;var r,o=n(39907),i=n(66751),a=(r=n(48981))&&r.__esModule?r:{default:r},s=n(99214),u=n(93138);function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var l=function(e){var t=e.baseStyle;return function(e){e.theme;var n=e.css,r=e.__css,a=e.sx,s=c(e,["theme","css","__css","sx"]),u=(0,i.objectFilter)(s,(function(e,t){return(0,o.isStyleProp)(t)})),l=(0,i.runIfFn)(t,e),d=Object.assign({},r,l,(0,i.filterUndefined)(u),a),f=(0,o.css)(d)(e.theme);return n?[f,n]:f}};function d(e,t){var n=null!=t?t:{},r=n.baseStyle,o=c(n,["baseStyle"]);o.shouldForwardProp||(o.shouldForwardProp=s.shouldForwardProp);var i=l({baseStyle:r});return(0,a.default)(e,o)(i)}t.toCSSObject=l;var f=d;t.chakra=f,u.domElements.forEach((function(e){f[e]=f(e)}))},39824:function(){},93138:function(e,t,n){"use strict";t.__esModule=!0,t.omitThemingProps=function(e){return(0,r.omit)(e,["styleConfig","size","variant","colorScheme"])},t.default=o,t.getDisplayName=function(e){return o(e)?"chakra."+e:function(e){return!!r.__DEV__&&((0,r.isString)(e)&&e)||!(0,r.isString)(e)&&e.displayName||!(0,r.isString)(e)&&e.name||"ChakraComponent"}(e)},t.domElements=void 0;var r=n(66751);function o(e){return(0,r.isString)(e)&&(!r.__DEV__||e.charAt(0)===e.charAt(0).toLowerCase())}t.domElements=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"]},80011:function(e,t,n){"use strict";t.__esModule=!0,t.useStyleConfig=u,t.useMultiStyleConfig=function(e,t){return u(e,t,{isMultiPart:!0})};var r,o=n(66751),i=n(67294),a=(r=n(69590))&&r.__esModule?r:{default:r},s=n(46063);function u(e,t,n){var r,u;void 0===t&&(t={}),void 0===n&&(n={});var c=t,l=c.styleConfig,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(c,["styleConfig"]),f=(0,s.useChakra)(),p=f.theme,h=f.colorMode,m=(0,o.memoizedGet)(p,"components."+e),v=l||m,g=(0,o.mergeWith)({theme:p,colorMode:h},null!=(r=null==v?void 0:v.defaultProps)?r:{},(0,o.filterUndefined)((0,o.omit)(d,["children"]))),y=(0,i.useRef)({});return(0,i.useMemo)((function(){if(v){var e,t,r,i,s,u,c=(0,o.runIfFn)(null!=(e=v.baseStyle)?e:{},g),l=(0,o.runIfFn)(null!=(t=null==(r=v.variants)?void 0:r[g.variant])?t:{},g),d=(0,o.runIfFn)(null!=(i=null==(s=v.sizes)?void 0:s[g.size])?i:{},g),f=(0,o.mergeWith)({},c,d,l);null!=(u=n)&&u.isMultiPart&&v.parts&&v.parts.forEach((function(e){var t;f[e]=null!=(t=f[e])?t:{}})),(0,a.default)(y.current,f)||(y.current=f)}return y.current}),[v,g,null==(u=n)?void 0:u.isMultiPart])}},90063:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(67294);function o(e){return r.forwardRef(e)}},11180:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return i.Fg}});var r=n(9421);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var o=n(5070);n.o(o,"useTheme")&&n.d(t,{useTheme:function(){return o.useTheme}});var i=n(29676)},89384:function(e,t,n){"use strict";n.d(t,{m$:function(){return f}});var r=n(9421),o=n(4651),i=n(80658),a=n(48981),s=new Set([...r.propNames,"textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),u=new Set(["htmlWidth","htmlHeight","htmlSize"]),c=e=>u.has(e)||!s.has(e),l=n(55284);function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var f=function(e,t){var n=null!=t?t:{},{baseStyle:s}=n,u=d(n,["baseStyle"]);u.shouldForwardProp||(u.shouldForwardProp=c);var l=(e=>{var{baseStyle:t}=e;return e=>{var{css:n,__css:a,sx:s}=e,u=d(e,["theme","css","__css","sx"]),c=(0,o.lw)(u,((e,t)=>(0,r.isStyleProp)(t))),l=(0,i.Pu)(t,e),f=Object.assign({},a,l,(0,o.YU)(c),s),p=(0,r.iv)(f)(e.theme);return n?[p,n]:p}})({baseStyle:s});return(0,a.default)(e,u)(l)};l.t6.forEach((e=>{f[e]=f(e)}))},5070:function(){},55284:function(e,t,n){"use strict";n.d(t,{t6:function(){return o},Lr:function(){return i}});var r=n(4651),o=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"];function i(e){return(0,r.CE)(e,["styleConfig","size","variant","colorScheme"])}},2326:function(e,t,n){"use strict";n.d(t,{j:function(){return m},m:function(){return h}});var r=n(4651),o=n(38554),i=n.n(o),a=n(80658),s=n(67294),u=n(69590),c=n.n(u),l=n(24738),d=n(29676);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(){return f({},(0,l.If)(),{theme:(0,d.Fg)()})}function h(e,t,n){var o,u;void 0===t&&(t={}),void 0===n&&(n={});var{styleConfig:l}=t,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["styleConfig"]),{theme:f,colorMode:h}=p(),m=(0,r.Wf)(f,"components."+e),v=l||m,g=i()({theme:f,colorMode:h},null!=(o=null==v?void 0:v.defaultProps)?o:{},(0,r.YU)((0,r.CE)(d,["children"]))),y=(0,s.useRef)({});return(0,s.useMemo)((()=>{if(v){var e,t,r,o,s,u,l=(0,a.Pu)(null!=(e=v.baseStyle)?e:{},g),d=(0,a.Pu)(null!=(t=null==(r=v.variants)?void 0:r[g.variant])?t:{},g),f=(0,a.Pu)(null!=(o=null==(s=v.sizes)?void 0:s[g.size])?o:{},g),p=i()({},l,f,d);null!=(u=n)&&u.isMultiPart&&v.parts&&v.parts.forEach((e=>{var t;p[e]=null!=(t=p[e])?t:{}})),c()(y.current,p)||(y.current=p)}return y.current}),[v,g,null==(u=n)?void 0:u.isMultiPart])}function m(e,t){return h(e,t,{isMultiPart:!0})}},81820:function(e,t,n){"use strict";t.__esModule=!0;var r=n(45093);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},45093:function(e,t,n){"use strict";t.__esModule=!0,t.TagCloseButton=t.TagRightIcon=t.TagLeftIcon=t.TagLabel=t.Tag=void 0;var r=n(29559),o=n(48121),i=n(66751),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("Tag",e),r=(0,o.omitThemingProps)(e),i=u({display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%"},n.container);return a.createElement(o.StylesProvider,{value:n},a.createElement(o.chakra.span,u({ref:t},r,{__css:i})))}));t.Tag=c,i.__DEV__&&(c.displayName="Tag");var l=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return a.createElement(o.chakra.span,u({ref:t,isTruncated:!0},e,{__css:n.label}))}));t.TagLabel=l,i.__DEV__&&(l.displayName="TagLabel");var d=(0,o.forwardRef)((function(e,t){return a.createElement(r.Icon,u({ref:t,verticalAlign:"top",marginEnd:"0.5rem"},e))}));t.TagLeftIcon=d,i.__DEV__&&(d.displayName="TagLeftIcon");var f=(0,o.forwardRef)((function(e,t){return a.createElement(r.Icon,u({ref:t,verticalAlign:"top",marginStart:"0.5rem"},e))}));t.TagRightIcon=f,i.__DEV__&&(f.displayName="TagRightIcon");var p=function(e){return a.createElement(r.Icon,u({verticalAlign:"inherit",viewBox:"0 0 512 512"},e),a.createElement("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}))};i.__DEV__&&(p.displayName="TagCloseIcon");var h=function(e){var t=e.isDisabled,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isDisabled","children"]),i=u({display:"flex",alignItems:"center",justifyContent:"center",outline:"0"},(0,o.useStyles)().closeButton);return a.createElement(o.chakra.button,u({},r,{type:"button","aria-label":"close",disabled:t,__css:i}),n||a.createElement(p,null))};t.TagCloseButton=h,i.__DEV__&&(h.displayName="TagCloseButton")},96699:function(e,t,n){"use strict";n.d(t,{u:function(){return A}});var r=n(23459),o=n(67273),i=n(89384),a=n(90063),s=n(2326),u=n(55284),c=n(29676),l=n(4651),d=n(73808),f=n(65415),p=n(39629),h=n(53869),m=n(67294),v={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},g=n(74860),y=n(94577),b=n(34941),E=n(8931),_=n(80658),T=n(88456),w=n(72947);function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e){void 0===e&&(e={});var{openDelay:t=0,closeDelay:n=0,closeOnClick:o=!0,closeOnMouseDown:i,onOpen:a,onClose:s,placement:u,id:c,isOpen:l,defaultIsOpen:d,arrowSize:f=10,arrowShadowColor:p,arrowPadding:h,modifiers:v,isDisabled:x,gutter:O,offset:C}=e,A=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset"]),{isOpen:S,onOpen:M,onClose:D}=(0,g.q)({isOpen:l,defaultIsOpen:d,onOpen:a,onClose:s}),{referenceRef:I,getPopperProps:P,getArrowInnerProps:N,getArrowProps:R}=(0,E.D)({enabled:S,placement:u,arrowPadding:h,modifiers:v,gutter:O,offset:C}),L=(0,y.Me)(c,"tooltip"),j=m.useRef(null),F=m.useRef(),B=m.useRef(),H=m.useCallback((()=>{x||(F.current=window.setTimeout(M,t))}),[x,M,t]),U=m.useCallback((()=>{F.current&&clearTimeout(F.current),B.current=window.setTimeout(D,n)}),[n,D]),z=m.useCallback((()=>{o&&U()}),[o,U]),V=m.useCallback((()=>{i&&U()}),[i,U]);(0,b.O)("keydown",(e=>{S&&"Escape"===e.key&&U()})),m.useEffect((()=>()=>{clearTimeout(F.current),clearTimeout(B.current)}),[]),(0,b.O)("mouseleave",U,j.current);var G=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),k({},e,{ref:(0,w.l)(j,t,I),onMouseEnter:(0,_.v0)(e.onMouseEnter,H),onClick:(0,_.v0)(e.onClick,z),onMouseDown:(0,_.v0)(e.onMouseDown,V),onFocus:(0,_.v0)(e.onFocus,H),onBlur:(0,_.v0)(e.onBlur,U),"aria-describedby":S?L:void 0})}),[H,U,V,S,L,z,I]),W=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),P(k({},e,{style:k({},e.style,{[r.Dq.arrowSize.var]:f?(0,T.px)(f):void 0,[r.Dq.arrowShadowColor.var]:p})}),t)}),[P,f,p]),K=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),k({ref:t},A,e,{id:L,role:"tooltip",style:k({},e.style,{position:"relative",transformOrigin:r.Dq.transformOrigin.varRef})})}),[A,L]);return{isOpen:S,show:H,hide:U,getTriggerProps:G,getTooltipProps:K,getTooltipPositionerProps:W,getArrowProps:R,getArrowInnerProps:N}}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var C=(0,i.m$)(p.E.div),A=(0,a.G)(((e,t)=>{var n=(0,s.m)("Tooltip",e),a=(0,u.Lr)(e),p=(0,c.Fg)(),{children:g,label:y,shouldWrapChildren:b,"aria-label":E,hasArrow:_,bg:T,portalProps:w}=a,k=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps"]);T&&(n.bg=T,n[r.Dq.arrowBg.var]=(0,l.K1)(p,"colors",T));var A,S=x(k);if((0,d.HD)(g)||b)A=m.createElement(i.m$.span,O({tabIndex:0},S.getTriggerProps()),g);else{var M=m.Children.only(g);A=m.cloneElement(M,S.getTriggerProps(M.props,M.ref))}var D=!!E,I=S.getTooltipProps({},t),P=D?(0,l.CE)(I,["role","id"]):I,N=(0,l.ei)(I,["role","id"]);return y?m.createElement(m.Fragment,null,A,m.createElement(h.M,null,S.isOpen&&m.createElement(o.h,w,m.createElement(i.m$.div,O({},S.getTooltipPositionerProps(),{__css:{zIndex:n.zIndex,pointerEvents:"none"}}),m.createElement(C,O({variants:v},P,{initial:"exit",animate:"enter",exit:"exit",__css:n}),y,D&&m.createElement(f.TX,N,E),_&&m.createElement(i.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},m.createElement(i.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))))))):m.createElement(m.Fragment,null,g)}));d.Ts&&(A.displayName="Tooltip")},15267:function(e,t,n){"use strict";n.d(t,{U:function(){return m}});var r=n(80658),o=n(38554),i=n.n(o),a=n(84461),s=n(73808),u=n(53869),c=n(39629),l=n(67294),d=n(24722);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p={exit:{height:{duration:.2,ease:d.YI.ease},opacity:{duration:.3,ease:d.YI.ease}},enter:{height:{duration:.3,ease:d.YI.ease},opacity:{duration:.4,ease:d.YI.ease}}},h={exit:e=>{var t,n,{animateOpacity:r,startingHeight:o,transition:i,transitionEnd:a,delay:s}=e;return f({},r&&{opacity:(n=o,null!=n&&parseInt(n.toString(),10)>0?1:0)},{overflow:"hidden",height:o,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==i?void 0:i.exit)?t:d.p$.exit(p.exit,s)})},enter:e=>{var t,{animateOpacity:n,endingHeight:r,transition:o,transitionEnd:i,delay:a}=e;return f({},n&&{opacity:1},{height:r,transitionEnd:null==i?void 0:i.enter,transition:null!=(t=null==o?void 0:o.enter)?t:d.p$.enter(p.enter,a)})}},m=l.forwardRef(((e,t)=>{var{in:n,unmountOnExit:o,animateOpacity:s=!0,startingHeight:d=0,endingHeight:p="auto",style:m,className:v,transition:g,transitionEnd:y}=e,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"]),[E,_]=l.useState(!1);l.useEffect((()=>{var e=setTimeout((()=>{_(!0)}));return()=>clearTimeout(e)}),[]),(0,r.ZK)({condition:Boolean(d>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var T=parseFloat(d.toString())>0,w={startingHeight:d,endingHeight:p,animateOpacity:s,transition:E?g:{enter:{duration:0}},transitionEnd:i()(y,{enter:{overflow:"initial"},exit:o?void 0:{display:T?"block":"none"}})},k=!o||n,x=n||o?"enter":"exit";return l.createElement(u.M,{initial:!1,custom:w},k&&l.createElement(c.E.div,f({ref:t},b,{className:(0,a.cx)("chakra-collapse",v),style:f({overflow:"hidden",display:"block"},m),custom:w,variants:h,initial:!!o&&"exit",animate:x,exit:"exit"})))}));s.Ts&&(m.displayName="Collapse")},25715:function(e,t,n){"use strict";n.d(t,{M:function(){return f}});var r=n(84461),o=n(73808),i=n(53869),a=n(39629),s=n(67294),u=n(24722);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l={exit:{duration:.15,ease:u.YI.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},d={exit:e=>{var t,{direction:n,transition:r,transitionEnd:o,delay:i}=e,{exit:a}=(0,u.HB)({direction:n});return c({},a,{transition:null!=(t=null==r?void 0:r.exit)?t:u.p$.exit(l.exit,i),transitionEnd:null==o?void 0:o.exit})},enter:e=>{var t,{direction:n,transitionEnd:r,transition:o,delay:i}=e,{enter:a}=(0,u.HB)({direction:n});return c({},a,{transition:null!=(t=null==o?void 0:o.enter)?t:u.p$.enter(l.enter,i),transitionEnd:null==r?void 0:r.enter})}},f=s.forwardRef(((e,t)=>{var{direction:n="right",style:o,unmountOnExit:l,in:f,className:p,transition:h,transitionEnd:m,delay:v}=e,g=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"]),y=(0,u.HB)({direction:n}),b=Object.assign({position:"fixed"},y.position,o),E=!l||f&&l,_=f||l?"enter":"exit",T={transitionEnd:m,transition:h,direction:n,delay:v};return s.createElement(i.M,{custom:T},E&&s.createElement(a.E.div,c({ref:t,initial:"exit",className:(0,r.cx)("chakra-slide",p),animate:_,exit:"exit",custom:T,variants:d,style:b},g)))}));o.Ts&&(f.displayName="Slide")},24722:function(e,t,n){"use strict";n.d(t,{YI:function(){return i},HB:function(){return l},R:function(){return d},p$:function(){return f}});var r=n(73808);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},a={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0},exit:{x:"-100%"}},s={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0},exit:{x:"100%"}},u={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{y:0},exit:{y:"-100%"}},c={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{y:0},exit:{y:"100%"}};function l(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":return s;case"left":return a;case"bottom":return c;case"top":return u;default:return s}}var d={enter:{duration:.2,ease:i.easeOut},exit:{duration:.1,ease:i.easeIn}},f={enter:(e,t)=>o({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter}),exit:(e,t)=>o({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.exit})}},4706:function(e,t){"use strict";function n(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=!0);var o=t-1;if(-1===e)return n>0?0:o;var i=e+n;return i<0?r?o:0:i>=t?r?0:e>t?t:e:i}function r(e,t,r){return void 0===r&&(r=!0),n(e,t,-1,r)}t.__esModule=!0,t.getFirstItem=function(e){return null!=e&&e.length?e[0]:void 0},t.getLastItem=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},t.getPrevItem=function(e,t,n){void 0===n&&(n=!0);var o=r(e,t.length,n);return t[o]},t.getNextItem=function(e,t,r){void 0===r&&(r=!0);var o=n(e,t.length,1,r);return t[o]},t.removeIndex=function(e,t){return e.filter((function(e,n){return n!==t}))},t.addItem=function(e,t){return[].concat(e,[t])},t.removeItem=function(e,t){return e.filter((function(e){return e!==t}))},t.getNextIndex=n,t.getPrevIndex=r,t.chunk=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])},t.getNextItemFromSearch=function(e,t,n,r){if(null==t)return r;if(!r){return e.find((function(e){return n(e).toLowerCase().startsWith(t.toLowerCase())}))}var o=e.filter((function(e){return n(e).toLowerCase().startsWith(t.toLowerCase())}));if(o.length>0){var i;if(o.includes(r)){var a=o.indexOf(r);return(i=a+1)===o.length&&(i=0),o[i]}return i=e.indexOf(o[0]),e[i]}return r}},22229:function(e,t){"use strict";function n(e){return Array.isArray(e)}function r(e){return n(e)&&0===e.length}function o(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!n(e)}function i(e){return o(e)&&0===Object.keys(e).length}t.__esModule=!0,t.isNumber=function(e){return"number"===typeof e},t.isNotNumber=function(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)},t.isNumeric=function(e){return null!=e&&e-parseFloat(e)+1>=0},t.isArray=n,t.isEmptyArray=r,t.isFunction=function(e){return"function"===typeof e},t.isDefined=function(e){return"undefined"!==typeof e&&void 0!==e},t.isUndefined=function(e){return"undefined"===typeof e||void 0===e},t.isObject=o,t.isEmptyObject=i,t.isNotEmptyObject=function(e){return e&&!i(e)},t.isNull=function(e){return null==e},t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isCssVar=function(e){return/^var\(--.+\)$/.test(e)},t.isEmpty=function(e){return n(e)?r(e):o(e)?i(e):null==e||""===e},t.isRefObject=function(e){return"current"in e},t.isInputEvent=function(e){return e&&o(e)&&o(e.target)},t.__TEST__=t.__DEV__=void 0;t.__DEV__=!1;t.__TEST__=!1},42402:function(e,t,n){"use strict";t.__esModule=!0,t.px=a,t.analyzeBreakpoints=function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";var n=c(e),i=Object.entries(e).sort(s).map((function(e,t,n){var r,i=e[0],s=e[1],u=(null!=(r=n[t+1])?r:[])[1];return{breakpoint:i,minW:s,maxW:u=parseFloat(u)>0?function(e){var t;if(!e)return e;var n=(e=null!=(t=a(e))?t:e).endsWith("px")?-1:-.0635;return(0,o.isNumber)(e)?""+(e+n):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+n)}))}(u):void 0,maxWQuery:l(null,u),minWQuery:l(s),minMaxQuery:l(s,u)}})),d=function(e){var t=Object.keys(u(e));return new Set(t)}(e),f=Array.from(d.values());return{keys:d,normalized:n,isResponsive:function(e){var t=Object.keys(e);return t.length>0&&t.every((function(e){return d.has(e)}))},asObject:u(e),asArray:c(e),details:i,media:[null].concat(n.map((function(e){return l(e)})).slice(1)),toArrayValue:function(e){if(!(0,o.isObject)(e))throw new Error("toArrayValue: value must be an object");for(var t=f.map((function(t){var n;return null!=(n=e[t])?n:null}));null===(0,r.getLastItem)(t);)t.pop();return t},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,t,n){var r=f[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}};var r=n(4706),o=n(22229),i=n(95963);function a(e){return null==e?e:function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e).unitless||(0,o.isNumber)(e)?e+"px":e}var s=function(e,t){return parseInt(e[1],10)>parseInt(t[1],10)?1:-1},u=function(e){return(0,i.fromEntries)(Object.entries(e).sort(s))};function c(e){var t=u(e);return Object.assign(Object.values(t),t)}function l(e,t){var n=[];return e&&n.push("@media screen and (min-width: "+a(e)+")"),n.length>0&&t&&n.push("and"),t&&n.push("@media screen and (max-width: "+a(t)+")"),n.join(" ")}},33211:function(e,t,n){"use strict";t.__esModule=!0,t.getAllFocusable=i,t.getFirstFocusable=function(e){var t=i(e);return t.length?t[0]:null},t.getAllTabbable=a,t.getFirstTabbableIn=function(e,t){return a(e,t)[0]||null},t.getLastTabbableIn=function(e,t){var n=a(e,t);return n[n.length-1]||null},t.getNextTabbable=s,t.getPreviousTabbable=u,t.focusNextTabbable=function(e,t){var n=s(e,t);n&&(0,r.isHTMLElement)(n)&&n.focus()},t.focusPreviousTabbable=function(e,t){var n=u(e,t);n&&(0,r.isHTMLElement)(n)&&n.focus()},t.closest=function(e,t){if("closest"in e)return e.closest(t);do{if(c(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};var r=n(99162),o=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function i(e){var t=Array.from(e.querySelectorAll(o));return t.unshift(e),t.filter(r.isFocusable).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function a(e,t){var n=Array.from(e.querySelectorAll(o)),i=n.filter(r.isTabbable);return(0,r.isTabbable)(e)&&i.unshift(e),!i.length&&t?n:i}function s(e,t){var n=i(e),o=n.indexOf(document.activeElement),a=n.slice(o+1);return a.find(r.isTabbable)||n.find(r.isTabbable)||(t?a[0]:null)}function u(e,t){var n=i(e).reverse(),o=n.indexOf(document.activeElement),a=n.slice(o+1);return a.find(r.isTabbable)||n.find(r.isTabbable)||(t?a[0]:null)}function c(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}},14576:function(e,t){"use strict";function n(e){var t;return e instanceof Element&&null!=(t=e.ownerDocument)?t:document}function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}t.__esModule=!0,t.getOwnerWindow=function(e){var t,r;return e instanceof Element&&null!=(t=null==(r=n(e))?void 0:r.defaultView)?t:window},t.getOwnerDocument=n,t.canUseDOM=r,t.getActiveElement=i,t.contains=function(e,t){return!!e&&(e===t||e.contains(t))},t.addDomEvent=function(e,t,n,r){return e.addEventListener(t,n,r),function(){e.removeEventListener(t,n,r)}},t.normalizeEventKey=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t},t.getRelatedTarget=function(e){var t,n,r,o=i(null!=(t=e.target)?t:e.currentTarget),a=e.nativeEvent.explicitOriginalTarget;return null!=(n=null!=(r=e.relatedTarget)?r:a)?n:o},t.isRightClick=function(e){return 0!==e.button},t.cx=t.ariaAttr=t.dataAttr=t.isBrowser=void 0;var o=r();t.isBrowser=o;t.dataAttr=function(e){return e?"":void 0};t.ariaAttr=function(e){return!!e||void 0};function i(e){var t=n(e);return null==t?void 0:t.activeElement}t.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}},86770:function(e,t,n){"use strict";t.__esModule=!0,t.focus=function(e,t){void 0===t&&(t={});var n=t,u=n.isActive,c=void 0===u?i.isActiveElement:u,l=n.nextTick,d=n.preventScroll,f=void 0===d||d,p=n.selectTextIfInput,h=void 0===p||p;if(!e||c(e))return-1;function m(){if(e){if(function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}())e.focus({preventScroll:f});else if(e.focus(),f)!function(e){for(var t,n=function(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(t=n()).done;){var r=t.value,o=r.element,i=r.scrollTop,s=r.scrollLeft;o.scrollTop=i,o.scrollLeft=s}}(function(e){var t=(0,r.getOwnerDocument)(e),n=e.parentNode,o=[],i=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==i;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;i instanceof HTMLElement&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft});return o}(e));(0,i.isInputElement)(e)&&h&&e.select()}else(0,o.warn)({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}if(l)return requestAnimationFrame(m);return m(),-1};var r=n(14576),o=n(25981),i=n(99162);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=null},25981:function(e,t,n){"use strict";t.__esModule=!0,t.runIfFn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return(0,r.isFunction)(e)?e.apply(void 0,n):e},t.callAllHandlers=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.some((function(t){return null==t||t(e),null==e?void 0:e.defaultPrevented}))}},t.callAll=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){null==t||t(e)}))}},t.once=o,t.distance=function(e,t){if((0,r.isNumber)(e)&&(0,r.isNumber)(t))return u(e,t);if(c(e)&&c(t)){var n=u(e.x,t.x),o=u(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}return 0},t.pipe=t.scheduleMicrotask=t.error=t.warn=t.noop=t.compose=void 0;var r=n(22229);function o(e){var t;return function(){if(e){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=e.apply(this,r),e=null}return t}}t.compose=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}),e)};t.noop=function(){};var i=o((function(e){return function(){var t=e.condition,n=e.message;t&&r.__DEV__&&console.warn(n)}}));t.warn=i;var a=o((function(e){return function(){var t=e.condition,n=e.message;t&&r.__DEV__&&console.error(n)}}));t.error=a;var s=r.__TEST__?function(e){return e()}:"function"===typeof queueMicrotask?queueMicrotask:function(e){Promise.resolve().then(e)};t.scheduleMicrotask=s;t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}};var u=function(e,t){return Math.abs(e-t)},c=function(e){return"x"in e&&"y"in e}},66751:function(e,t,n){"use strict";t.__esModule=!0;var r=n(78244);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(4706);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(22229);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(42402);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(14576);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(33211);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(86770);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(25981);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(65636);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(39407);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(95963);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(52952);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(91373);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(4535);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(99162);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(27489);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(58594);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(38140);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}))},65636:function(e,t){"use strict";t.__esModule=!0,t.determineLazyBehavior=function(e){var t=e.hasBeenSelected,n=e.isLazy,r=e.isSelected,o=e.lazyBehavior,i=void 0===o?"unmount":o;return!n||(!!r||!("keepMounted"!==i||!t))}},39407:function(e,t,n){"use strict";t.__esModule=!0,t.toPrecision=s,t.countDecimalPlaces=u,t.valueToPercent=function(e,t,n){return 100*(e-t)/(n-t)},t.percentToValue=function(e,t,n){return(n-t)*e+t},t.roundValueToStep=function(e,t,n){var r=Math.round((e-t)/n)*n+t,o=u(n);return s(r,o)},t.clampValue=function(e,t,n){return null==e?e:((0,o.warn)({condition:n<t,message:"clamp: max cannot be less than min"}),Math.min(Math.max(e,t),n))},t.maxSafeInteger=t.minSafeInteger=void 0;var r=n(22229),o=n(25981),i=Number.MIN_SAFE_INTEGER||-9007199254740991;t.minSafeInteger=i;var a=Number.MAX_SAFE_INTEGER||9007199254740991;function s(e,t){var n=function(e){var t=parseFloat(e);return(0,r.isNotNumber)(t)?0:t}(e),o=Math.pow(10,null!=t?t:10);return n=Math.round(n*o)/o,t?n.toFixed(t):n.toString()}function u(e){if(!Number.isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}t.maxSafeInteger=a},95963:function(e,t,n){"use strict";t.__esModule=!0,t.omit=function(e,t){var n={};return Object.keys(e).forEach((function(r){t.includes(r)||(n[r]=e[r])})),n},t.pick=function(e,t){var n={};return t.forEach((function(t){t in e&&(n[t]=e[t])})),n},t.split=function(e,t){var n={},r={};return Object.keys(e).forEach((function(o){t.includes(o)?n[o]=e[o]:r[o]=e[o]})),[n,r]},t.get=i,t.getWithDefault=function(e,t){return s(t,e,e)},t.objectFilter=u,t.getCSSVar=t.fromEntries=t.objectKeys=t.filterUndefined=t.memoizedGet=t.memoize=t.mergeWith=void 0;var r,o=(r=n(38554))&&r.__esModule?r:{default:r};function i(e,t,n,r){var o="string"===typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}t.mergeWith=o.default;var a=function(e){var t=new WeakMap;return function(n,r,o,i){if("undefined"===typeof n)return e(n,r,o);t.has(n)||t.set(n,new Map);var a=t.get(n);if(a.has(r))return a.get(r);var s=e(n,r,o,i);return a.set(r,s),s}};t.memoize=a;var s=a(i);function u(e,t){var n={};return Object.keys(e).forEach((function(r){var o=e[r];t(o,r,e)&&(n[r]=o)})),n}t.memoizedGet=s;t.filterUndefined=function(e){return u(e,(function(e){return null!==e&&void 0!==e}))};t.objectKeys=function(e){return Object.keys(e)};t.fromEntries=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})};t.getCSSVar=function(e,t,n){var r,o;return null!=(r=null==(o=e.__cssMap[t+"."+n])?void 0:o.varRef)?r:n}},52952:function(e,t,n){"use strict";t.__esModule=!0,t.PanSession=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(84839)),o=n(91373),i=n(25981);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){function e(e,t,n){var a=this;if(u(this,"history",[]),u(this,"startEvent",null),u(this,"lastEvent",null),u(this,"lastEventInfo",null),u(this,"handlers",{}),u(this,"removeListeners",i.noop),u(this,"threshold",3),u(this,"updatePoint",(function(){if(a.lastEvent&&a.lastEventInfo){var e=p(a.lastEventInfo,a.history),t=null!==a.startEvent,n=(0,i.distance)(e.offset,{x:0,y:0})>=a.threshold;if(t||n){var o=(0,r.getFrameData)().timestamp;a.history.push(s({},e.point,{timestamp:o}));var u=a.handlers,c=u.onStart,l=u.onMove;t||(null==c||c(a.lastEvent,e),a.startEvent=a.lastEvent),null==l||l(a.lastEvent,e)}}})),u(this,"onPointerMove",(function(e,t){a.lastEvent=e,a.lastEventInfo=t,(0,o.isMouseEvent)(e)&&0===e.buttons?a.onPointerUp(e,t):r.default.update(a.updatePoint,!0)})),u(this,"onPointerUp",(function(e,t){var n=p(t,a.history),r=a.handlers,o=r.onEnd,i=r.onSessionEnd;null==i||i(e,n),a.end(),o&&a.startEvent&&(null==o||o(e,n))})),!(0,o.isMultiTouchEvent)(e)){this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var c=(0,o.extractEventInfo)(e),l=(0,r.getFrameData)().timestamp;this.history=[s({},c.point,{timestamp:l})];var d=t.onSessionStart;null==d||d(e,p(c,this.history)),this.removeListeners=(0,i.pipe)((0,o.addPointerEvent)(window,"pointermove",this.onPointerMove),(0,o.addPointerEvent)(window,"pointerup",this.onPointerUp),(0,o.addPointerEvent)(window,"pointercancel",this.onPointerUp))}}var t=e.prototype;return t.updateHandlers=function(e){this.handlers=e},t.end=function(){var e;null==(e=this.removeListeners)||e.call(this),r.cancelSync.update(this.updatePoint)},e}();function l(e,t){return{x:e.x-t.x,y:e.y-t.y}}function d(e){return e[0]}function f(e){return e[e.length-1]}function p(e,t){return{point:e.point,delta:l(e.point,f(t)),offset:l(e.point,d(t)),velocity:h(t,.1)}}t.PanSession=c;function h(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}},91373:function(e,t,n){"use strict";t.__esModule=!0,t.isMouseEvent=function(e){if("undefined"!==typeof PointerEvent&&e instanceof PointerEvent)return!("mouse"!==e.pointerType);return e instanceof MouseEvent},t.isTouchEvent=o,t.extractEventInfo=u,t.getViewportPointFromEvent=function(e){return u(e,"client")},t.getPointerEventName=f,t.addPointerEvent=function(e,t,n,o){return(0,r.addDomEvent)(e,f(t),c(n,"pointerdown"===t),o)},t.isMultiTouchEvent=function(e){return o(e)&&e.touches.length>1},t.wrapPointerEventHandler=void 0;var r=n(14576);function o(e){return!!e.touches}var i={pageX:0,pageY:0};function a(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||i;return{x:n[t+"X"],y:n[t+"Y"]}}function s(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function u(e,t){return void 0===t&&(t="page"),{point:o(e)?a(e,t):s(e,t)}}var c=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,u(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r};t.wrapPointerEventHandler=c;var l={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},d={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function f(e){return r.isBrowser&&null===window.onpointerdown?e:r.isBrowser&&null===window.ontouchstart?d[e]:r.isBrowser&&null===window.onmousedown?l[e]:e}},4535:function(e,t,n){"use strict";t.__esModule=!0,t.mapResponsive=function(e,t){if((0,o.isArray)(e))return e.map((function(e){return null===e?null:t(e)}));if((0,o.isObject)(e))return(0,i.objectKeys)(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{});if(null!=e)return t(e);return null},t.objectToArrayNotation=function(e,t){void 0===t&&(t=a);var n=t.map((function(t){var n;return null!=(n=e[t])?n:null}));for(;null===(0,r.getLastItem)(n);)n.pop();return n},t.arrayToObjectNotation=function(e,t){void 0===t&&(t=a);var n={};return e.forEach((function(e,r){var o=t[r];null!=e&&(n[o]=e)})),n},t.isResponsiveObjectLike=function(e,t){void 0===t&&(t=a);var n=Object.keys(e);return n.length>0&&n.every((function(e){return t.includes(e)}))},t.isCustomBreakpoint=t.breakpoints=void 0;var r=n(4706),o=n(22229),i=n(95963),a=Object.freeze(["base","sm","md","lg","xl","2xl"]);t.breakpoints=a;t.isCustomBreakpoint=function(e){return Number.isNaN(Number(e))}},99162:function(e,t,n){"use strict";t.__esModule=!0,t.isDisabled=a,t.isInputElement=function(e){return s(e)&&"input"===e.tagName.toLowerCase()&&"select"in e},t.isActiveElement=function(e){return(e instanceof HTMLElement?(0,r.getOwnerDocument)(e):document).activeElement===e},t.hasFocusWithin=function(e){return!!document.activeElement&&e.contains(document.activeElement)},t.isHTMLElement=s,t.isHidden=u,t.isContentEditable=c,t.isFocusable=l,t.isTabbable=function(e){return!!e&&(s(e)&&l(e)&&!i(e))},t.hasNegativeTabIndex=t.hasTabIndex=t.hasDisplayNone=void 0;var r=n(14576);t.hasDisplayNone=function(e){return"none"===window.getComputedStyle(e).display};var o=function(e){return e.hasAttribute("tabindex")};t.hasTabIndex=o;var i=function(e){return o(e)&&-1===e.tabIndex};function a(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}function s(e){return e instanceof HTMLElement}function u(e){return!(!e.parentElement||!u(e.parentElement))||e.hidden}function c(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}function l(e){if(!s(e)||u(e)||a(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in n?n[t]():!!c(e)||o(e)}t.hasNegativeTabIndex=i},27489:function(){},58594:function(e,t,n){"use strict";t.__esModule=!0,t.detectDeviceType=function(e){var t=e.userAgent;return/(tablet)|(iPad)|(Nexus 9)/i.test(t)?"tablet":/(mobi)/i.test(t)?"phone":"desktop"},t.detectOS=function(e){return!!r.isBrowser&&function(e){var t=e.userAgent,n=e.platform;switch(!0){case/Android/.test(t):return"Android";case/iPhone|iPad|iPod/.test(n):return"iOS";case/Win/.test(n):return"Windows";case/Mac/.test(n):return"Mac";case/CrOS/.test(t):return"Chrome OS";case/Firefox/.test(t):return"Firefox OS";default:return null}}(window.navigator)===e},t.detectBrowser=function(e){return!!r.isBrowser&&function(e){var t=e.userAgent,n=e.vendor,r=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case r&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(n):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case r:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===e},t.detectTouch=function(){return!!r.isBrowser&&(null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend)};var r=n(14576)},38140:function(e,t,n){"use strict";t.__esModule=!0,t.walkObject=function(e,t){return function e(n,o){return void 0===o&&(o=[]),(0,r.isArray)(n)?n.map((function(t,n){return e(t,[].concat(o,[String(n)]))})):(0,r.isObject)(n)?Object.fromEntries(Object.entries(n).map((function(t){var n=t[0];return[n,e(t[1],[].concat(o,[n]))]}))):t(n,o)}(e)};var r=n(22229)},77658:function(e,t,n){"use strict";n.d(t,{t5:function(){return i}});var r=n(17768),o=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function i(e){var t=Array.from(e.querySelectorAll(o));return t.unshift(e),t.filter(r.EB).filter((e=>"none"!==window.getComputedStyle(e).display))}},47248:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(84461),o=n(80658),i=n(17768);function a(e,t){void 0===t&&(t={});var{isActive:n=i.H9,nextTick:a,preventScroll:u=!0,selectTextIfInput:c=!0}=t;if(!e||n(e))return-1;function l(){if(e){if(function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}())e.focus({preventScroll:u});else if(e.focus(),u)!function(e){for(var{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(function(e){var t=(0,r.lZ)(e),n=e.parentNode,o=[],i=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==i;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;i instanceof HTMLElement&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft});return o}(e));(0,i.cK)(e)&&c&&e.select()}else(0,o.ZK)({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}return a?requestAnimationFrame(l):(l(),-1)}var s=null},55463:function(e,t,n){"use strict";function r(e){var{hasBeenSelected:t,isLazy:n,isSelected:r,lazyBehavior:o="unmount"}=e;return!n||(!!r||!("keepMounted"!==o||!t))}n.d(t,{V:function(){return r}})},75027:function(e,t,n){"use strict";n.d(t,{N5:function(){return o},Qk:function(){return c},JN:function(){return l},f7:function(){return p},aM:function(){return h},N2:function(){return m}});var r=n(84461);function o(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function i(e){return!!e.touches}var a={pageX:0,pageY:0};function s(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||a;return{x:n[t+"X"],y:n[t+"Y"]}}function u(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function c(e,t){return void 0===t&&(t="page"),{point:i(e)?s(e,t):u(e,t)}}var l=function(e,t){void 0===t&&(t=!1);var n,r=t=>e(t,c(t));return t?(n=r,e=>{var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},d={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},f={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function p(e){return r.jU&&null===window.onpointerdown?e:r.jU&&null===window.ontouchstart?f[e]:r.jU&&null===window.onmousedown?d[e]:e}function h(e,t,n,o){return(0,r.EV)(e,p(t),l(n,"pointerdown"===t),o)}function m(e){return i(e)&&e.touches.length>1}},17768:function(e,t,n){"use strict";n.d(t,{cK:function(){return i},H9:function(){return a},EB:function(){return c},Wq:function(){return l}});var r=n(84461),o=e=>e.hasAttribute("tabindex");function i(e){return s(e)&&"input"===e.tagName.toLowerCase()&&"select"in e}function a(e){return(e instanceof HTMLElement?(0,r.lZ)(e):document).activeElement===e}function s(e){return e instanceof HTMLElement}function u(e){return!(!e.parentElement||!u(e.parentElement))||e.hidden}function c(e){if(!s(e)||u(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||o(e)}function l(e){return!!e&&(s(e)&&c(e)&&!(e=>o(e)&&-1===e.tabIndex)(e))}},22944:function(e,t,n){"use strict";t.__esModule=!0;var r={};t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(13267));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}t.default=o.default,Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}))},13267:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.VisuallyHiddenInput=t.VisuallyHidden=t.visuallyHiddenStyle=void 0;var r=n(48121),o=n(66751),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};t.visuallyHiddenStyle=i;var a=(0,r.chakra)("span",{baseStyle:i});t.VisuallyHidden=a,o.__DEV__&&(a.displayName="VisuallyHidden");var s=(0,r.chakra)("input",{baseStyle:i});t.VisuallyHiddenInput=s,o.__DEV__&&(s.displayName="VisuallyHiddenInput");var u=a;t.default=u},65415:function(e,t,n){"use strict";n.d(t,{NL:function(){return i},TX:function(){return a}});var r=n(89384),o=n(73808),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},a=(0,r.m$)("span",{baseStyle:i});o.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:i});o.Ts&&(s.displayName="VisuallyHiddenInput")},48981:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(67294);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=n(67866),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),u=n(65199),c=n(70444),l=n(94199),d=s,f=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:f},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=h(t,n,s),m=f||p(d),v=!m("as");return function(){var g=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==g[0]||void 0===g[0].raw)y.push.apply(y,g);else{0,y.push(g[0][0]);for(var b=g.length,E=1;E<b;E++)y.push(g[E],g[0][E])}var _=(0,u.w)((function(e,t,n){var o=v&&e.as||d,i="",s=[],h=e;if(null==e.theme){for(var g in h={},e)h[g]=e[g];h.theme=(0,r.useContext)(u.T)}"string"===typeof e.className?i=(0,c.f)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var b=(0,l.O)(y.concat(s),t.registered,h);(0,c.M)(t,b,"string"===typeof o);i+=t.key+"-"+b.name,void 0!==a&&(i+=" "+a);var E=v&&void 0===f?p(o):m,_={};for(var T in e)v&&"as"===T||E(T)&&(_[T]=e[T]);return _.className=i,_.ref=n,(0,r.createElement)(o,_)}));return _.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=d,_.__emotion_styles=y,_.__emotion_forwardProp=f,Object.defineProperty(_,"toString",{value:function(){return"."+a}}),_.withComponent=function(t,r){return e(t,o({},n,r,{shouldForwardProp:h(_,r,!0)})).apply(void 0,y)},_}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){m[e]=m(e)}));var v=m},32351:function(e,t,n){"use strict";n.d(t,{_7:function(){return m}});var r=n(67294);var o=function(e){(0,r.useEffect)((function(){e()}),[])};var i=function(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var a=function(e){var t=(0,r.useRef)(e);t.current=e,(0,r.useEffect)((function(){return function(){t.current()}}),[])};"undefined"!==typeof window&&"undefined"!==typeof document?r.useLayoutEffect:r.useEffect;var s=n(34699),u=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t};function c(e,t){for(var n=0;n<e.length&&n<t.length;n++)if(!u(t[n],e[n]))return!1;return!0}var l=function(e){var t=(0,r.useRef)(e);return t.current=e,t};var d=function(e){var t=l(e),n=(0,r.useRef)();return void 0===n.current&&(n.current=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(this,n)}),n.current};function f(e){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var o,i=!1,s=!0;"number"===typeof n?o=n:"object"===f(n)&&n&&("wait"in n&&(o=+n.wait),"leading"in n&&(i=!!n.leading),"trailing"in n&&(s=!!n.trailing));var u=(0,r.useRef)(),c=(0,r.useRef)(),l=(0,r.useRef)(),p=(0,r.useRef)(),h=(0,r.useRef)(),m=(0,r.useRef)(),v=d((function(){var n=Date.now(),r=n-h.current,i=n-m.current;if(p.current&&clearTimeout(p.current),r>=o||e&&i>=o)p.current=void 0,h.current=void 0,s&&c.current&&(m.current=n,l.current=t.apply(u.current,c.current));else{var a=o-r,d=o-i,f=e?Math.min(a,d):a;p.current=setTimeout(v,f)}})),g=d((function(){var e=Date.now(),n=h.current;u.current=this;for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return c.current=a,h.current=e,(void 0===n||e-n>=o)&&void 0===p.current&&(m.current=e,p.current=setTimeout(v,o),i&&(l.current=t.apply(u.current,c.current))),l.current})),y=(0,r.useCallback)((function(){void 0!==p.current&&(clearTimeout(p.current),p.current=void 0),u.current=void 0,c.current=void 0,h.current=void 0,m.current=void 0}),[]),b=d((function(){return void 0!==p.current&&c.current&&(l.current=t.apply(u.current,c.current),y()),l.current}));return a(y),[g,{flush:b,cancel:y}]}};var h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p(e);return function(e,n){var o=l(e),a=(0,r.useState)(e),c=(0,s.Z)(a,2),f=c[0],p=c[1],h=(0,r.useRef)(f);function m(e){u(h.current,e)||(h.current=e,p(e))}var v=t(m,n),g=(0,s.Z)(v,2),y=g[0],b=g[1].cancel,E=d((function(e){b(),m(arguments.length>0?e:o.current)}));return i((function(){y(e)}),[e]),[f,{flush:E,cancel:b}]}};h(!1),h(!0),p(!1),p(!0);"undefined"!==typeof window&&window.requestIdleCallback&&window.cancelIdleCallback&&(window.requestIdleCallback,window.cancelIdleCallback);var m=function(e,t){var n,o;"number"===typeof t?n=t:"object"===f(t)&&null!==t&&("duration"in t&&(n=+t.duration),"function"===typeof t.algorithm&&(o=t.algorithm));var i=(0,r.useRef)(),s=(0,r.useRef)(),u=d(e),c=d((function(e){void 0===s.current&&(s.current=e);var t=e-s.current,r=n>0?t/n:1;r<0&&(r=0),r>1&&(r=1),r<1&&(i.current=requestAnimationFrame(c)),u(o?o(r):r)})),l=(0,r.useCallback)((function(){void 0!==i.current&&(cancelAnimationFrame(i.current),i.current=void 0),s.current=void 0}),[]),p=d((function(){l(),i.current=requestAnimationFrame(c)}));return a(l),[p,l]};var v=function(){var e=(0,r.useRef)(!1);return o((function(){e.current=!0})),e};var g=function(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(e);return n.current=t.current,t.current=e,n};var y=function(e,t,n,o){var i,a,s;"boolean"===typeof o?i=o:"object"===f(o)&&null!==o&&("capture"in o&&(i=!!o.capture),"once"in o&&(a=!!o.once),"passive"in o&&(s=!!o.passive));var u=d(n);(0,r.useEffect)((function(){if(e&&e.addEventListener&&e.removeEventListener)return e.addEventListener(t,u,{capture:i,once:a,passive:s}),function(){e.removeEventListener(t,u,{capture:i})}}),[e,t,u,i,a,s])};"undefined"!==typeof window&&"undefined"!==typeof window.navigator&&window.navigator.onLine;var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=v(),o=g(t),i=(0,r.useRef)();return n.current&&c(o.current,t)||(i.current=e()),i.current},E={ico:"image/x-icon",png:"image/png",gif:"image/gif"};"undefined"!==typeof window&&window.matchMedia;n(36808);function _(e,t){var n=(0,r.useRef)(),o=(0,r.useState)(t),a=(0,s.Z)(o,2),u=a[0],c=a[1],l=d((function(e){n.current=e,c(e)})),f=d((function(){c(t)}));return i((function(){n.current=void 0,c(t)}),[e]),i((function(){void 0===n.current&&c(t)}),[t]),[u,{set:l,remove:f}]}var T=function(e){return e?function(t,n,o){var a=o&&o.serialize?o.serialize:JSON.stringify,u=o&&o.deserialize?o.deserialize:JSON.parse,c=d((function(){try{var r=e.getItem(t);return null!==r?u(r):n}catch(o){return n}})),l=d((function(n){try{e.setItem(t,a(n))}catch(r){}})),p=d((function(){e.removeItem(t)})),h=(0,r.useState)(c()),m=(0,s.Z)(h,2),v=m[0],g=m[1],y=d((function(e){l(e),g(e)})),b=d((function(){p(),g(c())}));return i((function(){g(c())}),[t]),i((function(){null===e.getItem(t)&&g(n)}),[n]),(0,r.useEffect)((function(){function n(n){n.storageArea===e&&n.key===t&&g(c())}if(void 0!==("undefined"===typeof window?"undefined":f(window)))return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}}),[t]),[v,{set:y,remove:b}]}:_};T("undefined"!==typeof localStorage?localStorage:null),T("undefined"!==typeof sessionStorage?sessionStorage:null)},90478:function(e,t,n){"use strict";var r=n(50791),o=Object.prototype.hasOwnProperty,i={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function a(e){var t;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(t in i)o.call(i,t)&&void 0!==e.properties[t]&&(s(e,i[t],e.properties[t]),delete e.properties[t])}function s(e,t,n){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var o=r+t+": "+n+";";e.properties.style=o}e.exports=function(e){return r(e,"element",a),e}},93790:function(e){"use strict";function t(e){if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if(null===e||void 0===e)return o;if("object"===typeof e)return("length"in e?r:n)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,o=-1;++o<r;)n[o]=t(e[o]);return n}(e),r=n.length;return function(){var e=-1;for(;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function o(){return!0}e.exports=t},11150:function(e,t,n){"use strict";e.exports=a;var r=n(93790),o="skip",i=!1;function a(e,t,n,a){var u;function c(e,r,l){var d,f=[];return(t&&!u(e,r,l[l.length-1]||null)||(f=s(n(e,l)))[0]!==i)&&e.children&&f[0]!==o&&(d=s(function(e,t){var n,r=-1,o=a?-1:1,s=(a?e.length:r)+o;for(;s>r&&s<e.length;){if((n=c(e[s],s,t))[0]===i)return n;s="number"===typeof n[1]?n[1]:s+o}}(e.children,l.concat(e))))[0]===i?d:f}"function"===typeof t&&"function"!==typeof n&&(a=n,n=t,t=null),u=r(t),c(e,null,[])}function s(e){return null!==e&&"object"===typeof e&&"length"in e?e:"number"===typeof e?[true,e]:[e]}a.CONTINUE=true,a.SKIP=o,a.EXIT=i},50791:function(e,t,n){"use strict";e.exports=s;var r=n(11150),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function s(e,t,n,o){"function"===typeof t&&"function"!==typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=a},54309:function(e,t,n){"use strict";n.d(t,{iP:function(){return d}});var r=n(67294);var o=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t};const i=(e,t=100,n=!1)=>{const i=o(e),a=r.useRef(),s=[t,n,i];function u(){a.current&&clearTimeout(a.current),a.current=void 0}function c(){a.current=void 0}return r.useEffect((()=>u),s),r.useCallback((function(){const e=arguments,{current:r}=a;if(void 0===r&&n)return a.current=setTimeout(c,t),i.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout((()=>{a.current=void 0,i.current.apply(null,e)}),t)}),s)};var a=r["undefined"!==typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];var s=function(e,t,n,o){const i=r.useRef(n),s=r.useRef(o);a((()=>{i.current=n,s.current=o})),a((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;let r=0;function o(...e){r||i.current.apply(this,e)}n.addEventListener(t,o);const a=s.current;return()=>{r=1,n.removeEventListener(t,o),a&&a()}}),[e,t])};const u={},c="undefined"===typeof window?null:window,l=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],d=(e=u)=>{const{wait:t,leading:n,initialWidth:o=0,initialHeight:a=0}=e,[d,f]=((e,t,n)=>{const o=r.useState(e);return[o[0],i(o[1],t,n)]})("undefined"===typeof document?[o,a]:l,t,n),p=()=>f(l);return s(c,"resize",p),s(c,"orientationchange",p),d}},36194:function(e,t,n){"use strict";n.d(t,{oY:function(){return o}});var r=n(34155),o={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-o.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*o.Bounce.In(2*e):.5*o.Bounce.Out(2*e-1)+.5}}},i="undefined"===typeof self&&"undefined"!==typeof r&&r.hrtime?function(){var e=r.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!==typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},a=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map((function(t){return e._tweens[t]}))},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=i()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var o=this._tweens[n[r]],a=!t;o&&!1===o.update(e,a)&&!t&&delete this._tweens[n[r]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),s={Linear:function(e,t){var n=e.length-1,r=n*t,o=Math.floor(r),i=s.Utils.Linear;return t<0?i(e[0],e[1],r):t>1?i(e[n],e[n-1],n-r):i(e[o],e[o+1>n?n:o+1],r-o)},Bezier:function(e,t){for(var n=0,r=e.length-1,o=Math.pow,i=s.Utils.Bernstein,a=0;a<=r;a++)n+=o(1-t,r-a)*o(t,a)*e[a]*i(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,o=Math.floor(r),i=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(o=Math.floor(r=n*(1+t))),i(e[(o-1+n)%n],e[o],e[(o+1)%n],e[(o+2)%n],r-o)):t<0?e[0]-(i(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(i(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):i(e[o?o-1:0],e[o],e[n<o+1?n:o+1],e[n<o+2?n:o+2],r-o)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=s.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:function(){var e=[1];return function(t){var n=1;if(e[t])return e[t];for(var r=t;r>1;r--)n*=r;return e[t]=n,n}}(),CatmullRom:function(e,t,n,r,o){var i=.5*(n-e),a=.5*(r-t),s=o*o;return(2*t-2*n+i+a)*(o*s)+(-3*t+3*n-2*i-a)*s+i*o+t}}},u=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),c=new a,l=function(){function e(e,t){void 0===t&&(t=c),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=o.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){return this._valuesEnd=Object.create(e),void 0!==t&&(this._duration=t),this},e.prototype.duration=function(e){return this._duration=e,this},e.prototype.start=function(e){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var t in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==e?"string"===typeof e?i()+parseFloat(e):e:i(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(e,t,n,r){for(var o in n){var i=e[o],a=Array.isArray(i),s=a?"array":typeof i,u=!a&&Array.isArray(n[o]);if("undefined"!==s&&"function"!==s){if(u){var c=n[o];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,i)),n[o]=[i].concat(c)}if("object"!==s&&!a||!i||u)"undefined"===typeof t[o]&&(t[o]=i),a||(t[o]*=1),r[o]=u?n[o].slice().reverse():t[o]||0;else{for(var l in t[o]=a?[]:{},i)t[o][l]=i[l];r[o]=a?[]:{},this._setupProperties(i,t[o],n[o],r[o])}}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(e){return void 0===e&&(e=i()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=e,this._group&&this._group.remove(this)),this},e.prototype.resume=function(e){return void 0===e&&(e=i()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},e.prototype.stopChainedTweens=function(){for(var e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this},e.prototype.group=function(e){return this._group=e,this},e.prototype.delay=function(e){return this._delayTime=e,this},e.prototype.repeat=function(e){return this._initialRepeat=e,this._repeat=e,this},e.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},e.prototype.yoyo=function(e){return this._yoyo=e,this},e.prototype.easing=function(e){return this._easingFunction=e,this},e.prototype.interpolation=function(e){return this._interpolationFunction=e,this},e.prototype.chain=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._chainedTweens=e,this},e.prototype.onStart=function(e){return this._onStartCallback=e,this},e.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},e.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},e.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},e.prototype.onStop=function(e){return this._onStopCallback=e,this},e.prototype.update=function(e,t){if(void 0===e&&(e=i()),void 0===t&&(t=!0),this._isPaused)return!0;var n,r,o=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>o)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),r=(e-this._startTime)/this._duration,r=0===this._duration||r>1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!==typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,u=this._chainedTweens.length;s<u;s++)this._chainedTweens[s].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(e,t,n,r){for(var o in n)if(void 0!==t[o]){var i=t[o]||0,a=n[o],s=Array.isArray(e[o]),u=Array.isArray(a);!s&&u?e[o]=this._interpolationFunction(a,r):"object"===typeof a&&a?this._updateProperties(e[o],i,a,r):"number"===typeof(a=this._handleRelativeValue(i,a))&&(e[o]=i+(a-i)*r)}},e.prototype._handleRelativeValue=function(e,t){return"string"!==typeof t?t:"+"===t.charAt(0)||"-"===t.charAt(0)?e+parseFloat(t):parseFloat(t)},e.prototype._swapEndStartRepeatValues=function(e){var t=this._valuesStartRepeat[e],n=this._valuesEnd[e];this._valuesStartRepeat[e]="string"===typeof n?this._valuesStartRepeat[e]+parseFloat(n):this._valuesEnd[e],this._valuesEnd[e]=t},e}(),d=u.nextId,f=c,p=f.getAll.bind(f),h=f.removeAll.bind(f),m=f.add.bind(f),v=f.remove.bind(f),g=f.update.bind(f),y={Easing:o,Group:a,Interpolation:s,now:i,Sequence:u,nextId:d,Tween:l,VERSION:"18.6.4",getAll:p,removeAll:h,add:m,remove:v,update:g};t.ZP=y},92539:function(e,t,n){"use strict";n.r(t);t.default=function(e){return e instanceof Function?e:"string"===typeof e?function(t){return t[e]}:function(t){return e}}},93379:function(e){var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,n){return"number"!==typeof n||t[e]?n:n+"px"}},60401:function(e,t,n){n(52406),n(29874),n(59236),n(82578),n(36699)},20203:function(e){e.exports=THREE.ColladaLoader=function(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager},THREE.ColladaLoader.prototype={constructor:THREE.ColladaLoader,crossOrigin:"anonymous",load:function(e,t,n,r){var o=this,i=void 0===o.path?THREE.LoaderUtils.extractUrlBase(e):o.path,a=new THREE.FileLoader(o.manager);a.setPath(o.path),a.load(e,(function(e){t(o.parse(e,i))}),n,r)},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this},options:{set convertUpAxis(e){console.warn("THREE.ColladaLoader: options.convertUpAxis() has been removed. Up axis is converted automatically.")}},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(e,t){function n(e,t){for(var n=[],r=e.childNodes,o=0,i=r.length;o<i;o++){var a=r[o];a.nodeName===t&&n.push(a)}return n}function r(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=t[r];return n}function o(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=parseFloat(t[r]);return n}function i(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=parseInt(t[r]);return n}function a(e){return e.substring(1)}function s(e){return 0===Object.keys(e).length}function u(e){return void 0!==e&&!0===e.hasAttribute("meter")?parseFloat(e.getAttribute("meter")):1}function c(e){return void 0!==e?e.textContent:"Y_UP"}function l(e,t,r,o){var i=n(e,t)[0];if(void 0!==i)for(var a=n(i,r),s=0;s<a.length;s++)o(a[s])}function d(e,t){for(var n in e){e[n].build=t(e[n])}}function f(e,t){return void 0!==e.build||(e.build=t(e)),e.build}function p(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var i=a(o.getAttribute("source")),s=o.getAttribute("semantic");t.inputs[s]=i}}return t}function h(e){var t={},n=e.getAttribute("target").split("/"),r=n.shift(),o=n.shift(),i=-1!==o.indexOf("("),s=-1!==o.indexOf(".");if(s)n=o.split("."),o=n.shift(),t.member=n.shift();else if(i){var u=o.split("(");o=u.shift();for(var c=0;c<u.length;c++)u[c]=parseInt(u[c].replace(/\)/,""));t.indices=u}return t.id=r,t.sid=o,t.arraySyntax=i,t.memberSyntax=s,t.sampler=a(e.getAttribute("source")),t}function m(e){var t=[],n=e.channels,r=e.samplers,o=e.sources;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i],s=r[a.sampler],u=s.inputs.INPUT,c=s.inputs.OUTPUT;_(g(a,o[u],o[c]),t)}return t}function v(e){return f(Ke.animations[e],m)}function g(e,t,n){var r,o,i,a,s,u,c=Ke.nodes[e.id],l=Re(c.id),d=c.transforms[e.sid],f=c.matrix.clone().transpose(),p={};switch(d){case"matrix":for(i=0,a=t.array.length;i<a;i++)if(r=t.array[i],o=i*n.stride,void 0===p[r]&&(p[r]={}),!0===e.arraySyntax){var h=n.array[o],m=e.indices[0]+4*e.indices[1];p[r][m]=h}else for(s=0,u=n.stride;s<u;s++)p[r][s]=n.array[o+s];break;case"translate":case"rotate":case"scale":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',d)}var v=function(e,t){var n=[];for(var r in e)n.push({time:parseFloat(r),value:e[r]});n.sort(i);for(var o=0;o<16;o++)T(n,o,t.elements[o]);return n;function i(e,t){return e.time-t.time}}(p,f);return{name:l.uuid,keyframes:v}}var y=new THREE.Vector3,b=new THREE.Vector3,E=new THREE.Quaternion;function _(e,t){for(var n=e.keyframes,r=e.name,o=[],i=[],a=[],s=[],u=0,c=n.length;u<c;u++){var l=n[u],d=l.time,f=l.value;ke.fromArray(f).transpose(),ke.decompose(y,E,b),o.push(d),i.push(y.x,y.y,y.z),a.push(E.x,E.y,E.z,E.w),s.push(b.x,b.y,b.z)}return i.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".position",o,i)),a.length>0&&t.push(new THREE.QuaternionKeyframeTrack(r+".quaternion",o,a)),s.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".scale",o,s)),t}function T(e,t,n){var r,o,i,a=!0;for(o=0,i=e.length;o<i;o++)void 0===(r=e[o]).value[t]?r.value[t]=null:a=!1;if(!0===a)for(o=0,i=e.length;o<i;o++)(r=e[o]).value[t]=n;else!function(e,t){for(var n,r,o=0,i=e.length;o<i;o++){var a=e[o];if(null===a.value[t]){if(n=w(e,o,t),r=k(e,o,t),null===n){a.value[t]=r.value[t];continue}if(null===r){a.value[t]=n.value[t];continue}x(a,n,r,t)}}}(e,t)}function w(e,t,n){for(;t>=0;){var r=e[t];if(null!==r.value[n])return r;t--}return null}function k(e,t,n){for(;t<e.length;){var r=e[t];if(null!==r.value[n])return r;t++}return null}function x(e,t,n,r){n.time-t.time!==0?e.value[r]=(e.time-t.time)*(n.value[r]-t.value[r])/(n.time-t.time)+t.value[r]:e.value[r]=t.value[r]}function O(e){for(var t=[],n=e.name,r=e.end-e.start||-1,o=e.animations,i=0,a=o.length;i<a;i++)for(var s=v(o[i]),u=0,c=s.length;u<c;u++)t.push(s[u]);return new THREE.AnimationClip(n,r,t)}function C(e){return f(Ke.clips[e],O)}function A(e){for(var t={sources:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"bind_shape_matrix":t.bindShapeMatrix=o(i.textContent);break;case"source":var a=i.getAttribute("id");t.sources[a]=oe(i);break;case"joints":t.joints=S(i);break;case"vertex_weights":t.vertexWeights=M(i)}}return t}function S(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var i=o.getAttribute("semantic"),s=a(o.getAttribute("source"));t.inputs[i]=s}}return t}function M(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var s=o.getAttribute("semantic"),u=a(o.getAttribute("source")),c=parseInt(o.getAttribute("offset"));t.inputs[s]={id:u,offset:c};break;case"vcount":t.vcount=i(o.textContent);break;case"v":t.v=i(o.textContent)}}return t}function D(e){var t={id:e.id},n=Ke.geometries[t.id];return void 0!==e.skin&&(t.skin=function(e){var t,n,r,o=4,i={joints:[],indices:{array:[],stride:o},weights:{array:[],stride:o}},a=e.sources,s=e.vertexWeights,u=s.vcount,c=s.v,l=s.inputs.JOINT.offset,d=s.inputs.WEIGHT.offset,f=e.sources[e.joints.inputs.JOINT],p=e.sources[e.joints.inputs.INV_BIND_MATRIX],h=a[s.inputs.WEIGHT.id].array,m=0;for(t=0,r=u.length;t<r;t++){var v=u[t],g=[];for(n=0;n<v;n++){var y=c[m+l],b=h[c[m+d]];g.push({index:y,weight:b}),m+=2}for(g.sort(w),n=0;n<o;n++){var E=g[n];void 0!==E?(i.indices.array.push(E.index),i.weights.array.push(E.weight)):(i.indices.array.push(0),i.weights.array.push(0))}}e.bindShapeMatrix?i.bindMatrix=(new THREE.Matrix4).fromArray(e.bindShapeMatrix).transpose():i.bindMatrix=(new THREE.Matrix4).identity();for(t=0,r=f.array.length;t<r;t++){var _=f.array[t],T=(new THREE.Matrix4).fromArray(p.array,t*p.stride).transpose();i.joints.push({name:_,boneInverse:T})}return i;function w(e,t){return t.weight-e.weight}}(e.skin),n.sources.skinIndices=t.skin.indices,n.sources.skinWeights=t.skin.weights),t}function I(e){return void 0!==e.build?e.build:e.init_from}function P(e){var t=Ke.images[e];return void 0!==t?f(t,I):(console.warn("THREE.ColladaLoader: Couldn't find image with ID:",e),null)}function N(e){for(var t={surfaces:{},samplers:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"newparam":R(o,t);break;case"technique":t.technique=F(o);break;case"extra":t.extra=G(o)}}return t}function R(e,t){for(var n=e.getAttribute("sid"),r=0,o=e.childNodes.length;r<o;r++){var i=e.childNodes[r];if(1===i.nodeType)switch(i.nodeName){case"surface":t.surfaces[n]=L(i);break;case"sampler2D":t.samplers[n]=j(i)}}}function L(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"init_from":t.init_from=o.textContent}}return t}function j(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"source":t.source=o.textContent}}return t}function F(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"constant":case"lambert":case"blinn":case"phong":t.type=o.nodeName,t.parameters=B(o)}}return t}function B(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"emission":case"diffuse":case"specular":case"bump":case"ambient":case"shininess":case"transparency":t[o.nodeName]=H(o);break;case"transparent":t[o.nodeName]={opaque:o.getAttribute("opaque"),data:H(o)}}}return t}function H(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"color":t[i.nodeName]=o(i.textContent);break;case"float":t[i.nodeName]=parseFloat(i.textContent);break;case"texture":t[i.nodeName]={id:i.getAttribute("texture"),extra:U(i)}}}return t}function U(e){for(var t={technique:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"extra":z(o,t)}}return t}function z(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"technique":V(o,t)}}}function V(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"repeatU":case"repeatV":case"offsetU":case"offsetV":t.technique[o.nodeName]=parseFloat(o.textContent);break;case"wrapU":case"wrapV":"TRUE"===o.textContent.toUpperCase()?t.technique[o.nodeName]=1:"FALSE"===o.textContent.toUpperCase()?t.technique[o.nodeName]=0:t.technique[o.nodeName]=parseInt(o.textContent)}}}function G(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"technique":t.technique=W(o)}}return t}function W(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"double_sided":t[o.nodeName]=parseInt(o.textContent)}}return t}function K(e){return e}function q(e){var t,n,r=(t=e.url,f(Ke.effects[t],K)),o=r.profile.technique,i=r.profile.extra;switch(o.type){case"phong":case"blinn":n=new THREE.MeshPhongMaterial;break;case"lambert":n=new THREE.MeshLambertMaterial;break;default:n=new THREE.MeshBasicMaterial}function a(e){var t=r.profile.samplers[e.id],n=null;void 0!==t?n=P(r.profile.surfaces[t.source].init_from):(console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),n=P(e.id));if(null!==n){var o=function(e){var t,n=e.slice(2+(e.lastIndexOf(".")-1>>>0));switch(n=n.toLowerCase()){case"tga":t=He;break;default:t=ze}return t}(n);if(void 0!==o){var i=o.load(n),a=e.extra;if(void 0!==a&&void 0!==a.technique&&!1===s(a.technique)){var u=a.technique;i.wrapS=u.wrapU?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,i.wrapT=u.wrapV?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,i.offset.set(u.offsetU||0,u.offsetV||0),i.repeat.set(u.repeatU||1,u.repeatV||1)}else i.wrapS=THREE.RepeatWrapping,i.wrapT=THREE.RepeatWrapping;return i}return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",n),null}return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",e.id),null}n.name=e.name;var u=o.parameters;for(var c in u){var l=u[c];switch(c){case"diffuse":l.color&&n.color.fromArray(l.color),l.texture&&(n.map=a(l.texture));break;case"specular":l.color&&n.specular&&n.specular.fromArray(l.color),l.texture&&(n.specularMap=a(l.texture));break;case"bump":l.texture&&(n.normalMap=a(l.texture));break;case"ambient":l.texture&&(n.lightMap=a(l.texture));break;case"shininess":l.float&&n.shininess&&(n.shininess=l.float);break;case"emission":l.color&&n.emissive&&n.emissive.fromArray(l.color),l.texture&&(n.emissiveMap=a(l.texture))}}var d=u.transparent,p=u.transparency;if(void 0===p&&d&&(p={float:1}),void 0===d&&p&&(d={opaque:"A_ONE",data:{color:[1,1,1,1]}}),d&&p)if(d.data.texture)n.transparent=!0;else{var h=d.data.color;switch(d.opaque){case"A_ONE":n.opacity=h[3]*p.float;break;case"RGB_ZERO":n.opacity=1-h[0]*p.float;break;case"A_ZERO":n.opacity=1-h[3]*p.float;break;case"RGB_ONE":n.opacity=h[0]*p.float;break;default:console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',d.opaque)}n.opacity<1&&(n.transparent=!0)}return void 0!==i&&void 0!==i.technique&&1===i.technique.double_sided&&(n.side=THREE.DoubleSide),n}function Y(e){return f(Ke.materials[e],q)}function $(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];switch(n.nodeName){case"technique_common":return Z(n)}}return{}}function Z(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"perspective":case"orthographic":t.technique=r.nodeName,t.parameters=X(r)}}return t}function X(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"xfov":case"yfov":case"xmag":case"ymag":case"znear":case"zfar":case"aspect_ratio":t[r.nodeName]=parseFloat(r.textContent)}}return t}function Q(e){var t;switch(e.optics.technique){case"perspective":t=new THREE.PerspectiveCamera(e.optics.parameters.yfov,e.optics.parameters.aspect_ratio,e.optics.parameters.znear,e.optics.parameters.zfar);break;case"orthographic":var n=e.optics.parameters.ymag,r=e.optics.parameters.xmag,o=e.optics.parameters.aspect_ratio;r=void 0===r?n*o:r,n=void 0===n?r/o:n,r*=.5,n*=.5,t=new THREE.OrthographicCamera(-r,r,n,-n,e.optics.parameters.znear,e.optics.parameters.zfar);break;default:t=new THREE.PerspectiveCamera}return t.name=e.name,t}function J(e){var t=Ke.cameras[e];return void 0!==t?f(t,Q):(console.warn("THREE.ColladaLoader: Couldn't find camera with ID:",e),null)}function ee(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"directional":case"point":case"spot":case"ambient":t.technique=o.nodeName,t.parameters=te(o)}}return t}function te(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"color":var a=o(i.textContent);t.color=(new THREE.Color).fromArray(a);break;case"falloff_angle":t.falloffAngle=parseFloat(i.textContent);break;case"quadratic_attenuation":var s=parseFloat(i.textContent);t.distance=s?Math.sqrt(1/s):0}}return t}function ne(e){var t;switch(e.technique){case"directional":t=new THREE.DirectionalLight;break;case"point":t=new THREE.PointLight;break;case"spot":t=new THREE.SpotLight;break;case"ambient":t=new THREE.AmbientLight}return e.parameters.color&&t.color.copy(e.parameters.color),e.parameters.distance&&(t.distance=e.parameters.distance),t}function re(e){var t=Ke.lights[e];return void 0!==t?f(t,ne):(console.warn("THREE.ColladaLoader: Couldn't find light with ID:",e),null)}function oe(e){for(var t={array:[],stride:3},i=0;i<e.childNodes.length;i++){var a=e.childNodes[i];if(1===a.nodeType)switch(a.nodeName){case"float_array":t.array=o(a.textContent);break;case"Name_array":t.array=r(a.textContent);break;case"technique_common":var s=n(a,"accessor")[0];void 0!==s&&(t.stride=parseInt(s.getAttribute("stride")))}}return t}function ie(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];1===r.nodeType&&(t[r.getAttribute("semantic")]=a(r.getAttribute("source")))}return t}function ae(e){for(var t={type:e.nodeName,material:e.getAttribute("material"),count:parseInt(e.getAttribute("count")),inputs:{},stride:0,hasUV:!1},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var s=a(o.getAttribute("source")),u=o.getAttribute("semantic"),c=parseInt(o.getAttribute("offset")),l=parseInt(o.getAttribute("set")),d=l>0?u+l:u;t.inputs[d]={id:s,offset:c},t.stride=Math.max(t.stride,c+1),"TEXCOORD"===u&&(t.hasUV=!0);break;case"vcount":t.vcount=i(o.textContent);break;case"p":t.p=i(o.textContent)}}return t}function se(e){for(var t=0,n=0,r=e.length;n<r;n++){!0===e[n].hasUV&&t++}t>0&&t<e.length&&(e.uvsNeedsFix=!0)}function ue(e){var t={},n=e.sources,r=e.vertices,o=e.primitives;if(0===o.length)return{};var i=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];void 0===t[r.type]&&(t[r.type]=[]),t[r.type].push(r)}return t}(o);for(var a in i){var s=i[a];se(s),t[a]=ce(s,n,r)}return t}function ce(e,t,n){for(var r={},o={array:[],stride:0},i={array:[],stride:0},a={array:[],stride:0},s={array:[],stride:0},u={array:[],stride:0},c=[],l=4,d=[],f=4,p=new THREE.BufferGeometry,h=[],m=0,v=0;v<e.length;v++){var g=e[v],y=g.inputs,b=0;switch(g.type){case"lines":case"linestrips":b=2*g.count;break;case"triangles":b=3*g.count;break;case"polylist":for(var E=0;E<g.count;E++){var _=g.vcount[E];switch(_){case 3:b+=3;break;case 4:b+=6;break;default:b+=3*(_-2)}}break;default:console.warn("THREE.ColladaLoader: Unknow primitive type:",g.type)}for(var T in p.addGroup(m,b,v),m+=b,g.material&&h.push(g.material),y){var w=y[T];switch(T){case"VERTEX":for(var k in n){var x=n[k];switch(k){case"POSITION":var O=o.array.length;if(le(g,t[x],w.offset,o.array),o.stride=t[x].stride,t.skinWeights&&t.skinIndices&&(le(g,t.skinIndices,w.offset,c),le(g,t.skinWeights,w.offset,d)),!1===g.hasUV&&!0===e.uvsNeedsFix){b=(o.array.length-O)/o.stride;for(var C=0;C<b;C++)a.array.push(0,0)}break;case"NORMAL":le(g,t[x],w.offset,i.array),i.stride=t[x].stride;break;case"COLOR":le(g,t[x],w.offset,u.array),u.stride=t[x].stride;break;case"TEXCOORD":le(g,t[x],w.offset,a.array),a.stride=t[x].stride;break;case"TEXCOORD1":le(g,t[x],w.offset,s.array),a.stride=t[x].stride;break;default:console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',k)}}break;case"NORMAL":le(g,t[w.id],w.offset,i.array),i.stride=t[w.id].stride;break;case"COLOR":le(g,t[w.id],w.offset,u.array),u.stride=t[w.id].stride;break;case"TEXCOORD":le(g,t[w.id],w.offset,a.array),a.stride=t[w.id].stride;break;case"TEXCOORD1":le(g,t[w.id],w.offset,s.array),s.stride=t[w.id].stride}}}return o.array.length>0&&p.addAttribute("position",new THREE.Float32BufferAttribute(o.array,o.stride)),i.array.length>0&&p.addAttribute("normal",new THREE.Float32BufferAttribute(i.array,i.stride)),u.array.length>0&&p.addAttribute("color",new THREE.Float32BufferAttribute(u.array,u.stride)),a.array.length>0&&p.addAttribute("uv",new THREE.Float32BufferAttribute(a.array,a.stride)),s.array.length>0&&p.addAttribute("uv2",new THREE.Float32BufferAttribute(s.array,s.stride)),c.length>0&&p.addAttribute("skinIndex",new THREE.Float32BufferAttribute(c,l)),d.length>0&&p.addAttribute("skinWeight",new THREE.Float32BufferAttribute(d,f)),r.data=p,r.type=e[0].type,r.materialKeys=h,r}function le(e,t,n,r){var o=e.p,i=e.stride,a=e.vcount;function s(e){for(var t=o[e+n]*c,i=t+c;t<i;t++)r.push(u[t])}var u=t.array,c=t.stride;if(void 0!==e.vcount)for(var l=0,d=0,f=a.length;d<f;d++){var p=a[d];if(4===p){var h=l+1*i,m=l+2*i,v=l+3*i;s(l+0*i),s(h),s(v),s(h),s(m),s(v)}else if(3===p){h=l+1*i,m=l+2*i;s(l+0*i),s(h),s(m)}else if(p>4)for(var g=1,y=p-2;g<=y;g++){h=l+i*g,m=l+i*(g+1);s(l+0*i),s(h),s(m)}l+=i*p}else for(d=0,f=o.length;d<f;d+=i)s(d)}function de(e){return f(Ke.geometries[e],ue)}function fe(e){return void 0!==e.build?e.build:e}function pe(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"joint":t.joints[r.getAttribute("sid")]=he(r);break;case"link":t.links.push(ve(r))}}}function he(e){for(var t,n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"prismatic":case"revolute":t=me(r)}}return t}function me(e,t){t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",axis:new THREE.Vector3,limits:{min:0,max:0},type:e.nodeName,static:!1,zeroPosition:0,middlePosition:0};for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"axis":var i=o(r.textContent);t.axis.fromArray(i);break;case"limits":var a=r.getElementsByTagName("max")[0],s=r.getElementsByTagName("min")[0];t.limits.max=parseFloat(a.textContent),t.limits.min=parseFloat(s.textContent)}}return t.limits.min>=t.limits.max&&(t.static=!0),t.middlePosition=(t.limits.min+t.limits.max)/2,t}function ve(e){for(var t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",attachments:[],transforms:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"attachment_full":t.attachments.push(ge(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ge(e){for(var t={joint:e.getAttribute("joint").split("/").pop(),transforms:[],links:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"link":t.links.push(ve(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ye(e){var t={type:e.nodeName},n=o(e.textContent);switch(t.type){case"matrix":t.obj=new THREE.Matrix4,t.obj.fromArray(n).transpose();break;case"translate":t.obj=new THREE.Vector3,t.obj.fromArray(n);break;case"rotate":t.obj=new THREE.Vector3,t.obj.fromArray(n),t.angle=THREE.Math.degToRad(n[3])}return t}function be(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"technique_common":Ee(r,t)}}}function Ee(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"inertia":t.inertia=o(r.textContent);break;case"mass":t.mass=o(r.textContent)[0]}}}function _e(e){for(var t={target:e.getAttribute("target").split("/").pop()},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"axis":var o=r.getElementsByTagName("param")[0];t.axis=o.textContent;var i=t.axis.split("inst_").pop().split("axis")[0];t.jointIndex=i.substr(0,i.length-1)}}return t}function Te(e){return void 0!==e.build?e.build:e}function we(e){for(var t=[],n=Fe.querySelector('[id="'+e.id+'"]'),r=0;r<n.childNodes.length;r++){var i=n.childNodes[r];if(1===i.nodeType)switch(i.nodeName){case"matrix":var a=o(i.textContent),s=(new THREE.Matrix4).fromArray(a).transpose();t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:s});break;case"translate":case"scale":a=o(i.textContent);var u=(new THREE.Vector3).fromArray(a);t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:u});break;case"rotate":a=o(i.textContent),u=(new THREE.Vector3).fromArray(a);var c=THREE.Math.degToRad(a[3]);t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:u,angle:c})}}return t}var ke=new THREE.Matrix4,xe=new THREE.Vector3;function Oe(e){for(var t={name:e.getAttribute("name")||"",type:e.getAttribute("type"),id:e.getAttribute("id"),sid:e.getAttribute("sid"),matrix:new THREE.Matrix4,nodes:[],instanceCameras:[],instanceControllers:[],instanceLights:[],instanceGeometries:[],instanceNodes:[],transforms:{}},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"node":t.nodes.push(r.getAttribute("id")),Oe(r);break;case"instance_camera":t.instanceCameras.push(a(r.getAttribute("url")));break;case"instance_controller":t.instanceControllers.push(Ce(r));break;case"instance_light":t.instanceLights.push(a(r.getAttribute("url")));break;case"instance_geometry":t.instanceGeometries.push(Ce(r));break;case"instance_node":t.instanceNodes.push(a(r.getAttribute("url")));break;case"matrix":var i=o(r.textContent);t.matrix.multiply(ke.fromArray(i).transpose()),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"translate":i=o(r.textContent);xe.fromArray(i),t.matrix.multiply(ke.makeTranslation(xe.x,xe.y,xe.z)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"rotate":i=o(r.textContent);var s=THREE.Math.degToRad(i[3]);t.matrix.multiply(ke.makeRotationAxis(xe.fromArray(i),s)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"scale":i=o(r.textContent);t.matrix.scale(xe.fromArray(i)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"extra":break;default:console.log(r)}}return Ne(t.id)?console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.",t.id):Ke.nodes[t.id]=t,t}function Ce(e){for(var t={id:a(e.getAttribute("url")),materials:{},skeletons:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"bind_material":for(var o=r.getElementsByTagName("instance_material"),i=0;i<o.length;i++){var s=o[i],u=s.getAttribute("symbol"),c=s.getAttribute("target");t.materials[u]=a(c)}break;case"skeleton":t.skeletons.push(a(r.textContent))}}return t}function Ae(e,t){var n,r,o,i=[],a=[];for(n=0;n<e.length;n++){var s=e[n];if(Ne(s))Se(Re(s),t,i);else if(o=s,void 0!==Ke.visualScenes[o])for(var u=Ke.visualScenes[s].children,c=0;c<u.length;c++){var l=u[c];if("JOINT"===l.type)Se(Re(l.id),t,i)}else console.error("THREE.ColladaLoader: Unable to find root bone of skeleton with ID:",s)}for(n=0;n<t.length;n++)for(c=0;c<i.length;c++)if((r=i[c]).bone.name===t[n].name){a[n]=r,r.processed=!0;break}for(n=0;n<i.length;n++)!1===(r=i[n]).processed&&(a.push(r),r.processed=!0);var d=[],f=[];for(n=0;n<a.length;n++)r=a[n],d.push(r.bone),f.push(r.boneInverse);return new THREE.Skeleton(d,f)}function Se(e,t,n){e.traverse((function(e){if(!0===e.isBone){for(var r,o=0;o<t.length;o++){var i=t[o];if(i.name===e.name){r=i.boneInverse;break}}void 0===r&&(r=new THREE.Matrix4),n.push({bone:e,boneInverse:r,processed:!1})}}))}function Me(e){for(var t,n=[],r=e.matrix,o=e.nodes,i=e.type,a=e.instanceCameras,s=e.instanceControllers,u=e.instanceLights,c=e.instanceGeometries,l=e.instanceNodes,d=0,p=o.length;d<p;d++)n.push(Re(o[d]));for(d=0,p=a.length;d<p;d++){var h=J(a[d]);null!==h&&n.push(h.clone())}for(d=0,p=s.length;d<p;d++)for(var m=s[d],v=(t=m.id,f(Ke.controllers[t],D)),g=Pe(de(v.id),m.materials),y=Ae(m.skeletons,v.skin.joints),b=0,E=g.length;b<E;b++){var _;(_=g[b]).isSkinnedMesh&&(_.bind(y,v.skin.bindMatrix),_.normalizeSkinWeights()),n.push(_)}for(d=0,p=u.length;d<p;d++){var T=re(u[d]);null!==T&&n.push(T.clone())}for(d=0,p=c.length;d<p;d++)for(b=0,E=(g=Pe(de((m=c[d]).id),m.materials)).length;b<E;b++)n.push(g[b]);for(d=0,p=l.length;d<p;d++)n.push(Re(l[d]).clone());if(0===o.length&&1===n.length)_=n[0];else{_="JOINT"===i?new THREE.Bone:new THREE.Group;for(d=0;d<n.length;d++)_.add(n[d])}return""===_.name&&(_.name="JOINT"===i?e.sid:e.name),_.matrix.copy(r),_.matrix.decompose(_.position,_.quaternion,_.scale),_}var De=new THREE.MeshBasicMaterial({color:16711935});function Ie(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=t[e[r]];void 0===i?(console.warn("THREE.ColladaLoader: Material with key %s not found. Apply fallback material.",e[r]),n.push(De)):n.push(Y(i))}return n}function Pe(e,t){var n=[];for(var r in e){var o=e[r],i=Ie(o.materialKeys,t);0===i.length&&("lines"===r||"linestrips"===r?i.push(new THREE.LineBasicMaterial):i.push(new THREE.MeshPhongMaterial));var a=void 0!==o.data.attributes.skinIndex;if(a)for(var s=0,u=i.length;s<u;s++)i[s].skinning=!0;var c,l=1===i.length?i[0]:i;switch(r){case"lines":c=new THREE.LineSegments(o.data,l);break;case"linestrips":c=new THREE.Line(o.data,l);break;case"triangles":case"polylist":c=a?new THREE.SkinnedMesh(o.data,l):new THREE.Mesh(o.data,l)}n.push(c)}return n}function Ne(e){return void 0!==Ke.nodes[e]}function Re(e){return f(Ke.nodes[e],Me)}function Le(e){var t=new THREE.Group;t.name=e.name;for(var n=e.children,r=0;r<n.length;r++){var o=n[r];t.add(Re(o.id))}return t}function je(e){return f(Ke.visualScenes[e],Le)}if(0===e.length)return{scene:new THREE.Scene};var Fe=n((new DOMParser).parseFromString(e,"application/xml"),"COLLADA")[0],Be=Fe.getAttribute("version");console.log("THREE.ColladaLoader: File version",Be);var He,Ue=function(e){return{unit:u(n(e,"unit")[0]),upAxis:c(n(e,"up_axis")[0])}}(n(Fe,"asset")[0]),ze=new THREE.TextureLoader(this.manager);ze.setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin),THREE.TGALoader&&(He=new THREE.TGALoader(this.manager)).setPath(this.resourcePath||t);var Ve=[],Ge={},We=0,Ke={animations:{},clips:{},controllers:{},images:{},effects:{},materials:{},cameras:{},lights:{},geometries:{},nodes:{},visualScenes:{},kinematicsModels:{},physicsModels:{},kinematicsScenes:{}};l(Fe,"library_animations","animation",(function(e){for(var t={sources:{},samplers:{},channels:{}},n=0,r=e.childNodes.length;n<r;n++){var o,i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"source":o=i.getAttribute("id"),t.sources[o]=oe(i);break;case"sampler":o=i.getAttribute("id"),t.samplers[o]=p(i);break;case"channel":o=i.getAttribute("target"),t.channels[o]=h(i);break;default:console.log(i)}}Ke.animations[e.getAttribute("id")]=t})),l(Fe,"library_animation_clips","animation_clip",(function(e){for(var t={name:e.getAttribute("id")||"default",start:parseFloat(e.getAttribute("start")||0),end:parseFloat(e.getAttribute("end")||0),animations:[]},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"instance_animation":t.animations.push(a(o.getAttribute("url")))}}Ke.clips[e.getAttribute("id")]=t})),l(Fe,"library_controllers","controller",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"skin":t.id=a(o.getAttribute("source")),t.skin=A(o);break;case"morph":t.id=a(o.getAttribute("source")),console.warn("THREE.ColladaLoader: Morph target animation not supported yet.")}}Ke.controllers[e.getAttribute("id")]=t})),l(Fe,"library_images","image",(function(e){var t={init_from:n(e,"init_from")[0].textContent};Ke.images[e.getAttribute("id")]=t})),l(Fe,"library_effects","effect",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"profile_COMMON":t.profile=N(o)}}Ke.effects[e.getAttribute("id")]=t})),l(Fe,"library_materials","material",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"instance_effect":t.url=a(o.getAttribute("url"))}}Ke.materials[e.getAttribute("id")]=t})),l(Fe,"library_cameras","camera",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"optics":t.optics=$(o)}}Ke.cameras[e.getAttribute("id")]=t})),l(Fe,"library_lights","light",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"technique_common":t=ee(o)}}Ke.lights[e.getAttribute("id")]=t})),l(Fe,"library_geometries","geometry",(function(e){var t={name:e.getAttribute("name"),sources:{},vertices:{},primitives:[]},r=n(e,"mesh")[0];if(void 0!==r){for(var o=0;o<r.childNodes.length;o++){var i=r.childNodes[o];if(1===i.nodeType){var a=i.getAttribute("id");switch(i.nodeName){case"source":t.sources[a]=oe(i);break;case"vertices":t.vertices=ie(i);break;case"polygons":console.warn("THREE.ColladaLoader: Unsupported primitive type: ",i.nodeName);break;case"lines":case"linestrips":case"polylist":case"triangles":t.primitives.push(ae(i));break;default:console.log(i)}}}Ke.geometries[e.getAttribute("id")]=t}})),l(Fe,"library_nodes","node",Oe),l(Fe,"library_visual_scenes","visual_scene",(function(e){var t={name:e.getAttribute("name"),children:[]};!function(e){for(var t=e.getElementsByTagName("node"),n=0;n<t.length;n++){var r=t[n];!1===r.hasAttribute("id")&&r.setAttribute("id","three_default_"+We++)}}(e);for(var r=n(e,"node"),o=0;o<r.length;o++)t.children.push(Oe(r[o]));Ke.visualScenes[e.getAttribute("id")]=t})),l(Fe,"library_kinematics_models","kinematics_model",(function(e){for(var t={name:e.getAttribute("name")||"",joints:{},links:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"technique_common":pe(r,t)}}Ke.kinematicsModels[e.getAttribute("id")]=t})),l(Fe,"library_physics_models","physics_model",(function(e){for(var t={name:e.getAttribute("name")||"",rigidBodies:{}},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"rigid_body":t.rigidBodies[r.getAttribute("name")]={},be(r,t.rigidBodies[r.getAttribute("name")])}}Ke.physicsModels[e.getAttribute("id")]=t})),l(Fe,"scene","instance_kinematics_scene",(function(e){for(var t={bindJointAxis:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"bind_joint_axis":t.bindJointAxis.push(_e(r))}}Ke.kinematicsScenes[a(e.getAttribute("url"))]=t})),d(Ke.animations,m),d(Ke.clips,O),d(Ke.controllers,D),d(Ke.images,I),d(Ke.effects,K),d(Ke.materials,q),d(Ke.cameras,Q),d(Ke.lights,ne),d(Ke.geometries,ue),d(Ke.visualScenes,Le),function(){var e=Ke.clips;if(!0===s(e)){if(!1===s(Ke.animations)){var t=[];for(var n in Ke.animations)for(var r=v(n),o=0,i=r.length;o<i;o++)t.push(r[o]);Ve.push(new THREE.AnimationClip("default",-1,t))}}else for(var n in e)Ve.push(C(n))}(),function(){var e=Object.keys(Ke.kinematicsModels)[0],t=Object.keys(Ke.kinematicsScenes)[0],n=Object.keys(Ke.visualScenes)[0];if(void 0!==e&&void 0!==t){for(var r,o=(r=e,f(Ke.kinematicsModels[r],fe)),i=function(e){return f(Ke.kinematicsScenes[e],Te)}(t),a=je(n),s=i.bindJointAxis,u={},c=0,l=s.length;c<l;c++){var d=s[c],p=Fe.querySelector('[sid="'+d.target+'"]');if(p){var h=p.parentElement;v(d.jointIndex,h)}}var m=new THREE.Matrix4;Ge={joints:o&&o.joints,getJointValue:function(e){var t=u[e];if(t)return t.position;console.warn("THREE.ColladaLoader: Joint "+e+" doesn't exist.")},setJointValue:function(e,t){var n=u[e];if(n){var r=n.joint;if(t>r.limits.max||t<r.limits.min)console.warn("THREE.ColladaLoader: Joint "+e+" value "+t+" outside of limits (min: "+r.limits.min+", max: "+r.limits.max+").");else if(r.static)console.warn("THREE.ColladaLoader: Joint "+e+" is static.");else{var o=n.object,i=r.axis,a=n.transforms;ke.identity();for(var s=0;s<a.length;s++){var c=a[s];if(c.sid&&-1!==c.sid.indexOf(e))switch(r.type){case"revolute":ke.multiply(m.makeRotationAxis(i,THREE.Math.degToRad(t)));break;case"prismatic":ke.multiply(m.makeTranslation(i.x*t,i.y*t,i.z*t));break;default:console.warn("THREE.ColladaLoader: Unknown joint type: "+r.type)}else switch(c.type){case"matrix":ke.multiply(c.obj);break;case"translate":ke.multiply(m.makeTranslation(c.obj.x,c.obj.y,c.obj.z));break;case"scale":ke.scale(c.obj);break;case"rotate":ke.multiply(m.makeRotationAxis(c.obj,c.angle))}}o.matrix.copy(ke),o.matrix.decompose(o.position,o.quaternion,o.scale),u[e].position=t}}else console.log("THREE.ColladaLoader: "+e+" does not exist.")}}}function v(e,t){var n=t.getAttribute("name"),r=o.joints[e];a.traverse((function(o){o.name===n&&(u[e]={object:o,transforms:we(t),joint:r,position:r.zeroPosition})}))}}();var qe=function(e){return je(a(n(e,"instance_visual_scene")[0].getAttribute("url")))}(n(Fe,"scene")[0]);return"Z_UP"===Ue.upAxis&&qe.quaternion.setFromEuler(new THREE.Euler(-Math.PI/2,0,0)),qe.scale.multiplyScalar(Ue.unit),{animations:Ve,kinematics:Ge,library:Ke,scene:qe}}}},99434:function(e){e.exports=THREE.FBXLoader=function(){var e,t,n;function r(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager}function o(e){this.textureLoader=e}function i(){}function a(){}function s(){}function u(){}function c(e,t){this.dv=new DataView(e),this.offset=0,this.littleEndian=void 0===t||t}function l(){}function d(e){var t=e.match(/FBXVersion: (\d+)/);if(t)return parseInt(t[1]);throw new Error("THREE.FBXLoader: Cannot find the version number for the file given.")}function f(e){return e/46186158e3}r.prototype={constructor:r,crossOrigin:"anonymous",load:function(e,t,n,r){var o=this,i=THREE.LoaderUtils.extractUrlBase(e),a=new THREE.FileLoader(this.manager);a.setResponseType("arraybuffer"),a.load(e,(function(n){try{var a=o.parse(n,i);t(a)}catch(s){setTimeout((function(){r&&r(s),o.manager.itemError(e)}),0)}}),n,r)},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(t,n){if(function(e){var t="Kaydara FBX Binary  \0";return e.byteLength>=t.length&&t===w(e,0,t.length)}(t))e=(new u).parse(t);else{var r=w(t);if(!function(e){var t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"],n=0;function r(t){var r=e[t-1];return e=e.slice(n+t),n++,r}for(var o=0;o<t.length;++o){if(r(1)===t[o])return!1}return!0}(r))throw new Error("THREE.FBXLoader: Unknown format.");if(d(r)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+d(r));e=(new s).parse(r)}return new o(new THREE.TextureLoader(this.manager).setPath(n).setCrossOrigin(this.crossOrigin)).parse(e)}},o.prototype={constructor:o,parse:function(){t=this.parseConnections();var e=this.parseImages(),r=this.parseTextures(e),o=this.parseMaterials(r),a=this.parseDeformers(),s=(new i).parse(a);return this.parseScene(a,s,o),n},parseConnections:function(){var t=new Map;"Connections"in e&&e.Connections.connections.forEach((function(e){var n=e[0],r=e[1],o=e[2];t.has(n)||t.set(n,{parents:[],children:[]});var i={ID:r,relationship:o};t.get(n).parents.push(i),t.has(r)||t.set(r,{parents:[],children:[]});var a={ID:n,relationship:o};t.get(r).children.push(a)}));return t},parseImages:function(){var t={},n={};if("Video"in e.Objects){var r=e.Objects.Video;for(var o in r){var i=r[o];if(t[c=parseInt(o)]=i.RelativeFilename||i.Filename,"Content"in i){var a=i.Content instanceof ArrayBuffer&&i.Content.byteLength>0,s="string"===typeof i.Content&&""!==i.Content;if(a||s){var u=this.parseImage(r[o]);n[i.RelativeFilename||i.Filename]=u}}}}for(var c in t){var l=t[c];void 0!==n[l]?t[c]=n[l]:t[c]=t[c].split("\\").pop()}return t},parseImage:function(e){var t,n=e.Content,r=e.RelativeFilename||e.Filename,o=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(o){case"bmp":t="image/bmp";break;case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"tif":t="image/tiff";break;case"tga":if("function"!==typeof THREE.TGALoader)return void console.warn("FBXLoader: THREE.TGALoader is required to load TGA textures");null===THREE.Loader.Handlers.get(".tga")&&THREE.Loader.Handlers.add(/\.tga$/i,new THREE.TGALoader),t="image/tga";break;default:return void console.warn('FBXLoader: Image type "'+o+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var i=new Uint8Array(n);return window.URL.createObjectURL(new Blob([i],{type:t}))},parseTextures:function(t){var n=new Map;if("Texture"in e.Objects){var r=e.Objects.Texture;for(var o in r){var i=this.parseTexture(r[o],t);n.set(parseInt(o),i)}}return n},parseTexture:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,o=e.WrapModeV,i=void 0!==r?r.value:0,a=void 0!==o?o.value:0;if(n.wrapS=0===i?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,n.wrapT=0===a?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,"Scaling"in e){var s=e.Scaling.value;n.repeat.x=s[0],n.repeat.y=s[1]}return n},loadTexture:function(e,n){var r,o,i=this.textureLoader.path,a=t.get(e.id).children;void 0!==a&&a.length>0&&void 0!==n[a[0].ID]&&(0!==(r=n[a[0].ID]).indexOf("blob:")&&0!==r.indexOf("data:")||this.textureLoader.setPath(void 0));var s=e.FileName.slice(-3).toLowerCase();if("tga"===s){var u=THREE.Loader.Handlers.get(".tga");null===u?(console.warn("FBXLoader: TGALoader not found, creating empty placeholder texture for",r),o=new THREE.Texture):o=u.load(r)}else"psd"===s?(console.warn("FBXLoader: PSD textures are not supported, creating empty placeholder texture for",r),o=new THREE.Texture):o=this.textureLoader.load(r);return this.textureLoader.setPath(i),o},parseMaterials:function(t){var n=new Map;if("Material"in e.Objects){var r=e.Objects.Material;for(var o in r){var i=this.parseMaterial(r[o],t);null!==i&&n.set(parseInt(o),i)}}return n},parseMaterial:function(e,n){var r=e.id,o=e.attrName,i=e.ShadingModel;if("object"===typeof i&&(i=i.value),!t.has(r))return null;var a,s=this.parseParameters(e,n,r);switch(i.toLowerCase()){case"phong":a=new THREE.MeshPhongMaterial;break;case"lambert":a=new THREE.MeshLambertMaterial;break;default:console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',i),a=new THREE.MeshPhongMaterial({color:3342591})}return a.setValues(s),a.name=o,a},parseParameters:function(e,n,r){var o={};e.BumpFactor&&(o.bumpScale=e.BumpFactor.value),e.Diffuse?o.color=(new THREE.Color).fromArray(e.Diffuse.value):e.DiffuseColor&&"Color"===e.DiffuseColor.type&&(o.color=(new THREE.Color).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(o.displacementScale=e.DisplacementFactor.value),e.Emissive?o.emissive=(new THREE.Color).fromArray(e.Emissive.value):e.EmissiveColor&&"Color"===e.EmissiveColor.type&&(o.emissive=(new THREE.Color).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(o.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(o.opacity=parseFloat(e.Opacity.value)),o.opacity<1&&(o.transparent=!0),e.ReflectionFactor&&(o.reflectivity=e.ReflectionFactor.value),e.Shininess&&(o.shininess=e.Shininess.value),e.Specular?o.specular=(new THREE.Color).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(o.specular=(new THREE.Color).fromArray(e.SpecularColor.value));var i=this;return t.get(r).children.forEach((function(e){var t=e.relationship;switch(t){case"Bump":o.bumpMap=i.getTexture(n,e.ID);break;case"DiffuseColor":o.map=i.getTexture(n,e.ID);break;case"DisplacementColor":o.displacementMap=i.getTexture(n,e.ID);break;case"EmissiveColor":o.emissiveMap=i.getTexture(n,e.ID);break;case"NormalMap":o.normalMap=i.getTexture(n,e.ID);break;case"ReflectionColor":o.envMap=i.getTexture(n,e.ID),o.envMap.mapping=THREE.EquirectangularReflectionMapping;break;case"SpecularColor":o.specularMap=i.getTexture(n,e.ID);break;case"TransparentColor":o.alphaMap=i.getTexture(n,e.ID),o.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",t)}})),o},getTexture:function(n,r){return"LayeredTexture"in e.Objects&&r in e.Objects.LayeredTexture&&(console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),r=t.get(r).children[0].ID),n.get(r)},parseDeformers:function(){var n={},r={};if("Deformer"in e.Objects){var o=e.Objects.Deformer;for(var i in o){var a=o[i],s=t.get(parseInt(i));if("Skin"===a.attrType){var u=this.parseSkeleton(s,o);u.ID=i,s.parents.length>1&&console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),u.geometryID=s.parents[0].ID,n[i]=u}else if("BlendShape"===a.attrType){var c={id:i};c.rawTargets=this.parseMorphTargets(s,o),c.id=i,s.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),r[i]=c}}}return{skeletons:n,morphTargets:r}},parseSkeleton:function(e,t){var n=[];return e.children.forEach((function(e){var r=t[e.ID];if("Cluster"===r.attrType){var o={ID:e.ID,indices:[],weights:[],transform:(new THREE.Matrix4).fromArray(r.Transform.a),transformLink:(new THREE.Matrix4).fromArray(r.TransformLink.a),linkMode:r.Mode};"Indexes"in r&&(o.indices=r.Indexes.a,o.weights=r.Weights.a),n.push(o)}})),{rawBones:n,bones:[]}},parseMorphTargets:function(e,n){for(var r=[],o=0;o<e.children.length;o++){if(8===o){console.warn("FBXLoader: maximum of 8 morph targets supported. Ignoring additional targets.");break}var i=e.children[o],a=n[i.ID],s={name:a.attrName,initialWeight:a.DeformPercent,id:a.id,fullWeights:a.FullWeights.a};if("BlendShapeChannel"!==a.attrType)return;t.get(parseInt(i.ID)).children.forEach((function(e){void 0===e.relationship&&(s.geoID=e.ID)})),r.push(s)}return r},parseScene:function(r,o,i){n=new THREE.Group;var s=this.parseModels(r.skeletons,o,i),u=e.Objects.Model,c=this;s.forEach((function(e){var r=u[e.ID];c.setLookAtProperties(e,r),t.get(e.ID).parents.forEach((function(t){var n=s.get(t.ID);void 0!==n&&n.add(e)})),null===e.parent&&n.add(e)})),this.bindSkeleton(r.skeletons,o,s),this.createAmbientLight(),this.setupMorphMaterials();var l=(new a).parse();1===n.children.length&&n.children[0].isGroup&&(n.children[0].animations=l,n=n.children[0]),n.animations=l},parseModels:function(n,r,o){var i=new Map,a=e.Objects.Model;for(var s in a){var u=parseInt(s),c=a[s],l=t.get(u),d=this.buildSkeleton(l,n,u,c.attrName);if(!d){switch(c.attrType){case"Camera":d=this.createCamera(l);break;case"Light":d=this.createLight(l);break;case"Mesh":d=this.createMesh(l,r,o);break;case"NurbsCurve":d=this.createCurve(l,r);break;case"LimbNode":case"Null":default:d=new THREE.Group}d.name=THREE.PropertyBinding.sanitizeNodeName(c.attrName),d.ID=u}this.setModelTransforms(d,c),i.set(u,d)}return i},buildSkeleton:function(e,t,n,r){var o=null;return e.parents.forEach((function(e){for(var i in t){var a=t[i];a.rawBones.forEach((function(t,i){if(t.ID===e.ID){var s=o;(o=new THREE.Bone).matrixWorld.copy(t.transformLink),o.name=THREE.PropertyBinding.sanitizeNodeName(r),o.ID=n,a.bones[i]=o,null!==s&&o.add(s)}}))}})),o},createCamera:function(t){var n,r;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(r=n)})),void 0===r)n=new THREE.Object3D;else{var o=0;void 0!==r.CameraProjectionType&&1===r.CameraProjectionType.value&&(o=1);var i=1;void 0!==r.NearPlane&&(i=r.NearPlane.value/1e3);var a=1e3;void 0!==r.FarPlane&&(a=r.FarPlane.value/1e3);var s=window.innerWidth,u=window.innerHeight;void 0!==r.AspectWidth&&void 0!==r.AspectHeight&&(s=r.AspectWidth.value,u=r.AspectHeight.value);var c=s/u,l=45;void 0!==r.FieldOfView&&(l=r.FieldOfView.value);var d=r.FocalLength?r.FocalLength.value:null;switch(o){case 0:n=new THREE.PerspectiveCamera(l,c,i,a),null!==d&&n.setFocalLength(d);break;case 1:n=new THREE.OrthographicCamera(-s/2,s/2,u/2,-u/2,i,a);break;default:console.warn("THREE.FBXLoader: Unknown camera type "+o+"."),n=new THREE.Object3D}}return n},createLight:function(t){var n,r;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(r=n)})),void 0===r)n=new THREE.Object3D;else{var o;o=void 0===r.LightType?0:r.LightType.value;var i=16777215;void 0!==r.Color&&(i=(new THREE.Color).fromArray(r.Color.value));var a=void 0===r.Intensity?1:r.Intensity.value/100;void 0!==r.CastLightOnObject&&0===r.CastLightOnObject.value&&(a=0);var s=0;void 0!==r.FarAttenuationEnd&&(s=void 0!==r.EnableFarAttenuation&&0===r.EnableFarAttenuation.value?0:r.FarAttenuationEnd.value);switch(o){case 0:n=new THREE.PointLight(i,a,s,1);break;case 1:n=new THREE.DirectionalLight(i,a);break;case 2:var u=Math.PI/3;void 0!==r.InnerAngle&&(u=THREE.Math.degToRad(r.InnerAngle.value));var c=0;void 0!==r.OuterAngle&&(c=THREE.Math.degToRad(r.OuterAngle.value),c=Math.max(c,1)),n=new THREE.SpotLight(i,a,s,u,c,1);break;default:console.warn("THREE.FBXLoader: Unknown light type "+r.LightType.value+", defaulting to a THREE.PointLight."),n=new THREE.PointLight(i,a)}void 0!==r.CastShadows&&1===r.CastShadows.value&&(n.castShadow=!0)}return n},createMesh:function(e,t,n){var r,o=null,i=null,a=[];return e.children.forEach((function(e){t.has(e.ID)&&(o=t.get(e.ID)),n.has(e.ID)&&a.push(n.get(e.ID))})),a.length>1?i=a:a.length>0?i=a[0]:(i=new THREE.MeshPhongMaterial({color:13421772}),a.push(i)),"color"in o.attributes&&a.forEach((function(e){e.vertexColors=THREE.VertexColors})),o.FBX_Deformer?(a.forEach((function(e){e.skinning=!0})),r=new THREE.SkinnedMesh(o,i)):r=new THREE.Mesh(o,i),r},createCurve:function(e,t){var n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),r=new THREE.LineBasicMaterial({color:3342591,linewidth:1});return new THREE.Line(n,r)},setModelTransforms:function(e,t){var n={};"RotationOrder"in t&&(n.eulerOrder=parseInt(t.RotationOrder.value)),"Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value);var r=E(n);e.applyMatrix(r)},setLookAtProperties:function(r,o){"LookAtProperty"in o&&t.get(r.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){var o=e.Objects.Model[t.ID];if("Lcl_Translation"in o){var i=o.Lcl_Translation.value;void 0!==r.target?(r.target.position.fromArray(i),n.add(r.target)):r.lookAt((new THREE.Vector3).fromArray(i))}}}))},bindSkeleton:function(e,n,r){var o=this.parsePoseNodes();for(var i in e){var a=e[i];t.get(parseInt(a.ID)).parents.forEach((function(e){if(n.has(e.ID)){var i=e.ID;t.get(i).parents.forEach((function(e){r.has(e.ID)&&r.get(e.ID).bind(new THREE.Skeleton(a.bones),o[e.ID])}))}}))}},parsePoseNodes:function(){var t={};if("Pose"in e.Objects){var n=e.Objects.Pose;for(var r in n)if("BindPose"===n[r].attrType){var o=n[r].PoseNode;Array.isArray(o)?o.forEach((function(e){t[e.Node]=(new THREE.Matrix4).fromArray(e.Matrix.a)})):t[o.Node]=(new THREE.Matrix4).fromArray(o.Matrix.a)}}return t},createAmbientLight:function(){if("GlobalSettings"in e&&"AmbientColor"in e.GlobalSettings){var t=e.GlobalSettings.AmbientColor.value,r=t[0],o=t[1],i=t[2];if(0!==r||0!==o||0!==i){var a=new THREE.Color(r,o,i);n.add(new THREE.AmbientLight(a,1))}}},setupMorphMaterials:function(){n.traverse((function(e){if(e.isMesh&&(e.geometry.morphAttributes.position||e.geometry.morphAttributes.normal)){var t=e.uuid,r=e.material.uuid,o=!1;n.traverse((function(e){e.isMesh&&e.material.uuid===r&&e.uuid!==t&&(o=!0)})),!0===o&&(e.material=e.material.clone()),e.material.morphTargets=!0}}))}},i.prototype={constructor:i,parse:function(n){var r=new Map;if("Geometry"in e.Objects){var o=e.Objects.Geometry;for(var i in o){var a=t.get(parseInt(i)),s=this.parseGeometry(a,o[i],n);r.set(parseInt(i),s)}}return r},parseGeometry:function(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}},parseMeshGeometry:function(t,n,r){var o=r.skeletons,i=r.morphTargets,a=t.parents.map((function(t){return e.Objects.Model[t.ID]}));if(0!==a.length){var s=t.children.reduce((function(e,t){return void 0!==o[t.ID]&&(e=o[t.ID]),e}),null),u=t.children.reduce((function(e,t){return void 0!==i[t.ID]&&(e=i[t.ID]),e}),null),c=a[0],l={};"RotationOrder"in c&&(l.eulerOrder=c.RotationOrder.value),"GeometricTranslation"in c&&(l.translation=c.GeometricTranslation.value),"GeometricRotation"in c&&(l.rotation=c.GeometricRotation.value),"GeometricScaling"in c&&(l.scale=c.GeometricScaling.value);var d=E(l);return this.genGeometry(n,s,u,d)}},genGeometry:function(e,t,n,r){var o=new THREE.BufferGeometry;e.attrName&&(o.name=e.attrName);var i=this.parseGeoNode(e,t),a=this.genBuffers(i),s=new THREE.Float32BufferAttribute(a.vertex,3);if(r.applyToBufferAttribute(s),o.addAttribute("position",s),a.colors.length>0&&o.addAttribute("color",new THREE.Float32BufferAttribute(a.colors,3)),t&&(o.addAttribute("skinIndex",new THREE.Uint16BufferAttribute(a.weightsIndices,4)),o.addAttribute("skinWeight",new THREE.Float32BufferAttribute(a.vertexWeights,4)),o.FBX_Deformer=t),a.normal.length>0){var u=new THREE.Float32BufferAttribute(a.normal,3);(new THREE.Matrix3).getNormalMatrix(r).applyToBufferAttribute(u),o.addAttribute("normal",u)}if(a.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),o.addAttribute(n,new THREE.Float32BufferAttribute(a.uvs[t],2))})),i.material&&"AllSame"!==i.material.mappingType){var c=a.materialIndex[0],l=0;if(a.materialIndex.forEach((function(e,t){e!==c&&(o.addGroup(l,t-l,c),c=e,l=t)})),o.groups.length>0){var d=o.groups[o.groups.length-1],f=d.start+d.count;f!==a.materialIndex.length&&o.addGroup(f,a.materialIndex.length-f,c)}0===o.groups.length&&o.addGroup(0,a.materialIndex.length,a.materialIndex[0])}return this.addMorphTargets(o,e,n,r),o},parseGeoNode:function(e,t){var n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];for(var r=0;e.LayerElementUV[r];)n.uv.push(this.parseUVs(e.LayerElementUV[r])),r++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,o){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[o]})}))}))),n},genBuffers:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,o=!1,i=[],a=[],s=[],u=[],c=[],l=[],d=this;return e.vertexIndices.forEach((function(f,p){var m=!1;f<0&&(f^=-1,m=!0);var v=[],g=[];if(i.push(3*f,3*f+1,3*f+2),e.color){var y=h(p,n,f,e.color);s.push(y[0],y[1],y[2])}if(e.skeleton){if(void 0!==e.weightTable[f]&&e.weightTable[f].forEach((function(e){g.push(e.weight),v.push(e.id)})),g.length>4){o||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),o=!0);var b=[0,0,0,0],E=[0,0,0,0];g.forEach((function(e,t){var n=e,r=v[t];E.forEach((function(e,t,o){if(n>e){o[t]=n,n=e;var i=b[t];b[t]=r,r=i}}))})),v=b,g=E}for(;g.length<4;)g.push(0),v.push(0);for(var _=0;_<4;++_)c.push(g[_]),l.push(v[_])}if(e.normal){y=h(p,n,f,e.normal);a.push(y[0],y[1],y[2])}if(e.material&&"AllSame"!==e.material.mappingType)var T=h(p,n,f,e.material)[0];e.uv&&e.uv.forEach((function(e,t){var r=h(p,n,f,e);void 0===u[t]&&(u[t]=[]),u[t].push(r[0]),u[t].push(r[1])})),r++,m&&(d.genFace(t,e,i,T,a,s,u,c,l,r),n++,r=0,i=[],a=[],s=[],u=[],c=[],l=[])})),t},genFace:function(e,t,n,r,o,i,a,s,u,c){for(var l=2;l<c;l++)e.vertex.push(t.vertexPositions[n[0]]),e.vertex.push(t.vertexPositions[n[1]]),e.vertex.push(t.vertexPositions[n[2]]),e.vertex.push(t.vertexPositions[n[3*(l-1)]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+1]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+2]]),e.vertex.push(t.vertexPositions[n[3*l]]),e.vertex.push(t.vertexPositions[n[3*l+1]]),e.vertex.push(t.vertexPositions[n[3*l+2]]),t.skeleton&&(e.vertexWeights.push(s[0]),e.vertexWeights.push(s[1]),e.vertexWeights.push(s[2]),e.vertexWeights.push(s[3]),e.vertexWeights.push(s[4*(l-1)]),e.vertexWeights.push(s[4*(l-1)+1]),e.vertexWeights.push(s[4*(l-1)+2]),e.vertexWeights.push(s[4*(l-1)+3]),e.vertexWeights.push(s[4*l]),e.vertexWeights.push(s[4*l+1]),e.vertexWeights.push(s[4*l+2]),e.vertexWeights.push(s[4*l+3]),e.weightsIndices.push(u[0]),e.weightsIndices.push(u[1]),e.weightsIndices.push(u[2]),e.weightsIndices.push(u[3]),e.weightsIndices.push(u[4*(l-1)]),e.weightsIndices.push(u[4*(l-1)+1]),e.weightsIndices.push(u[4*(l-1)+2]),e.weightsIndices.push(u[4*(l-1)+3]),e.weightsIndices.push(u[4*l]),e.weightsIndices.push(u[4*l+1]),e.weightsIndices.push(u[4*l+2]),e.weightsIndices.push(u[4*l+3])),t.color&&(e.colors.push(i[0]),e.colors.push(i[1]),e.colors.push(i[2]),e.colors.push(i[3*(l-1)]),e.colors.push(i[3*(l-1)+1]),e.colors.push(i[3*(l-1)+2]),e.colors.push(i[3*l]),e.colors.push(i[3*l+1]),e.colors.push(i[3*l+2])),t.material&&"AllSame"!==t.material.mappingType&&(e.materialIndex.push(r),e.materialIndex.push(r),e.materialIndex.push(r)),t.normal&&(e.normal.push(o[0]),e.normal.push(o[1]),e.normal.push(o[2]),e.normal.push(o[3*(l-1)]),e.normal.push(o[3*(l-1)+1]),e.normal.push(o[3*(l-1)+2]),e.normal.push(o[3*l]),e.normal.push(o[3*l+1]),e.normal.push(o[3*l+2])),t.uv&&t.uv.forEach((function(t,n){void 0===e.uvs[n]&&(e.uvs[n]=[]),e.uvs[n].push(a[n][0]),e.uvs[n].push(a[n][1]),e.uvs[n].push(a[n][2*(l-1)]),e.uvs[n].push(a[n][2*(l-1)+1]),e.uvs[n].push(a[n][2*l]),e.uvs[n].push(a[n][2*l+1])}))},addMorphTargets:function(t,n,r,o){if(null!==r){t.morphAttributes.position=[],t.morphAttributes.normal=[];var i=this;r.rawTargets.forEach((function(r){var a=e.Objects.Geometry[r.geoID];void 0!==a&&i.genMorphGeometry(t,n,a,o)}))}},genMorphGeometry:function(e,t,n,r){var o=new THREE.BufferGeometry;n.attrName&&(o.name=n.attrName);for(var i=void 0!==t.PolygonVertexIndex?t.PolygonVertexIndex.a:[],a=void 0!==t.Vertices?t.Vertices.a.slice():[],s=void 0!==n.Vertices?n.Vertices.a:[],u=void 0!==n.Indexes?n.Indexes.a:[],c=0;c<u.length;c++){var l=3*u[c];a[l]+=s[3*c],a[l+1]+=s[3*c+1],a[l+2]+=s[3*c+2]}var d={vertexIndices:i,vertexPositions:a},f=this.genBuffers(d),p=new THREE.Float32BufferAttribute(f.vertex,3);p.name=n.attrName,r.applyToBufferAttribute(p),e.morphAttributes.position.push(p)},parseNormals:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Normals.a,o=[];return"IndexToDirect"===n&&("NormalIndex"in e?o=e.NormalIndex.a:"NormalsIndex"in e&&(o=e.NormalsIndex.a)),{dataSize:3,buffer:r,indices:o,mappingType:t,referenceType:n}},parseUVs:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.UV.a,o=[];return"IndexToDirect"===n&&(o=e.UVIndex.a),{dataSize:2,buffer:r,indices:o,mappingType:t,referenceType:n}},parseVertexColors:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Colors.a,o=[];return"IndexToDirect"===n&&(o=e.ColorIndex.a),{dataSize:4,buffer:r,indices:o,mappingType:t,referenceType:n}},parseMaterialIndices:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType;if("NoMappingInformation"===t)return{dataSize:1,buffer:[0],indices:[0],mappingType:"AllSame",referenceType:n};for(var r=e.Materials.a,o=[],i=0;i<r.length;++i)o.push(i);return{dataSize:1,buffer:r,indices:o,mappingType:t,referenceType:n}},parseNurbsGeometry:function(e){if(void 0===THREE.NURBSCurve)return console.error("THREE.FBXLoader: The loader relies on THREE.NURBSCurve for any nurbs present in the model. Nurbs will show up as empty geometry."),new THREE.BufferGeometry;var t=parseInt(e.Order);if(isNaN(t))return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s",e.Order,e.id),new THREE.BufferGeometry;for(var n,r,o=t-1,i=e.KnotVector.a,a=[],s=e.Points.a,u=0,c=s.length;u<c;u+=4)a.push((new THREE.Vector4).fromArray(s,u));if("Closed"===e.Form)a.push(a[0]);else if("Periodic"===e.Form){n=o,r=i.length-1-n;for(u=0;u<o;++u)a.push(a[u])}var l=new THREE.NURBSCurve(o,i,a,n,r).getPoints(7*a.length),d=new Float32Array(3*l.length);l.forEach((function(e,t){e.toArray(d,3*t)}));var f=new THREE.BufferGeometry;return f.addAttribute("position",new THREE.BufferAttribute(d,3)),f}},a.prototype={constructor:a,parse:function(){var e=[],t=this.parseClips();if(void 0===t)return e;for(var n in t){var r=t[n],o=this.addClip(r);e.push(o)}return e},parseClips:function(){if(void 0!==e.Objects.AnimationCurve){var t=this.parseAnimationCurveNodes();this.parseAnimationCurves(t);var n=this.parseAnimationLayers(t);return this.parseAnimStacks(n)}},parseAnimationCurveNodes:function(){var t=e.Objects.AnimationCurveNode,n=new Map;for(var r in t){var o=t[r];if(null!==o.attrName.match(/S|R|T|DeformPercent/)){var i={id:o.id,attr:o.attrName,curves:{}};n.set(i.id,i)}}return n},parseAnimationCurves:function(n){var r=e.Objects.AnimationCurve;for(var o in r){var i={id:r[o].id,times:r[o].KeyTime.a.map(f),values:r[o].KeyValueFloat.a},a=t.get(i.id);if(void 0!==a){var s=a.parents[0].ID,u=a.parents[0].relationship;u.match(/X/)?n.get(s).curves.x=i:u.match(/Y/)?n.get(s).curves.y=i:u.match(/Z/)?n.get(s).curves.z=i:u.match(/d|DeformPercent/)&&n.has(s)&&(n.get(s).curves.morph=i)}}},parseAnimationLayers:function(n){var r=e.Objects.AnimationLayer,o=new Map;for(var i in r){var a=[],s=t.get(parseInt(i));if(void 0!==s){var u=s.children,c=this;u.forEach((function(r,o){if(n.has(r.ID)){var i=n.get(r.ID);if(void 0!==i.curves.x||void 0!==i.curves.y||void 0!==i.curves.z){if(void 0===a[o]){t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(p=e.ID)}));var s=e.Objects.Model[p.toString()],u={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),initialPosition:[0,0,0],initialRotation:[0,0,0],initialScale:[1,1,1],transform:c.getModelAnimTransform(s)};"PreRotation"in s&&(u.preRotations=s.PreRotation.value),"PostRotation"in s&&(u.postRotations=s.PostRotation.value),a[o]=u}a[o][i.attr]=i}else if(void 0!==i.curves.morph){if(void 0===a[o]){var l;t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(l=e.ID)}));var d=t.get(l).parents[0].ID,f=t.get(d).parents[0].ID,p=t.get(f).parents[0].ID;s=e.Objects.Model[p],u={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),morphName:e.Objects.Deformer[l].attrName};a[o]=u}a[o][i.attr]=i}}})),o.set(parseInt(i),a)}}return o},getModelAnimTransform:function(e){var t={};return"RotationOrder"in e&&(t.eulerOrder=parseInt(e.RotationOrder.value)),"Lcl_Translation"in e&&(t.translation=e.Lcl_Translation.value),"RotationOffset"in e&&(t.rotationOffset=e.RotationOffset.value),"Lcl_Rotation"in e&&(t.rotation=e.Lcl_Rotation.value),"PreRotation"in e&&(t.preRotation=e.PreRotation.value),"PostRotation"in e&&(t.postRotation=e.PostRotation.value),"Lcl_Scaling"in e&&(t.scale=e.Lcl_Scaling.value),E(t)},parseAnimStacks:function(n){var r=e.Objects.AnimationStack,o={};for(var i in r){var a=t.get(parseInt(i)).children;a.length>1&&console.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");var s=n.get(a[0].ID);o[i]={name:r[i].attrName,layer:s}}return o},addClip:function(e){var t=[],n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new THREE.AnimationClip(e.name,-1,t)},generateTracks:function(e){var t=[],n=new THREE.Vector3,r=new THREE.Quaternion,o=new THREE.Vector3;if(e.transform&&e.transform.decompose(n,r,o),n=n.toArray(),r=(new THREE.Euler).setFromQuaternion(r).toArray(),o=o.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var i=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==i&&t.push(i)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){var a=this.generateRotationTrack(e.modelName,e.R.curves,r,e.preRotations,e.postRotations);void 0!==a&&t.push(a)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){var s=this.generateVectorTrack(e.modelName,e.S.curves,o,"scale");void 0!==s&&t.push(s)}if(void 0!==e.DeformPercent){var u=this.generateMorphTrack(e);void 0!==u&&t.push(u)}return t},generateVectorTrack:function(e,t,n,r){var o=this.getTimesForAllAxes(t),i=this.getKeyframeTrackValues(o,t,n);return new THREE.VectorKeyframeTrack(e+"."+r,o,i)},generateRotationTrack:function(e,t,n,r,o){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(THREE.Math.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(THREE.Math.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(THREE.Math.degToRad));var i=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(i,t,n);void 0!==r&&((r=r.map(THREE.Math.degToRad)).push("ZYX"),r=(new THREE.Euler).fromArray(r),r=(new THREE.Quaternion).setFromEuler(r)),void 0!==o&&((o=o.map(THREE.Math.degToRad)).push("ZYX"),o=(new THREE.Euler).fromArray(o),o=(new THREE.Quaternion).setFromEuler(o).inverse());for(var s=new THREE.Quaternion,u=new THREE.Euler,c=[],l=0;l<a.length;l+=3)u.set(a[l],a[l+1],a[l+2],"ZYX"),s.setFromEuler(u),void 0!==r&&s.premultiply(r),void 0!==o&&s.multiply(o),s.toArray(c,l/3*4);return new THREE.QuaternionKeyframeTrack(e+".quaternion",i,c)},generateMorphTrack:function(e){var t=e.DeformPercent.curves.morph,r=t.values.map((function(e){return e/100})),o=n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];return new THREE.NumberKeyframeTrack(e.modelName+".morphTargetInfluences["+o+"]",t.times,r)},getTimesForAllAxes:function(e){var t=[];return void 0!==e.x&&(t=t.concat(e.x.times)),void 0!==e.y&&(t=t.concat(e.y.times)),void 0!==e.z&&(t=t.concat(e.z.times)),t=t.sort((function(e,t){return e-t})).filter((function(e,t,n){return n.indexOf(e)==t}))},getKeyframeTrackValues:function(e,t,n){var r=n,o=[],i=-1,a=-1,s=-1;return e.forEach((function(e){if(t.x&&(i=t.x.times.indexOf(e)),t.y&&(a=t.y.times.indexOf(e)),t.z&&(s=t.z.times.indexOf(e)),-1!==i){var n=t.x.values[i];o.push(n),r[0]=n}else o.push(r[0]);if(-1!==a){var u=t.y.values[a];o.push(u),r[1]=u}else o.push(r[1]);if(-1!==s){var c=t.z.values[s];o.push(c),r[2]=c}else o.push(r[2])})),o},interpolateRotations:function(e){for(var t=1;t<e.values.length;t++){var n=e.values[t-1],r=e.values[t]-n,o=Math.abs(r);if(o>=180){for(var i=o/180,a=r/i,s=n+a,u=e.times[t-1],c=(e.times[t]-u)/i,l=u+c,d=[],f=[];l<e.times[t];)d.push(l),l+=c,f.push(s),s+=a;e.times=k(e.times,t,d),e.values=k(e.values,t,f)}}}},s.prototype={constructor:s,getPrevNode:function(){return this.nodeStack[this.currentIndent-2]},getCurrentNode:function(){return this.nodeStack[this.currentIndent-1]},getCurrentProp:function(){return this.currentProp},pushStack:function(e){this.nodeStack.push(e),this.currentIndent+=1},popStack:function(){this.nodeStack.pop(),this.currentIndent-=1},setCurrentProp:function(e,t){this.currentProp=e,this.currentPropName=t},parse:function(e){this.currentIndent=0,console.log("FBXTree: ",l),this.allNodes=new l,this.nodeStack=[],this.currentProp=[],this.currentPropName="";var t=this,n=e.split(/[\r\n]+/);return n.forEach((function(e,r){var o=e.match(/^[\s\t]*;/),i=e.match(/^[\s\t]*$/);if(!o&&!i){var a=e.match("^\\t{"+t.currentIndent+"}(\\w+):(.*){",""),s=e.match("^\\t{"+t.currentIndent+"}(\\w+):[\\s\\t\\r\\n](.*)"),u=e.match("^\\t{"+(t.currentIndent-1)+"}}");a?t.parseNodeBegin(e,a):s?t.parseNodeProperty(e,s,n[++r]):u?t.popStack():e.match(/^[^\s\t}]/)&&t.parseNodePropertyContinued(e)}})),this.allNodes},parseNodeBegin:function(e,t){var n=t[1].trim().replace(/^"/,"").replace(/"$/,""),r=t[2].split(",").map((function(e){return e.trim().replace(/^"/,"").replace(/"$/,"")})),o={name:n},i=this.parseNodeAttr(r),a=this.getCurrentNode();0===this.currentIndent?this.allNodes.add(n,o):n in a?("PoseNode"===n?a.PoseNode.push(o):void 0!==a[n].id&&(a[n]={},a[n][a[n].id]=a[n]),""!==i.id&&(a[n][i.id]=o)):"number"===typeof i.id?(a[n]={},a[n][i.id]=o):"Properties70"!==n&&(a[n]="PoseNode"===n?[o]:o),"number"===typeof i.id&&(o.id=i.id),""!==i.name&&(o.attrName=i.name),""!==i.type&&(o.attrType=i.type),this.pushStack(o)},parseNodeAttr:function(e){var t=e[0];""!==e[0]&&(t=parseInt(e[0]),isNaN(t)&&(t=e[0]));var n="",r="";return e.length>1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}},parseNodeProperty:function(e,t,n){var r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),o=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===o&&(o=n.replace(/"/g,"").replace(/,$/,"").trim());var i=this.getCurrentNode();if("Properties70"!==i.name){if("C"===r){var a=o.split(",").slice(1),s=parseInt(a[0]),u=parseInt(a[1]),c=o.split(",").slice(3);r="connections",function(e,t){for(var n=0,r=e.length,o=t.length;n<o;n++,r++)e[r]=t[n]}(o=[s,u],c=c.map((function(e){return e.trim().replace(/^"/,"")}))),void 0===i[r]&&(i[r]=[])}"Node"===r&&(i.id=o),r in i&&Array.isArray(i[r])?i[r].push(o):"a"!==r?i[r]=o:i.a=o,this.setCurrentProp(i,r),"a"===r&&","!==o.slice(-1)&&(i.a=T(o))}else this.parseNodeSpecialProperty(e,r,o)},parseNodePropertyContinued:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=T(t.a))},parseNodeSpecialProperty:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),o=r[0],i=r[1],a=r[2],s=r[3],u=r[4];switch(i){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":u=parseFloat(u);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":u=T(u)}this.getPrevNode()[o]={type:i,type2:a,flag:s,value:u},this.setCurrentProp(this.getPrevNode(),o)}},u.prototype={constructor:u,parse:function(e){var t=new c(e);t.skip(23);var n=t.getUint32();console.log("THREE.FBXLoader: FBX binary version: "+n);for(var r=new l;!this.endOfContent(t);){var o=this.parseNode(t,n);null!==o&&r.add(o.name,o)}return r},endOfContent:function(e){return e.size()%16===0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()},parseNode:function(e,t){var n={},r=t>=7500?e.getUint64():e.getUint32(),o=t>=7500?e.getUint64():e.getUint32(),i=(t>=7500?e.getUint64():e.getUint32(),e.getUint8()),a=e.getString(i);if(0===r)return null;for(var s=[],u=0;u<o;u++)s.push(this.parseProperty(e));var c=s.length>0?s[0]:"",l=s.length>1?s[1]:"",d=s.length>2?s[2]:"";for(n.singleProperty=1===o&&e.getOffset()===r;r>e.getOffset();){var f=this.parseNode(e,t);null!==f&&this.parseSubNode(a,n,f)}return n.propertyList=s,"number"===typeof c&&(n.id=c),""!==l&&(n.attrName=l),""!==d&&(n.attrType=d),""!==a&&(n.name=a),n},parseSubNode:function(e,t,n){if(!0===n.singleProperty){var r=n.propertyList[0];Array.isArray(r)?(t[n.name]=n,n.a=r):t[n.name]=r}else if("Connections"===e&&"C"===n.name){var o=[];n.propertyList.forEach((function(e,t){0!==t&&o.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(o)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var i,a=n.propertyList[0],s=n.propertyList[1],u=n.propertyList[2],c=n.propertyList[3];0===a.indexOf("Lcl ")&&(a=a.replace("Lcl ","Lcl_")),0===s.indexOf("Lcl ")&&(s=s.replace("Lcl ","Lcl_")),i="Color"===s||"ColorRGB"===s||"Vector"===s||"Vector3D"===s||0===s.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[a]={type:s,type2:u,flag:c,value:i}}else void 0===t[n.name]?"number"===typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)},parseProperty:function(e){var t=e.getString(1);switch(t){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":var n=e.getUint32();return e.getArrayBuffer(n);case"S":n=e.getUint32();return e.getString(n);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":var r=e.getUint32(),o=e.getUint32(),i=e.getUint32();if(0===o)switch(t){case"b":case"c":return e.getBooleanArray(r);case"d":return e.getFloat64Array(r);case"f":return e.getFloat32Array(r);case"i":return e.getInt32Array(r);case"l":return e.getInt64Array(r)}"undefined"===typeof Zlib&&console.error("THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js");var a=new c(new Zlib.Inflate(new Uint8Array(e.getArrayBuffer(i))).decompress().buffer);switch(t){case"b":case"c":return a.getBooleanArray(r);case"d":return a.getFloat64Array(r);case"f":return a.getFloat32Array(r);case"i":return a.getInt32Array(r);case"l":return a.getInt64Array(r)}default:throw new Error("THREE.FBXLoader: Unknown property type "+t)}}},c.prototype={constructor:c,getOffset:function(){return this.offset},size:function(){return this.dv.buffer.byteLength},skip:function(e){this.offset+=e},getBoolean:function(){return 1===(1&this.getUint8())},getBooleanArray:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getBoolean());return t},getUint8:function(){var e=this.dv.getUint8(this.offset);return this.offset+=1,e},getInt16:function(){var e=this.dv.getInt16(this.offset,this.littleEndian);return this.offset+=2,e},getInt32:function(){var e=this.dv.getInt32(this.offset,this.littleEndian);return this.offset+=4,e},getInt32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt32());return t},getUint32:function(){var e=this.dv.getUint32(this.offset,this.littleEndian);return this.offset+=4,e},getInt64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),2147483648&t?(t=4294967295&~t,4294967295===(e=4294967295&~e)&&(t=t+1&4294967295),-(4294967296*t+(e=e+1&4294967295))):4294967296*t+e},getInt64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt64());return t},getUint64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),4294967296*t+e},getFloat32:function(){var e=this.dv.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e},getFloat32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat32());return t},getFloat64:function(){var e=this.dv.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e},getFloat64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat64());return t},getArrayBuffer:function(e){var t=this.dv.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t},getString:function(e){for(var t=[],n=0;n<e;n++)t[n]=this.getUint8();var r=t.indexOf(0);return r>=0&&(t=t.slice(0,r)),THREE.LoaderUtils.decodeText(new Uint8Array(t))}},l.prototype={constructor:l,add:function(e,t){this[e]=t}};var p=[];function h(e,t,n,r){var o;switch(r.mappingType){case"ByPolygonVertex":o=e;break;case"ByPolygon":o=t;break;case"ByVertice":o=n;break;case"AllSame":o=r.indices[0];break;default:console.warn("THREE.FBXLoader: unknown attribute mapping type "+r.mappingType)}"IndexToDirect"===r.referenceType&&(o=r.indices[o]);var i=o*r.dataSize,a=i+r.dataSize;return function(e,t,n,r){for(var o=n,i=0;o<r;o++,i++)e[i]=t[o];return e}(p,r.buffer,i,a)}var m=new THREE.Matrix4,v=new THREE.Euler,g=new THREE.Vector3,y=new THREE.Vector3,b=new THREE.Matrix4;function E(e){var t=new THREE.Matrix4;y.set(0,0,0),b.identity();var n,r=e.eulerOrder?_(e.eulerOrder):_(0);(e.translation&&y.fromArray(e.translation),e.rotationOffset&&y.add(g.fromArray(e.rotationOffset)),e.rotation)&&((n=e.rotation.map(THREE.Math.degToRad)).push(r),b.makeRotationFromEuler(v.fromArray(n)));e.preRotation&&((n=e.preRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(v.fromArray(n)),b.premultiply(m));e.postRotation&&((n=e.postRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(v.fromArray(n)),m.getInverse(m),b.multiply(m));return e.scale&&t.scale(g.fromArray(e.scale)),t.setPosition(y),t.multiply(b),t}function _(e){var t=["ZYX","YZX","XZY","ZXY","YXZ","XYZ"];return 6===e?(console.warn("THREE.FBXLoader: unsupported Euler Order: Spherical XYZ. Animations and rotations may be incorrect."),t[0]):t[e]}function T(e){return e.split(",").map((function(e){return parseFloat(e)}))}function w(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.byteLength),THREE.LoaderUtils.decodeText(new Uint8Array(e,t,n))}function k(e,t,n){return e.slice(0,t).concat(n).concat(e.slice(t))}return r}()},16453:function(e){e.exports=Object.assign((function(){}),{FACE_1:0,FACE_2:1,FACE_3:2,FACE_4:3,L_SHOULDER_1:4,R_SHOULDER_1:5,L_SHOULDER_2:6,R_SHOULDER_2:7,SELECT:8,START:9,DPAD_UP:12,DPAD_DOWN:13,DPAD_LEFT:14,DPAD_RIGHT:15,VENDOR:16})},44379:function(e){e.exports=function(e,t,n){this.type=e,this.index=t,this.pressed=n.pressed,this.value=n.value}},82667:function(e){e.exports={size:5,cellSize:10,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5},autogenerated:!0,cells:[{q:-1,r:0,s:1,h:1,walkable:!0,userData:{}},{q:0,r:-1,s:1,h:1,walkable:!0,userData:{}},{q:0,r:0,s:0,h:1,walkable:!0,userData:{}},{q:1,r:-1,s:0,h:1,walkable:!0,userData:{}},{q:-1,r:1,s:0,h:0,walkable:!0,userData:{}},{q:0,r:1,s:-1,h:0,walkable:!0,userData:{}},{q:1,r:0,s:-1,h:0,walkable:!0,userData:{}}]}},34657:function(e){function t(e){const t=document.getElementById(e),n=t.parentNode;try{n&&n.removeChild(t)}catch(r){}}function n(e,n,r){return new r((function(r,o){const i=n.timeout||5e3,a="script_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),s=function(e,t){var n=document.createElement("script");return n.type="text/javascript",n.async=!0,n.id=t,n.src=e,n}(e,a),u=setTimeout((function(){o(new Error("Script request to "+e+" timed out")),t(a)}),i),c=function(e){clearTimeout(e)};s.addEventListener("load",(function(e){r({ok:!0}),c(u),t(a)})),s.addEventListener("error",(function(n){o(new Error("Script request to "+e+" failed "+n)),c(u),t(a)})),function(e){const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(s)}))}e.exports=function(e){return e=e||{},function(t,r){return n(t,r=r||{},e.Promise||Promise)}}},63471:function(e){var n=e.exports={VERSION:"0.1.1",PI:Math.PI,TAU:2*Math.PI,DEG_TO_RAD:.0174532925,RAD_TO_DEG:57.2957795,SQRT3:Math.sqrt(3),TILE:"tile",ENT:"entity",STR:"structure",HEX:"hex",SQR:"square",ABS:"abstract"};n.Board=function(e,t){if(!e)throw new Error("You must pass in a grid system for the board to use.");this.tiles=[],this.tileGroup=null,this.group=new THREE.Object3D,this.grid=null,this.overlay=null,this.finder=new n.AStarFinder(t),n.Loader.init(),this.setGrid(e)},n.Board.prototype={setEntityOnTile:function(e,t){var n=this.grid.cellToPixel(t.cell);e.position.copy(n),e.position.y+=e.heightOffset||0,e.tile&&(e.tile.entity=null),e.tile=t,t.entity=e},addTile:function(e){-1===this.tiles.indexOf(e)&&(this.tiles.push(e),this.snapTileToGrid(e),e.position.y=0,this.tileGroup.add(e.mesh),this.grid.add(e.cell),e.cell.tile=e)},removeTile:function(e){if(e){var t=this.tiles.indexOf(e);this.grid.remove(e.cell),-1!==t&&this.tiles.splice(t,1),e.dispose()}},removeAllTiles:function(){if(this.tileGroup)for(var e=this.tileGroup.children,t=0;t<e.length;t++)this.tileGroup.remove(e[t])},getTileAtCell:function(e){var t=this.grid.cellToHash(e);return e.tile||("undefined"!=typeof this.grid.cells[t]?this.grid.cells[t].tile:null)},snapToGrid:function(e){var t=this.grid.pixelToCell(e);e.copy(this.grid.cellToPixel(t))},snapTileToGrid:function(e){if(e.cell)e.position.copy(this.grid.cellToPixel(e.cell));else{var t=this.grid.pixelToCell(e.position);e.position.copy(this.grid.cellToPixel(t))}return e},getRandomTile:function(){var e=n.Tools.randomInt(0,this.tiles.length-1);return this.tiles[e]},findPath:function(e,t,n){return this.finder.findPath(e.cell,t.cell,n,this.grid)},setGrid:function(e){this.group.remove(this.tileGroup),this.grid&&e!==this.grid&&(this.removeAllTiles(),this.tiles.forEach((function(e){this.grid.remove(e.cell),e.dispose()})),this.grid.dispose()),this.grid=e,this.tiles=[],this.tileGroup=new THREE.Object3D,this.group.add(this.tileGroup)},generateOverlay:function(e){var t=new THREE.LineBasicMaterial({color:0,opacity:.3});this.overlay&&this.group.remove(this.overlay),this.overlay=new THREE.Object3D,this.grid.generateOverlay(e,this.overlay,t),this.group.add(this.overlay)},generateTilemap:function(e){this.reset();var t=this.grid.generateTiles(e);this.tiles=t,this.tileGroup=new THREE.Object3D;for(var n=0;n<t.length;n++)this.tileGroup.add(t[n].mesh);this.group.add(this.tileGroup)},reset:function(){this.removeAllTiles(),this.tileGroup&&this.group.remove(this.tileGroup)}},n.Board.prototype.constructor=n.Board,n.Cell=function(e,t,r,o){this.q=e||0,this.r=t||0,this.s=r||0,this.h=o||1,this.tile=null,this.userData={},this.walkable=!0,this._calcCost=0,this._priority=0,this._visited=!1,this._parent=null,this.uniqueID=n.LinkedList.generateID()},n.Cell.prototype={set:function(e,t,n){return this.q=e,this.r=t,this.s=n,this},copy:function(e){return this.q=e.q,this.r=e.r,this.s=e.s,this.h=e.h,this.tile=e.tile||null,this.userData=e.userData||{},this.walkable=e.walkable,this},add:function(e){return this.q+=e.q,this.r+=e.r,this.s+=e.s,this},equals:function(e){return this.q===e.q&&this.r===e.r&&this.s===e.s}},n.Cell.prototype.constructor=n.Cell,n.HexGrid=function(e){e=e||{},this.type=n.HEX,this.size=5,this.cellSize="undefined"==typeof e.cellSize?10:e.cellSize,this.cells={},this.numCells=0,this.extrudeSettings=null,this.autogenerated=!1;var t,r=[];for(t=0;6>t;t++)r.push(this._createVertex(t));for(this.cellShape=new THREE.Shape,this.cellShape.moveTo(r[0].x,r[0].y),t=1;6>t;t++)this.cellShape.lineTo(r[t].x,r[t].y);this.cellShape.lineTo(r[0].x,r[0].y),this.cellShape.autoClose=!0,this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=r,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this._hashDelimeter=".",this._directions=[new n.Cell(1,-1,0),new n.Cell(1,0,-1),new n.Cell(0,1,-1),new n.Cell(-1,1,0),new n.Cell(-1,0,1),new n.Cell(0,-1,1)],this._diagonals=[new n.Cell(2,-1,-1),new n.Cell(1,1,-2),new n.Cell(-1,2,-1),new n.Cell(-2,1,1),new n.Cell(-1,-1,2),new n.Cell(1,-2,1)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.HexGrid.TWO_THIRDS=2/3,n.HexGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._cellWidth*.75,this._vec3.y=e.h,this._vec3.z=-(e.s-e.r)*this._cellLength*.5,this._vec3},pixelToCell:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel)},getCellAt:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,o,i=this._directions.length;for(this._list.length=0,r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);if(t)for(r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r+this._hashDelimeter+e.s},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r),Math.abs(e.s-t.s))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var o=Math.abs(e.h);1>o&&(o=1);var i=this._geoCache[o];i||(this.extrudeSettings.amount=o,i=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[o]=i);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:i,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,o,i=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)o=this.cells[t],(r=this.generateTile(o,a.tileScale,a.material)).position.copy(this.cellToPixel(o)),r.position.y=0,i.push(r);return i},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){var t,r,o,i;for(e=e||{},this.size="undefined"==typeof e.size?this.size:e.size,t=-this.size;t<this.size+1;t++)for(r=-this.size;r<this.size+1;r++)o=-t-r,Math.abs(t)<=this.size&&Math.abs(r)<=this.size&&Math.abs(o)<=this.size&&(i=new n.Cell(t,r,o),this.add(i))},generateOverlay:function(e,t,r){var o,i,a,s=this.cellShape.createPointsGeometry();for(o=-e;e+1>o;o++)for(i=-e;e+1>i;i++)if(a=-o-i,Math.abs(o)<=e&&Math.abs(i)<=e&&Math.abs(a)<=e){this._cel.set(o,i,a);var u=new THREE.Line(s,r);u.position.copy(this.cellToPixel(this._cel)),u.rotation.x=90*n.DEG_TO_RAD,t.add(u)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){var o=this;n.Tools.getJSON({url:e,callback:function(e){o.fromJSON(e),t.call(r||null,e)},cache:!1,scope:o})},fromJSON:function(e){var t,r,o=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;t<o.length;t++)(r=new n.Cell).copy(o[t]),this.add(r)},toJSON:function(){var e,t,n={size:this.size,cellSize:this.cellSize,extrudeSettings:this.extrudeSettings,autogenerated:this.autogenerated},r=[];for(t in this.cells)e=this.cells[t],r.push({q:e.q,r:e.r,s:e.s,h:e.h,walkable:e.walkable,userData:e.userData});return n.cells=r,n},_createVertex:function(e){var t=n.TAU/6*e;return new THREE.Vector3(this.cellSize*Math.cos(t),this.cellSize*Math.sin(t),0)},_cubeRound:function(e){var t=Math.round(e.q),n=Math.round(e.r),r=Math.round(e.s),o=Math.abs(t-e.q),i=Math.abs(n-e.r),a=Math.abs(r-e.s);return o>i&&o>a?t=-n-r:i>a?n=-t-r:r=-t-n,this._cel.set(t,n,r)}},n.HexGrid.prototype.constructor=n.HexGrid,n.SqrGrid=function(e){e=e||{},this.type=n.SQR,this.size=5,this.cellSize="undefined"==typeof e.cellSize?10:e.cellSize,this.cells={},this.numCells=0,this.extrudeSettings=null,this.autogenerated=!1;var t=[];t.push(new THREE.Vector3),t.push(new THREE.Vector3(-this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,-this.cellSize)),this.cellShape=new THREE.Shape,this.cellShape.moveTo(-this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,-this.cellSize),this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=t,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._fullCellSize=2*this.cellSize,this._hashDelimeter=".",this._directions=[new n.Cell(1,0,0),new n.Cell(0,-1,0),new n.Cell(-1,0,0),new n.Cell(0,1,0)],this._diagonals=[new n.Cell(-1,-1,0),new n.Cell(-1,1,0),new n.Cell(1,1,0),new n.Cell(1,-1,0)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.SqrGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._fullCellSize,this._vec3.y=e.h,this._vec3.z=e.r*this._fullCellSize,this._vec3},pixelToCell:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n,0)},getCellAt:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,o,i=this._directions.length;for(this._list.length=0,r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);if(t)for(r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var o=Math.abs(e.h);1>o&&(o=1);var i=this._geoCache[o];i||(this.extrudeSettings.amount=o,i=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[o]=i);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:i,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,o,i=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._fullCellSize=2*this.cellSize,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)o=this.cells[t],(r=this.generateTile(o,a.tileScale,a.material)).position.copy(this.cellToPixel(o)),r.position.y=0,i.push(r);return i},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){e=e||{},this.size="undefined"==typeof e.size?this.size:e.size;var t,r,o,i=Math.ceil(this.size/2);for(t=-i;i>t;t++)for(r=-i;i>r;r++)o=new n.Cell(t,r+1),this.add(o)},generateOverlay:function(e,t,r){var o,i,a=Math.ceil(e/2);for(o=-a;a>o;o++)for(i=-a;a>i;i++){this._cel.set(o,i);var s=new THREE.Line(this.cellGeo,r);s.position.copy(this.cellToPixel(this._cel)),s.rotation.x=90*n.DEG_TO_RAD,t.add(s)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){n.Tools.getJSON({url:e,callback:function(e){this.fromJSON(e),t.call(r||null,e)},cache:!1,scope:this})},fromJSON:function(e){var t,r,o=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._fullCellSize=2*this.cellSize,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;t<o.length;t++)(r=new n.Cell).copy(o[t]),this.add(r)},toJSON:function(){var e,t,n={size:this.size,cellSize:this.cellSize,extrudeSettings:this.extrudeSettings,autogenerated:this.autogenerated},r=[];for(t in this.cells)e=this.cells[t],r.push({q:e.q,r:e.r,s:e.s,h:e.h,walkable:e.walkable,userData:e.userData});return n.cells=r,n}},n.SqrGrid.prototype.constructor=n.SqrGrid,n.Tile=function(e){e=e||{};var t={cell:null,geometry:null,material:null};if(!(t=n.Tools.merge(t,e)).cell||!t.geometry)throw new Error("Missing vg.Tile configuration");this.cell=t.cell,this.cell.tile&&this.cell.tile!==this&&this.cell.tile.dispose(),this.cell.tile=this,this.uniqueID=n.Tools.generateID(),this.geometry=t.geometry,this.material=t.material,this.material||(this.material=new THREE.MeshPhongMaterial({color:n.Tools.randomizeRGB("30, 30, 30",13)})),this.objectType=n.TILE,this.entity=null,this.userData={},this.selected=!1,this.highlight="0x0084cc",this.mesh=new THREE.Mesh(this.geometry,this.material),this.mesh.userData.structure=this,this.position=this.mesh.position,this.rotation=this.mesh.rotation,this.rotation.x=-90*n.DEG_TO_RAD,this.mesh.scale.set(t.scale,t.scale,1),this.material.emissive?this._emissive=this.material.emissive.getHex():this._emissive=null},n.Tile.prototype={select:function(){return this.material.emissive&&this.material.emissive.setHex(this.highlight),this.selected=!0,this},deselect:function(){return null!==this._emissive&&this.material.emissive&&this.material.emissive.setHex(this._emissive),this.selected=!1,this},toggle:function(){return this.selected?this.deselect():this.select(),this},dispose:function(){this.cell&&this.cell.tile&&(this.cell.tile=null),this.cell=null,this.position=null,this.rotation=null,this.mesh.parent&&this.mesh.parent.remove(this.mesh),this.mesh.userData.structure=null,this.mesh=null,this.material=null,this.userData=null,this.entity=null,this.geometry=null,this._emissive=null}},n.Tile.prototype.constructor=n.Tile,function(){var e=function(){this.obj=null,this.next=null,this.prev=null,this.free=!0},t=function(){this.first=null,this.last=null,this.length=0,this.objToNodeMap={},this.uniqueID=Date.now()+""+Math.floor(1e3*Math.random()),this.sortArray=[]};t.generateID=function(){return Math.random().toString(36).slice(2)+Date.now()},(t.prototype={getNode:function(e){return this.objToNodeMap[e.uniqueID]},addNode:function(n){var r=new e;if(!n.uniqueID)try{n.uniqueID=t.generateID()}catch(o){return console.error("[LinkedList.addNode] obj passed is immutable: cannot attach necessary identifier"),null}return r.obj=n,r.free=!1,this.objToNodeMap[n.uniqueID]=r,r},swapObjects:function(e,t){this.objToNodeMap[e.obj.uniqueID]=null,this.objToNodeMap[t.uniqueID]=e,e.obj=t},add:function(e){var t=this.objToNodeMap[e.uniqueID];if(t){if(!1===t.free)return;t.obj=e,t.free=!1,t.next=null,t.prev=null}else t=this.addNode(e);if(this.first){if(!this.last)throw new Error("[LinkedList.add] No last in the list -- that shouldn't happen here");this.last.next=t,t.prev=this.last,this.last=t,t.next=null}else this.first=t,this.last=t,t.next=null,t.prev=null;this.length++,this.showDebug&&this.dump("after add")},has:function(e){return!!this.objToNodeMap[e.uniqueID]},moveUp:function(e){this.dump("before move up");var t=this.getNode(e);if(!t)throw"Oops, trying to move an object that isn't in the list";if(t.prev){var n=t.prev,r=n.prev;t==this.last&&(this.last=n);var o=t.next;r&&(r.next=t),t.next=n,t.prev=n.prev,n.next=o,n.prev=t,this.first==n&&(this.first=t)}},moveDown:function(e){var t=this.getNode(e);if(!t)throw"Oops, trying to move an object that isn't in the list";if(t.next){var n=t.next;this.moveUp(n.obj),this.last==n&&(this.last=t)}},sort:function(e){var t,n,r=this.sortArray,o=this.first;for(r.length=0;o;)r.push(o.obj),o=o.next;for(this.clear(),r.sort(e),n=r.length,t=0;n>t;t++)this.add(r[t])},remove:function(e){var t=this.getNode(e);return!(!t||t.free)&&(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.prev||(this.first=t.next),t.next||(this.last=t.prev),t.free=!0,t.prev=null,t.next=null,this.length--,!0)},shift:function(){var e=this.first;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first=e.next,e.next||(this.last=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},pop:function(){var e=this.last;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.last=e.prev,e.prev||(this.first=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},concat:function(e){for(var t=e.first;t;)this.add(t.obj),t=t.next},clear:function(){for(var e=this.first;e;)e.free=!0,e=e.next;this.first=null,this.length=0},dispose:function(){for(var e=this.first;e;)e.obj=null,e=e.next;this.first=null,this.objToNodeMap=null},dump:function(e){console.log("===================="+e+"=====================");for(var t=this.first;t;)console.log("{"+t.obj.toString()+"} previous="+(t.prev?t.prev.obj:"NULL")),t=t.next();console.log("==================================="),console.log("Last: {"+(this.last?this.last.obj:"NULL")+"} First: {"+(this.first?this.first.obj:"NULL")+"}")}}).constructor=t,n.LinkedList=t}(),function(){var e=function(e,t,n,r,o){this._listener=t,this.isOnce=n,this.context=r,this.signal=e,this._priority=o||0};(e.prototype={active:!0,params:null,execute:function(e){var t,n;return this.active&&this._listener&&(n=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,n),this.isOnce&&this.detach()),t},detach:function(){return this.isBound()?this.signal.remove(this._listener,this.context):null},isBound:function(){return!!this.signal&&!!this._listener},_destroy:function(){delete this.signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this.isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}).constructor=e;var t=function(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){t.prototype.dispatch.apply(e,arguments)}};t.prototype={memorize:!1,_shouldPropagate:!0,active:!0,validateListener:function(e,t){if("function"!=typeof e)throw new Error("Signal: listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))},_registerListener:function(t,n,r,o){var i,a=this._indexOfListener(t,r);if(-1!==a){if((i=this._bindings[a]).isOnce!==n)throw new Error("You cannot add"+(n?"":"Once")+"() then add"+(n?"Once":"")+"() the same listener without removing the relationship first.")}else i=new e(this,t,n,r,o),this._addBinding(i);return this.memorize&&this._prevParams&&i.execute(this._prevParams),i},_addBinding:function(e){var t=this._bindings.length;do{t--}while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,r=this._bindings.length;r--;)if((n=this._bindings[r])._listener===e&&n.context===t)return r;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return this.validateListener(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return this.validateListener(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){this.validateListener(e,"remove");var n=this._indexOfListener(e,t);return-1!==n&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(e){"undefined"==typeof e&&(e=null);for(var t=this._bindings.length;t--;)e?this._bindings[t].context===e&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)):this._bindings[t]._destroy();e||(this._bindings.length=0)},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(){if(this.active){var e,t=Array.prototype.slice.call(arguments),n=this._bindings.length;if(this.memorize&&(this._prevParams=t),n){e=this._bindings.slice(),this._shouldPropagate=!0;do{n--}while(e[n]&&this._shouldPropagate&&!1!==e[n].execute(t))}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},t.prototype.constructor=t,n.Signal=t}(),n.AStarFinder=function(e){e=e||{};var t={allowDiagonal:!1,heuristicFilter:null};t=n.Tools.merge(t,e),this.allowDiagonal=t.allowDiagonal,this.heuristicFilter=t.heuristicFilter,this.list=new n.LinkedList},n.AStarFinder.prototype={findPath:function(e,t,r,o){var i,a,s,u,c,l;for(r=r||this.heuristicFilter,o.clearPath(),this.list.clear(),this.list.add(e);this.list.length>0;){if(this.list.sort(this.compare),(i=this.list.shift())._visited=!0,i===t)return n.PathUtil.backtrace(t);for(c=0,l=(s=o.getNeighbors(i,this.allowDiagonal,r)).length;l>c;c++)if((u=s[c]).walkable&&(a=i._calcCost+o.distance(i,u),!u._visited||a<u._calcCost)){if(u._visited=!0,u._parent=i,u._calcCost=a,u._priority=a+o.distance(t,u),u===t)return n.PathUtil.backtrace(t);this.list.add(u)}}return null},compare:function(e,t){return e._priority-t._priority}},n.AStarFinder.prototype.constructor=n.AStarFinder,n.PathUtil={backtrace:function(e){for(var t=[e];e._parent;)e=e._parent,t.push(e);return t.reverse()},biBacktrace:function(e,t){var n=this.backtrace(e),r=this.backtrace(t);return n.concat(r.reverse())},pathLength:function(e){var t,n,r,o,i,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],o=n[0]-r[0],i=n[1]-r[1],a+=Math.sqrt(o*o+i*i);return a},interpolate:function(e,t,n,r){var o,i,a,s,u,c,l=Math.abs,d=[];for(o=n>e?1:-1,i=r>t?1:-1,u=(a=l(n-e))-(s=l(r-t));e!==n||t!==r;)d.push([e,t]),(c=2*u)>-s&&(u-=s,e+=o),a>c&&(u+=a,t+=i);return d},expandPath:function(e){var t,n,r,o,i,a,s=[],u=e.length;if(2>u)return s;for(i=0;u-1>i;++i)for(t=e[i],n=e[i+1],o=(r=this.interpolate(t[0],t[1],n[0],n[1])).length,a=0;o-1>a;++a)s.push(r[a]);return s.push(e[u-1]),s},smoothenPath:function(e,t){var n,r,o,i,a,s,u,c,l,d,f,p,h=t.length,m=t[0][0],v=t[0][1],g=t[h-1][0],y=t[h-1][1];for(a=[[n=m,r=v]],u=2;h>u;++u){for(o=(l=t[u])[0],i=l[1],d=this.interpolate(n,r,o,i),p=!1,c=1;c<d.length;++c)if(f=d[c],!e.isWalkableAt(f[0],f[1])){p=!0;break}p&&(s=t[u-1],a.push(s),n=s[0],r=s[1])}return a.push([g,y]),a},compressPath:function(e){if(e.length<3)return e;var t,n,r,o,i,a,s=[],u=e[0][0],c=e[0][1],l=e[1][0],d=e[1][1],f=l-u,p=d-c;for(f/=i=Math.sqrt(f*f+p*p),p/=i,s.push([u,c]),a=2;a<e.length;a++)t=l,n=d,r=f,o=p,f=(l=e[a][0])-t,p=(d=e[a][1])-n,p/=i=Math.sqrt(f*f+p*p),((f/=i)!==r||p!==o)&&s.push([t,n]);return s.push([l,d]),s}},n.Loader={manager:null,imageLoader:null,crossOrigin:!1,init:function(e){this.crossOrigin=e||!1,this.manager=new THREE.LoadingManager((function(){}),(function(){}),(function(){console.warn("Error loading images")})),this.imageLoader=new THREE.ImageLoader(this.manager),this.imageLoader.crossOrigin=e},loadTexture:function(e,t,n,r){var o=new THREE.Texture(null,t);return this.imageLoader.load(e,(function(e){o.image=e,o.needsUpdate=!0,n&&n(o)}),null,(function(e){r&&r(e)})),o.sourceFile=e,o}},n.MouseCaster=function(e,t,r){this.down=!1,this.rightDown=!1,this.pickedObject=null,this.selectedObject=null,this.allHits=null,this.active=!0,this.shift=!1,this.ctrl=!1,this.wheel=0,this.position=new THREE.Vector3,this.screenPosition=new THREE.Vector2,this.signal=new n.Signal,this.group=e,this._camera=t,this._raycaster=new THREE.Raycaster,this._preventDefault=!1,(r=r||document).addEventListener("mousemove",this._onDocumentMouseMove.bind(this),!1),r.addEventListener("mousedown",this._onDocumentMouseDown.bind(this),!1),r.addEventListener("mouseup",this._onDocumentMouseUp.bind(this),!1),r.addEventListener("mousewheel",this._onMouseWheel.bind(this),!1),r.addEventListener("DOMMouseScroll",this._onMouseWheel.bind(this),!1)},n.MouseCaster.OVER="over",n.MouseCaster.OUT="out",n.MouseCaster.DOWN="down",n.MouseCaster.UP="up",n.MouseCaster.CLICK="click",n.MouseCaster.WHEEL="wheel",n.MouseCaster.prototype={update:function(){if(this.active){this._raycaster.setFromCamera(this.screenPosition,this._camera);var e,t,r=this._raycaster.intersectObject(this.group,!0);r.length>0?(t=(e=r[0]).object.userData.structure,this.pickedObject!=t&&(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=t,this.selectedObject=null,this.signal.dispatch(n.MouseCaster.OVER,this.pickedObject)),this.position.copy(e.point),this.screenPosition.z=e.distance):(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=null,this.selectedObject=null),this.allHits=r}},preventDefault:function(){this._preventDefault=!0},_onDocumentMouseDown:function(e){return(e=e||window.event).preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.pickedObject&&(this.selectedObject=this.pickedObject),this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.down=1===e.which,this.rightDown=3===e.which,void this.signal.dispatch(n.MouseCaster.DOWN,this.pickedObject))},_onDocumentMouseUp:function(e){return e.preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.signal.dispatch(n.MouseCaster.UP,this.pickedObject),this.selectedObject&&this.pickedObject&&this.selectedObject.uniqueID===this.pickedObject.uniqueID&&this.signal.dispatch(n.MouseCaster.CLICK,this.pickedObject),this.down=1!==e.which&&this.down,void(this.rightDown=3!==e.which&&this.rightDown))},_onDocumentMouseMove:function(e){e.preventDefault(),this.screenPosition.x=e.clientX/window.innerWidth*2-1,this.screenPosition.y=-e.clientY/window.innerHeight*2+1},_onMouseWheel:function(e){if(this.active){e.preventDefault(),e.stopPropagation();var t=0;void 0!==e.wheelDelta?t=e.wheelDelta:void 0!==e.detail&&(t=-e.detail),t>0?this.wheel++:this.wheel--,this.signal.dispatch(n.MouseCaster.WHEEL,this.wheel)}}},n.MouseCaster.prototype.constructor=n.MouseCaster,n.Scene=function(e,t){var r={element:document.body,alpha:!0,antialias:!0,clearColor:"#fff",sortObjects:!1,fog:null,light:new THREE.DirectionalLight(16777215),lightPosition:null,cameraType:"PerspectiveCamera",cameraPosition:null,orthoZoom:4},o={minDistance:100,maxDistance:1e3,zoomSpeed:2,noZoom:!1};if(r=n.Tools.merge(r,e),"boolean"!=typeof t&&(o=n.Tools.merge(o,t)),this.renderer=new THREE.WebGLRenderer({alpha:r.alpha,antialias:r.antialias}),this.renderer.setClearColor(r.clearColor,0),this.renderer.sortObjects=r.sortObjects,this.width=window.innerWidth,this.height=window.innerHeight,this.orthoZoom=r.orthoZoom,this.container=new THREE.Scene,this.container.fog=r.fog,this.container.add(new THREE.AmbientLight(14540253)),r.lightPosition||r.light.position.set(-1,1,-1).normalize(),this.container.add(r.light),"OrthographicCamera"===r.cameraType){var i=window.innerWidth/this.orthoZoom,a=window.innerHeight/this.orthoZoom;this.camera=new THREE.OrthographicCamera(i/-2,i/2,a/2,a/-2,1,5e3)}else this.camera=new THREE.PerspectiveCamera(50,this.width/this.height,1,5e3);this.contolled=!!t,this.contolled&&(this.controls=new THREE.OrbitControls(this.camera,this.renderer.domElement),this.controls.minDistance=o.minDistance,this.controls.maxDistance=o.maxDistance,this.controls.zoomSpeed=o.zoomSpeed,this.controls.noZoom=o.noZoom),r.cameraPosition&&this.camera.position.copy(r.cameraPosition),window.addEventListener("resize",function(){if(this.width=window.innerWidth,this.height=window.innerHeight,"OrthographicCamera"===this.camera.type){var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2}else this.camera.aspect=this.width/this.height;this.camera.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height)}.bind(this),!1),this.attachTo(r.element)},n.Scene.prototype={attachTo:function(e){e.style.width=this.width+"px",e.style.height=this.height+"px",this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),e.appendChild(this.renderer.domElement)},add:function(e){this.container.add(e)},remove:function(e){this.container.remove(e)},render:function(){this.contolled&&this.controls.update(),this.renderer.render(this.container,this.camera)},updateOrthoZoom:function(){if(this.orthoZoom<=0)this.orthoZoom=0;else{var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2,this.camera.updateProjectionMatrix()}},focusOn:function(e){this.camera.lookAt(e.position)}},n.Scene.prototype.constructor=n.Scene,n.SelectionManager=function(e){this.mouse=e,this.onSelect=new n.Signal,this.onDeselect=new n.Signal,this.selected=null,this.toggleSelection=!1,this.mouse.signal.add(this.onMouse,this)},n.SelectionManager.prototype={select:function(e,t){e&&(t=t||!0,this.selected!==e&&this.clearSelection(t),e.selected?this.toggleSelection&&(t&&this.onDeselect.dispatch(e),e.deselect()):e.select(),this.selected=e,t&&this.onSelect.dispatch(e))},clearSelection:function(e){e=e||!0,this.selected&&(e&&this.onDeselect.dispatch(this.selected),this.selected.deselect()),this.selected=null},onMouse:function(e,t){switch(e){case n.MouseCaster.DOWN:t||this.clearSelection();break;case n.MouseCaster.CLICK:this.select(t)}}},n.SelectionManager.prototype.constructor=n.SelectionManager,n.Tools={clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},sign:function(e){return e&&e/Math.abs(e)},random:function(e,t){return 1===arguments.length?Math.random()*e-.5*e:Math.random()*(t-e)+e},randomInt:function(e,t){return 1===arguments.length?Math.random()*e-.5*e|0:Math.random()*(t-e+1)+e|0},normalize:function(e,t,n){return(e-t)/(n-t)},getShortRotation:function(e){return(e%=this.TAU)>this.PI?e-=this.TAU:e<-this.PI&&(e+=this.TAU),e},generateID:function(){return Math.random().toString(36).slice(2)+Date.now()},isPlainObject:function(e){if("object"!=typeof e||e.nodeType||e===e.window)return!1;try{if(e.constructor&&!Object.prototype.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},merge:function(e,t){var n=this,r=Array.isArray(t),o=r&&[]||{};return r?(e=e||[],o=o.concat(e),t.forEach((function(t,r){"undefined"==typeof o[r]?o[r]=t:n.isPlainObject(t)?o[r]=n.merge(e[r],t):-1===e.indexOf(t)&&o.push(t)})),o):(e&&n.isPlainObject(e)&&Object.keys(e).forEach((function(t){o[t]=e[t]})),Object.keys(t).forEach((function(r){t[r]&&n.isPlainObject(t[r])&&e[r]?o[r]=n.merge(e[r],t[r]):o[r]=t[r]})),o)},now:function(){return window.nwf?window.nwf.system.Performance.elapsedTime:window.performance.now()},empty:function(e){for(;e.lastChild;)e.removeChild(e.lastChild)},radixSort:function(e,t,n,r){if(r=r||31,!((t=t||0)>=(n=n||e.length)-1||0>r)){for(var o=t,i=n,a=1<<r;i>o;)if(e[o]&a){--i;var s=e[o];e[o]=e[i],e[i]=s}else++o;this.radixSort(e,t,i,r-1),this.radixSort(e,i,n,r-1)}},randomizeRGB:function(e,t){var n,r,o=e.split(","),i="rgb(";for(t=this.randomInt(t),n=0;3>n;n++)0>(r=parseInt(o[n])+t)?r=0:r>255&&(r=255),i+=r+",";return(i=i.substring(0,i.length-1))+")"},getJSON:function(e){var t=new XMLHttpRequest,n="undefined"!=typeof e.cache&&e.cache?e.url:e.url+"?t="+Math.floor(1e4*Math.random())+Date.now();t.onreadystatechange=function(){if(200!==this.status)0!==this.status&&console.warn("[Tools.getJSON] Error: "+this.status+" ("+this.statusText+") :: "+e.url);else{var t=null;try{t=JSON.parse(this.responseText)}catch(n){return}e.callback.call(e.scope||null,t)}},t.open("GET",n,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Content-Type","application/json"),t.send("")}}},77454:function(){!function(e){var t="KeyboardEvent"in e;t||(e.KeyboardEvent=function(){throw TypeError("Illegal constructor")}),"DOM_KEY_LOCATION_STANDARD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_STANDARD=0),"DOM_KEY_LOCATION_LEFT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_LEFT=1),"DOM_KEY_LOCATION_RIGHT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_RIGHT=2),"DOM_KEY_LOCATION_NUMPAD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD=3);var n=window.KeyboardEvent.DOM_KEY_LOCATION_STANDARD,r=window.KeyboardEvent.DOM_KEY_LOCATION_LEFT,o=window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,i=window.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD;function a(e,t){return-1!==String(e).indexOf(t)}var s=a(navigator.platform,"Win")?"win":a(navigator.platform,"Mac")?"mac":a(navigator.platform,"CrOS")?"cros":a(navigator.platform,"Linux")?"linux":a(navigator.userAgent,"iPad")||a(navigator.platform,"iPod")||a(navigator.platform,"iPhone")?"ios":"",u=a(navigator.userAgent,"Chrome/")?"chrome":a(navigator.vendor,"Apple")?"safari":a(navigator.userAgent,"MSIE")?"ie":a(navigator.userAgent,"Gecko/")?"moz":a(navigator.userAgent,"Opera/")?"opera":"",c=u+"-"+s;function l(e,t,n){c!==t&&u!==t&&s!==t||Object.keys(n).forEach((function(t){e[t]=n[t]}))}var d={3:{code:"Cancel"},6:{code:"Help"},8:{code:"Backspace"},9:{code:"Tab"},12:{code:"Clear"},13:{code:"Enter"},16:{code:"Shift"},17:{code:"Control"},18:{code:"Alt"},19:{code:"Pause"},20:{code:"CapsLock"},21:{code:"KanaMode"},22:{code:"HangulMode"},23:{code:"JunjaMode"},24:{code:"FinalMode"},25:{code:"KanjiMode"},27:{code:"Escape"},28:{code:"Convert"},29:{code:"NonConvert"},30:{code:"Accept"},31:{code:"ModeChange"},32:{code:"Space"},33:{code:"PageUp"},34:{code:"PageDown"},35:{code:"End"},36:{code:"Home"},37:{code:"ArrowLeft"},38:{code:"ArrowUp"},39:{code:"ArrowRight"},40:{code:"ArrowDown"},41:{code:"Select"},42:{code:"Print"},43:{code:"Execute"},44:{code:"PrintScreen"},45:{code:"Insert"},46:{code:"Delete"},47:{code:"Help"},48:{code:"Digit0",keyCap:"0"},49:{code:"Digit1",keyCap:"1"},50:{code:"Digit2",keyCap:"2"},51:{code:"Digit3",keyCap:"3"},52:{code:"Digit4",keyCap:"4"},53:{code:"Digit5",keyCap:"5"},54:{code:"Digit6",keyCap:"6"},55:{code:"Digit7",keyCap:"7"},56:{code:"Digit8",keyCap:"8"},57:{code:"Digit9",keyCap:"9"},65:{code:"KeyA",keyCap:"a"},66:{code:"KeyB",keyCap:"b"},67:{code:"KeyC",keyCap:"c"},68:{code:"KeyD",keyCap:"d"},69:{code:"KeyE",keyCap:"e"},70:{code:"KeyF",keyCap:"f"},71:{code:"KeyG",keyCap:"g"},72:{code:"KeyH",keyCap:"h"},73:{code:"KeyI",keyCap:"i"},74:{code:"KeyJ",keyCap:"j"},75:{code:"KeyK",keyCap:"k"},76:{code:"KeyL",keyCap:"l"},77:{code:"KeyM",keyCap:"m"},78:{code:"KeyN",keyCap:"n"},79:{code:"KeyO",keyCap:"o"},80:{code:"KeyP",keyCap:"p"},81:{code:"KeyQ",keyCap:"q"},82:{code:"KeyR",keyCap:"r"},83:{code:"KeyS",keyCap:"s"},84:{code:"KeyT",keyCap:"t"},85:{code:"KeyU",keyCap:"u"},86:{code:"KeyV",keyCap:"v"},87:{code:"KeyW",keyCap:"w"},88:{code:"KeyX",keyCap:"x"},89:{code:"KeyY",keyCap:"y"},90:{code:"KeyZ",keyCap:"z"},91:{code:"OSLeft",location:r},92:{code:"OSRight",location:o},93:{code:"ContextMenu"},95:{code:"Standby"},96:{code:"Numpad0",keyCap:"0",location:i},97:{code:"Numpad1",keyCap:"1",location:i},98:{code:"Numpad2",keyCap:"2",location:i},99:{code:"Numpad3",keyCap:"3",location:i},100:{code:"Numpad4",keyCap:"4",location:i},101:{code:"Numpad5",keyCap:"5",location:i},102:{code:"Numpad6",keyCap:"6",location:i},103:{code:"Numpad7",keyCap:"7",location:i},104:{code:"Numpad8",keyCap:"8",location:i},105:{code:"Numpad9",keyCap:"9",location:i},106:{code:"NumpadMultiply",keyCap:"*",location:i},107:{code:"NumpadAdd",keyCap:"+",location:i},108:{code:"NumpadComma",keyCap:",",location:i},109:{code:"NumpadSubtract",keyCap:"-",location:i},110:{code:"NumpadDecimal",keyCap:".",location:i},111:{code:"NumpadDivide",keyCap:"/",location:i},112:{code:"F1"},113:{code:"F2"},114:{code:"F3"},115:{code:"F4"},116:{code:"F5"},117:{code:"F6"},118:{code:"F7"},119:{code:"F8"},120:{code:"F9"},121:{code:"F10"},122:{code:"F11"},123:{code:"F12"},124:{code:"F13"},125:{code:"F14"},126:{code:"F15"},127:{code:"F16"},128:{code:"F17"},129:{code:"F18"},130:{code:"F19"},131:{code:"F20"},132:{code:"F21"},133:{code:"F22"},134:{code:"F23"},135:{code:"F24"},144:{code:"NumLock",location:i},145:{code:"ScrollLock"},160:{code:"ShiftLeft",location:r},161:{code:"ShiftRight",location:o},162:{code:"ControlLeft",location:r},163:{code:"ControlRight",location:o},164:{code:"AltLeft",location:r},165:{code:"AltRight",location:o},166:{code:"BrowserBack"},167:{code:"BrowserForward"},168:{code:"BrowserRefresh"},169:{code:"BrowserStop"},170:{code:"BrowserSearch"},171:{code:"BrowserFavorites"},172:{code:"BrowserHome"},173:{code:"VolumeMute"},174:{code:"VolumeDown"},175:{code:"VolumeUp"},176:{code:"MediaTrackNext"},177:{code:"MediaTrackPrevious"},178:{code:"MediaStop"},179:{code:"MediaPlayPause"},180:{code:"LaunchMail"},181:{code:"MediaSelect"},182:{code:"LaunchApp1"},183:{code:"LaunchApp2"},186:{code:"Semicolon",keyCap:";"},187:{code:"Equal",keyCap:"="},188:{code:"Comma",keyCap:","},189:{code:"Minus",keyCap:"-"},190:{code:"Period",keyCap:"."},191:{code:"Slash",keyCap:"/"},192:{code:"Backquote",keyCap:"`"},219:{code:"BracketLeft",keyCap:"["},220:{code:"Backslash",keyCap:"\\"},221:{code:"BracketRight",keyCap:"]"},222:{code:"Quote",keyCap:"'"},226:{code:"IntlBackslash",keyCap:"\\"},229:{code:"Process"},246:{code:"Attn"},247:{code:"CrSel"},248:{code:"ExSel"},249:{code:"EraseEof"},250:{code:"Play"},251:{code:"ZoomToggle"},254:{code:"Clear"}};l(d,"moz",{59:{code:"Semicolon",keyCap:";"},61:{code:"Equal",keyCap:"="},107:{code:"Equal",keyCap:"="},109:{code:"Minus",keyCap:"-"},187:{code:"NumpadAdd",keyCap:"+",location:i},189:{code:"NumpadSubtract",keyCap:"-",location:i}}),l(d,"moz-mac",{12:{code:"NumLock",location:i},173:{code:"Minus",keyCap:"-"}}),l(d,"moz-win",{173:{code:"Minus",keyCap:"-"}}),l(d,"chrome-mac",{93:{code:"OSRight",location:o}}),l(d,"safari",{3:{code:"Enter"},25:{code:"Tab"}}),l(d,"ios",{10:{code:"Enter",location:n}}),l(d,"safari-mac",{91:{code:"OSLeft",location:r},93:{code:"OSRight",location:o},229:{code:"KeyQ",keyCap:"Q"}});var f={};"cros"===s&&(f["U+00A0"]={code:"ShiftLeft",location:r},f["U+00A1"]={code:"ShiftRight",location:o},f["U+00A2"]={code:"ControlLeft",location:r},f["U+00A3"]={code:"ControlRight",location:o},f["U+00A4"]={code:"AltLeft",location:r},f["U+00A5"]={code:"AltRight",location:o}),"chrome-mac"===c&&(f["U+0010"]={code:"ContextMenu"}),"safari-mac"===c&&(f["U+0010"]={code:"ContextMenu"}),"ios"===s&&(f["U+0010"]={code:"Function"},f["U+001C"]={code:"ArrowLeft"},f["U+001D"]={code:"ArrowRight"},f["U+001E"]={code:"ArrowUp"},f["U+001F"]={code:"ArrowDown"},f["U+0001"]={code:"Home"},f["U+0004"]={code:"End"},f["U+000B"]={code:"PageUp"},f["U+000C"]={code:"PageDown"});var p=[];p[r]={16:{code:"ShiftLeft",location:r},17:{code:"ControlLeft",location:r},18:{code:"AltLeft",location:r}},p[o]={16:{code:"ShiftRight",location:o},17:{code:"ControlRight",location:o},18:{code:"AltRight",location:o}},p[i]={13:{code:"NumpadEnter",location:i}},l(p[i],"moz",{109:{code:"NumpadSubtract",location:i},107:{code:"NumpadAdd",location:i}}),l(p[r],"moz-mac",{224:{code:"OSLeft",location:r}}),l(p[o],"moz-mac",{224:{code:"OSRight",location:o}}),l(p[o],"moz-win",{91:{code:"OSRight",location:o}}),l(p[o],"mac",{93:{code:"OSRight",location:o}}),l(p[i],"chrome-mac",{12:{code:"NumLock",location:i}}),l(p[i],"safari-mac",{12:{code:"NumLock",location:i},187:{code:"NumpadAdd",location:i},189:{code:"NumpadSubtract",location:i},190:{code:"NumpadDecimal",location:i},191:{code:"NumpadDivide",location:i}});var h={ShiftLeft:{key:"Shift"},ShiftRight:{key:"Shift"},ControlLeft:{key:"Control"},ControlRight:{key:"Control"},AltLeft:{key:"Alt"},AltRight:{key:"Alt"},OSLeft:{key:"OS"},OSRight:{key:"OS"},NumpadEnter:{key:"Enter"},Space:{key:" "},Digit0:{key:"0",shiftKey:")"},Digit1:{key:"1",shiftKey:"!"},Digit2:{key:"2",shiftKey:"@"},Digit3:{key:"3",shiftKey:"#"},Digit4:{key:"4",shiftKey:"$"},Digit5:{key:"5",shiftKey:"%"},Digit6:{key:"6",shiftKey:"^"},Digit7:{key:"7",shiftKey:"&"},Digit8:{key:"8",shiftKey:"*"},Digit9:{key:"9",shiftKey:"("},KeyA:{key:"a",shiftKey:"A"},KeyB:{key:"b",shiftKey:"B"},KeyC:{key:"c",shiftKey:"C"},KeyD:{key:"d",shiftKey:"D"},KeyE:{key:"e",shiftKey:"E"},KeyF:{key:"f",shiftKey:"F"},KeyG:{key:"g",shiftKey:"G"},KeyH:{key:"h",shiftKey:"H"},KeyI:{key:"i",shiftKey:"I"},KeyJ:{key:"j",shiftKey:"J"},KeyK:{key:"k",shiftKey:"K"},KeyL:{key:"l",shiftKey:"L"},KeyM:{key:"m",shiftKey:"M"},KeyN:{key:"n",shiftKey:"N"},KeyO:{key:"o",shiftKey:"O"},KeyP:{key:"p",shiftKey:"P"},KeyQ:{key:"q",shiftKey:"Q"},KeyR:{key:"r",shiftKey:"R"},KeyS:{key:"s",shiftKey:"S"},KeyT:{key:"t",shiftKey:"T"},KeyU:{key:"u",shiftKey:"U"},KeyV:{key:"v",shiftKey:"V"},KeyW:{key:"w",shiftKey:"W"},KeyX:{key:"x",shiftKey:"X"},KeyY:{key:"y",shiftKey:"Y"},KeyZ:{key:"z",shiftKey:"Z"},Numpad0:{key:"0"},Numpad1:{key:"1"},Numpad2:{key:"2"},Numpad3:{key:"3"},Numpad4:{key:"4"},Numpad5:{key:"5"},Numpad6:{key:"6"},Numpad7:{key:"7"},Numpad8:{key:"8"},Numpad9:{key:"9"},NumpadMultiply:{key:"*"},NumpadAdd:{key:"+"},NumpadComma:{key:","},NumpadSubtract:{key:"-"},NumpadDecimal:{key:"."},NumpadDivide:{key:"/"},Semicolon:{key:";",shiftKey:":"},Equal:{key:"=",shiftKey:"+"},Comma:{key:",",shiftKey:"<"},Minus:{key:"-",shiftKey:"_"},Period:{key:".",shiftKey:">"},Slash:{key:"/",shiftKey:"?"},Backquote:{key:"`",shiftKey:"~"},BracketLeft:{key:"[",shiftKey:"{"},Backslash:{key:"\\",shiftKey:"|"},BracketRight:{key:"]",shiftKey:"}"},Quote:{key:"'",shiftKey:'"'},IntlBackslash:{key:"\\",shiftKey:"|"}};l(h,"mac",{OSLeft:{key:"Meta"},OSRight:{key:"Meta"}});var m={Esc:"Escape",Nonconvert:"NonConvert",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Menu:"ContextMenu",MediaNextTrack:"MediaTrackNext",MediaPreviousTrack:"MediaTrackPrevious",SelectMedia:"MediaSelect",HalfWidth:"Hankaku",FullWidth:"Zenkaku",RomanCharacters:"Romaji",Crsel:"CrSel",Exsel:"ExSel",Zoom:"ZoomToggle"},v=function(e,t){var n={};return Object.keys(e).forEach((function(r){var o=e[r];t in o&&(n[o[t]]=o)})),n}(d,"code");try{var g=t&&"location"in new KeyboardEvent("")}catch(b){}function y(e){var t="keyCode"in e?e.keyCode:"which"in e?e.which:0,n=function(){if(g||"keyLocation"in e){var n=g?e.location:e.keyLocation;if(n&&t in p[n])return p[n][t]}return"keyIdentifier"in e&&e.keyIdentifier in f?f[e.keyIdentifier]:t in d?d[t]:null}();if(!n)return null;var r=function(){var t=h[n.code];return t?e.shiftKey&&"shiftKey"in t?t.shiftKey:t.key:n.code}();return{code:n.code,key:r,location:n.location,keyCap:n.keyCap}}"KeyboardEvent"in e&&"defineProperty"in Object&&function(){function e(e,t,n){t in e||Object.defineProperty(e,t,n)}if(e(KeyboardEvent.prototype,"code",{get:function(){var e=y(this);return e?e.code:""}}),"key"in KeyboardEvent.prototype){var t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key");Object.defineProperty(KeyboardEvent.prototype,"key",{get:function(){var e=t.get.call(this);return m.hasOwnProperty(e)?m[e]:e}})}e(KeyboardEvent.prototype,"key",{get:function(){var e=y(this);return e&&"key"in e?e.key:"Unidentified"}}),e(KeyboardEvent.prototype,"location",{get:function(){var e=y(this);return e&&"location"in e?e.location:n}}),e(KeyboardEvent.prototype,"locale",{get:function(){return""}})}(),"queryKeyCap"in e.KeyboardEvent||(e.KeyboardEvent.queryKeyCap=function(e,t){if(e=String(e),!v.hasOwnProperty(e))return"Undefined";if(t&&"en-us"!==String(t).toLowerCase())throw Error("Unsupported locale");var n=v[e];return n.keyCap||n.code||"Undefined"}),e.identifyKey=function(e){if(!("code"in e)){var t=y(e);e.code=t?t.code:"",e.key=t&&"key"in t?t.key:"Unidentified",e.location="location"in e?e.location:"keyLocation"in e?e.keyLocation:t&&"location"in t?t.location:n,e.locale=""}}}(window)},33386:function(e){e.exports=AFRAME.registerComponent("checkpoint-controls",{schema:{enabled:{default:!0},mode:{default:"teleport",oneOf:["teleport","animate"]},animateSpeed:{default:3}},init:function(){this.active=!0,this.checkpoint=null,this.isNavMeshConstrained=!1,this.offset=new THREE.Vector3,this.position=new THREE.Vector3,this.targetPosition=new THREE.Vector3},play:function(){this.active=!0},pause:function(){this.active=!1},setCheckpoint:function(e){const t=this.el;this.active&&this.checkpoint!==e&&(this.checkpoint&&t.emit("navigation-end",{checkpoint:this.checkpoint}),this.checkpoint=e,this.sync(),this.position.distanceTo(this.targetPosition)<.1?this.checkpoint=null:(t.emit("navigation-start",{checkpoint:e}),"teleport"===this.data.mode&&(this.el.setAttribute("position",this.targetPosition),this.checkpoint=null,t.emit("navigation-end",{checkpoint:e}),t.components["movement-controls"].updateNavLocation())))},isVelocityActive:function(){return!(!this.active||!this.checkpoint)},getVelocity:function(){if(!this.active)return;const e=this.data,t=this.offset,n=this.position,r=this.targetPosition,o=this.checkpoint;return this.sync(),n.distanceTo(r)<.1?(this.checkpoint=null,this.el.emit("navigation-end",{checkpoint:o}),t.set(0,0,0)):(t.setLength(e.animateSpeed),t)},sync:function(){const e=this.offset,t=this.position,n=this.targetPosition;t.copy(this.el.getAttribute("position")),this.checkpoint.object3D.getWorldPosition(n),n.add(this.checkpoint.components.checkpoint.getOffset()),e.copy(n).sub(t)}})},45062:function(e,t,n){const r=n(16453),o=n(44379),i=.2,a="left",s="right",u=1,c=2;e.exports=AFRAME.registerComponent("gamepad-controls",{GamepadButton:r,schema:{enabled:{default:!0},camera:{default:"[camera]",type:"selector"},rotationSensitivity:{default:2}},init:function(){const e=this.el.sceneEl;this.system=e.systems["tracked-controls-webxr"]||{controllers:[]},this.prevTime=window.performance.now(),this.buttons={};const t=this.el.object3D.rotation;this.pitch=new THREE.Object3D,this.pitch.rotation.x=THREE.Math.degToRad(t.x),this.yaw=new THREE.Object3D,this.yaw.position.y=10,this.yaw.rotation.y=THREE.Math.degToRad(t.y),this.yaw.add(this.pitch),this._lookVector=new THREE.Vector2,this._moveVector=new THREE.Vector2,this._dpadVector=new THREE.Vector2,e.addBehavior(this)},update:function(){this.tick()},tick:function(e,t){this.updateButtonState(),this.updateRotation(t)},remove:function(){},isVelocityActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(u,t);const n=e.x||t.x,r=e.y||t.y;return Math.abs(n)>i||Math.abs(r)>i},getVelocityDelta:function(){const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(u,t);const n=e.x||t.x,r=e.y||t.y,o=new THREE.Vector3;return Math.abs(n)>i&&(o.x+=n),Math.abs(r)>i&&(o.z+=r),o},isRotationActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._lookVector;return this.getJoystick(c,e),Math.abs(e.x)>i||Math.abs(e.y)>i},updateRotation:function(e){if(!this.isRotationActive())return;const t=this.data,n=this.yaw,r=this.pitch,o=t.camera.components["look-controls"],a=o&&o.pitchObject&&o.yawObject;a&&(r.rotation.copy(o.pitchObject.rotation),n.rotation.copy(o.yawObject.rotation));const s=this._lookVector;this.getJoystick(c,s),Math.abs(s.x)<=i&&(s.x=0),Math.abs(s.y)<=i&&(s.y=0),s.multiplyScalar(t.rotationSensitivity*e/1e3),n.rotation.y-=s.x,r.rotation.x-=s.y,r.rotation.x=Math.max(-Math.PI/2,Math.min(Math.PI/2,r.rotation.x)),t.camera.object3D.rotation.set(r.rotation.x,n.rotation.y,0),a&&(o.pitchObject.rotation.copy(r.rotation),o.yawObject.rotation.copy(n.rotation))},updateButtonState:function(){const e=this.getGamepad(s);if(this.data.enabled&&e)for(var t=0;t<e.buttons.length;t++)e.buttons[t].pressed&&!this.buttons[t]?this.emit(new o("gamepadbuttondown",t,e.buttons[t])):!e.buttons[t].pressed&&this.buttons[t]&&this.emit(new o("gamepadbuttonup",t,e.buttons[t])),this.buttons[t]=e.buttons[t].pressed;else Object.keys(this.buttons)&&(this.buttons={})},emit:function(e){this.el.emit(e.type,e),this.el.emit(e.type+":"+e.index,new o(e.type,e.index,e))},getGamepad:function(){const e=[],t=[];return function(n){const r=this.el.sceneEl.components["proxy-controls"],o=r&&r.isConnected()&&r.getGamepad(0);if(o)return o;e.length=0;for(let t=0;t<this.system.controllers.length;t++){const r=this.system.controllers[t],o=r?r.gamepad:null;if(e.push(o),o&&o.handedness===n)return o}const i=navigator.getGamepads?navigator.getGamepads():t;for(let e=0;e<i.length;e++){const t=i[e];if(t&&t.hand===n)return t}return e[0]||i[0]}}(),getButton:function(e){return this.getGamepad(s).buttons[e]},getAxis:function(e){return this.getGamepad(e>1?s:a).axes[e]},getJoystick:function(e,t){const n=this.getGamepad(e===u?a:s);if("xr-standard"===n.mapping)switch(e){case u:return t.set(n.axes[2],n.axes[3]);case c:return t.set(n.axes[0],n.axes[1])}else switch(e){case u:return t.set(n.axes[0],n.axes[1]);case c:return t.set(n.axes[2],n.axes[3])}throw new Error('Unexpected joystick index "%d".',e)},getDpad:function(e){const t=this.getGamepad(a);return t.buttons[r.DPAD_RIGHT]?e.set((t.buttons[r.DPAD_RIGHT].pressed?1:0)+(t.buttons[r.DPAD_LEFT].pressed?-1:0),(t.buttons[r.DPAD_UP].pressed?-1:0)+(t.buttons[r.DPAD_DOWN].pressed?1:0)):e.set(0,0)},isConnected:function(){const e=this.getGamepad(a);return!(!e||!e.connected)},getID:function(){return this.getGamepad(a).id}})},52406:function(e,t,n){n(33386),n(45062),n(32250),n(79048),n(43819),n(99893)},32250:function(e,t,n){n(77454);const r=window.KeyboardEvent;e.exports=AFRAME.registerComponent("keyboard-controls",{schema:{enabled:{default:!0},debug:{default:!1}},init:function(){this.dVelocity=new THREE.Vector3,this.localKeys={},this.listeners={keydown:this.onKeyDown.bind(this),keyup:this.onKeyUp.bind(this),blur:this.onBlur.bind(this)},this.attachEventListeners()},isVelocityActive:function(){return this.data.enabled&&!!Object.keys(this.getKeys()).length},getVelocityDelta:function(){const e=this.data,t=this.getKeys();return this.dVelocity.set(0,0,0),e.enabled&&((t.KeyW||t.ArrowUp)&&(this.dVelocity.z-=1),(t.KeyA||t.ArrowLeft)&&(this.dVelocity.x-=1),(t.KeyS||t.ArrowDown)&&(this.dVelocity.z+=1),(t.KeyD||t.ArrowRight)&&(this.dVelocity.x+=1)),this.dVelocity.clone()},play:function(){this.attachEventListeners()},pause:function(){this.removeEventListeners()},remove:function(){this.pause()},attachEventListeners:function(){window.addEventListener("keydown",this.listeners.keydown,!1),window.addEventListener("keyup",this.listeners.keyup,!1),window.addEventListener("blur",this.listeners.blur,!1)},removeEventListeners:function(){window.removeEventListener("keydown",this.listeners.keydown),window.removeEventListener("keyup",this.listeners.keyup),window.removeEventListener("blur",this.listeners.blur)},onKeyDown:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(this.localKeys[e.code]=!0,this.emit(e))},onKeyUp:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(delete this.localKeys[e.code],this.emit(e))},onBlur:function(){for(let e in this.localKeys)this.localKeys.hasOwnProperty(e)&&delete this.localKeys[e]},emit:function(e){"__keyboard-controls-proxy"in e&&this.el.emit(e.type,e),this.el.emit(e.type+":"+e.code,new r(e.type,e)),this.data.debug&&console.log(e.type+":"+e.code)},isPressed:function(e){return e in this.getKeys()},getKeys:function(){return this.isProxied()?this.el.sceneEl.components["proxy-controls"].getKeyboard():this.localKeys},isProxied:function(){const e=this.el.sceneEl.components["proxy-controls"];return e&&e.isConnected()}})},43819:function(e){const t="-controls";e.exports=AFRAME.registerComponent("movement-controls",{dependencies:["rotation"],schema:{enabled:{default:!0},controls:{default:["gamepad","trackpad","keyboard","touch"]},speed:{default:.3,min:0},fly:{default:!1},constrainToNavMesh:{default:!1},camera:{default:"[movement-controls] [camera]",type:"selector"}},init:function(){const e=this.el;this.velocityCtrl=null,this.velocity=new THREE.Vector3,this.heading=new THREE.Quaternion,this.navGroup=null,this.navNode=null,e.sceneEl.hasLoaded?this.injectControls():e.sceneEl.addEventListener("loaded",this.injectControls.bind(this))},update:function(e){const t=this.el,n=this.data,r=t.sceneEl.systems.nav;t.sceneEl.hasLoaded&&this.injectControls(),r&&n.constrainToNavMesh!==e.constrainToNavMesh&&(n.constrainToNavMesh?r.addAgent(this):r.removeAgent(this))},injectControls:function(){const e=this.data;var n;for(let r=0;r<e.controls.length;r++)n=e.controls[r]+t,this.el.components[n]||this.el.setAttribute(n,"")},updateNavLocation:function(){this.navGroup=null,this.navNode=null},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3;return function(r,o){if(!o)return;const i=this.el,a=this.data;if(!a.enabled)return;this.updateVelocityCtrl();const s=this.velocityCtrl,u=this.velocity;if(s)if(o/1e3>.2?u.set(0,0,0):this.updateVelocity(o),a.constrainToNavMesh&&!1!==s.isNavMeshConstrained){if(u.lengthSq()<1e-5)return;e.copy(i.object3D.position),t.copy(u).multiplyScalar(o/1e3).add(e);const r=i.sceneEl.systems.nav;this.navGroup=null===this.navGroup?r.getGroup(e):this.navGroup,this.navNode=this.navNode||r.getNode(e,this.navGroup),this.navNode=r.clampStep(e,t,this.navGroup,this.navNode,n),i.object3D.position.copy(n)}else i.hasAttribute("velocity")?i.setAttribute("velocity",u):(i.object3D.position.x+=u.x*o/1e3,i.object3D.position.y+=u.y*o/1e3,i.object3D.position.z+=u.z*o/1e3)}}(),updateVelocityCtrl:function(){const e=this.data;if(e.enabled){for(let n=0,r=e.controls.length;n<r;n++){const r=this.el.components[e.controls[n]+t];if(r&&r.isVelocityActive())return void(this.velocityCtrl=r)}this.velocityCtrl=null}},updateVelocity:function(){const e=new THREE.Vector2,t=new THREE.Quaternion;return function(n){let r;const o=this.el,i=this.velocityCtrl,a=this.velocity,s=this.data;if(i){if(!i.getVelocityDelta){if(i.getVelocity)return void a.copy(i.getVelocity());if(i.getPositionDelta)return void a.copy(i.getPositionDelta(n).multiplyScalar(1e3/n));throw new Error("Incompatible movement controls: ",i)}r=i.getVelocityDelta(n)}if(o.hasAttribute("velocity")&&!s.constrainToNavMesh&&a.copy(this.el.getAttribute("velocity")),r&&s.enabled){const n=s.camera;t.copy(n.object3D.quaternion),t.premultiply(o.object3D.quaternion),r.applyQuaternion(t);const i=r.length();s.fly?(a.copy(r),a.multiplyScalar(16.66667*this.data.speed)):(e.set(r.x,r.z),e.setLength(i*this.data.speed*16.66667),a.x=e.x,a.z=e.y)}}}()})},79048:function(e){e.exports=AFRAME.registerComponent("touch-controls",{schema:{enabled:{default:!0},reverseEnabled:{default:!0}},init:function(){this.dVelocity=new THREE.Vector3,this.bindMethods(),this.direction=0},play:function(){this.addEventListeners()},pause:function(){this.removeEventListeners(),this.dVelocity.set(0,0,0)},remove:function(){this.pause()},addEventListeners:function(){const e=this.el.sceneEl,t=e.canvas;t?(t.addEventListener("touchstart",this.onTouchStart),t.addEventListener("touchend",this.onTouchEnd)):e.addEventListener("render-target-loaded",this.addEventListeners.bind(this))},removeEventListeners:function(){const e=this.el.sceneEl&&this.el.sceneEl.canvas;e&&(e.removeEventListener("touchstart",this.onTouchStart),e.removeEventListener("touchend",this.onTouchEnd))},isVelocityActive:function(){return this.data.enabled&&!!this.direction},getVelocityDelta:function(){return this.dVelocity.z=this.direction,this.dVelocity.clone()},bindMethods:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)},onTouchStart:function(e){this.direction=-1,this.data.reverseEnabled&&2===e.touches.length&&(this.direction=1),e.preventDefault()},onTouchEnd:function(e){this.direction=0,e.preventDefault()}})},99893:function(e){e.exports=AFRAME.registerComponent("trackpad-controls",{schema:{enabled:{default:!0},enableNegX:{default:!0},enablePosX:{default:!0},enableNegZ:{default:!0},enablePosZ:{default:!0},mode:{default:"touch",oneOf:["swipe","touch","press"]}},init:function(){this.dVelocity=new THREE.Vector3,this.zVel=0,this.xVel=0,this.bindMethods()},play:function(){this.addEventListeners()},pause:function(){this.removeEventListeners(),this.dVelocity.set(0,0,0)},remove:function(){this.pause()},addEventListeners:function(){const e=this.data,t=this.el.sceneEl;switch(t.addEventListener("axismove",this.onAxisMove),e.mode){case"swipe":case"touch":t.addEventListener("trackpadtouchstart",this.onTouchStart),t.addEventListener("trackpadtouchend",this.onTouchEnd);break;case"press":t.addEventListener("trackpaddown",this.onTouchStart),t.addEventListener("trackpadup",this.onTouchEnd)}},removeEventListeners:function(){const e=this.el.sceneEl;e.removeEventListener("axismove",this.onAxisMove),e.removeEventListener("trackpadtouchstart",this.onTouchStart),e.removeEventListener("trackpadtouchend",this.onTouchEnd),e.removeEventListener("trackpaddown",this.onTouchStart),e.removeEventListener("trackpadup",this.onTouchEnd)},isVelocityActive:function(){return this.data.enabled&&this.isMoving},getVelocityDelta:function(){return this.dVelocity.z=this.isMoving?-this.zVel:1,this.dVelocity.x=this.isMoving?this.xVel:1,this.dVelocity.clone()},bindMethods:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onAxisMove=this.onAxisMove.bind(this)},onTouchStart:function(e){switch(this.data.mode){case"swipe":this.canRecordAxis=!0,this.startingAxisData=[];break;case"touch":case"press":this.isMoving=!0}e.preventDefault()},onTouchEnd:function(e){"swipe"==this.data.mode&&(this.startingAxisData=[]),this.isMoving=!1,e.preventDefault()},onAxisMove:function(e){switch(this.data.mode){case"swipe":return this.handleSwipeAxis(e);case"touch":case"press":return this.handleTouchAxis(e)}},handleSwipeAxis:function(e){const t=this.data,n=e.detail.axis;if(0===this.startingAxisData.length&&this.canRecordAxis&&(this.canRecordAxis=!1,this.startingAxisData[0]=n[0],this.startingAxisData[1]=n[1]),this.startingAxisData.length>0){let e=0,r=0;t.enableNegX&&n[0]<this.startingAxisData[0]&&(e=-1),t.enablePosX&&n[0]>this.startingAxisData[0]&&(e=1),t.enablePosZ&&n[1]>this.startingAxisData[1]&&(r=-1),t.enableNegZ&&n[1]<this.startingAxisData[1]&&(r=1);const o=Math.abs(this.startingAxisData[1]-n[1]);Math.abs(this.startingAxisData[0]-n[0])>o?(this.zVel=0,this.xVel=e,this.isMoving=!0):(this.xVel=0,this.zVel=r,this.isMoving=!0)}},handleTouchAxis:function(e){const t=this.data,n=e.detail.axis;let r=0,o=0;t.enableNegX&&n[0]<0&&(r=-1),t.enablePosX&&n[0]>0&&(r=1),t.enablePosZ&&n[1]>0&&(o=-1),t.enableNegZ&&n[1]<0&&(o=1),Math.abs(n[0])>Math.abs(n[1])?(this.zVel=0,this.xVel=r):(this.xVel=0,this.zVel=o)}})},76591:function(e){const t={once:THREE.LoopOnce,repeat:THREE.LoopRepeat,pingpong:THREE.LoopPingPong};function n(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}e.exports=AFRAME.registerComponent("animation-mixer",{schema:{clip:{default:"*"},duration:{default:0},clampWhenFinished:{default:!1,type:"boolean"},crossFadeDuration:{default:0},loop:{default:"repeat",oneOf:Object.keys(t)},repetitions:{default:1/0,min:0},timeScale:{default:1}},init:function(){this.model=null,this.mixer=null,this.activeActions=[];const e=this.el.getObject3D("mesh");e?this.load(e):this.el.addEventListener("model-loaded",(e=>{this.load(e.detail.model)}))},load:function(e){const t=this.el;this.model=e,this.mixer=new THREE.AnimationMixer(e),this.mixer.addEventListener("loop",(e=>{t.emit("animation-loop",{action:e.action,loopDelta:e.loopDelta})})),this.mixer.addEventListener("finished",(e=>{t.emit("animation-finished",{action:e.action,direction:e.direction})})),this.data.clip&&this.update({})},remove:function(){this.mixer&&this.mixer.stopAllAction()},update:function(e){if(!e)return;const n=this.data,r=AFRAME.utils.diff(n,e);if("clip"in r)return this.stopAction(),void(n.clip&&this.playAction());this.activeActions.forEach((e=>{"duration"in r&&n.duration&&e.setDuration(n.duration),"clampWhenFinished"in r&&(e.clampWhenFinished=n.clampWhenFinished),("loop"in r||"repetitions"in r)&&e.setLoop(t[n.loop],n.repetitions),"timeScale"in r&&e.setEffectiveTimeScale(n.timeScale)}))},stopAction:function(){const e=this.data;for(let t=0;t<this.activeActions.length;t++)e.crossFadeDuration?this.activeActions[t].fadeOut(e.crossFadeDuration):this.activeActions[t].stop();this.activeActions.length=0},playAction:function(){if(!this.mixer)return;const e=this.model,r=this.data,o=e.animations||(e.geometry||{}).animations||[];if(!o.length)return;const i=(a=r.clip,new RegExp("^"+a.split(/\*+/).map(n).join(".*")+"$"));var a;for(let n,s=0;n=o[s];s++)if(n.name.match(i)){const o=this.mixer.clipAction(n,e);o.enabled=!0,o.clampWhenFinished=r.clampWhenFinished,r.duration&&o.setDuration(r.duration),1!==r.timeScale&&o.setEffectiveTimeScale(r.timeScale),o.setLoop(t[r.loop],r.repetitions).fadeIn(r.crossFadeDuration).play(),this.activeActions.push(o)}},tick:function(e,t){this.mixer&&!isNaN(t)&&this.mixer.update(t/1e3)}})},62290:function(e,t,n){THREE.ColladaLoader=n(20203),e.exports.Component=AFRAME.registerComponent("collada-model-legacy",{schema:{type:"asset"},init:function(){this.model=null,this.loader=new THREE.ColladaLoader},update:function(){var e=this,t=this.el,n=this.data,r=this.el.sceneEl.systems.renderer;n&&(this.remove(),this.loader.load(n,(function(n){e.model=n.scene,e.model.traverse((function(e){if(e.isMesh){var t=e.material;t.color&&r.applyColorCorrection(t.color),t.map&&r.applyColorCorrection(t.map),t.emissive&&r.applyColorCorrection(t.emissive),t.emissiveMap&&r.applyColorCorrection(t.emissiveMap)}})),t.setObject3D("mesh",e.model),t.emit("model-loaded",{format:"collada",model:e.model})})))},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},5310:function(e,t,n){THREE.FBXLoader=n(99434),e.exports=AFRAME.registerComponent("fbx-model",{schema:{src:{type:"asset"},crossorigin:{default:""}},init:function(){this.model=null},update:function(){const e=this.data;if(!e.src)return;this.remove();const t=new THREE.FBXLoader;e.crossorigin&&t.setCrossOrigin(e.crossorigin),t.load(e.src,this.load.bind(this))},load:function(e){this.model=e,this.el.setObject3D("mesh",e),this.el.emit("model-loaded",{format:"fbx",model:e})},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},88837:function(e,t,n){const r=n(34657)(),o=function(){let e;return function(){return e=e||r("https://cdn.jsdelivr.net/gh/mrdoob/three.js@r86/examples/js/loaders/GLTFLoader.js"),e}}();e.exports=AFRAME.registerComponent("gltf-model-legacy",{schema:{type:"model"},init:function(){this.model=null,this.loader=null,this.loaderPromise=o().then((()=>{this.loader=new THREE.GLTFLoader,this.loader.setCrossOrigin("Anonymous")}))},update:function(){const e=this,t=this.el,n=this.data;n&&(this.remove(),this.loaderPromise.then((()=>{this.loader.load(n,(function(n){e.model=n.scene,e.model.animations=n.animations,t.setObject3D("mesh",e.model),t.emit("model-loaded",{format:"gltf",model:e.model})}))})))},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},29874:function(e,t,n){n(76591),n(62290),n(5310),n(88837),n(30171)},30171:function(e){e.exports=AFRAME.registerComponent("object-model",{schema:{src:{type:"asset"},crossorigin:{default:""}},init:function(){this.model=null},update:function(){let e;const t=this.data;t.src&&(this.remove(),e=new THREE.ObjectLoader,t.crossorigin&&e.setCrossOrigin(t.crossorigin),e.load(t.src,(e=>{e.traverse((e=>{e instanceof THREE.SkinnedMesh&&e.material&&(e.material.skinning=!!(e.geometry&&e.geometry.bones||[]).length)})),this.load(e)})))},load:function(e){this.model=e,this.el.setObject3D("mesh",e),this.el.emit("model-loaded",{format:"json",model:e})},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},37642:function(e){e.exports=AFRAME.registerComponent("checkpoint",{schema:{offset:{default:{x:0,y:0,z:0},type:"vec3"}},init:function(){this.active=!1,this.targetEl=null,this.fire=this.fire.bind(this),this.offset=new THREE.Vector3},update:function(){this.offset.copy(this.data.offset)},play:function(){this.el.addEventListener("click",this.fire)},pause:function(){this.el.removeEventListener("click",this.fire)},remove:function(){this.pause()},fire:function(){const e=this.el.sceneEl.querySelector("[checkpoint-controls]");if(!e)throw new Error("No `checkpoint-controls` component found.");e.components["checkpoint-controls"].setCheckpoint(this.el)},getOffset:function(){return this.offset.copy(this.data.offset)}})},74795:function(e){function t(e,t,n,r){e&&(t=t||[],e.traverse((e=>{if(!e.isMesh)return;var o;((o=e.material)?Array.isArray(o)?o:o.materials?o.materials:[o]:[]).forEach((e=>{e&&!("envMap"in e)||t.length&&-1===t.indexOf(e.name)||(e.envMap=n,e.reflectivity=r,e.needsUpdate=!0)}))})))}e.exports=AFRAME.registerComponent("cube-env-map",{multiple:!0,schema:{path:{default:""},extension:{default:"jpg",oneOf:["jpg","png"]},format:{default:"RGBFormat",oneOf:["RGBFormat","RGBAFormat"]},enableBackground:{default:!1},reflectivity:{default:1,min:0,max:1},materials:{default:[]}},init:function(){const e=this.data;this.texture=(new THREE.CubeTextureLoader).load([e.path+"posx."+e.extension,e.path+"negx."+e.extension,e.path+"posy."+e.extension,e.path+"negy."+e.extension,e.path+"posz."+e.extension,e.path+"negz."+e.extension]),this.texture.format=THREE[e.format],this.object3dsetHandler=()=>{const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,this.texture,n.reflectivity)},this.el.addEventListener("object3dset",this.object3dsetHandler)},update:function(e){const n=this.data,r=this.el.getObject3D("mesh");let o=[],i=[];if(n.materials.length&&(e.materials?(o=n.materials.filter((t=>!e.materials.includes(t))),i=e.materials.filter((e=>!n.materials.includes(e)))):o=n.materials),o.length&&t(r,o,this.texture,n.reflectivity),i.length&&t(r,i,null,1),e.materials&&n.reflectivity!==e.reflectivity){const o=n.materials.filter((t=>e.materials.includes(t)));o.length&&t(r,o,this.texture,n.reflectivity)}this.data.enableBackground&&!e.enableBackground?this.setBackground(this.texture):!this.data.enableBackground&&e.enableBackground&&this.setBackground(null)},remove:function(){this.el.removeEventListener("object3dset",this.object3dsetHandler);const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,null,1),n.enableBackground&&this.setBackground(null)},setBackground:function(e){this.el.sceneEl.object3D.background=e}})},79511:function(e){e.exports=AFRAME.registerComponent("grab",{init:function(){this.system=this.el.sceneEl.systems.physics,this.GRABBED_STATE="grabbed",this.grabbing=!1,this.hitEl=null,this.physics=this.el.sceneEl.systems.physics,this.constraint=null,this.onHit=this.onHit.bind(this),this.onGripOpen=this.onGripOpen.bind(this),this.onGripClose=this.onGripClose.bind(this)},play:function(){const e=this.el;e.addEventListener("hit",this.onHit),e.addEventListener("gripdown",this.onGripClose),e.addEventListener("gripup",this.onGripOpen),e.addEventListener("trackpaddown",this.onGripClose),e.addEventListener("trackpadup",this.onGripOpen),e.addEventListener("triggerdown",this.onGripClose),e.addEventListener("triggerup",this.onGripOpen)},pause:function(){const e=this.el;e.removeEventListener("hit",this.onHit),e.removeEventListener("gripdown",this.onGripClose),e.removeEventListener("gripup",this.onGripOpen),e.removeEventListener("trackpaddown",this.onGripClose),e.removeEventListener("trackpadup",this.onGripOpen),e.removeEventListener("triggerdown",this.onGripClose),e.removeEventListener("triggerup",this.onGripOpen)},onGripClose:function(){this.grabbing=!0},onGripOpen:function(){const e=this.hitEl;this.grabbing=!1,e&&(e.removeState(this.GRABBED_STATE),this.hitEl=void 0,this.system.removeConstraint(this.constraint),this.constraint=null)},onHit:function(e){const t=e.detail.el;t&&!t.is(this.GRABBED_STATE)&&this.grabbing&&!this.hitEl&&(t.addState(this.GRABBED_STATE),this.hitEl=t,this.constraint=new CANNON.LockConstraint(this.el.body,t.body),this.system.addConstraint(this.constraint))}})},59236:function(e,t,n){n(37642),n(74795),n(79511),n(70765),n(80837),n(58310),n(78240),n(91790)},70765:function(e){e.exports=AFRAME.registerComponent("jump-ability",{dependencies:["velocity"],schema:{on:{default:"keydown:Space gamepadbuttondown:0"},playerHeight:{default:1.764},maxJumps:{default:1},distance:{default:5},debug:{default:!1}},init:function(){this.velocity=0,this.numJumps=0;const e=this.beginJump.bind(this),t=this.data.on.split(" ");this.bindings={};for(let n=0;n<t.length;n++)this.bindings[t[n]]=e,this.el.addEventListener(t[n],e);this.bindings.collide=this.onCollide.bind(this),this.el.addEventListener("collide",this.bindings.collide)},remove:function(){for(var e in this.bindings)this.bindings.hasOwnProperty(e)&&(this.el.removeEventListener(e,this.bindings[e]),delete this.bindings[e]);this.el.removeEventListener("collide",this.bindings.collide),delete this.bindings.collide},beginJump:function(){if(this.numJumps<this.data.maxJumps){const e=this.data,t=Math.sqrt(-2*e.distance*-24.8),n=this.el.getAttribute("velocity");this.el.setAttribute("velocity",{x:n.x,y:t,z:n.z}),this.numJumps++,this.el.emit("jumpstart")}},onCollide:function(){this.numJumps>0&&this.el.emit("jumpend"),this.numJumps=0}})},80837:function(e){const t=1e-6;e.exports=AFRAME.registerComponent("kinematic-body",{dependencies:["velocity"],schema:{mass:{default:5},radius:{default:1.3},linearDamping:{default:.05},enableSlopes:{default:!0},enableJumps:{default:!1}},init:function(){this.system=this.el.sceneEl.systems.physics,this.system.addComponent(this);const e=this.el,t=this.data,n=(new CANNON.Vec3).copy(e.object3D.getWorldPosition(new THREE.Vector3));this.body=new CANNON.Body({material:this.system.getMaterial("staticMaterial"),position:n,mass:t.mass,linearDamping:t.linearDamping,fixedRotation:!0}),this.body.addShape(new CANNON.Sphere(t.radius),new CANNON.Vec3(0,t.radius,0)),this.body.el=this.el,this.el.body=this.body,this.system.addBody(this.body),e.hasAttribute("wasd-controls")&&console.warn("[kinematic-body] Not compatible with wasd-controls, use movement-controls.")},remove:function(){this.system.removeBody(this.body),this.system.removeComponent(this),delete this.el.body},beforeStep:function(e,t){if(!t)return;const n=this.el,r=this.data,o=this.body;r.enableJumps||o.velocity.set(0,0,0),o.position.copy(n.getAttribute("position"))},step:function(){const e=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,o=new THREE.Vector3;return function(i,a){if(!a)return;let s,u,c=this.body,l=this.data,d=!1,f=-1/0,p=this.system.getContacts();a=Math.min(a,1e3*this.system.data.maxInterval),o.set(0,0,0),e.copy(this.el.getAttribute("velocity")),c.velocity.copy(e);for(var h,m=0;h=p[m];m++)if(h.enabled){if(c.id===h.bi.id)h.ni.negate(r);else{if(c.id!==h.bj.id)continue;r.copy(h.ni)}d=c.velocity.dot(r)<-t,d&&r.y<=.5?e.projectOnPlane(r):r.y>.5&&(s=c.id===h.bi.id?Math.abs(h.rj.y+h.bj.position.y):Math.abs(h.ri.y+h.bi.position.y),s>f&&(f=s,o.copy(r),u=c.id===h.bi.id?h.bj:h.bi))}n.copy(e).normalize(),u&&(!l.enableJumps||n.y<.5)?(l.enableSlopes?o.y<1-t&&o.copy(this.raycastToGround(u,o)):o.set(0,1,0),e.projectOnPlane(o)):this.system.driver.world&&e.add(this.system.driver.world.gravity.scale(4*a/1e3)),c.velocity.copy(e),this.el.setAttribute("velocity",c.velocity),this.el.setAttribute("position",c.position)}}(),raycastToGround:function(e,t){let n,r,o=this.body.position,i=this.body.position.clone();return n=new CANNON.Ray(o,i),n._updateDirection(),n.intersectBody(e),n.hasHit?(r=n.result.hitNormalWorld,Math.abs(r.y)>Math.abs(t.y)?r:t):t}})},58310:function(e){e.exports=AFRAME.registerComponent("mesh-smooth",{init:function(){this.el.addEventListener("model-loaded",(e=>{e.detail.model.traverse((e=>{e.isMesh&&e.geometry.computeVertexNormals()}))}))}})},78240:function(e){e.exports=AFRAME.registerComponent("normal-material",{init:function(){this.material=new THREE.MeshNormalMaterial({flatShading:!0}),this.applyMaterial=this.applyMaterial.bind(this),this.el.addEventListener("object3dset",this.applyMaterial)},remove:function(){this.el.removeEventListener("object3dset",this.applyMaterial)},applyMaterial:function(){this.el.object3D.traverse((e=>{e.isMesh&&(e.material=this.material)}))}})},91790:function(e){e.exports=AFRAME.registerComponent("sphere-collider",{schema:{objects:{default:""},state:{default:"collided"},radius:{default:.05},watch:{default:!0}},init:function(){this.observer=null,this.els=[],this.collisions=[],this.handleHit=this.handleHit.bind(this),this.handleHitEnd=this.handleHitEnd.bind(this)},remove:function(){this.pause()},play:function(){const e=this.el.sceneEl;this.data.watch&&(this.observer=new MutationObserver(this.update.bind(this,null)),this.observer.observe(e,{childList:!0,subtree:!0}))},pause:function(){this.observer&&(this.observer.disconnect(),this.observer=null)},update:function(){const e=this.data;let t;t=e.objects?this.el.sceneEl.querySelectorAll(e.objects):this.el.sceneEl.children,this.els=Array.prototype.slice.call(t)},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,o=new THREE.Box3,i=new Map;return function(){const a=this.el,s=this.data,u=a.getObject3D("mesh"),c=[];let l;var d;u&&(i.clear(),a.object3D.getWorldPosition(e),a.object3D.getWorldScale(n),l=s.radius*(d=n,Math.max.apply(null,d.toArray())),this.els.forEach((function(n){let a,s,u,d;if(!n.isEntity)return;if(s=n.getObject3D("mesh"),!s)return;if(o.setFromObject(s).getSize(r),d=Math.max(r.x,r.y,r.z)/2,a=Math.sqrt(2*d*d),o.getCenter(t),!a)return;u=e.distanceTo(t),u<a+l&&(c.push(n),i.set(n,u))})),c.sort(((e,t)=>i.get(e)>i.get(t)?1:-1)).forEach(this.handleHit),0===c.length&&a.emit("hit",{el:null}),this.collisions.filter((e=>!i.has(e))).forEach(this.handleHitEnd),this.collisions=c)}}(),handleHit:function(e){e.emit("hit"),e.addState(this.data.state),this.el.emit("hit",{el:e})},handleHitEnd:function(e){e.emit("hitend"),e.removeState(this.data.state),this.el.emit("hitend",{el:e})}})},82578:function(e,t,n){n(38453),n(11250),n(31465)},11250:function(e){e.exports=AFRAME.registerComponent("nav-agent",{schema:{destination:{type:"vec3"},active:{default:!1},speed:{default:2}},init:function(){this.system=this.el.sceneEl.systems.nav,this.system.addAgent(this),this.group=null,this.path=[],this.raycaster=new THREE.Raycaster},remove:function(){this.system.removeAgent(this)},update:function(){this.path.length=0},updateNavLocation:function(){this.group=null,this.path=[]},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3;return function(r,o){const i=this.el,a=this.data,s=this.raycaster,u=a.speed*o/1e3;if(!a.active)return;if(!this.path.length){const t=this.el.object3D.position;this.group=this.group||this.system.getGroup(t),this.path=this.system.getPath(t,e.copy(a.destination),this.group)||[],i.emit("navigation-start")}if(!this.path.length)return console.warn("[nav] Unable to find path to %o.",a.destination),this.el.setAttribute("nav-agent",{active:!1}),void i.emit("navigation-end");const c=i.object3D.position,l=this.path[0];t.subVectors(l,c);let d;if(t.length()<u){if(this.path.shift(),!this.path.length)return this.el.setAttribute("nav-agent",{active:!1}),void i.emit("navigation-end");n.copy(c),d=this.path[0]}else n.copy(t.setLength(u)).add(c),d=l;d.y=c.y,i.object3D.lookAt(d),s.ray.origin.copy(n),s.ray.origin.y+=1.5,s.ray.direction.y=-1;const f=s.intersectObject(this.system.getNavMesh());f.length?(t.subVectors(f[0].point,c),c.add(t.setLength(u))):c.copy(n)}}()})},38453:function(e){e.exports=AFRAME.registerComponent("nav-mesh",{init:function(){this.system=this.el.sceneEl.systems.nav,this.hasLoadedNavMesh=!1,this.el.addEventListener("object3dset",this.loadNavMesh.bind(this))},play:function(){this.hasLoadedNavMesh||this.loadNavMesh()},loadNavMesh:function(){const e=this.el.getObject3D("mesh"),t=this.el.sceneEl.object3D;if(!e)return;let n;if(e.traverse((e=>{e.isMesh&&(n=e)})),!n)return;const r=n.geometry.isBufferGeometry?(new THREE.Geometry).fromBufferGeometry(n.geometry):n.geometry.clone();t.updateMatrixWorld(),r.applyMatrix(n.matrixWorld),this.system.setNavMeshGeometry(r),this.hasLoadedNavMesh=!0}})},31465:function(e,t,n){const{Pathfinding:r}=n(56594),o=new r,i="level";e.exports=AFRAME.registerSystem("nav",{init:function(){this.navMesh=null,this.agents=new Set},setNavMeshGeometry:function(e){this.navMesh=new THREE.Mesh(e),o.setZoneData(i,r.createZone(e)),Array.from(this.agents).forEach((e=>e.updateNavLocation()))},getNavMesh:function(){return this.navMesh},addAgent:function(e){this.agents.add(e)},removeAgent:function(e){this.agents.delete(e)},getPath:function(e,t,n){return this.navMesh?o.findPath(e,t,i,n):null},getGroup:function(e){return this.navMesh?o.getGroup(i,e):null},getNode:function(e,t){return this.navMesh?o.getClosestNode(e,i,t,!0):null},clampStep:function(e,t,n,r,a){return this.navMesh?r?o.clampStep(e,t,r,i,n,a):(a.copy(t),this.getNode(t,n)):(a.copy(t),null)}})},50386:function(e){e.exports=AFRAME.registerPrimitive("a-grid",{defaultComponents:{geometry:{primitive:"plane",width:75,height:75},rotation:{x:-90,y:0,z:0},material:{src:"url(https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v1.16.3/assets/grid.png)",repeat:"75 75"}},mappings:{width:"geometry.width",height:"geometry.height",src:"material.src"}})},23535:function(e,t,n){const r=n(63471),o=n(82667);e.exports.Primitive=AFRAME.registerPrimitive("a-hexgrid",{defaultComponents:{hexgrid:{}},mappings:{src:"hexgrid.src"}}),e.exports.Component=AFRAME.registerComponent("hexgrid",{dependencies:["material"],schema:{src:{type:"asset"}},init:function(){const e=this.data;e.src?fetch(e.src).then((e=>e.json())).then((e=>this.addMesh(e))):this.addMesh(o)},addMesh:function(e){const t=new r.HexGrid;t.fromJSON(e);const n=new r.Board(t);n.generateTilemap(),this.el.setObject3D("mesh",n.group),this.addMaterial()},addMaterial:function(){const e=(this.el.components.material||{}).material;e&&this.el.object3D.traverse((t=>{t.isMesh&&(t.material=e)}))},remove:function(){this.el.removeObject3D("mesh")}})},59307:function(e){e.exports.Primitive=AFRAME.registerPrimitive("a-ocean",{defaultComponents:{ocean:{},rotation:{x:-90,y:0,z:0}},mappings:{width:"ocean.width",depth:"ocean.depth",density:"ocean.density",amplitude:"ocean.amplitude",amplitudeVariance:"ocean.amplitudeVariance",speed:"ocean.speed",speedVariance:"ocean.speedVariance",color:"ocean.color",opacity:"ocean.opacity"}}),e.exports.Component=AFRAME.registerComponent("ocean",{schema:{width:{default:10,min:0},depth:{default:10,min:0},density:{default:10},amplitude:{default:.1},amplitudeVariance:{default:.3},speed:{default:1},speedVariance:{default:2},color:{default:"#7AD2F7",type:"color"},opacity:{default:.8}},play:function(){const e=this.el,t=this.data;let n=e.components.material;const r=new THREE.PlaneGeometry(t.width,t.depth,t.density,t.density);r.mergeVertices(),this.waves=[];for(let o,i=0,a=r.vertices.length;i<a;i++)o=r.vertices[i],this.waves.push({z:o.z,ang:Math.random()*Math.PI*2,amp:t.amplitude+Math.random()*t.amplitudeVariance,speed:(t.speed+Math.random()*t.speedVariance)/1e3});n||(n={},n.material=new THREE.MeshPhongMaterial({color:t.color,transparent:t.opacity<1,opacity:t.opacity,shading:THREE.FlatShading})),this.mesh=new THREE.Mesh(r,n.material),e.setObject3D("mesh",this.mesh)},remove:function(){this.el.removeObject3D("mesh")},tick:function(e,t){if(!t)return;const n=this.mesh.geometry.vertices;for(let r,o,i=0;r=n[i];i++)o=this.waves[i],r.z=o.z+Math.sin(o.ang)*o.amp,o.ang+=o.speed*t;this.mesh.geometry.verticesNeedUpdate=!0}})},50699:function(e){e.exports.Primitive=AFRAME.registerPrimitive("a-tube",{defaultComponents:{tube:{}},mappings:{path:"tube.path",segments:"tube.segments",radius:"tube.radius","radial-segments":"tube.radialSegments",closed:"tube.closed"}}),e.exports.Component=AFRAME.registerComponent("tube",{schema:{path:{default:[]},segments:{default:64},radius:{default:1},radialSegments:{default:8},closed:{default:!1}},init:function(){const e=this.el,t=this.data;let n=e.components.material;if(!t.path.length)return void console.error("[a-tube] `path` property expected but not found.");const r=new THREE.CatmullRomCurve3(t.path.map((function(e){return e=e.split(" "),new THREE.Vector3(Number(e[0]),Number(e[1]),Number(e[2]))}))),o=new THREE.TubeGeometry(r,t.segments,t.radius,t.radialSegments,t.closed);n||(n={},n.material=new THREE.MeshPhongMaterial),this.mesh=new THREE.Mesh(o,n.material),this.el.setObject3D("mesh",this.mesh)},update:function(e){Object.keys(e).length&&(this.remove(),this.init())},remove:function(){this.mesh&&this.el.removeObject3D("mesh")}})},36699:function(e,t,n){n(50386),n(23535),n(59307),n(50699)},31359:function(e,t,n){if("undefined"===typeof AFRAME)throw new Error("Component attempted to register before AFRAME was available.");let r=n(92539);"default"in r&&(r=r.default);let o=n(81398);"default"in o&&(o=o.default);const i=function(e){return"string"===typeof e?JSON.parse(e):e},a=function(e){if("function"===typeof e)return e;const t=eval;try{return t("("+e+")")}catch(n){}return null},s=function(e){return isNaN(parseFloat(e))?a(e)?a(e):e:parseFloat(e)};AFRAME.registerComponent("forcegraph",{schema:{jsonUrl:{type:"string",default:""},nodes:{parse:i,default:[]},links:{parse:i,default:[]},numDimensions:{type:"number",default:3},dagMode:{type:"string",default:""},dagLevelDistance:{type:"number",default:0},dagNodeFilter:{parse:a,function:()=>!0},onDagError:{parse:a,default:void 0},nodeRelSize:{type:"number",default:4},nodeId:{type:"string",default:"id"},nodeVal:{parse:s,default:"val"},nodeResolution:{type:"number",default:8},nodeVisibility:{parse:s,default:!0},nodeColor:{parse:s,default:"color"},nodeAutoColorBy:{parse:s,default:""},nodeOpacity:{type:"number",default:.75},nodeThreeObject:{parse:s,default:null},nodeThreeObjectExtend:{parse:s,default:!1},linkSource:{type:"string",default:"source"},linkTarget:{type:"string",default:"target"},linkVisibility:{parse:s,default:!0},linkColor:{parse:s,default:"color"},linkAutoColorBy:{parse:s,default:""},linkOpacity:{type:"number",default:.2},linkWidth:{parse:s,default:0},linkResolution:{type:"number",default:6},linkCurvature:{parse:s,default:0},linkCurveRotation:{parse:s,default:0},linkMaterial:{parse:s,default:null},linkThreeObject:{parse:s,default:null},linkThreeObjectExtend:{parse:s,default:!1},linkPositionUpdate:{parse:a,default:null},linkDirectionalArrowLength:{parse:s,default:0},linkDirectionalArrowColor:{parse:s,default:null},linkDirectionalArrowRelPos:{parse:s,default:.5},linkDirectionalArrowResolution:{type:"number",default:8},linkDirectionalParticles:{parse:s,default:0},linkDirectionalParticleSpeed:{parse:s,default:.01},linkDirectionalParticleWidth:{parse:s,default:.5},linkDirectionalParticleColor:{parse:s,default:null},linkDirectionalParticleResolution:{type:"number",default:4},onNodeHover:{parse:a,default:()=>{}},onLinkHover:{parse:a,default:()=>{}},onNodeClick:{parse:a,default:()=>{}},onLinkClick:{parse:a,default:()=>{}},forceEngine:{type:"string",default:"d3"},d3AlphaMin:{type:"number",default:0},d3AlphaDecay:{type:"number",default:.0228},d3VelocityDecay:{type:"number",default:.4},ngraphPhysics:{parse:i,default:null},warmupTicks:{type:"int",default:0},cooldownTicks:{type:"int",default:1e18},cooldownTime:{type:"int",default:15e3},onEngineTick:{parse:a,default:function(){}},onEngineStop:{parse:a,default:function(){}}},getGraphBbox:function(){return this.forceGraph||(this.forceGraph=new o),this.forceGraph.getGraphBbox()},emitParticle:function(){this.forceGraph||(this.forceGraph=new o);const e=this.forceGraph,t=e.emitParticle.apply(e,arguments);return t===e?this:t},d3Force:function(){this.forceGraph||(this.forceGraph=new o);const e=this.forceGraph,t=e.d3Force.apply(e,arguments);return t===e?this:t},d3ReheatSimulation:function(){return this.forceGraph&&this.forceGraph.d3ReheatSimulation(),this},refresh:function(){return this.forceGraph&&this.forceGraph.refresh(),this},init:function(){const e=this.state={};e.infoEl=document.createElement("a-text"),e.infoEl.setAttribute("position","0 -0.1 -1"),e.infoEl.setAttribute("width",1),e.infoEl.setAttribute("align","center"),e.infoEl.setAttribute("color","lavender");const t=document.querySelector("a-entity[camera], a-camera");t.appendChild(e.infoEl),e.cameraObj=t.object3D.children.filter((function(e){return"PerspectiveCamera"===e.type}))[0],this.el.sceneEl.addEventListener("camera-set-active",(function(t){e.cameraObj=t.detail.cameraEl.components.camera.camera})),this.forceGraph||(this.forceGraph=new o),this.forceGraph.onFinishUpdate((()=>this.el.setObject3D("forcegraphGroup",this.forceGraph))).onLoading((()=>e.infoEl.setAttribute("value","Loading..."))).onFinishLoading((()=>e.infoEl.setAttribute("value",""))),this.el.addEventListener("raycaster-intersected",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("raycaster-intersected-cleared",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("click",(()=>e.hoverObj&&this.data["on"+("node"===e.hoverObj.__graphObjType?"Node":"Link")+"Click"](e.hoverObj.__data)))},remove:function(){this.state.infoEl.remove(),this.el.removeObject3D("forcegraphGroup")},update:function(e){const t=this,n=this.data,r=AFRAME.utils.diff(n,e);["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaMin","d3AphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].filter((function(e){return e in r})).forEach((function(e){t.forceGraph[e](""!==n[e]?n[e]:null)})),("nodes"in r||"links"in r)&&t.forceGraph.graphData({nodes:n.nodes,links:n.links})},tick:function(e,t){const n=this.state,r=this.data,o=n.hoverDetail?n.hoverDetail.getIntersection?n.hoverDetail.getIntersection(this.el):n.hoverDetail.intersection||void 0:void 0;let i=o?o.object:void 0;for(;i&&!i.hasOwnProperty("__graphObjType");)i=i.parent;if(i!==n.hoverObj){const e=n.hoverObj?n.hoverObj.__graphObjType:null,t=n.hoverObj?n.hoverObj.__data:null,o=i?i.__graphObjType:null,a=i?i.__data:null;e&&e!==o&&r["on"+("node"===e?"Node":"Link")+"Hover"](null,t),o&&r["on"+("node"===o?"Node":"Link")+"Hover"](a,e===o?t:null),n.hoverObj=i}this.forceGraph.tickFrame()}})},18869:function(e){"use strict";e.exports=function(e){if(e)throw e}},45403:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(67294),i=n(96910),a=r(n(90233)),s=r(n(37763)),u=r(n(96705)),c=n(88323),l=n(11487),d=n(46017),f=n(87409),p=n(71018),h=n(81820);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){return a(e,t,{keys:["value","label"]})}function g(e){return o.createElement(l.Text,null,o.createElement(l.Box,{as:"span"},"Create")," ",o.createElement(l.Box,{as:"span",bg:"yellow.300",fontWeight:"bold"},'"',e,'"'))}t.CUIAutoComplete=function(e){var t=e.items,n=e.optionFilterFunc,r=void 0===n?v:n,a=e.itemRenderer,y=e.highlightItemBg,b=void 0===y?"gray.100":y,E=e.placeholder,_=e.label,T=e.listStyleProps,w=e.labelStyleProps,k=e.inputStyleProps,x=e.toggleButtonStyleProps,O=e.tagStyleProps,C=e.selectedIconProps,A=e.listItemStyleProps,S=e.onCreateItem,M=e.icon,D=e.hideToggleButton,I=void 0!==D&&D,P=e.disableCreateItem,N=void 0!==P&&P,R=e.createItemRenderer,L=void 0===R?g:R,j=e.renderCustomInput,F=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["items","optionFilterFunc","itemRenderer","highlightItemBg","placeholder","label","listStyleProps","labelStyleProps","inputStyleProps","toggleButtonStyleProps","tagStyleProps","selectedIconProps","listItemStyleProps","onCreateItem","icon","hideToggleButton","disableCreateItem","createItemRenderer","renderCustomInput"]),B=o.useState(!1),H=B[0],U=B[1],z=o.useState(""),V=z[0],G=z[1],W=o.useState(t),K=W[0],q=W[1],Y=o.useRef(null),$=i.useMultipleSelection(F),Z=$.getSelectedItemProps,X=$.getDropdownProps,Q=$.addSelectedItem,J=$.removeSelectedItem,ee=$.selectedItems,te=ee.map((function(e){return e.value})),ne=i.useCombobox({inputValue:V,selectedItem:void 0,items:K,onInputValueChange:function(e){var n=e.selectedItem,o=r(t,e.inputValue||"");H&&o.length>0&&U(!1),n||q(o)},stateReducer:function(e,t){var n=t.changes;switch(t.type){case i.useCombobox.stateChangeTypes.InputBlur:return m({},n,{isOpen:!1});case i.useCombobox.stateChangeTypes.InputKeyDownEnter:case i.useCombobox.stateChangeTypes.ItemClick:return m({},n,{highlightedIndex:e.highlightedIndex,inputValue:V,isOpen:!0});case i.useCombobox.stateChangeTypes.FunctionSelectItem:return m({},n,{inputValue:V});default:return n}},onStateChange:function(e){var n=e.inputValue,r=e.selectedItem;switch(e.type){case i.useCombobox.stateChangeTypes.InputChange:G(n||"");break;case i.useCombobox.stateChangeTypes.InputKeyDownEnter:case i.useCombobox.stateChangeTypes.ItemClick:r&&(te.includes(r.value)?J(r):S&&H?(S(r),U(!1),q(t),G("")):Q(r),fe(null))}}}),re=ne.isOpen,oe=ne.getToggleButtonProps,ie=ne.getLabelProps,ae=ne.getMenuProps,se=ne.getInputProps,ue=ne.getComboboxProps,ce=ne.highlightedIndex,le=ne.getItemProps,de=ne.openMenu,fe=ne.selectItem,pe=ne.setHighlightedIndex;return o.useEffect((function(){0!==K.length||N||(U(!0),q([{label:""+V,value:V}]),pe(0))}),[K,U,pe,V,N]),u((function(){q(t)}),[t]),o.createElement(l.Stack,null,o.createElement(c.FormLabel,Object.assign({},m({},ie({}),w)),_),ee&&o.createElement(l.Stack,{spacing:2,isInline:!0,flexWrap:"wrap"},ee.map((function(e,t){return o.createElement(h.Tag,Object.assign({mb:1},O,{key:"selected-item-"+t},Z({selectedItem:e,index:t})),o.createElement(h.TagLabel,null,e.label),o.createElement(h.TagCloseButton,{onClick:function(t){t.stopPropagation(),J(e)},"aria-label":"Remove menu selection badge"}))}))),o.createElement(l.Stack,Object.assign({isInline:!0},ue()),j?j(m({},k,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:Y}))),m({},x,oe(),{ariaLabel:"toggle menu",hideToggleButton:I})):o.createElement(o.Fragment,null,o.createElement(f.Input,Object.assign({},k,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:Y})))),!I&&o.createElement(d.Button,Object.assign({},x,oe(),{"aria-label":"toggle menu"}),o.createElement(p.ArrowDownIcon,null)))),o.createElement(l.Box,{pb:4,mb:4},o.createElement(l.List,Object.assign({bg:"white",borderRadius:"4px",border:re&&"1px solid rgba(0,0,0,0.1)",boxShadow:"6px 5px 8px rgba(0,50,30,0.02)"},T,ae()),re&&K.map((function(e,t){return o.createElement(l.ListItem,Object.assign({px:2,py:1,borderBottom:"1px solid rgba(0,0,0,0.01)"},A,{bg:ce===t?b:"inherit",key:""+e.value+t},le({item:e,index:t})),H?L(e.label):o.createElement(l.Box,{display:"inline-flex",alignItems:"center"},te.includes(e.value)&&o.createElement(l.ListIcon,Object.assign({as:M||p.CheckCircleIcon,color:"green.500",role:"img",display:"inline","aria-label":"Selected"},C)),a?a(e):o.createElement(s,{autoEscape:!0,searchWords:[V||""],textToHighlight:(n=e,n.label)})));var n})))))}},47647:function(e,t,n){"use strict";e.exports=n(45403)},56851:function(e,t){"use strict";t.parse=function(e){var t,n=[],r=String(e||""),o=r.indexOf(","),i=0,a=!1;for(;!a;)-1===o&&(o=r.length,a=!0),!(t=r.slice(i,o).trim())&&a||n.push(t),i=o+1,o=r.indexOf(",",i);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",o=n.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(o+","+r).trim()}},20640:function(e,t,n){"use strict";var r=n(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},78244:function(e,t,n){"use strict";n.r(t),n.d(t,{calculateBox:function(){return p},createBox:function(){return c},expand:function(){return a},getBox:function(){return h},getRect:function(){return i},offset:function(){return d},shrink:function(){return s},withScroll:function(){return f}});var r="Invariant failed";var o=function(e,t){if(!e)throw new Error(r)},i=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},a=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},s=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},u={top:0,right:0,bottom:0,left:0},c=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?u:n,o=e.border,c=void 0===o?u:o,l=e.padding,d=void 0===l?u:l,f=i(a(t,r)),p=i(s(t,c)),h=i(s(p,d));return{marginBox:f,borderBox:i(t),paddingBox:p,contentBox:h,margin:r,border:c,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&o(!1),n},d=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return c({borderBox:u,border:i,margin:a,padding:s})},f=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),d(e,t)},p=function(e,t){var n={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},r={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},o={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return c({borderBox:e,margin:n,padding:r,border:o})},h=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return p(t,n)}},20296:function(e){function t(e,t,n){var r,o,i,a,s;function u(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(i,o),i=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},53879:function(e,t,n){var r=n(87236),o=n(6189),i={float:"cssFloat"},a=n(93379);function s(e,t,n){var s=i[t];if("undefined"===typeof s&&(s=function(e){var t=o(e),n=r(t);return i[t]=i[e]=i[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=a(s,n)}}function u(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}function c(){2===arguments.length?"string"===typeof arguments[1]?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=c,e.exports.set=c,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=s(e,n||""),t}),{}):s(e,t||"")}},96910:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,{default:function(){return K},resetIdCounter:function(){return k},useCombobox:function(){return Ne},useMultipleSelection:function(){return We},useSelect:function(){return ke}});var s=n(45697),u=n.n(s),c=n(67294);n(59864);function l(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function d(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function f(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return d(n.overflowY,t)||d(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function p(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var h=n(70655),m=0;function v(e){return"function"===typeof e?e:g}function g(){}function y(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!l(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,d=[],h=e;l(h)&&u(h);){if((h=h.parentElement)===c){d.push(h);break}null!=h&&h===document.body&&f(h)&&!f(document.documentElement)||null!=h&&f(h,s)&&d.push(h)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),E=b.height,_=b.width,T=b.top,w=b.right,k=b.bottom,x=b.left,O="start"===o||"nearest"===o?T:"end"===o?k:T+E/2,C="center"===i?x+_/2:"end"===i?w:x,A=[],S=0;S<d.length;S++){var M=d[S],D=M.getBoundingClientRect(),I=D.height,P=D.width,N=D.top,R=D.right,L=D.bottom,j=D.left;if("if-needed"===r&&T>=0&&x>=0&&k<=v&&w<=m&&T>=N&&k<=L&&x>=j&&w<=R)return A;var F=getComputedStyle(M),B=parseInt(F.borderLeftWidth,10),H=parseInt(F.borderTopWidth,10),U=parseInt(F.borderRightWidth,10),z=parseInt(F.borderBottomWidth,10),V=0,G=0,W="offsetWidth"in M?M.offsetWidth-M.clientWidth-B-U:0,K="offsetHeight"in M?M.offsetHeight-M.clientHeight-H-z:0;if(c===M)V="start"===o?O:"end"===o?O-v:"nearest"===o?p(y,y+v,v,H,z,y+O,y+O+E,E):O-v/2,G="start"===i?C:"center"===i?C-m/2:"end"===i?C-m:p(g,g+m,m,B,U,g+C,g+C+_,_),V=Math.max(0,V+y),G=Math.max(0,G+g);else{V="start"===o?O-N-H:"end"===o?O-L+z+K:"nearest"===o?p(N,L,I,H,z+K,O,O+E,E):O-(N+I/2)+K/2,G="start"===i?C-j-B:"center"===i?C-(j+P/2)+W/2:"end"===i?C-R+U+W:p(j,R,P,B,U+W,C,C+_,_);var q=M.scrollLeft,Y=M.scrollTop;O+=Y-(V=Math.max(0,Math.min(Y+V,M.scrollHeight-I+K))),C+=q-(G=Math.max(0,Math.min(q+G,M.scrollWidth-P+W)))}A.push({el:M,top:V,left:G})}return A}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function E(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"===typeof t?t(e):t&&(t.current=e)}))}}function w(){return String(m++)}function k(){m=0}function x(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function O(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function C(e){return"string"===typeof e.type}function A(e){return e.props}var S=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function M(e){void 0===e&&(e={});var t={};return S.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function D(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=I(t,r)?t[r]:e[r],n}),{})}function I(e,t){return void 0!==e[t]}function P(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function N(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var s=R(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function R(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return o?e>0?R(1,0,n,r,!1):R(-1,n-1,n,r,!1):-1}function L(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(b(t,e,n)||r&&b(t,n.document.activeElement,n))}))}var j=E((function(e){B(e).textContent=""}),500);function F(e,t){var n=B(t);e&&(n.textContent=e,j(t))}function B(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var H=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),U=["refKey","ref"],z=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],V=["onKeyDown","onBlur","onChange","onInput","onChangeText"],G=["refKey","ref"],W=["onMouseMove","onMouseDown","onClick","onPress","index","item"],K=function(){var e=function(e){var t,n;function s(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+w(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=M(t),n.internalSetState(o({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=M(t),n.internalSetState(o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,i,a={},s="function"===typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,o({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var u=s?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={},l={};return r&&u.selectedItem!==t.selectedItem&&(i=u.selectedItem),u.type=u.type||0,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(a[e]=u[e]),"type"!==e&&(l[e]=u[e],I(n.props,e)||(c[e]=u[e]))})),s&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,o({},n.getStateAndHelpers(),u)),c}),(function(){v(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=r(a,U),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=u,n.getRootProps.suppressRefError=f;var p=n.getState().isOpen;return o(((i={})[u]=T(c,n.rootRef),i.role="combobox",i["aria-expanded"]=p,i["aria-haspopup"]="listbox",i["aria-owns"]=p?n.menuId:null,i["aria-labelledby"]=n.labelId,i),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=N(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=N(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(o({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=o({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=o({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=R(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=R(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,i=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,u=t.onBlur,c=r(t,z),l=n.getState().isOpen,d={onClick:_(i,n.buttonHandleClick),onKeyDown:_(a,n.buttonHandleKeyDown),onKeyUp:_(s,n.buttonHandleKeyUp),onBlur:_(u,n.buttonHandleBlur)};return o({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},c.disabled?{}:d,c)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=P(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(i(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return o({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,i=t.onKeyDown,a=t.onBlur,s=t.onChange,u=t.onInput;t.onChangeText;var c=r(t,V),l={};var d,f=n.getState(),p=f.inputValue,h=f.isOpen,m=f.highlightedIndex;c.disabled||((d={}).onChange=_(s,u,n.inputHandleChange),d.onKeyDown=_(i,n.inputHandleKeyDown),d.onBlur=_(a,n.inputHandleBlur),l=d);return o({"aria-autocomplete":"list","aria-activedescendant":h&&"number"===typeof m&&m>=0?n.getItemId(m):null,"aria-controls":h?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:p,id:n.inputId},l,c)},n.inputHandleKeyDown=function(e){var t=P(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(i(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=r(a,G),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=u,n.getMenuProps.suppressRefError=f,o(((i={})[u]=T(c,n.menuRef),i.role="listbox",i["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,i.id=n.menuId,i),l)},n.getItemProps=function(e){var t,i=void 0===e?{}:e,a=i.onMouseMove,s=i.onMouseDown,u=i.onClick;i.onPress;var c=i.index,l=i.item,d=void 0===l?void 0:l,f=r(i,W);void 0===c?(n.items.push(d),c=n.items.indexOf(d)):n.items[c]=d;var p=u,h=((t={onMouseMove:_(a,(function(){c!==n.getState().highlightedIndex&&(n.setHighlightedIndex(c,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:_(s,(function(e){e.preventDefault()}))}).onClick=_(p,(function(){n.selectItemAtIndex(c,{type:9})})),t),m=f.disabled?{onMouseDown:h.onMouseDown}:h;return o({id:n.getItemId(c),role:"option","aria-selected":n.getState().highlightedIndex===c},m,f)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=M(e),n.internalSetState((function(t){var r=t.selectedItem;return o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=M(e),n.internalSetState((function(t){var r=t.isOpen;return o({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"===typeof i&&n.setHighlightedIndex(i,e),v(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=E((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(o({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,F(i,n.props.environment.document)}),200);var a=n.props,s=a.defaultHighlightedIndex,u=a.initialHighlightedIndex,c=void 0===u?s:u,l=a.defaultIsOpen,d=a.initialIsOpen,f=void 0===d?l:d,p=a.initialInputValue,h=void 0===p?"":p,m=a.initialSelectedItem,g=void 0===m?null:m,y=n.getState({highlightedIndex:c,isOpen:f,inputValue:h,selectedItem:g});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var u=s.prototype;return u.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},u.getState=function(e){return void 0===e&&(e=this.state),D(e,this.props)},u.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},u.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},u.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},u.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),o=this.getState().highlightedIndex;if(r>0){var i=N(e,o,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(i,t)}},u.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,u=this.getToggleButtonProps,c=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,p=this.openMenu,h=this.closeMenu,m=this.toggleMenu,v=this.selectItem,g=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,E=this.clearSelection,_=this.clearItems;return{getRootProps:s,getToggleButtonProps:u,getLabelProps:c,getMenuProps:l,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:p,closeMenu:h,toggleMenu:m,selectItem:v,selectItemAtIndex:g,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:E,clearItems:_,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},u.componentDidMount=function(){var e=this;var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!L(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},o=function(){e.isTouchMove=!0},i=function(t){var n=L(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",o),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",o),a.removeEventListener("touchend",i)}},u.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},u.componentDidUpdate=function(e,t){I(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},u.componentWillUnmount=function(){this.cleanup()},u.render=function(){var e=O(this.props.children,g);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=O(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:C(t)?(0,c.cloneElement)(t,this.getRootProps(A(t))):void 0:null},s}(c.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:x,itemToString:function(e){return null==e?"":String(e)},onStateChange:g,onInputValueChange:g,onUserAction:g,onChange:g,onSelect:g,onOuterClick:g,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"===typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=H,e}();var q=["isInitialMount","highlightedIndex","items","environment"],Y={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function $(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,s="on"+te(e)+"Change";i[s]&&void 0!==r[e]&&r[e]!==n[e]&&i[s](o({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(o({type:i},a))}var Z=E((function(e,t){F(e(),t)}),200),X="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?c.useLayoutEffect:c.useEffect;function Q(e){var t=e.id,n=void 0===t?"downshift-"+w():t,r=e.labelId,o=e.menuId,i=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"}).current}function J(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ee(e){return/^\S{1}$/.test(e)}function te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ne(e){var t=(0,c.useRef)(e);return t.current=e,t}function re(e,t,n){var r=(0,c.useRef)(),i=(0,c.useRef)(),a=(0,c.useCallback)((function(t,n){i.current=n,t=D(t,n.props);var r=e(t,n);return n.props.stateReducer(t,o({},n,{changes:r}))}),[e]),s=(0,c.useReducer)(a,t),u=s[0],l=s[1],d=ne(n),f=(0,c.useCallback)((function(e){return l(o({props:d.current},e))}),[d]),p=i.current;return(0,c.useEffect)((function(){p&&r.current&&r.current!==u&&$(p,D(r.current,p.props),u),r.current=u}),[u,n,p]),[u,f]}function oe(e,t,n){var r=re(e,t,n),o=r[0],i=r[1];return[D(o,n),i]}var ie={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:y,circularNavigation:!1,environment:"undefined"===typeof window?{}:window};function ae(e,t,n){void 0===n&&(n=Y);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=Y),t in e)return e[t];var r="initial"+te(t);return r in e?e[r]:ae(e,t,n)}function ue(e){var t=se(e,"selectedItem"),n=se(e,"isOpen"),r=se(e,"highlightedIndex"),o=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ce(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&u===i?i:void 0!==a?a:s?0===n?o.indexOf(s):N(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function le(e,t,n,r){var o=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!L(i.target,t.map((function(e){return e.current})),n)&&r()},s=function(){o.current.isTouchMove=!1},u=function(){o.current.isTouchMove=!0},c=function(i){!e||o.current.isTouchMove||L(i.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}),[e,n]),o}var de=function(){return g};function fe(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,s=n.items,u=n.environment,l=r(n,q);(0,c.useEffect)((function(){i||Z((function(){return e(o({highlightedIndex:a,highlightedItem:s[a],resultCount:s.length},l))}),u.document)}),t)}function pe(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,i=e.menuElement,a=e.scrollIntoView,s=(0,c.useRef)(!0);return X((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}var he=g;function me(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ce(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ce(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:ae(a,"highlightedIndex"),isOpen:ae(a,"isOpen"),selectedItem:ae(a,"selectedItem"),inputValue:ae(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,r)}function ve(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var u=(s+n+1)%r.length,c=r[u];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var l=i(u);if(!(null===l||void 0===l?void 0:l.hasAttribute("disabled")))return u}}return n}u().array.isRequired,u().func,u().func,u().func,u().bool,u().number,u().number,u().number,u().bool,u().bool,u().bool,u().any,u().any,u().any,u().string,u().string,u().string,u().func,u().string,u().func,u().func,u().func,u().func,u().func,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var ge=(0,h.pi)((0,h.pi)({},ie),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),ye=g;var be=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function Ee(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var s=t.key,u=""+e.inputValue+s,c=ve({keysSoFar:u,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:u},c>=0&&{selectedItem:i.items[c]});break;case 13:n={highlightedIndex:ce(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ce(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=o({isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:R(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:R(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=ve({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:N(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:N(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return me(e,t,be)}return o({},e,n)}var _e=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],Te=["onClick","onKeyDown","refKey","ref"],we=["item","index","onMouseMove","onClick","refKey","ref"];function ke(e){void 0===e&&(e={}),ye(e,ke);var t=o({},ge,e),n=t.items,i=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,u=t.defaultIsOpen,l=t.itemToString,d=t.getA11ySelectionMessage,f=t.getA11yStatusMessage,p=oe(Ee,ue(t),t),h=p[0],m=p[1],v=h.isOpen,g=h.highlightedIndex,y=h.selectedItem,b=h.inputValue,w=(0,c.useRef)(null),k=(0,c.useRef)(null),x=(0,c.useRef)({}),O=(0,c.useRef)(!0),C=(0,c.useRef)(null),A=Q(t),S=(0,c.useRef)(),M=(0,c.useRef)(!0),D=ne({state:h,props:t}),I=(0,c.useCallback)((function(e){return x.current[A.getItemId(e)]}),[A]);fe(f,[v,g,b,n],o({isInitialMount:M.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h)),fe(d,[y],o({isInitialMount:M.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h));var N=pe({menuElement:k.current,highlightedIndex:g,isOpen:v,itemRefs:x,scrollIntoView:i,getItemNodeFromIndex:I});(0,c.useEffect)((function(){return C.current=E((function(e){e({type:21,inputValue:""})}),500),function(){C.current.cancel()}}),[]),(0,c.useEffect)((function(){b&&C.current(m)}),[m,b]),he({isInitialMount:M.current,props:t,state:h}),(0,c.useEffect)((function(){M.current?(s||u||v)&&k.current&&k.current.focus():v?k.current&&k.current.focus():a.document.activeElement===k.current&&w.current&&(O.current=!1,w.current.focus())}),[v]),(0,c.useEffect)((function(){M.current||(S.current=n.length)}));var R=le(v,[k,w],a,(function(){m({type:8})})),L=de();(0,c.useEffect)((function(){M.current=!1}),[]),(0,c.useEffect)((function(){v||(x.current={})}),[v]);var j=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:13,getItemNodeFromIndex:I,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:14,getItemNodeFromIndex:I,shiftKey:e.shiftKey})}}}),[m,I]),F=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,getItemNodeFromIndex:I,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:1,getItemNodeFromIndex:I,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),m({type:3,getItemNodeFromIndex:I})},End:function(e){e.preventDefault(),m({type:4,getItemNodeFromIndex:I})},Escape:function(){m({type:2})},Enter:function(e){e.preventDefault(),m({type:5})}," ":function(e){e.preventDefault(),m({type:6})}}}),[m,I]),B=(0,c.useCallback)((function(){m({type:16})}),[m]),H=(0,c.useCallback)((function(){m({type:18})}),[m]),U=(0,c.useCallback)((function(){m({type:17})}),[m]),z=(0,c.useCallback)((function(e){m({type:19,highlightedIndex:e})}),[m]),V=(0,c.useCallback)((function(e){m({type:20,selectedItem:e})}),[m]),G=(0,c.useCallback)((function(){m({type:22})}),[m]),W=(0,c.useCallback)((function(e){m({type:21,inputValue:e})}),[m]),K=(0,c.useCallback)((function(e){return o({id:A.labelId,htmlFor:A.toggleButtonId},e)}),[A]),q=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,u=void 0===s?"ref":s,c=i.onKeyDown,l=i.onBlur,d=i.ref,f=r(i,_e),p=(void 0===t?{}:t).suppressRefError,h=void 0!==p&&p,v=D.current.state;return L("getMenuProps",h,u,k),o(((n={})[u]=T(d,(function(e){k.current=e})),n.id=A.menuId,n.role="listbox",n["aria-labelledby"]=A.labelId,n.tabIndex=-1,n),v.isOpen&&v.highlightedIndex>-1&&{"aria-activedescendant":A.getItemId(v.highlightedIndex)},{onMouseLeave:_(a,(function(){m({type:9})})),onKeyDown:_(c,(function(e){var t=P(e);t&&F[t]?F[t](e):ee(t)&&m({type:7,key:t,getItemNodeFromIndex:I})})),onBlur:_(l,(function(){!1!==O.current?!R.current.isMouseDown&&m({type:8}):O.current=!0}))},f)}),[m,D,F,R,L,A,I]);return{getToggleButtonProps:(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onClick,s=i.onKeyDown,u=i.refKey,c=void 0===u?"ref":u,l=i.ref,d=r(i,Te),f=(void 0===t?{}:t).suppressRefError,p=void 0!==f&&f,h=o(((n={})[c]=T(l,(function(e){w.current=e})),n.id=A.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=D.current.state.isOpen,n["aria-labelledby"]=A.labelId+" "+A.toggleButtonId,n),d);return d.disabled||(h.onClick=_(a,(function(){m({type:12})})),h.onKeyDown=_(s,(function(e){var t=P(e);t&&j[t]?j[t](e):ee(t)&&m({type:15,key:t,getItemNodeFromIndex:I})}))),L("getToggleButtonProps",p,c,w),h}),[m,D,j,L,A,I]),getLabelProps:K,getMenuProps:q,getItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.item,a=n.index,s=n.onMouseMove,u=n.onClick,c=n.refKey,l=void 0===c?"ref":c,d=n.ref,f=r(n,we),p=D.current,h=p.state,v=p.props,g=J(a,i,v.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");var y=o(((t={role:"option","aria-selected":""+(g===h.highlightedIndex),id:A.getItemId(g)})[l]=T(d,(function(e){e&&(x.current[A.getItemId(g)]=e)})),t),f);return f.disabled||(y.onMouseMove=_(s,(function(){a!==h.highlightedIndex&&(N.current=!1,m({type:10,index:a}))})),y.onClick=_(u,(function(){m({type:11,index:a})}))),y}),[m,D,N,A]),toggleMenu:B,openMenu:U,closeMenu:H,setHighlightedIndex:z,selectItem:V,reset:G,setInputValue:W,highlightedIndex:g,isOpen:v,selectedItem:y,inputValue:b}}ke.stateChangeTypes=be;var xe=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});u().array.isRequired,u().func,u().func,u().func,u().bool,u().number,u().number,u().number,u().bool,u().bool,u().bool,u().any,u().any,u().any,u().string,u().string,u().string,u().string,u().string,u().string,u().func,u().string,u().string,u().func,u().func,u().func,u().func,u().func,u().func,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var Oe=g;var Ce=o({},ie,{getA11yStatusMessage:x,circularNavigation:!0});function Ae(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 10:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:N(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ce(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:N(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ce(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 5:n=o({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 2:n=o({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:R(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:R(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=o({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:ae(i,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return me(e,t,xe)}return o({},e,n)}var Se=["onMouseLeave","refKey","ref"],Me=["item","index","refKey","ref","onMouseMove","onClick","onPress"],De=["onClick","onPress","refKey","ref"],Ie=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],Pe=["refKey","ref"];function Ne(e){void 0===e&&(e={}),Oe(e,Ne);var t=o({},Ce,e),n=t.initialIsOpen,i=t.defaultIsOpen,a=t.items,s=t.scrollIntoView,u=t.environment,l=t.getA11yStatusMessage,d=t.getA11ySelectionMessage,f=t.itemToString,p=function(e,t,n){var r=(0,c.useRef)(),o=re(e,t,n),i=o[0],a=o[1];return(0,c.useEffect)((function(){I(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:19,inputValue:n.itemToString(n.selectedItem)}),r.current=i.selectedItem===r.current?n.selectedItem:i.selectedItem)})),[D(i,n),a]}(Ae,function(e){var t=ue(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),o({},t,{inputValue:r})}(t),t),h=p[0],m=p[1],v=h.isOpen,g=h.highlightedIndex,y=h.selectedItem,b=h.inputValue,E=(0,c.useRef)(null),w=(0,c.useRef)({}),k=(0,c.useRef)(null),x=(0,c.useRef)(null),O=(0,c.useRef)(null),C=(0,c.useRef)(!0),A=Q(t),S=(0,c.useRef)(),M=ne({state:h,props:t}),N=(0,c.useCallback)((function(e){return w.current[A.getItemId(e)]}),[A]);fe(l,[v,g,b,a],o({isInitialMount:C.current,previousResultCount:S.current,items:a,environment:u,itemToString:f},h)),fe(d,[y],o({isInitialMount:C.current,previousResultCount:S.current,items:a,environment:u,itemToString:f},h));var R=pe({menuElement:E.current,highlightedIndex:g,isOpen:v,itemRefs:w,scrollIntoView:s,getItemNodeFromIndex:N});he({isInitialMount:C.current,props:t,state:h}),(0,c.useEffect)((function(){(n||i||v)&&k.current&&k.current.focus()}),[]),(0,c.useEffect)((function(){C.current||(S.current=a.length)}));var L=le(v,[O,E,x],u,(function(){m({type:7,selectItem:!1})})),j=de();(0,c.useEffect)((function(){C.current=!1}),[]),(0,c.useEffect)((function(){v||(w.current={})}),[v]);var F=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:N})},ArrowUp:function(e){e.preventDefault(),m({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:N})},Home:function(e){M.current.state.isOpen&&(e.preventDefault(),m({type:3,getItemNodeFromIndex:N}))},End:function(e){M.current.state.isOpen&&(e.preventDefault(),m({type:4,getItemNodeFromIndex:N}))},Escape:function(){var e=M.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&m({type:2})},Enter:function(e){var t=M.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),m({type:5,getItemNodeFromIndex:N}))}}}),[m,M,N]),B=(0,c.useCallback)((function(e){return o({id:A.labelId,htmlFor:A.inputId},e)}),[A]),H=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,u=void 0===s?"ref":s,c=i.ref,l=r(i,Se),d=(void 0===t?{}:t).suppressRefError;return j("getMenuProps",void 0!==d&&d,u,E),o(((n={})[u]=T(c,(function(e){E.current=e})),n.id=A.menuId,n.role="listbox",n["aria-labelledby"]=A.labelId,n.onMouseLeave=_(a,(function(){m({type:8})})),n),l)}),[m,j,A]),U=(0,c.useCallback)((function(e){var t,n,i=void 0===e?{}:e,a=i.item,s=i.index,u=i.refKey,c=void 0===u?"ref":u,l=i.ref,d=i.onMouseMove,f=i.onClick;i.onPress;var p=r(i,Me),h=M.current,v=h.props,g=h.state,y=J(s,a,v.items);if(y<0)throw new Error("Pass either item or item index in getItemProps!");var b=f;return o(((t={})[c]=T(l,(function(e){e&&(w.current[A.getItemId(y)]=e)})),t.role="option",t["aria-selected"]=""+(y===g.highlightedIndex),t.id=A.getItemId(y),t),!p.disabled&&((n={onMouseMove:_(d,(function(){s!==g.highlightedIndex&&(R.current=!1,m({type:9,index:s}))}))}).onClick=_(b,(function(){m({type:10,index:s}),k.current&&k.current.focus()})),n),p)}),[m,M,R,A]),z=(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,u=n.ref,c=r(n,De);return o(((t={})[s]=T(u,(function(e){x.current=e})),t.id=A.toggleButtonId,t.tabIndex=-1,t),!c.disabled&&o({},{onClick:_(i,(function(){m({type:11}),!M.current.state.isOpen&&k.current&&k.current.focus()}))}),c)}),[m,M,A]),V=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onKeyDown,s=i.onChange,u=i.onInput,c=i.onBlur;i.onChangeText;var l=i.refKey,d=void 0===l?"ref":l,f=i.ref,p=r(i,Ie),h=(void 0===t?{}:t).suppressRefError;j("getInputProps",void 0!==h&&h,d,k);var v,g=M.current.state,y={};p.disabled||((v={}).onChange=_(s,u,(function(e){m({type:6,inputValue:e.target.value})})),v.onKeyDown=_(a,(function(e){var t=P(e);t&&F[t]&&F[t](e)})),v.onBlur=_(c,(function(){g.isOpen&&!L.current.isMouseDown&&m({type:7,selectItem:!0})})),y=v);return o(((n={})[d]=T(f,(function(e){k.current=e})),n.id=A.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=A.menuId,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":A.getItemId(g.highlightedIndex)},{"aria-labelledby":A.labelId,autoComplete:"off",value:g.inputValue},y,p)}),[m,F,M,L,j,A]),G=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.refKey,s=void 0===a?"ref":a,u=i.ref,c=r(i,Pe),l=(void 0===t?{}:t).suppressRefError;return j("getComboboxProps",void 0!==l&&l,s,O),o(((n={})[s]=T(u,(function(e){O.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=A.menuId,n["aria-expanded"]=M.current.state.isOpen,n),c)}),[M,j,A]),W=(0,c.useCallback)((function(){m({type:12})}),[m]),K=(0,c.useCallback)((function(){m({type:14})}),[m]),q=(0,c.useCallback)((function(){m({type:13})}),[m]),Y=(0,c.useCallback)((function(e){m({type:15,highlightedIndex:e})}),[m]),$=(0,c.useCallback)((function(e){m({type:16,selectedItem:e})}),[m]);return{getItemProps:U,getLabelProps:B,getMenuProps:H,getInputProps:V,getComboboxProps:G,getToggleButtonProps:z,toggleMenu:W,openMenu:q,closeMenu:K,setHighlightedIndex:Y,setInputValue:(0,c.useCallback)((function(e){m({type:17,inputValue:e})}),[m]),selectItem:$,reset:(0,c.useCallback)((function(){m({type:18})}),[m]),highlightedIndex:g,isOpen:v,selectedItem:y,inputValue:b}}Ne.stateChangeTypes=xe;var Re={activeIndex:-1,selectedItems:[]};function Le(e,t){return se(e,t,Re)}function je(e,t){return ae(e,t,Re)}function Fe(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value)||0===t.selectionStart&&0===t.selectionEnd}u().array,u().array,u().array,u().func,u().func,u().func,u().number,u().number,u().number,u().func,u().func,u().string,u().string,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var Be={itemToString:ie.itemToString,stateReducer:ie.stateReducer,environment:ie.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},He=g;var Ue=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function ze(e,t){var n,r=t.type,i=t.index,a=t.props,s=t.selectedItem,u=e.activeIndex,c=e.selectedItems;switch(r){case 0:n={activeIndex:i};break;case 4:n={activeIndex:u-1<0?0:u-1};break;case 3:n={activeIndex:u+1>=c.length?-1:u+1};break;case 2:case 1:var l=u;1===c.length?l=-1:u===c.length-1&&(l=c.length-2),n=o({selectedItems:[].concat(c.slice(0,u),c.slice(u+1))},{activeIndex:l});break;case 5:n={activeIndex:c.length-1};break;case 6:n={selectedItems:c.slice(0,c.length-1)};break;case 8:n={selectedItems:[].concat(c,[s])};break;case 7:n={activeIndex:-1};break;case 9:var d=u,f=c.indexOf(s);1===c.length?d=-1:f===c.length-1&&(d=c.length-2),n=o({selectedItems:[].concat(c.slice(0,f),c.slice(f+1))},{activeIndex:d});break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:je(a,"activeIndex"),selectedItems:je(a,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,n)}var Ve=["refKey","ref","onClick","onKeyDown","selectedItem","index"],Ge=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function We(e){void 0===e&&(e={}),He(e,We);var t=o({},Be,e),n=t.getA11yRemovalMessage,i=t.itemToString,a=t.environment,s=t.keyNavigationNext,u=t.keyNavigationPrevious,l=oe(ze,function(e){return{activeIndex:Le(e,"activeIndex"),selectedItems:Le(e,"selectedItems")}}(t),t),d=l[0],f=l[1],p=d.activeIndex,h=d.selectedItems,m=(0,c.useRef)(!0),v=(0,c.useRef)(null),g=(0,c.useRef)(h),y=(0,c.useRef)();y.current=[];var b=ne({state:d,props:t});(0,c.useEffect)((function(){if(!m.current){if(h.length<g.current.length){var e=g.current.find((function(e){return h.indexOf(e)<0}));F(n({itemToString:i,resultCount:h.length,removedSelectedItem:e,activeIndex:p,activeSelectedItem:h[p]}),a.document)}g.current=h}}),[h.length]),(0,c.useEffect)((function(){m.current||(-1===p&&v.current?v.current.focus():y.current[p]&&y.current[p].focus())}),[p]),he({isInitialMount:m.current,props:t,state:d});var E=de();(0,c.useEffect)((function(){m.current=!1}),[]);var w=(0,c.useMemo)((function(){var e;return(e={})[u]=function(){f({type:4})},e[s]=function(){f({type:3})},e.Delete=function(){f({type:1})},e.Backspace=function(){f({type:2})},e}),[f,s,u]),k=(0,c.useMemo)((function(){var e;return(e={})[u]=function(e){Fe(e)&&f({type:5})},e.Backspace=function(e){Fe(e)&&f({type:6})},e}),[f,u]);return{getSelectedItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.refKey,a=void 0===i?"ref":i,s=n.ref,u=n.onClick,c=n.onKeyDown,l=n.selectedItem,d=n.index,p=r(n,Ve),h=b.current.state;if(J(d,l,h.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return o(((t={})[a]=T(s,(function(e){e&&y.current.push(e)})),t.tabIndex=d===h.activeIndex?0:-1,t.onClick=_(u,(function(){f({type:0,index:d})})),t.onKeyDown=_(c,(function(e){var t=P(e);t&&w[t]&&w[t](e)})),t),p)}),[f,b,w]),getDropdownProps:(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.refKey,s=void 0===a?"ref":a,u=i.ref,c=i.onKeyDown,l=i.onClick,d=i.preventKeyAction,p=void 0!==d&&d,h=r(i,Ge),m=(void 0===t?{}:t).suppressRefError;E("getDropdownProps",void 0!==m&&m,s,v);return o(((n={})[s]=T(u,(function(e){e&&(v.current=e)})),n),!p&&{onKeyDown:_(c,(function(e){var t=P(e);t&&k[t]&&k[t](e)})),onClick:_(l,(function(){f({type:7})}))},h)}),[f,k,E]),addSelectedItem:(0,c.useCallback)((function(e){f({type:8,selectedItem:e})}),[f]),removeSelectedItem:(0,c.useCallback)((function(e){f({type:9,selectedItem:e})}),[f]),setSelectedItems:(0,c.useCallback)((function(e){f({type:10,selectedItems:e})}),[f]),setActiveIndex:(0,c.useCallback)((function(e){f({type:11,activeIndex:e})}),[f]),reset:(0,c.useCallback)((function(){f({type:12})}),[f]),selectedItems:h,activeIndex:p}}We.stateChangeTypes=Ue},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,l,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=u(d,n),d!==(o=u(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,l=r&&i(r)?r:[]):l=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,l,o)})):"undefined"!==typeof o&&s(d,{name:n,newValue:o}));return d}},38252:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},53869:function(e,t,n){"use strict";n.d(t,{M:function(){return h}});var r=n(81439),o=n(67294),i=n(6717);var a=n(8626),s=n(45930),u=0;function c(){var e=u;return u++,e}var l=function(e){var t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,u=e.custom,l=e.presenceAffectsLayout,f=(0,s.h)(d),p=(0,s.h)(c),h=(0,o.useMemo)((function(){return{id:p,initial:n,isPresent:r,custom:u,onExitComplete:function(e){f.set(e,!0);var t=!0;f.forEach((function(e){e||(t=!1)})),t&&(null===i||void 0===i||i())},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}}),l?void 0:[r]);return(0,o.useMemo)((function(){f.forEach((function(e,t){return f.set(t,!1)}))}),[r]),o.useEffect((function(){!r&&!f.size&&(null===i||void 0===i||i())}),[r]),o.createElement(a.O.Provider,{value:h},t)};function d(){return new Map}var f=n(49870);function p(e){return e.key||""}var h=function(e){var t=e.children,n=e.custom,a=e.initial,s=void 0===a||a,u=e.onExitComplete,c=e.exitBeforeEnter,d=e.presenceAffectsLayout,h=void 0===d||d,m=function(){var e=(0,o.useRef)(!1),t=(0,r.CR)((0,o.useState)(0),2),n=t[0],a=t[1];return(0,i.z)((function(){return e.current=!0})),(0,o.useCallback)((function(){!e.current&&a(n+1)}),[n])}(),v=(0,o.useContext)(f.WH);(0,f.Md)(v)&&(m=v.forceUpdate);var g=(0,o.useRef)(!0),y=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),b=(0,o.useRef)(y),E=(0,o.useRef)(new Map).current,_=(0,o.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=p(e);t.set(n,e)}))}(y,E),g.current)return g.current=!1,o.createElement(o.Fragment,null,y.map((function(e){return o.createElement(l,{key:p(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:h},e)})));for(var T=(0,r.ev)([],(0,r.CR)(y)),w=b.current.map(p),k=y.map(p),x=w.length,O=0;O<x;O++){var C=w[O];-1===k.indexOf(C)?_.add(C):_.delete(C)}return c&&_.size&&(T=[]),_.forEach((function(e){if(-1===k.indexOf(e)){var t=E.get(e);if(t){var r=w.indexOf(e);T.splice(r,0,o.createElement(l,{key:p(t),isPresent:!1,onExitComplete:function(){E.delete(e),_.delete(e);var t=b.current.findIndex((function(t){return t.key===e}));b.current.splice(t,1),_.size||(b.current=y,m(),u&&u())},custom:n,presenceAffectsLayout:h},t))}}})),T=T.map((function(e){var t=e.key;return _.has(t)?e:o.createElement(l,{key:p(e),isPresent:!0,presenceAffectsLayout:h},e)})),b.current=T,o.createElement(o.Fragment,null,_.size?T:T.map((function(e){return(0,o.cloneElement)(e)})))}},69283:function(e,t,n){"use strict";n.d(t,{EN:function(){return s},oO:function(){return a}});var r=n(67294),o=n(8626),i=n(45930);function a(){var e=(0,r.useContext)(o.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,a=l();(0,r.useEffect)((function(){return i(a)}),[]);return!t&&n?[!1,function(){return null===n||void 0===n?void 0:n(a)}]:[!0]}function s(e){return null===e||e.isPresent}var u=0,c=function(){return u++},l=function(){return(0,i.h)(c)}},7646:function(e,t,n){"use strict";var r,o;n.d(t,{z:function(){return r},c:function(){return o}}),function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(r||(r={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(o||(o={}))},8626:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(67294).createContext)(null)},49870:function(e,t,n){"use strict";n.d(t,{bg:function(){return h},WH:function(){return p},Md:function(){return m}});var r=n(67294),o=n(81439),i=n(9839),a=n(58839),s=n(27565),u=n(519),c=n(7646),l={layoutReady:function(e){return e.notifyLayoutReady()}};function d(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?l:t,r=n.layoutReady,d=n.parent;(0,s.U)((function(t,n){var s=Array.from(e).sort(u._),l=d?(0,a.kv)(d):[];n((function(){(0,o.ev)((0,o.ev)([],(0,o.CR)(l)),(0,o.CR)(s)).forEach((function(e){return e.resetTransform()}))})),t((function(){s.forEach(a.de)})),n((function(){l.forEach((function(e){return e.restoreTransform()})),s.forEach(r)})),t((function(){s.forEach((function(e){e.isPresent&&(e.presence=c.z.Present)}))})),n((function(){i.iW.preRender(),i.iW.render()})),t((function(){i.ZP.postRender((function(){return s.forEach(f)})),e.clear()}))})),(0,s.R)()}}}function f(e){e.prevViewportBox=e.projection.target}var p=(0,r.createContext)(d()),h=(0,r.createContext)(d());function m(e){return!!e.forceUpdate}},39629:function(e,t,n){"use strict";n.d(t,{E:function(){return Ti}});var r=n(81439),o=n(67294),i=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},a={measureLayout:i(["layout","layoutId","drag","_layoutResetTransform"]),animation:i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:i(["exit"]),drag:i(["drag","dragControls"]),focus:i(["whileFocus"]),hover:i(["whileHover","onHoverStart","onHoverEnd"]),tap:i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:i(["layout","layoutId"])};var s=(0,o.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var l=(0,o.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),d=(0,o.createContext)({});var f=n(8626),p=n(69283),h=(0,o.createContext)(null),m="undefined"!==typeof window,v=m?o.useLayoutEffect:o.useEffect;function g(e,t,n,i){var a=(0,o.useContext)(l),u=(0,o.useContext)(s),c=(0,o.useContext)(d).visualElement,m=(0,o.useContext)(f.O),g=function(e){var t=e.layoutId,n=(0,o.useContext)(h);return n&&void 0!==t?n+"-"+t:t}(n),y=(0,o.useRef)(void 0);i||(i=u.renderer),!y.current&&i&&(y.current=i(e,{visualState:t,parent:c,props:(0,r.pi)((0,r.pi)({},n),{layoutId:g}),presenceId:null===m||void 0===m?void 0:m.id,blockInitialAnimation:!1===(null===m||void 0===m?void 0:m.initial)}));var b=y.current;return v((function(){b&&(b.setProps((0,r.pi)((0,r.pi)((0,r.pi)({},a),n),{layoutId:g})),b.isPresent=(0,p.EN)(m),b.isPresenceRoot=!c||c.presenceId!==(null===m||void 0===m?void 0:m.id),b.syncRender())})),(0,o.useEffect)((function(){var e;b&&(null===(e=b.animationState)||void 0===e||e.animateChanges())})),v((function(){return function(){return null===b||void 0===b?void 0:b.notifyUnmount()}}),[]),b}function y(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function b(e){return Array.isArray(e)}function E(e){return"string"===typeof e||b(e)}function _(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"string"===typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"===typeof t?t(null!==n&&void 0!==n?n:e.custom,r,o):t}function T(e,t,n){var r=e.getProps();return _(r,t,null!==n&&void 0!==n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function w(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||E(e.initial)||E(e.animate)||E(e.whileHover)||E(e.whileDrag)||E(e.whileTap)||E(e.whileFocus)||E(e.exit)}function k(e){return Boolean(w(e)||e.variants)}function x(e,t){var n=function(e,t){if(w(e)){var n=e.initial,r=e.animate;return{initial:!1===n||E(n)?n:void 0,animate:E(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(d)),r=n.initial,i=n.animate;return(0,o.useMemo)((function(){return{initial:r,animate:i}}),t?[O(r),O(i)]:[])}function O(e){return Array.isArray(e)?e.join(" "):e}function C(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.useRender,f=e.useVisualState,p=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(a[t].Component=n)}}(t),(0,o.forwardRef)((function(e,t){var h=(0,o.useContext)(l).isStatic,v=null,b=x(e,h),E=f(e,h);return!h&&m&&(b.visualElement=g(p,E,e,n),v=function(e,t,n){var i=[];if((0,o.useContext)(s),!t)return null;for(var l=0;l<c;l++){var d=u[l],f=a[d],p=f.isEnabled,h=f.Component;p(e)&&h&&i.push(o.createElement(h,(0,r.pi)({key:d},e,{visualElement:t})))}return i}(e,b.visualElement)),o.createElement(o.Fragment,null,o.createElement(d.Provider,{value:b},i(p,e,function(e,t,n){return(0,o.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):y(n)&&(n.current=r))}),[t])}(E,b.visualElement,t),E,h)),v)}))}function A(e){function t(t,n){return void 0===n&&(n={}),C(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var S=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function M(e){return"string"===typeof e&&!e.includes("-")&&!!(S.indexOf(e)>-1||/[A-Z]/.test(e))}var D={};var I=["","X","Y","Z"],P=["transformPerspective","x","y","z"];function N(e,t){return P.indexOf(e)-P.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return I.forEach((function(t){return P.push(e+t)}))}));var R=new Set(P);function L(e){return R.has(e)}var j=new Set(["originX","originY","originZ"]);function F(e){return j.has(e)}function B(e,t){var n=t.layout,r=t.layoutId;return L(e)||F(e)||(n||void 0!==r)&&(!!D[e]||"opacity"===e)}var H=function(e){return null!==e&&"object"===typeof e&&e.getVelocity},U={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function z(e){return e.startsWith("--")}var V=function(e,t){return t&&"number"===typeof e?t.transform(e):e};var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;Object.create;var W=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},K=function(e){return e%1?Number(e.toFixed(5)):e},q=/(-)?([\d]*\.?[\d])+/g,Y=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,$=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Z(e){return"string"===typeof e}var X=function(e){return{test:function(t){return Z(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},Q=X("deg"),J=X("%"),ee=X("px"),te=X("vh"),ne=X("vw"),re=G(G({},J),{parse:function(e){return J.parse(e)/100},transform:function(e){return J.transform(100*e)}}),oe={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},ie=G(G({},oe),{transform:W(0,1)}),ae=G(G({},oe),{default:1}),se=(0,r.pi)((0,r.pi)({},oe),{transform:Math.round}),ue={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,size:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:ae,scaleX:ae,scaleY:ae,scaleZ:ae,skew:Q,skewX:Q,skewY:Q,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:ie,originX:re,originY:re,originZ:ee,zIndex:se,fillOpacity:ie,strokeOpacity:ie,numOctaves:se};function ce(e,t,n,r,o,i,a,s){var u,c=e.style,l=e.vars,d=e.transform,f=e.transformKeys,p=e.transformOrigin;f.length=0;var h=!1,m=!1,v=!0;for(var g in t){var y=t[g];if(z(g))l[g]=y;else{var b=ue[g],E=V(y,b);if(L(g)){if(h=!0,d[g]=E,f.push(g),!v)continue;y!==(null!==(u=b.default)&&void 0!==u?u:0)&&(v=!1)}else if(F(g))p[g]=E,m=!0;else if((null===n||void 0===n?void 0:n.isHydrated)&&(null===r||void 0===r?void 0:r.isHydrated)&&D[g]){var _=D[g].process(y,r,n),T=D[g].applyTo;if(T)for(var w=T.length,k=0;k<w;k++)c[T[k]]=_;else c[g]=_}else c[g]=E}}r&&n&&a&&s?(c.transform=a(r.deltaFinal,r.treeScale,h?d:void 0),i&&(c.transform=i(d,c.transform)),c.transformOrigin=s(r)):(h&&(c.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";i.sort(N);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];l+=(U[h]||h)+"("+o[h]+") ","z"===h&&(d=!0)}return!d&&s?l+="translateZ(0)":l=l.trim(),r?l=r(o,n?"":l):c&&n&&(l="none"),l}(e,o,v,i)),m&&(c.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ;return n+" "+o+" "+(void 0===i?0:i)}(p)))}var le=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function de(e,t,n){for(var r in t)H(t[r])||B(r,n)||(e[r]=t[r])}function fe(e,t,n){var i={};return de(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,o.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ce(e,t,void 0,void 0,{enableHardwareAcceleration:!n},i);var o=e.vars,a=e.style;return(0,r.pi)((0,r.pi)({},o),a)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function pe(e,t,n){var r={},o=fe(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=o,r}var he=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function me(e){return he.has(e)}var ve=function(e){return!me(e)};try{var ge=n(64910).Z;ve=function(e){return e.startsWith("on")?!me(e):ge(e)}}catch(wi){}function ye(e,t,n){return"string"===typeof e?e:ee.transform(t+n*e)}var be=function(e,t){return ee.transform(e*t)},Ee={offset:"stroke-dashoffset",array:"stroke-dasharray"},_e={offset:"strokeDashoffset",array:"strokeDasharray"};function Te(e,t,n,o,i,a,s,u){var c=t.attrX,l=t.attrY,d=t.originX,f=t.originY,p=t.pathLength,h=t.pathSpacing,m=void 0===h?1:h,v=t.pathOffset,g=void 0===v?0:v;ce(e,(0,r._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,o,i,a,s,u),e.attrs=e.style,e.style={};var y=e.attrs,b=e.style,E=e.dimensions,_=e.totalPathLength;y.transform&&(E&&(b.transform=y.transform),delete y.transform),E&&(void 0!==d||void 0!==f||b.transform)&&(b.transformOrigin=function(e,t,n){return ye(t,e.x,e.width)+" "+ye(n,e.y,e.height)}(E,void 0!==d?d:.5,void 0!==f?f:.5)),void 0!==c&&(y.x=c),void 0!==l&&(y.y=l),void 0!==_&&void 0!==p&&function(e,t,n,r,o,i){void 0===r&&(r=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?Ee:_e;e[a.offset]=be(-o,t);var s=be(n,t),u=be(r,t);e[a.array]=s+" "+u}(y,_,p,m,g,!1)}var we=function(){return(0,r.pi)((0,r.pi)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ke(e,t){var n=(0,o.useMemo)((function(){var n=we();return Te(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),(0,r.pi)((0,r.pi)({},n.attrs),{style:(0,r.pi)({},n.style)})}),[t]);if(e.style){var i={};de(i,e.style,e),n.style=(0,r.pi)((0,r.pi)({},i),n.style)}return n}function xe(e){void 0===e&&(e=!1);return function(t,n,i,a,s){var u=a.latestValues,c=(M(t)?ke:pe)(n,u,s),l=function(e,t,n){var r={};for(var o in e)(ve(o)||!0===n&&me(o)||!t&&!me(o))&&(r[o]=e[o]);return r}(n,"string"===typeof t,e),d=(0,r.pi)((0,r.pi)((0,r.pi)({},l),c),{ref:i});return(0,o.createElement)(t,d)}}var Oe=/([a-z])([A-Z])/g,Ce=function(e){return e.replace(Oe,"$1-$2").toLowerCase()};function Ae(e,t){var n=t.style,r=t.vars;for(var o in Object.assign(e.style,n),r)e.style.setProperty(o,r[o])}var Se=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Me(e,t){for(var n in Ae(e,t),t.attrs)e.setAttribute(Se.has(n)?n:Ce(n),t.attrs[n])}function De(e){var t=e.style,n={};for(var r in t)(H(t[r])||B(r,e))&&(n[r]=t[r]);return n}function Ie(e){var t=De(e);for(var n in e){if(H(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function Pe(e){return"object"===typeof e&&"function"===typeof e.start}var Ne=n(45930),Re=function(e){return Array.isArray(e)};function Le(e){var t,n=H(e)?e.get():e;return t=n,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?n.toValue():n}function je(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Be(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Fe=function(e){return function(t,n){var r=(0,o.useContext)(d),i=(0,o.useContext)(f.O);return n?je(e,t,r,i):(0,Ne.h)((function(){return je(e,t,r,i)}))}};function Be(e,t,n,o){var i={},a=!1===(null===n||void 0===n?void 0:n.initial),s=o(e);for(var u in s)i[u]=Le(s[u]);var c=e.initial,l=e.animate,d=w(e),f=k(e);t&&f&&!d&&!1!==e.inherit&&(null!==c&&void 0!==c||(c=t.initial),null!==l&&void 0!==l||(l=t.animate));var p=a||!1===c?l:c;p&&"boolean"!==typeof p&&!Pe(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=_(e,t);if(n){var o=n.transitionEnd;n.transition;var a=(0,r._T)(n,["transitionEnd","transition"]);for(var s in a)i[s]=a[s];for(var s in o)i[s]=o[s]}}));return i}var He={useVisualState:Fe({scrapeMotionValuesFromProps:Ie,createRenderState:we,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),Te(r,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Me(t,r)}})};var Ue,ze={useVisualState:Fe({scrapeMotionValuesFromProps:De,createRenderState:le})};function Ve(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ge(e,t,n,r){(0,o.useEffect)((function(){var o=e.current;if(n&&o)return Ve(o,t,n,r)}),[e,t,n,r])}function We(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ke(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(Ue||(Ue={}));var qe={pageX:0,pageY:0};function Ye(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||qe;return{x:n[t+"X"],y:n[t+"Y"]}}function $e(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Ze(e,t){return void 0===t&&(t="page"),{point:Ke(e)?Ye(e,t):$e(e,t)}}var Xe=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Ze(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Qe={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Je={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function et(e){return m&&null===window.onpointerdown?e:m&&null===window.ontouchstart?Je[e]:m&&null===window.onmousedown?Qe[e]:e}function tt(e,t,n,r){return Ve(e,et(t),Xe(n,"pointerdown"===t),r)}function nt(e,t,n,r){return Ge(e,et(t),n&&Xe(n,"pointerdown"===t),r)}function rt(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ot=rt("dragHorizontal"),it=rt("dragVertical");function at(e){var t=!1;if("y"===e)t=it();else if("x"===e)t=ot();else{var n=ot(),r=it();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function st(){var e=at(!0);return!e||(e(),!1)}function ut(e,t,n){return function(r,o){var i;We(r)&&!st()&&(null===n||void 0===n||n(r,o),null===(i=e.animationState)||void 0===i||i.setActive(Ue.Hover,t))}}var ct=function(e,t){return!!t&&(e===t||ct(e,t.parentElement))},lt=n(6717),dt=function(e,t){return function(n){return t(e(n))}},ft=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(dt)};var pt=function(e){return function(t){return e(t),null}},ht={tap:pt((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=t||n||r||i,u=(0,o.useRef)(!1),c=(0,o.useRef)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function d(){var e;return l(),u.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Ue.Tap,!1),!st()}function f(e,n){d()&&(ct(a.getInstance(),e.target)?null===t||void 0===t||t(e,n):null===r||void 0===r||r(e,n))}function p(e,t){d()&&(null===r||void 0===r||r(e,t))}nt(a,"pointerdown",s?function(e,t){var r;l(),u.current||(u.current=!0,c.current=ft(tt(window,"pointerup",f),tt(window,"pointercancel",p)),null===n||void 0===n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(Ue.Tap,!0))}:void 0),(0,lt.z)(l)})),focus:pt((function(e){var t=e.whileFocus,n=e.visualElement;Ge(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ue.Focus,!0)}:void 0),Ge(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ue.Focus,!1)}:void 0)})),hover:pt((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;nt(o,"pointerenter",t||r?ut(o,!0,t):void 0),nt(o,"pointerleave",n||r?ut(o,!1,n):void 0)}))};function mt(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var vt=function(){return(vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function gt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;var yt=function(e,t,n){return Math.min(Math.max(n,e),t)},bt=.001;function Et(e){var t,n,r=e.duration,o=void 0===r?800:r,i=e.bounce,a=void 0===i?.25:i,s=e.velocity,u=void 0===s?0:s,c=e.mass,l=void 0===c?1:c,d=1-a;d=yt(.05,1,d),o=yt(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,n=t*o,r=t-u,i=_t(e,d),a=Math.exp(-n);return bt-r/i*a},n=function(e){var n=e*d*o,r=n*u+u,i=Math.pow(d,2)*Math.pow(e,2)*o,a=Math.exp(-n),s=_t(Math.pow(e,2),d);return(-t(e)+bt>0?-1:1)*((r-i)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-u)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(u-e))});var f=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var p=Math.pow(f,2)*l;return{stiffness:p,damping:2*d*Math.sqrt(l*p),duration:o}}function _t(e,t){return e*Math.sqrt(1-t*t)}var Tt=["duration","bounce"],wt=["stiffness","damping","mass"];function kt(e,t){return t.some((function(t){return void 0!==e[t]}))}function xt(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.restSpeed,a=void 0===i?2:i,s=e.restDelta,u=gt(e,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},l=function(e){var t=vt({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!kt(e,wt)&&kt(e,Tt)){var n=Et(e);(t=vt(vt(vt({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),d=l.stiffness,f=l.damping,p=l.mass,h=l.velocity,m=l.duration,v=l.isResolvedFromDuration,g=Ot,y=Ot;function b(){var e=h?-h/1e3:0,t=o-n,r=f/(2*Math.sqrt(d*p)),i=Math.sqrt(d/p)/1e3;if(null!==s&&void 0!==s||(s=Math.abs(o-n)<=1?.01:.4),r<1){var a=_t(i,r);g=function(n){var s=Math.exp(-r*i*n);return o-s*((e+r*i*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},y=function(n){var o=Math.exp(-r*i*n);return r*i*o*(Math.sin(a*n)*(e+r*i*t)/a+t*Math.cos(a*n))-o*(Math.cos(a*n)*(e+r*i*t)-a*t*Math.sin(a*n))}}else if(1===r)g=function(n){return o-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var u=i*Math.sqrt(r*r-1);g=function(n){var a=Math.exp(-r*i*n),s=Math.min(u*n,300);return o-a*((e+r*i*t)*Math.sinh(s)+u*t*Math.cosh(s))/u}}}return b(),{next:function(e){var t=g(e);if(v)c.done=e>=m;else{var n=1e3*y(e),r=Math.abs(n)<=a,i=Math.abs(o-t)<=s;c.done=r&&i}return c.value=c.done?o:t,c},flipTarget:function(){var e;h=-h,n=(e=[o,n])[0],o=e[1],b()}}}xt.needsInterpolation=function(e,t){return"string"===typeof e||"string"===typeof t};var Ot=function(e){return 0},Ct=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},At=function(e,t,n){return-n*e+n*t+e},St=function(e,t){return function(n){return Boolean(Z(n)&&$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Mt=function(e,t,n){return function(r){var o;if(!Z(r))return r;var i=r.match(q),a=i[0],s=i[1],u=i[2],c=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[n]=parseFloat(u),o.alpha=void 0!==c?parseFloat(c):1,o}},Dt=W(0,255),It=G(G({},oe),{transform:function(e){return Math.round(Dt(e))}}),Pt={test:St("rgb","red"),parse:Mt("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+It.transform(t)+", "+It.transform(n)+", "+It.transform(r)+", "+K(ie.transform(i))+")"}};var Nt={test:St("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Pt.transform},Rt={test:St("hsl","hue"),parse:Mt("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,i=void 0===o?1:o;return"hsla("+Math.round(t)+", "+J.transform(K(n))+", "+J.transform(K(r))+", "+K(ie.transform(i))+")"}},Lt=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},jt=[Nt,Pt,Rt],Ft=function(e){return jt.find((function(t){return t.test(e)}))},Bt=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Ht=function(e,t){var n=Ft(e),r=Ft(t);Bt(e),Bt(t),n.transform,r.transform;var o=n.parse(e),i=r.parse(t),a=vt({},o),s=n===Rt?At:Lt;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=At(o.alpha,i.alpha,e),n.transform(a)}},Ut={test:function(e){return Pt.test(e)||Nt.test(e)||Rt.test(e)},parse:function(e){return Pt.test(e)?Pt.parse(e):Rt.test(e)?Rt.parse(e):Nt.parse(e)},transform:function(e){return Z(e)?e:e.hasOwnProperty("red")?Pt.transform(e):Rt.transform(e)}},zt="${c}",Vt="${n}";function Gt(e){var t=[],n=0,r=e.match(Y);r&&(n=r.length,e=e.replace(Y,zt),t.push.apply(t,r.map(Ut.parse)));var o=e.match(q);return o&&(e=e.replace(q,Vt),t.push.apply(t,o.map(oe.parse))),{values:t,numColors:n,tokenised:e}}function Wt(e){return Gt(e).values}function Kt(e){var t=Gt(e),n=t.values,r=t.numColors,o=t.tokenised,i=n.length;return function(e){for(var t=o,n=0;n<i;n++)t=t.replace(n<r?zt:Vt,n<r?Ut.transform(e[n]):K(e[n]));return t}}var qt=function(e){return"number"===typeof e?0:e};var Yt={test:function(e){var t,n,r,o;return isNaN(e)&&Z(e)&&(null!==(n=null===(t=e.match(q))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Y))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Wt,createTransformer:Kt,getAnimatableNone:function(e){var t=Wt(e);return Kt(e)(t.map(qt))}},$t=function(e){return"number"===typeof e};function Zt(e,t){return $t(e)?function(n){return At(e,t,n)}:Ut.test(e)?Ht(e,t):en(e,t)}var Xt=function(e,t){var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}([],e),r=n.length,o=e.map((function(e,n){return Zt(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}},Qt=function(e,t){var n=vt(vt({},e),t),r={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Zt(e[o],t[o]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Jt(e){for(var t=Yt.parse(e),n=t.length,r=0,o=0,i=0,a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}var en=function(e,t){var n=Yt.createTransformer(t),r=Jt(e),o=Jt(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),ft(Xt(r.parsed,o.parsed),n)},tn=function(e,t){return function(n){return At(e,t,n)}};function nn(e,t,n){for(var r,o=[],i=n||("number"===typeof(r=e[0])?tn:"string"===typeof r?Ut.test(r)?Ht:en:Array.isArray(r)?Xt:"object"===typeof r?Qt:void 0),a=e.length-1,s=0;s<a;s++){var u=i(e[s],e[s+1]);if(t){var c=Array.isArray(t)?t[s]:t;u=ft(c,u)}o.push(u)}return o}function rn(e,t,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,s=r.mixer,u=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[u-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=nn(t,a,s),l=2===u?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(Ct(n,r,e))}}(e,c):function(e,t){var n=e.length,r=n-1;return function(o){var i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>o||s===r);s++);i=s-1}var u=Ct(e[i],e[i+1],o);return t[i](u)}}(e,c);return i?function(t){return l(yt(e[0],e[u-1],t))}:l}var on,an=function(e){return function(t){return 1-e(1-t)}},sn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},un=function(e){return function(t){return t*t*((e+1)*t-e)}},cn=function(e){return e},ln=(on=2,function(e){return Math.pow(e,on)}),dn=an(ln),fn=sn(ln),pn=function(e){return 1-Math.sin(Math.acos(e))},hn=an(pn),mn=sn(hn),vn=un(1.525),gn=an(vn),yn=sn(vn),bn=function(e){var t=un(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),En=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},_n=an(En);function Tn(e,t){return e.map((function(){return t||fn})).splice(0,e.length-1)}function wn(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.ease,a=e.offset,s=e.duration,u=void 0===s?300:s,c={done:!1,value:n},l=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===l.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(l),u);function f(){return rn(d,l,{ease:Array.isArray(i)?i:Tn(l,i)})}var p=f();return{next:function(e){return c.value=p(e),c.done=e>=u,c},flipTarget:function(){l.reverse(),p=f()}}}var kn={keyframes:wn,spring:xt,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,i=e.power,a=void 0===i?.8:i,s=e.timeConstant,u=void 0===s?350:s,c=e.restDelta,l=void 0===c?.5:c,d=e.modifyTarget,f={done:!1,value:o},p=a*n,h=o+p,m=void 0===d?h:d(h);return m!==h&&(p=m-o),{next:function(e){var t=-p*Math.exp(-e/u);return f.done=!(t>l||t<-l),f.value=f.done?m:m+t,f},flipTarget:function(){}}}};var xn=n(9839);function On(e,t,n){return void 0===n&&(n=0),e-t-n}var Cn=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return xn.ZP.update(t,!0)},stop:function(){return xn.qY.update(t)}}};function An(e){var t,n,r,o,i,a=e.from,s=e.autoplay,u=void 0===s||s,c=e.driver,l=void 0===c?Cn:c,d=e.elapsed,f=void 0===d?0:d,p=e.repeat,h=void 0===p?0:p,m=e.repeatType,v=void 0===m?"loop":m,g=e.repeatDelay,y=void 0===g?0:g,b=e.onPlay,E=e.onStop,_=e.onComplete,T=e.onRepeat,w=e.onUpdate,k=gt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),x=k.to,O=0,C=k.duration,A=!1,S=!0,M=function(e){if(Array.isArray(e.to))return wn;if(kn[e.type])return kn[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?wn:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?xt:wn}(k);(null===(n=(t=M).needsInterpolation)||void 0===n?void 0:n.call(t,a,x))&&(i=rn([0,100],[a,x],{clamp:!1}),a=0,x=100);var D=M(vt(vt({},k),{from:a,to:x}));function I(){O++,"reverse"===v?f=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?On(t+-e,t,n):t-(e-t)+n}(f,C,y,S=O%2===0):(f=On(f,C,y),"mirror"===v&&D.flipTarget()),A=!1,T&&T()}function P(e){if(S||(e=-e),f+=e,!A){var t=D.next(Math.max(0,f));o=t.value,i&&(o=i(o)),A=S?t.done:f<=0}null===w||void 0===w||w(o),A&&(0===O&&(null!==C&&void 0!==C||(C=f)),O<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(f,C,y,S)&&I():(r.stop(),_&&_()))}return u&&(null===b||void 0===b||b(),(r=l(P)).start()),{stop:function(){null===E||void 0===E||E(),r.stop()}}}function Sn(e,t){return t?e*(1e3/t):0}var Mn=function(e){return 1e3*e},Dn=function(e,t){return 1-3*t+3*e},In=function(e,t){return 3*t-6*e},Pn=function(e){return 3*e},Nn=function(e,t,n){return((Dn(t,n)*e+In(t,n))*e+Pn(t))*e},Rn=function(e,t,n){return 3*Dn(t,n)*e*e+2*In(t,n)*e+Pn(t)};var Ln=.1;function jn(e,t,n,r){if(e===t&&n===r)return cn;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=Nn(i*Ln,e,n);function a(t){for(var r=0,i=1;10!==i&&o[i]<=t;++i)r+=Ln;--i;var a=r+(t-o[i])/(o[i+1]-o[i])*Ln,s=Rn(a,e,n);return s>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var i=Rn(t,n,r);if(0===i)return t;t-=(Nn(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){var i,a,s=0;do{(i=Nn(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+Ln,e,n)}return function(e){return 0===e||1===e?e:Nn(a(e),t,r)}}var Fn={linear:cn,easeIn:ln,easeInOut:fn,easeOut:dn,circIn:pn,circInOut:mn,circOut:hn,backIn:vn,backInOut:yn,backOut:gn,anticipate:bn,bounceIn:_n,bounceInOut:function(e){return e<.5?.5*(1-En(1-2*e)):.5*En(2*e-1)+.5},bounceOut:En},Bn=function(e){if(Array.isArray(e)){e.length;var t=(0,r.CR)(e,4);return jn(t[0],t[1],t[2],t[3])}return"string"===typeof e?Fn[e]:e},Hn=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Yt.test(t)||t.startsWith("url(")))},Un=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},zn=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Vn=function(){return{type:"keyframes",ease:"linear",duration:.3}},Gn=function(e){return{type:"keyframes",duration:.8,values:e}},Wn={x:Un,y:Un,z:Un,rotate:Un,rotateX:Un,rotateY:Un,rotateZ:Un,scaleX:zn,scaleY:zn,scale:zn,opacity:Vn,backgroundColor:Vn,color:Vn,default:zn},Kn=new Set(["brightness","contrast","saturate","opacity"]);function qn(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(q)||[])[0];if(!o)return e;var i=r.replace(o,""),a=Kn.has(n)?1:0;return o!==r&&(a*=100),n+"("+a+i+")"}var Yn=/([a-z-]*)\(.*?\)/g,$n=G(G({},Yt),{getAnimatableNone:function(e){var t=e.match(Yn);return t?t.map(qn).join(" "):e}}),Zn=(0,r.pi)((0,r.pi)({},ue),{color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:$n,WebkitFilter:$n}),Xn=function(e){return Zn[e]};function Qn(e,t){var n,r=Xn(e);return r!==$n&&(r=Yt),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Jn(e){var t=e.ease,n=e.times,o=e.yoyo,i=e.flip,a=e.loop,s=(0,r._T)(e,["ease","times","yoyo","flip","loop"]),u=(0,r.pi)({},s);return n&&(u.offset=n),s.duration&&(u.duration=Mn(s.duration)),s.repeatDelay&&(u.repeatDelay=Mn(s.repeatDelay)),t&&(u.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(Bn):Bn(t)),"tween"===s.type&&(u.type="keyframes"),(o||a||i)&&(!0,o?u.repeatType="reverse":a?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=a||o||i||s.repeat),"spring"!==s.type&&(u.type="keyframes"),u}function er(e,t,n){var o;return Array.isArray(t.to)&&(null!==(o=e.duration)&&void 0!==o||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.ev)([],(0,r.CR)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,r._T)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.pi)((0,r.pi)({},e),function(e,t){var n;return n=Re(t)?Gn:Wn[e]||Wn.default,(0,r.pi)({to:t},n(t))}(n,t.to))),(0,r.pi)((0,r.pi)({},t),Jn(e))}function tr(e,t,n,o,i){var a,s=or(o,e),u=null!==(a=s.from)&&void 0!==a?a:t.get(),c=Hn(e,n);"none"===u&&c&&"string"===typeof n?u=Qn(e,n):nr(u)&&"string"===typeof n?u=rr(n):!Array.isArray(n)&&nr(n)&&"string"===typeof u&&(n=rr(u));var l=Hn(e,u);return l&&c&&!1!==s.type?function(){var o={from:u,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,i=void 0===o?0:o,a=e.min,s=e.max,u=e.power,c=void 0===u?.8:u,l=e.timeConstant,d=void 0===l?750:l,f=e.bounceStiffness,p=void 0===f?500:f,h=e.bounceDamping,m=void 0===h?10:h,v=e.restDelta,g=void 0===v?1:v,y=e.modifyTarget,b=e.driver,E=e.onUpdate,_=e.onComplete;function T(e){return void 0!==a&&e<a||void 0!==s&&e>s}function w(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function k(e){null===t||void 0===t||t.stop(),t=An(vt(vt({},e),{driver:b,onUpdate:function(t){var n;null===E||void 0===E||E(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:_}))}function x(e){k(vt({type:"spring",stiffness:p,damping:m,restDelta:g},e))}if(T(r))x({from:r,velocity:i,to:w(r)});else{var O=c*i+r;"undefined"!==typeof y&&(O=y(O));var C,A,S=w(O),M=S===a?-1:1;k({type:"decay",from:r,velocity:i,timeConstant:d,power:c,restDelta:g,modifyTarget:y,onUpdate:T(O)?function(e){C=A,A=e,i=Sn(e-C,(0,xn.$B)().delta),(1===M&&e>S||-1===M&&e<S)&&x({from:e,to:S,velocity:i})}:void 0})}return{stop:function(){return null===t||void 0===t?void 0:t.stop()}}}((0,r.pi)((0,r.pi)({},o),s)):An((0,r.pi)((0,r.pi)({},er(s,o,e)),{onUpdate:function(e){var t;o.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;o.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e;return t.set(n),i(),null===(e=null===s||void 0===s?void 0:s.onComplete)||void 0===e||e.call(s),{stop:function(){}}}}function nr(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function rr(e){return"number"===typeof e?0:Qn("",e)}function or(e,t){return e[t]||e.default||e}function ir(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var i,a,s=tr(e,t,n,r,o),u=function(e,t){var n;return null!==(n=(or(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),c=function(){return a=s()};return u?i=setTimeout(c,Mn(u)):c(),function(){clearTimeout(i),null===a||void 0===a||a.stop()}}))}function ar(e,t){-1===e.indexOf(t)&&e.push(t)}function sr(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ur=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ar(this.subscriptions,e),function(){return sr(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),cr=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new ur,this.velocityUpdateSubscribers=new ur,this.renderSubscribers=new ur,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=(0,xn.$B)(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,xn.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return xn.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Sn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function lr(e){return new cr(e)}var dr=function(e){return function(t){return t.test(e)}},fr=[oe,ee,J,Q,ne,te,{test:function(e){return"auto"===e},parse:function(e){return e}}],pr=function(e){return fr.find(dr(e))},hr=(0,r.ev)((0,r.ev)([],(0,r.CR)(fr)),[Ut,Yt]),mr=function(e){return hr.find(dr(e))};function vr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lr(n))}function gr(e,t){var n=T(e,t),o=n?e.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,a=void 0===i?{}:i;o.transition;var s,u=(0,r._T)(o,["transitionEnd","transition"]);for(var c in u=(0,r.pi)((0,r.pi)({},u),a)){vr(e,c,(s=u[c],Re(s)?s[s.length-1]||0:s))}}function yr(e,t){if(t)return(t[e]||t.default||t).from}function br(e,t,n){var o;void 0===n&&(n={});var i=T(e,t,n.custom),a=(i||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var u=i?function(){return Er(e,i,n)}:function(){return Promise.resolve()},c=(null===(o=e.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=s.delayChildren,a=void 0===i?0:i,u=s.staggerChildren,c=s.staggerDirection;return function(e,t,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],u=(e.variantChildren.size-1)*o,c=1===i?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),u-e*o};return Array.from(e.variantChildren).sort(_r).forEach((function(e,o){s.push(br(e,t,(0,r.pi)((0,r.pi)({},a),{delay:n+c(o)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+o,u,c,n)}:function(){return Promise.resolve()},l=s.when;if(l){var d=(0,r.CR)("beforeChildren"===l?[u,c]:[c,u],2),f=d[0],p=d[1];return f().then(p)}return Promise.all([u(),c(n.delay)])}function Er(e,t,n){var o,i=void 0===n?{}:n,a=i.delay,s=void 0===a?0:a,u=i.transitionOverride,c=i.type,l=e.makeTargetAnimatable(t),d=l.transition,f=void 0===d?e.getDefaultTransition():d,p=l.transitionEnd,h=(0,r._T)(l,["transition","transitionEnd"]);u&&(f=u);var m=[],v=c&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[c]);for(var g in h){var y=e.getValue(g),b=h[g];if(!(!y||void 0===b||v&&Tr(v,g))){var E=ir(g,y,b,(0,r.pi)({delay:s},f));m.push(E)}}return Promise.all(m).then((function(){p&&gr(e,p)}))}function _r(e,t){return e.sortNodePosition(t)}function Tr(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var wr=[Ue.Animate,Ue.Hover,Ue.Tap,Ue.Drag,Ue.Focus,Ue.Exit],kr=(0,r.ev)([],(0,r.CR)(wr)).reverse(),xr=wr.length;function Or(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return br(e,t,n)}));r=Promise.all(o)}else if("string"===typeof t)r=br(e,t,n);else{var i="function"===typeof t?T(e,t,n.custom):t;r=Er(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function Cr(e){var t=Or(e),n=function(){var e;return(e={})[Ue.Animate]=Ar(!0),e[Ue.Hover]=Ar(),e[Ue.Tap]=Ar(),e[Ue.Drag]=Ar(),e[Ue.Focus]=Ar(),e[Ue.Exit]=Ar(),e}(),o={},i=!0,a=function(t,n){var o=T(e,n);if(o){o.transition;var i=o.transitionEnd,a=(0,r._T)(o,["transition","transitionEnd"]);t=(0,r.pi)((0,r.pi)((0,r.pi)({},t),a),i)}return t};function s(s,u){for(var c,l=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set,h={},m=1/0,v=function(t){var o=kr[t],v=n[o],g=null!==(c=l[o])&&void 0!==c?c:d[o],y=E(g),_=o===u?v.isActive:null;!1===_&&(m=t);var T=g===d[o]&&g!==l[o]&&y;if(T&&i&&e.manuallyAnimateOnMount&&(T=!1),v.protectedKeys=(0,r.pi)({},h),!v.isActive&&null===_||!g&&!v.prevProp||Pe(g)||"boolean"===typeof g)return"continue";var w=function(e,t){if("string"===typeof t)return t!==e;if(b(t))return!mt(t,e);return!1}(v.prevProp,g)||o===u&&v.isActive&&!T&&y||t>m&&y,k=Array.isArray(g)?g:[g],x=k.reduce(a,{});!1===_&&(x={});var O=v.prevResolvedValues,C=void 0===O?{}:O,A=(0,r.pi)((0,r.pi)({},C),x),S=function(e){w=!0,p.delete(e),v.needsAnimating[e]=!0};for(var M in A){var D=x[M],I=C[M];h.hasOwnProperty(M)||(D!==I?Re(D)&&Re(I)?mt(D,I)?v.protectedKeys[M]=!0:S(M):void 0!==D?S(M):p.add(M):void 0!==D&&p.has(M)?S(M):v.protectedKeys[M]=!0)}v.prevProp=g,v.prevResolvedValues=x,v.isActive&&(h=(0,r.pi)((0,r.pi)({},h),x)),i&&e.blockInitialAnimation&&(w=!1),w&&!T&&f.push.apply(f,(0,r.ev)([],(0,r.CR)(k.map((function(e){return{animation:e,options:(0,r.pi)({type:o},s)}})))))},g=0;g<xr;g++)v(g);if(o=(0,r.pi)({},h),p.size){var y={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var _=Boolean(f.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(_=!1),i=!1,_?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,r,o){var i;return n[t].isActive===r?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,s(o,t))},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Ar(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Sr={animation:pt((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Cr(t)),Pe(n)&&(0,o.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:pt((function(e){var t=e.custom,n=e.visualElement,i=(0,r.CR)((0,p.oO)(),2),a=i[0],s=i[1],u=(0,o.useContext)(f.O);(0,o.useEffect)((function(){var e,r,o=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Ue.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:t});!a&&(null===o||void 0===o||o.then(s))}),[a])}))},Mr=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Dr=function(e){return Mr(e)&&e.hasOwnProperty("z")},Ir=function(e,t){return Math.abs(e-t)};function Pr(e,t){if($t(e)&&$t(t))return Ir(e,t);if(Mr(e)&&Mr(t)){var n=Ir(e.x,t.x),r=Ir(e.y,t.y),o=Dr(e)&&Dr(t)?Ir(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Nr=function(){function e(e,t,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var e=jr(o.lastMoveEventInfo,o.history),t=null!==o.startEvent,n=Pr(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=(0,xn.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,c=s.onMove;t||(u&&u(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),c&&c(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){o.lastMoveEvent=e,o.lastMoveEventInfo=Rr(t,o.transformPagePoint),We(e)&&0===e.buttons?o.handlePointerUp(e,t):xn.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=jr(Rr(t,o.transformPagePoint),o.history);o.startEvent&&r&&r(e,a),i&&i(e,a)},!(Ke(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Rr(Ze(e),this.transformPagePoint),s=a.point,u=(0,xn.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},s),{timestamp:u})];var c=t.onSessionStart;c&&c(e,jr(a,this.history)),this.removeListeners=ft(tt(window,"pointermove",this.handlePointerMove),tt(window,"pointerup",this.handlePointerUp),tt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),xn.qY.update(this.updatePoint)},e}();function Rr(e,t){return t?{point:t(e.point)}:e}function Lr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jr(e,t){var n=e.point;return{point:n,delta:Lr(n,Br(t)),offset:Lr(n,Fr(t)),velocity:Hr(t,.1)}}function Fr(e){return e[0]}function Br(e){return e[e.length-1]}function Hr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Br(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Ur=n(93327);function zr(e){return[e("x"),e("y")]}function Vr(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?At(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?At(o,e,n.max):Math.min(e,o)),e}function Gr(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Wr(e,t){var n,o=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(o=(n=(0,r.CR)([i,o],2))[0],i=n[1]),{min:e.min+o,max:e.min+i}}function Kr(e,t,n){return{min:qr(e,t),max:qr(e,n)}}function qr(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Yr(e,t){var n=e.getBoundingClientRect();return(0,Ur.RX)((0,Ur.dV)(n,t))}function $r(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Pr(e,t)<n}function Zr(e){return e.max-e.min}function Xr(e,t){var n=.5,r=Zr(e),o=Zr(t);return o>r?n=Ct(t.min,t.max-r,e.min):r>o&&(n=Ct(e.min,e.max-o,t.min)),yt(0,1,n)}function Qr(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=At(t.min,t.max,e.origin),e.scale=Zr(n)/Zr(t),$r(e.scale,1,1e-4)&&(e.scale=1),e.translate=At(n.min,n.max,e.origin)-e.originPoint,$r(e.translate)&&(e.translate=0)}function Jr(e,t,n,r){Qr(e.x,t.x,n.x,eo(r.originX)),Qr(e.y,t.y,n.y,eo(r.originY))}function eo(e){return"number"===typeof e?e:.5}function to(e,t,n){e.min=n.min+t.min,e.max=e.min+Zr(t)}var no=n(58839);function ro(e,t){return{min:t.min-e.min,max:t.max-e.min}}function oo(e,t){return{x:ro(e.x,t.x),y:ro(e.y,t.y)}}function io(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function ao(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function so(e,t){e.min=t.min,e.max=t.max}function uo(e,t,n){return n+t*(e-n)}function co(e,t,n,r,o){return void 0!==o&&(e=uo(e,o,r)),uo(e,n,r)+t}function lo(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=co(e.min,t,n,r,o),e.max=co(e.max,t,n,r,o)}function fo(e,t){var n=t.x,r=t.y;lo(e.x,n.translate,n.scale,n.originPoint),lo(e.y,r.translate,r.scale,r.originPoint)}function po(e,t,n,o){var i=(0,r.CR)(o,3),a=i[0],s=i[1],u=i[2];e.min=t.min,e.max=t.max;var c=void 0!==n[u]?n[u]:.5,l=At(t.min,t.max,c);lo(e,n[a],n[s],l,n.scale)}var ho=["x","scaleX","originX"],mo=["y","scaleY","originY"];function vo(e,t,n){po(e.x,t.x,n,ho),po(e.y,t.y,n,mo)}function go(e,t,n,r,o){return e=uo(e-=t,1/n,r),void 0!==o&&(e=uo(e,1/o,r)),e}function yo(e,t,n){var o=(0,r.CR)(n,3),i=o[0],a=o[1],s=o[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var i=At(e.min,e.max,r)-t;e.min=go(e.min,t,n,i,o),e.max=go(e.max,t,n,i,o)}(e,t[i],t[a],t[s],t.scale)}function bo(e,t){yo(e.x,t,ho),yo(e.y,t,mo)}var Eo,_o=n(27565),To=new WeakMap,wo=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,Ur.VZ)(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),To.set(t,this)}return e.prototype.start=function(e,t){var n=this,o=void 0===t?{}:t,i=o.snapToCursor,a=void 0!==i&&i,s=o.cursorProgress,u=this.props.transformPagePoint;this.panSession=new Nr(e,{onSessionStart:function(e){var t;n.stopMotion();var o=function(e){return Ze(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=(0,_o.U)((function(e,t){var i=(0,no.kv)(n.visualElement),u=(0,no.e3)(n.visualElement),c=(0,r.ev)((0,r.ev)([],(0,r.CR)(i)),(0,r.CR)(u)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){(0,no.de)(n.visualElement),u.forEach(no.de)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(o))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;zr((function(t){if(!l){var r=e.target[t],i=r.min,a=r.max;n.cursorProgress[t]=s?s[t]:Ct(i,a,o[t])}var u=n.getAxisMotionValue(t);u&&(n.originPoint[t]=u.get())}))})),t((function(){xn.iW.update(),xn.iW.preRender(),xn.iW.render(),xn.iW.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,i,a=n.props,s=a.drag,u=a.dragPropagation;(!s||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=at(s),n.openGlobalLock))&&((0,_o.R)(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(i=n.visualElement.animationState)||void 0===i||i.setActive(Ue.Drag,!0))},onMove:function(e,t){var r,o,i,a,s=n.props,u=s.dragPropagation,c=s.dragDirectionLock;if(u||n.openGlobalLock){var l=t.offset;if(c&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),null===(a=(i=n.props).onDrag)||void 0===a||a.call(i,e,t),Eo=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:u})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(y(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:Gr(e.x,r,i),y:Gr(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:Kr(e,"left","right"),y:Kr(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&zr((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,i=t.current;this.constraintsBox=Yr(i,o);var a=function(e,t){return{x:Wr(e.x,t.x),y:Wr(e.y,t.y)}}(e,this.constraintsBox);if(r){var s=r((0,Ur._6)(a));this.hasMutatedConstraints=!!s,s&&(a=(0,Ur.RX)(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ue.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=t.velocity;this.animateDragEnd(a),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return zr((function(n){if(ko(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,i=o[n].max-o[n].min,a=o[n].min+i/2,s=e[n]-a;t.originPoint[n]=e[n],r.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(ko(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?Vr(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,i=this.cursorProgress[e],a=function(e,t,n,r,o){var i=e-t*n;return r?Vr(i,r,o):i}(t[e],o,i,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,o=e.dragDirectionLock,i=void 0!==o&&o,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,c=void 0!==u&&u,l=e.dragElastic,d=void 0===l?.35:l,f=e.dragMomentum,p=void 0===f||f,h=(0,r._T)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.pi)({drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:d,dragMomentum:p},h)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?bo(n=oo(r.projection.target,e.projection.target),r.getLatestValues()):n=oo(r.getLayoutState().layout,e.getLayoutState().layout),zr((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(u&&Object.keys(c).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var d=oo(l.projection.targetFinal,c);zr((function(e){var t=d[e],n=t.min,r=t.max;c[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var f=zr((function(n){var l;if(ko(n,o,t.currentDirection)){var d=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{},f=a?200:1e6,p=a?40:1e7,h=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),d);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,h):t.visualElement.startLayoutAnimation(n,h,u)}}));return Promise.all(f).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;zr((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),ir(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(y(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};zr((function(t){r[t]=Xr(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){zr((function(t){if(ko(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=At(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),i=o.min,a=o.max;e.visualElement.setProjectionTargetAxis(t,i,a)}}))})),setTimeout(_o.R,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=(0,_o.U)((function(n,r){var o=(0,no.kv)(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return(0,no.de)(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=tt(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=Ve(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),i=e.prevDragCursor;return i&&this.start(Eo,{cursorProgress:i}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===o||void 0===o||o(),t.cancelDrag()}},e}();function ko(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var xo={pan:pt((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,s=t||n||r||i,u=(0,o.useRef)(null),c=(0,o.useContext)(l).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(d)})),nt(a,"pointerdown",s&&function(e){u.current=new Nr(e,d,{transformPagePoint:c})}),(0,lt.z)((function(){return u.current&&u.current.end()}))})),drag:pt((function(e){var t=e.dragControls,n=e.visualElement,i=(0,o.useContext)(l).transformPagePoint,a=(0,Ne.h)((function(){return new wo({visualElement:n})}));a.setProps((0,r.pi)((0,r.pi)({},e),{transformPagePoint:i})),(0,o.useEffect)((function(){return t&&t.subscribe(a)}),[a]),(0,o.useEffect)((function(){return a.mount(n)}),[])}))},Oo=n(7646);function Co(e){return"string"===typeof e&&e.startsWith("var(--")}var Ao=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function So(e,t,n){void 0===n&&(n=1);var o=(0,r.CR)(function(e){var t=Ao.exec(e);if(!t)return[,];var n=(0,r.CR)(t,3);return[n[1],n[2]]}(e),2),i=o[0],a=o[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():Co(a)?So(a,t,n+1):a}}function Mo(e,t){return e/(t.max-t.min)*100}var Do="_$css";var Io={process:function(e,t,n){var r=n.target;if("string"===typeof e){if(!ee.test(e))return e;e=parseFloat(e)}return Mo(e,r.x)+"% "+Mo(e,r.y)+"%"}},Po={borderRadius:(0,r.pi)((0,r.pi)({},Io),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Io,borderTopRightRadius:Io,borderBottomLeftRadius:Io,borderBottomRightRadius:Io,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Ao,(function(e){return a.push(e),Do})));var s=Yt.parse(e);if(s.length>5)return o;var u=Yt.createTransformer(e),c="number"!==typeof s[0]?1:0,l=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=d;var f=At(l,d,.5);"number"===typeof s[2+c]&&(s[2+c]/=f),"number"===typeof s[3+c]&&(s[3+c]/=f);var p=u(s);if(i){var h=0;p=p.replace(Do,(function(){var e=a[h];return h++,e}))}return p}}},No=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget=(0,Ur.VZ)(),t.currentAnimationTarget=(0,Ur.VZ)(),t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,o){void 0===o&&(o={});var i=o.originBox,a=o.targetBox,s=o.visibilityAction,u=o.shouldStackAnimate,c=o.onComplete,l=o.prevParent,d=(0,r._T)(o,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=t.props,p=f.visualElement,h=f.layout;if(!1===u)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===u){u&&(t.isAnimatingTree=!0),n=i||n,e=a||e;var m=!1,v=p.getProjectionParent();if(v){var g=v.prevViewportBox,y=v.getLayoutState().layout;l&&(a&&(y=l.getLayoutState().layout),i&&!io(l,v)&&l.prevViewportBox&&(g=l.prevViewportBox)),g&&Ho(l,i,a)&&(m=!0,n=oo(g,n),e=oo(y,e))}var b=Ro(n,e),E=zr((function(o){var i,a;if("position"===h){var u=e[o].max-e[o].min;n[o].max=n[o].min+u}if(!p.projection.isTargetLocked)return void 0===s?b?t.animateAxis(o,e[o],n[o],(0,r.pi)((0,r.pi)({},d),{isRelative:m})):(null===(a=(i=t.stopAxisAnimation)[o])||void 0===a||a.call(i),p.setProjectionTargetAxis(o,e[o].min,e[o].max,m)):void p.setVisibility(s===Oo.c.Show)}));return p.syncRender(),Promise.all(E).then((function(){t.isAnimatingTree=!1,c&&c(),p.notifyLayoutAnimationComplete()}))}},t}return(0,r.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=ir,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)D[t]=e[t]}(Po)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),zr((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,i,a=this,s=void 0===r?{}:r,u=s.transition,c=s.isRelative;if(!this.isAnimating[e]||!Fo(t,this.currentAnimationTarget[e])){null===(i=(o=this.stopAxisAnimation)[e])||void 0===i||i.call(o),this.isAnimating[e]=!0;var l=this.props.visualElement,d=this.frameTarget[e],f=l.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var p=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=At(t.min,n.min,r),e.max=At(t.max,n.max,r)}(d,n,t,r),l.setProjectionTargetAxis(e,d.min,d.max,c)};p();var h=f.onChange(p);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,f.stop(),h()},this.currentAnimationTarget[e]=t;var m=u||l.getDefaultTransition()||Bo;return ir("x"===e?"layoutX":"layoutY",f,1e3,m&&or(m,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(o.Component);function Ro(e,t){return!jo(e)&&!jo(t)&&(!Fo(e.x,t.x)||!Fo(e.y,t.y))}var Lo={min:0,max:0};function jo(e){return Fo(e.x,Lo)&&Fo(e.y,Lo)}function Fo(e,t){return e.min===t.min&&e.max===t.max}var Bo={duration:.45,ease:[.4,0,.1,1]};function Ho(e,t,n){return e||!e&&!(t||n)}var Uo=n(49870),zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;(0,Uo.Md)(t)&&t.register(r),(0,Uo.Md)(n)&&n.register(r),r.onUnmount((function(){(0,Uo.Md)(t)&&t.remove(r),(0,Uo.Md)(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return(0,Uo.Md)(t)?t.syncUpdate():((0,no.x7)(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;(0,Uo.Md)(e)||e.flush()},t.prototype.render=function(){return null},t}(o.Component);var Vo={measureLayout:function(e){var t=(0,o.useContext)(Uo.WH),n=(0,o.useContext)(Uo.bg);return o.createElement(zo,(0,r.pi)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,r.CR)((0,p.oO)(),2)[1];return o.createElement(No,(0,r.pi)({},e,{safeToRemove:t}))}};function Go(){return{isHydrated:!1,layout:(0,Ur.VZ)(),layoutCorrected:(0,Ur.VZ)(),treeScale:{x:1,y:1},delta:(0,Ur.pY)(),deltaFinal:(0,Ur.pY)(),deltaTransform:""}}var Wo=Go();function Ko(e,t,n){var r=e.x,o=e.y,i="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),u&&(i+="rotateY("+u+") ")}return i+="scale("+r.scale+", "+o.scale+")",n||i!==Yo?i:""}function qo(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Yo=Ko(Wo.delta,Wo.treeScale,{x:1,y:1}),$o=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Zo(e,t,n,r){var o,i,a=e.delta,s=e.layout,u=e.layoutCorrected,c=e.treeScale,l=t.target;i=s,so((o=u).x,i.x),so(o.y,i.y),function(e,t,n){var r=n.length;if(r){var o,i;t.x=t.y=1;for(var a=0;a<r;a++)i=(o=n[a]).getLayoutState().delta,t.x*=i.x.scale,t.y*=i.y.scale,fo(e,i),ao(o)&&vo(e,e,o.getLatestValues())}}(u,c,n),Jr(a,u,l,r)}var Xo=n(519),Qo=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){ar(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){sr(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Xo._),this.isDirty=!1,this.children.forEach(e)},e}();var Jo=function(e){var t=e.treeType,n=void 0===t?"":t,o=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.resetTransform,d=e.restoreTransform,f=e.removeValueFromRenderState,p=e.sortNodePosition,h=e.scrapeMotionValuesFromProps;return function(e,t){var m=e.parent,v=e.props,g=e.presenceId,y=e.blockInitialAnimation,b=e.visualState;void 0===t&&(t={});var _,T,x,O,C,A,S=b.latestValues,M=b.renderState,D=function(){var e=$o.map((function(){return new ur})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return $o.forEach((function(r){var o;null===(o=t[r])||void 0===o||o.call(t);var i="on"+r,a=e[i];a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+$o[t]]=function(t){return e.add(t)},n["notify"+$o[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,r.ev)([],(0,r.CR)(t)))}})),n}(),I={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:(0,Ur.VZ)(),targetFinal:(0,Ur.VZ)()},P=I,N=S,R=Go(),L=!1,j=new Map,F=new Map,B={},U=(0,r.pi)({},S);function z(){_&&(X.isProjectionReady()&&(vo(P.targetFinal,P.target,N),Jr(R.deltaFinal,R.layoutCorrected,P.targetFinal,S)),V(),u(_,M))}function V(){var e=S;if(O&&O.isActive()){var n=O.getCrossfadeState(X);n&&(e=n)}o(X,M,e,P,R,t,v)}function G(){D.notifyUpdate(S)}function W(){X.layoutTree.forEach(ti)}var K=h(v);for(var q in K){var Y=K[q];void 0!==S[q]&&H(Y)&&Y.set(S[q],!1)}var $=w(v),Z=k(v),X=(0,r.pi)((0,r.pi)({treeType:n,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,path:m?(0,r.ev)((0,r.ev)([],(0,r.CR)(m.path)),[m]):[],layoutTree:m?m.layoutTree:new Qo,presenceId:g,projection:I,variantChildren:Z?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===m||void 0===m?void 0:m.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(_)},mount:function(e){_=X.current=e,X.pointTo(X),Z&&m&&!$&&(A=null===m||void 0===m?void 0:m.addVariantChild(X)),null===m||void 0===m||m.children.add(X)},unmount:function(){xn.qY.update(G),xn.qY.render(z),xn.qY.preRender(X.updateLayoutProjection),F.forEach((function(e){return e()})),X.stopLayoutAnimation(),X.layoutTree.remove(X),null===A||void 0===A||A(),null===m||void 0===m||m.children.delete(X),null===x||void 0===x||x(),D.clearAllListeners()},addVariantChild:function(e){var t,n=X.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return p&&n===e.treeType?p(X.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return Z?X:null===m||void 0===m?void 0:m.getClosestVariantNode()},scheduleUpdateLayoutProjection:m?m.scheduleUpdateLayoutProjection:function(){return xn.ZP.preRender(X.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return v.layoutId},getInstance:function(){return _},getStaticValue:function(e){return S[e]},setStaticValue:function(e,t){return S[e]=t},getLatestValues:function(){return S},setVisibility:function(e){X.isVisible!==e&&(X.isVisible=e,X.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(X,e,v,t)},addValue:function(e,t){X.hasValue(e)&&X.removeValue(e),j.set(e,t),S[e]=t.get(),function(e,t){var n=t.onChange((function(t){S[e]=t,v.onUpdate&&xn.ZP.update(G,!1,!0)})),r=t.onRenderRequest(X.scheduleRender);F.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;j.delete(e),null===(t=F.get(e))||void 0===t||t(),F.delete(e),delete S[e],f(e,M)},hasValue:function(e){return j.has(e)},getValue:function(e,t){var n=j.get(e);return void 0===n&&void 0!==t&&(n=lr(t),X.addValue(e,n)),n},forEachValue:function(e){return j.forEach(e)},readValue:function(e){var n;return null!==(n=S[e])&&void 0!==n?n:c(_,e,t)},setBaseTarget:function(e,t){U[e]=t},getBaseTarget:function(e){if(i){var t=i(v,e);if(void 0!==t&&!H(t))return t}return U[e]}},D),{build:function(){return V(),M},scheduleRender:function(){xn.ZP.render(z,!1,!0)},syncRender:z,setProps:function(e){v=e,D.updatePropListeners(e),B=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(H(i))e.addValue(o,i);else if(H(a))e.addValue(o,lr(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,lr(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(X,h(v),B)},getProps:function(){return v},getVariant:function(e){var t;return null===(t=v.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return v.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===m||void 0===m?void 0:m.getVariantContext();if(!$){var t=(null===m||void 0===m?void 0:m.getVariantContext())||{};return void 0!==v.initial&&(t.initial=v.initial),t}for(var n={},r=0;r<oi;r++){var o=ri[r],i=v[o];(E(i)||!1===i)&&(n[o]=i)}return n},enableLayoutProjection:function(){I.isEnabled=!0,X.layoutTree.add(X)},lockProjectionTarget:function(){I.isTargetLocked=!0},unlockProjectionTarget:function(){X.stopLayoutAnimation(),I.isTargetLocked=!1},getLayoutState:function(){return R},setCrossfader:function(e){O=e},isProjectionReady:function(){return I.isEnabled&&I.isHydrated&&R.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=X.getProjectionAnimationProgress()[e],o=n?I.relativeTarget[e]:I.target[e],i=o.min,a=o.max-i;return r.clearListeners(),r.set(i),r.set(i),r.onChange((function(t){X.setProjectionTargetAxis(e,t,t+a,n)})),X.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){zr((function(e){return X.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=s(_,t);return e||bo(n,S),n},getProjectionAnimationProgress:function(){return C||(C={x:lr(0),y:lr(0)}),C},setProjectionTargetAxis:function(e,t,n,r){var o;void 0===r&&(r=!1),r?(I.relativeTarget||(I.relativeTarget=(0,Ur.VZ)()),o=I.relativeTarget[e]):(I.relativeTarget=void 0,o=I.target[e]),I.isHydrated=!0,o.min=t,o.max=n,L=!0,D.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=R.layout);var n=X.getProjectionAnimationProgress(),r=n.x,o=n.y,i=!I.relativeTarget&&!I.isTargetLocked&&!r.isAnimating()&&!o.isAnimating();(e||i)&&zr((function(e){var n=t[e],r=n.min,o=n.max;X.setProjectionTargetAxis(e,r,o)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=oo(t.getLayoutState().layout,e.getLayoutState().layout);zr((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(X),X.notifyLayoutUpdate(R.layout,X.prevViewportBox||R.layout,e)},resetTransform:function(){return l(X,_,v)},restoreTransform:function(){return d(_,M)},updateLayoutProjection:function(){if(X.isProjectionReady()){var e=R.delta,t=R.treeScale,n=t.x,r=t.y,o=R.deltaTransform;Zo(R,P,X.path,S),L&&X.notifyViewportBoxUpdate(P.target,e),L=!1;var i=Ko(e,t);i===o&&n===t.x&&r===t.y||X.scheduleRender(),R.deltaTransform=i}},updateTreeLayoutProjection:function(){X.layoutTree.forEach(ei),xn.ZP.preRender(W,!1,!0)},getProjectionParent:function(){if(void 0===T){for(var e=!1,t=X.path.length-1;t>=0;t--){var n=X.path[t];if(n.projection.isEnabled){e=n;break}}T=e}return T},resolveRelativeTargetBox:function(){var e=X.getProjectionParent();if(I.relativeTarget&&e&&(function(e,t){to(e.target.x,e.relativeTarget.x,t.target.x),to(e.target.y,e.relativeTarget.y,t.target.y)}(I,e.projection),ao(e))){var t=I.target;vo(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(v._layoutResetTransform)},pointTo:function(e){P=e.projection,N=e.getLatestValues(),null===x||void 0===x||x(),x=ft(e.onSetAxisTarget(X.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;X.isPresent?X.presence=Oo.z.Present:null===(e=X.layoutSafeToRemove)||void 0===e||e.call(X)})))},isPresent:!0,presence:Oo.z.Entering});return X}};function ei(e){e.resolveRelativeTargetBox()}function ti(e){e.updateLayoutProjection()}var ni,ri=(0,r.ev)(["initial"],(0,r.CR)(wr)),oi=ri.length,ii=new Set(["width","height","top","left","right","bottom","x","y"]),ai=function(e){return ii.has(e)},si=function(e,t){e.set(t,!1),e.set(t)},ui=function(e){return e===oe||e===ee};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ni||(ni={}));var ci=function(e,t){return parseFloat(e.split(", ")[t])},li=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return ci(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?ci(a[1],e):0}},di=new Set(["x","y","z"]),fi=P.filter((function(e){return!di.has(e)}));var pi={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:li(4,13),y:li(5,14)},hi=function(e,t,n,o){void 0===n&&(n={}),void 0===o&&(o={}),t=(0,r.pi)({},t),o=(0,r.pi)({},o);var i=Object.keys(t).filter(ai),a=[],s=!1,u=[];if(i.forEach((function(r){var i=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],d=t[r],f=pr(l);if(Re(d))for(var p=d.length,h=null===d[0]?1:0;h<p;h++)c?pr(d[h]):(c=pr(d[h]))===f||ui(f)&&ui(c);else c=pr(d);if(f!==c)if(ui(f)&&ui(c)){var m=i.get();"string"===typeof m&&i.set(parseFloat(m)),"string"===typeof d?t[r]=parseFloat(d):Array.isArray(d)&&c===ee&&(t[r]=d.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===d)?0===l?i.set(c.transform(l)):t[r]=f.transform(d):(s||(a=function(e){var t=[];return fi.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),s=!0),u.push(r),o[r]=void 0!==o[r]?o[r]:t[r],si(i,d))}})),u.length){var c=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);si(o,pi[n](r,s)),e[n]=pi[n](u,i)})),e}(t,e,u);return a.length&&a.forEach((function(t){var n=(0,r.CR)(t,2),o=n[0],i=n[1];e.getValue(o).set(i)})),e.syncRender(),{target:c,transitionEnd:o}}return{target:t,transitionEnd:o}};function mi(e,t,n,r){return function(e){return Object.keys(e).some(ai)}(t)?hi(e,t,n,r):{target:t,transitionEnd:r}}var vi=function(e,t,n,o){var i=function(e,t,n){var o,i=(0,r._T)(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.pi)({},n)),e.forEachValue((function(e){var t=e.get();if(Co(t)){var n=So(t,a);n&&e.set(n)}})),i){var u=i[s];if(Co(u)){var c=So(u,a);c&&(i[s]=c,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=u)))}}return{target:i,transitionEnd:n}}(e,t,o);return mi(e,t=i.target,n,o=i.transitionEnd)};var gi={treeType:"dom",readValueFromInstance:function(e,t){if(L(t)){var n=Xn(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(z(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Yr(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=t.transition,s=t.transitionEnd,u=(0,r._T)(t,["transition","transitionEnd"]),c=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=yr(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(u,a||{},e);if(i&&(s&&(s=i(s)),u&&(u=i(u)),c&&(c=i(c))),o){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var c=0;c<u;c++){var l=s[c],d=t[l],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==o?o:t[l]),void 0!==f&&null!==f&&("string"===typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!mr(f)&&Yt.test(d)&&(f=Qn(l,d)),e.addValue(l,lr(f)),null!==(i=(a=n)[l])&&void 0!==i||(a[l]=f),e.setBaseTarget(l,f))}}(e,u,c);var l=vi(e,u,c,s);s=l.transitionEnd,u=l.target}return(0,r.pi)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:De,build:function(e,t,n,r,o,i,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=r.isEnabled&&o.isHydrated;ce(t,n,r,o,i,a.transformTemplate,s?Ko:void 0,s?qo:void 0)},render:Ae},yi=Jo(gi),bi=Jo((0,r.pi)((0,r.pi)({},gi),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return L(t)?(null===(n=Xn(t))||void 0===n?void 0:n.default)||0:(t=Se.has(t)?t:Ce(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ie,build:function(e,t,n,r,o,i,a){var s=r.isEnabled&&o.isHydrated;Te(t,n,r,o,i,a.transformTemplate,s?Ko:void 0,s?qo:void 0)},render:Me})),Ei=function(e,t){return M(e)?bi(t,{enableHardwareAcceleration:!1}):yi(t,{enableHardwareAcceleration:!0})},_i=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Sr),ht),xo),Vo),Ti=A((function(e,t){return function(e,t,n,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=M(e)?He:ze;return(0,r.pi)((0,r.pi)({},s),{preloadedFeatures:n,useRender:xe(a),createVisualElement:o,Component:e})}(e,t,_i,Ei)}))},58839:function(e,t,n){"use strict";n.d(t,{kv:function(){return s},e3:function(){return u},x7:function(){return l},de:function(){return c}});var r=n(9839),o=n(93327),i=n(519);function a(e){return e.projection.isEnabled||e.shouldResetTransform()}function s(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&s(n,t),a(e)&&t.push(e),t}function u(e){var t=[],n=function(e){a(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(i._)}function c(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=(0,o.nP)(t.layout),e.notifyLayoutMeasure(t.layout,e.prevViewportBox||t.layout),r.ZP.update((function(){return e.rebaseProjectionTarget()}))}}function l(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}},27565:function(e,t,n){"use strict";n.d(t,{U:function(){return i},R:function(){return a}});var r=new Set;function o(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function i(e){return r.add(e),function(){return r.delete(e)}}function a(){if(r.size){var e=0,t=[[]],n=[],i=function(n){return o(t,n,e)},a=function(t){o(n,t,e),e++};r.forEach((function(t){t(i,a),e=0})),r.clear();for(var u=n.length,c=0;c<=u;c++)t[c]&&t[c].forEach(s),n[c]&&n[c].forEach(s)}}var s=function(e){return e()}},519:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r=function(e,t){return e.depth-t.depth}},93327:function(e,t,n){"use strict";n.d(t,{VZ:function(){return u},_6:function(){return a},RX:function(){return i},nP:function(){return c},pY:function(){return d},dV:function(){return s}});var r=n(81439);function o(e){return e}function i(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function a(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}function s(e,t){var n=e.top,r=e.left,i=e.bottom,a=e.right;void 0===t&&(t=o);var s=t({x:r,y:n}),u=t({x:a,y:i});return{top:s.y,left:s.x,bottom:u.y,right:u.x}}function u(){return{x:{min:0,max:1},y:{min:0,max:1}}}function c(e){return{x:(0,r.pi)({},e.x),y:(0,r.pi)({},e.y)}}var l={translate:0,scale:1,origin:0,originPoint:0};function d(){return{x:(0,r.pi)({},l),y:(0,r.pi)({},l)}}},45930:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(67294);function o(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6717:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(67294);function o(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},64910:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},81439:function(e,t,n){"use strict";n.d(t,{ZT:function(){return o},pi:function(){return i},_T:function(){return a},CR:function(){return s},ev:function(){return u}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}Object.create},9839:function(e,t,n){"use strict";n.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return y}});var r=1/60*1e3,o="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},i="undefined"!==typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(o())}),r)};var a=!0,s=!1,u=!1,c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var u=s&&o,c=u?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),u&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:function(s){var u;if(o=!0,t=(u=[n,t])[0],(n=u[1]).length=0,r=t.length)for(var c=0;c<r;c++){var l=t[c];l(s),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return s=!0})),e}),{}),f=l.reduce((function(e,t){var n=d[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s||g(),n.schedule(e,t,r)},e}),{}),p=l.reduce((function(e,t){return e[t]=d[t].cancel,e}),{}),h=l.reduce((function(e,t){return e[t]=function(){return d[t].process(c)},e}),{}),m=function(e){return d[e].process(c)},v=function(e){s=!1,c.delta=a?r:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(m),u=!1,s&&(a=!1,i(v))},g=function(){s=!0,a=!0,u||i(v)},y=function(){return c},b=f},84839:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=1/60*1e3,r="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},o="undefined"!==typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(r())}),n)};var i=!0,a=!1,s=!1,u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],l=c.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var u=s&&o,c=u?t:n;return a&&i.add(e),-1===c.indexOf(e)&&(c.push(e),u&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:function(s){var u;if(o=!0,t=(u=[n,t])[0],(n=u[1]).length=0,r=t.length)for(var c=0;c<r;c++){var l=t[c];l(s),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return a=!0})),e}),{}),d=c.reduce((function(e,t){var n=l[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),a||v(),n.schedule(e,t,r)},e}),{}),f=c.reduce((function(e,t){return e[t]=l[t].cancel,e}),{}),p=c.reduce((function(e,t){return e[t]=function(){return l[t].process(u)},e}),{}),h=function(e){return l[e].process(u)},m=function(e){a=!1,u.delta=i?n:Math.max(Math.min(e-u.timestamp,40),1),u.timestamp=e,s=!0,c.forEach(h),s=!1,a&&(i=!1,o(m))},v=function(){a=!0,i=!0,s||o(m)};t.cancelSync=f,t.default=d,t.flushSync=p,t.getFrameData=function(){return u}},23405:function(e){e.exports=function(e){return[...e].reduce(((e,[t,n])=>(e[t]=n,e)),{})}},69671:function(e,t,n){const r=n(81701);e.exports=i;const o=Object.hasOwnProperty;function i(){if(!(this instanceof i))return new i;this.reset()}function a(e,t){return"string"!==typeof e?"":(t||(e=e.toLowerCase()),e.replace(r,"").replace(/ /g,"-"))}i.prototype.slug=function(e,t){const n=this;let r=a(e,!0===t);const i=r;for(;o.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r},i.prototype.reset=function(){this.occurrences=Object.create(null)},i.slug=a},81701:function(e){e.exports=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08BE-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B55\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D04\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D81\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1ABF-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31BB-\u31EF\u3200-\u33FF\u4DB6-\u4DFF\u9FF0-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7C7-\uA7F6\uA828-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB68-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD47-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD-\uDDCF\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC60-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD00-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD823-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D-\uD83F\uD87B-\uD87D\uD87F-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD822[\uDEF3-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD869[\uDED7-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g},76331:function(e,t,n){"use strict";var r=n(97247),o=n(11218),i=n(99560),a=n(93934),s=n(36582),u=n(56851),c=n(57848),l=n(54992),d=n(48145),f=d("root"),p=d("element"),h=d("text");function m(e,t,n){var r,i,a=n.schema,s=a,u=t.tagName,c={},d=[],f=-1;for(r in"html"===a.space&&"svg"===u.toLowerCase()&&(s=o,n.schema=s),t.properties)v(c,r,t.properties[r],n,u);if(n.vdom&&("html"===s.space?u=u.toUpperCase():c.namespace=l[s.space]),n.prefix&&(n.key++,c.key=n.prefix+n.key),t.children)for(;++f<t.children.length;)i=t.children[f],p(i)?d.push(m(e,i,n)):h(i)&&d.push(i.value);return n.schema=a,d.length?e.call(t,u,c,d):e.call(t,u,c)}function v(e,t,n,r,o){var l,d=i(r.schema,t);null==n||n!==n||!1===n&&(r.vue||r.vdom||r.hyperscript)||!n&&d.boolean&&(r.vue||r.vdom||r.hyperscript)||(n&&"object"===typeof n&&"length"in n&&(n=(d.commaSeparated?u:s).stringify(n)),d.boolean&&r.hyperscript&&(n=""),"style"===d.property&&"string"===typeof n&&(r.react||r.vue||r.vdom)&&(n=function(e,t){var n={};try{c(e,r)}catch(o){throw o.message=t+"[style]"+o.message.slice("undefined".length),o}return n;function r(e,t){"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),n[e.replace(/-([a-z])/g,y)]=t}}(n,o)),r.vue?"style"!==d.property&&(l="attrs"):d.mustUseProperty||(r.vdom?"style"!==d.property&&(l="attributes"):r.hyperscript&&(l="attrs")),l?(e[l]||(e[l]={}),e[l][d.attribute]=n):d.space&&r.react?e[a[d.property]||d.property]=n:e[d.attribute]=n)}function g(e){return Boolean(e&&e.context&&e.cleanup)}function y(e,t){return t.toUpperCase()}e.exports=function(e,t,n){var i,a=n||{},s=function(e){var t=e&&e("div");return Boolean(t&&("_owner"in t||"_store"in t)&&null==t.key)}(e),u=function(e){var t=e&&e("div");return Boolean(t&&t.context&&t.context._isVue)}(e),c=function(e){return e&&"VirtualNode"===e("div").type}(e);if("function"!==typeof e)throw new Error("h is not a function");"string"===typeof a||"boolean"===typeof a?(i=a,a={}):i=a.prefix;if(f(t))t=1===t.children.length&&p(t.children[0])?t.children[0]:{type:"element",tagName:"div",properties:{},children:t.children};else if(!p(t))throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return m(e,t,{schema:"svg"===a.space?o:r,prefix:null==i?s||u||c?"h-":null:i,key:0,react:s,vue:u,vdom:c,hyperscript:g(e)})}},92114:function(e,t,n){"use strict";var r=n(9505),o=n(31742),i=n(99560),a=n(97247),s=n(11218),u=n(14787),c=n(54992);e.exports=function(e,t){var n,r=t||{};r.messages?(n=r,r={}):n=r.file;return f(e,{schema:"svg"===r.space?s:a,file:n,verbose:r.verbose})};var l={}.hasOwnProperty,d={"#document":p,"#document-fragment":p,"#text":function(e){return{type:"text",value:e.value}},"#comment":function(e){return{type:"comment",value:e.data}},"#documentType":function(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}};function f(e,t){var n,r,o,i=t.schema,u=l.call(d,e.nodeName)?d[e.nodeName]:h;return u===h&&(t.schema=e.namespaceURI===c.svg?s:a),e.childNodes&&(n=function(e,t){var n=-1,r=[];for(;++n<e.length;)r[n]=f(e[n],t);return r}(e.childNodes,t)),r=u(e,n,t),e.sourceCodeLocation&&t.file&&(o=m(r,e.sourceCodeLocation,t))&&(t.location=!0,r.position=o),t.schema=i,r}function p(e,t,n){var r,o,i={type:"root",children:t,data:{quirksMode:"quirks"===e.mode||"limited-quirks"===e.mode}};return n.file&&n.location&&(r=String(n.file),o=u(r),i.position={start:o.toPoint(0),end:o.toPoint(r.length)}),i}function h(e,t,n){for(var i,a,s,u,c,l="svg"===n.schema.space?r:o,d={},p=-1;++p<e.attrs.length;)d[((a=e.attrs[p]).prefix?a.prefix+":":"")+a.name]=a.value;return"template"===(i=l(e.tagName,d,t)).tagName&&"content"in e&&(u=(s=e.sourceCodeLocation)&&s.startTag&&v(s.startTag).end,c=s&&s.endTag&&v(s.endTag).start,i.content=f(e.content,n),(u||c)&&n.file&&(i.content.position={start:u,end:c})),i}function m(e,t,n){var r,o,a,s=v(t);if("element"===e.type&&(r=e.children[e.children.length-1],!t.endTag&&r&&r.position&&r.position.end&&(s.end=Object.assign({},r.position.end)),n.verbose)){for(o in a={},t.attrs)a[i(n.schema,o).property]=v(t.attrs[o]);e.data={position:{opening:v(t.startTag),closing:t.endTag?v(t.endTag):null,properties:a}}}return s}function v(e){var t=g({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=g({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function g(e){return e.line&&e.column?e:null}},83216:function(e){"use strict";function t(e){if("string"===typeof e)return function(e){return t;function t(t){return n(t)&&t.tagName===e}}(e);if(null===e||void 0===e)return n;if("object"===typeof e)return function(e){var n=function(e){var n=e.length,r=-1,o=[];for(;++r<n;)o[r]=t(e[r]);return o}(e),r=n.length;return o;function o(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}(e);if("function"===typeof e)return function(e){return t;function t(t){return n(t)&&Boolean(e.apply(this,arguments))}}(e);throw new Error("Expected function, string, or array as test")}function n(e){return e&&"object"===typeof e&&"element"===e.type&&"string"===typeof e.tagName}e.exports=t},78892:function(e){"use strict";e.exports=function(e,n){var r,o,i,a=e||"",s=n||"div",u={},c=0;for(;c<a.length;)t.lastIndex=c,i=t.exec(a),(r=a.slice(c,i?i.index:a.length))&&(o?"#"===o?u.id=r:u.className?u.className.push(r):u.className=[r]:s=r,c+=r.length),i&&(o=i[0],c++);return{type:"element",tagName:s,properties:u,children:[]}};var t=/[#.]/g},85330:function(e,t,n){"use strict";var r=n(96464),o=n(83216),i=n(33262);e.exports=function(e){var t,n,o,i,a=e.children||[],s=p(e),c=y(e,{}),l=-1;if("text"===e.type||"comment"===e.type)return m(e,{whiteSpace:c,breakBefore:!0,breakAfter:!0});t=[];for(;++l<a.length;)t=t.concat(h(a[l],l,e,{whiteSpace:c,breakBefore:l?null:s,breakAfter:l<a.length-1?u(a[l+1]):s}));l=-1,n=[];for(;++l<t.length;)"number"===typeof(o=t[l])?void 0!==i&&o>i&&(i=o):o&&(i&&n.push(r("\n",i)),i=0,n.push(o));return n.join("")};var a=/\n/g,s=/[\t ]+/g,u=o("br"),c=o("p"),l=o(["th","td"]),d=o("tr"),f=o(["datalist","head","noembed","noframes","rp","script","style","template","title","noscript",function(e){return(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),p=o(["caption","html","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form,","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul"]);function h(e,t,n,r){return"element"===e.type?function(e,t,n,r){var o,a,s=y(e,r),m=e.children||[],v=-1,g=[];if(f(e))return g;u(e)||d(e)&&i(n,e,d)?a="\n":c(e)?(o=2,a=2):p(e)&&(o=1,a=1);for(;++v<m.length;)g=g.concat(h(m[v],v,e,{whiteSpace:s,breakBefore:v?null:o,breakAfter:v<m.length-1?u(m[v+1]):a}));l(e)&&i(n,e,l)&&g.push("\t");o&&g.unshift(o);a&&g.push(a);return g}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?m(e,r):v(e)]:[]}function m(e,t){for(var n,r,o,i=String(e.value),s=[],u=[],c=0,l=-1;c<i.length;)a.lastIndex=c,r=(n=a.exec(i))?n.index:i.length,s.push(g(i.slice(c,r).replace(/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g,""),t.breakBefore,t.breakAfter)),c=r+1;for(;++l<s.length;)8203===s[l].charCodeAt(s[l].length-1)||l<s.length-1&&8203===s[l+1].charCodeAt(0)?(u.push(s[l]),o=""):s[l]&&(o&&u.push(o),u.push(s[l]),o=" ");return u.join("")}function v(e){return String(e.value)}function g(e,t,n){for(var r,o,i=[],a=0;a<e.length;)s.lastIndex=a,o=(r=s.exec(e))?r.index:e.length,a||o||!r||t||i.push(""),a!==o&&i.push(e.slice(a,o)),a=r?o+r[0].length:o;return a===o||n||i.push(""),i.join(" ")}function y(e,t){var n=e.properties||{},r=t.whiteSpace||"normal";switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":r;case"textarea":return"pre-wrap";default:return r}}},62502:function(e,t,n){"use strict";var r=n(99560),o=n(66632),i=n(78892),a=n(36582).parse,s=n(56851).parse;e.exports=function(e,t,n){var o=n?function(e){var t,n=e.length,r=-1,o={};for(;++r<n;)o[(t=e[r]).toLowerCase()]=t;return o}(n):null;return function(e,n){var r,a=i(e,t),s=Array.prototype.slice.call(arguments,2),d=a.tagName.toLowerCase();a.tagName=o&&u.call(o,d)?o[d]:d,n&&c(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)f(a.properties,r,n[r]);l(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function f(t,n,o){var i,u,c;null!==o&&void 0!==o&&o===o&&(u=(i=r(e,n)).property,"string"===typeof(c=o)&&(i.spaceSeparated?c=a(c):i.commaSeparated?c=s(c):i.commaOrSpaceSeparated&&(c=a(s(c).join(" ")))),"style"===u&&"string"!==typeof o&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===u&&t.className&&(c=t.className.concat(c)),t[u]=function(e,t,n){var r,o,i;if("object"!==typeof n||!("length"in n))return d(e,t,n);o=n.length,r=-1,i=[];for(;++r<o;)i[r]=d(e,t,n[r]);return i}(i,u,c))}};var u={}.hasOwnProperty;function c(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}function l(e,t){var n,r;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)l(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function d(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof r||""!==r&&o(n)!==o(t)||(r=!0)),r}},52579:function(e,t,n){"use strict";var r=n(97247),o=n(62502)(r,"div");o.displayName="html",e.exports=o},31742:function(e,t,n){"use strict";e.exports=n(52579)},15157:function(e){"use strict";e.exports=JSON.parse('["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]')},9505:function(e,t,n){"use strict";var r=n(11218),o=n(15157),i=n(62502)(r,"g",o);i.displayName="svg",e.exports=i},1527:function(e,t){"use strict";function n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(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 new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=(t instanceof Array?t.length?t:[void 0]:[t]).map((function(e){return{keyAccessor:e,isProp:!(e instanceof Function)}})),c=e.reduce((function(e,t){var r=e,o=t;return u.forEach((function(e,t){var a,c=e.keyAccessor;if(e.isProp){var l=o,d=l[c],f=n(l,[c].map(s));a=d,o=f}else a=c(o,t);t+1<u.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):i?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(o)):r[a]=o})),e}),{});i instanceof Function&&function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;n===u.length?Object.keys(t).forEach((function(e){return t[e]=i(t[e])})):Object.values(t).forEach((function(t){return e(t,n+1)}))}(c);var l=c;return a&&(l=[],function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===u.length?l.push({keys:n,vals:t}):Object.entries(t).forEach((function(t){var i=r(t,2),a=i[0],s=i[1];return e(s,[].concat(o(n),[a]))}))}(c),t instanceof Array&&0===t.length&&1===l.length&&(l[0].keys=[])),l}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,c="";function l(e){return e?e.replace(u,c):c}e.exports=function(e,u){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];u=u||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=u.source}m.prototype.content=e;var v=[];function g(t){var n=new Error(u.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=d,n.column=f,n.source=e,!u.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function E(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function T(){var e=h(),n=y(o);if(n){if(_(),!y(i))return g("property missing ':'");var r=y(a),u=e({type:"declaration",property:l(n[0].replace(t,c)),value:r?l(r[0].replace(t,c)):c});return y(s),u}}return b(),function(){var e,t=[];for(E(t);e=T();)!1!==e&&(t.push(e),E(t));return t}()}},33310:function(e){"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},36808:function(e,t,n){var r,o;!function(i){if(void 0===(o="function"===typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var a=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!==typeof document){"number"===typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(c){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(s[0]);if(u=(r.read||r)(u,c)||t(u),n)try{u=JSON.parse(u)}catch(l){}if(o[c]=u,e===c)break}catch(l){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},44858:function(e,t,n){"use strict";var r=n(20296),o=n.n(r);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function e(t,n){var r=n.default,o=void 0===r?null:r,i=n.triggerUpdate,a=void 0===i||i,s=n.onChange,u=void 0===s?function(e,t){}:s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.defaultVal=o,this.triggerUpdate=a,this.onChange=u};t.Z=function(e){var t=e.stateInit,n=void 0===t?function(){return{}}:t,r=e.props,a=void 0===r?{}:r,u=e.methods,c=void 0===u?{}:u,l=e.aliases,d=void 0===l?{}:l,f=e.init,p=void 0===f?function(){}:f,h=e.update,m=void 0===h?function(){}:h,v=Object.keys(a).map((function(e){return new s(e,a[e])}));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},n instanceof Function?n(e):n,{initialised:!1}),r={};function a(t){return s(t,e),u(),a}var s=function(e,n){p.call(a,e,t,n),t.initialised=!0},u=o()((function(){t.initialised&&(m.call(a,t,r),r={})}),1);return v.forEach((function(e){a[e.name]=function(e){var n=e.name,o=e.triggerUpdate,i=void 0!==o&&o,s=e.onChange,c=void 0===s?function(e,t){}:s,l=e.defaultVal,d=void 0===l?null:l;return function(e){var o=t[n];if(!arguments.length)return o;var s=void 0===e?d:e;return t[n]=s,c.call(a,s,t,o),!r.hasOwnProperty(n)&&(r[n]=o),i&&u(),a}}(e)})),Object.keys(c).forEach((function(e){a[e]=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=c[e]).call.apply(n,[a,t].concat(o))}})),Object.entries(d).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];return a[n]=a[r]})),a.resetProps=function(){return v.forEach((function(e){a[e.name](e.defaultVal)})),a},a.resetProps(),t._rerender=u,a}}},93096:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=c||l||Function("return this")(),f=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return d.Date.now()};function v(e,t,n){var o,i,a,s,u,c,l=0,d=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=o,r=i;return o=i=void 0,l=t,s=e.apply(r,n)}function E(e){return l=e,u=setTimeout(T,t),d?b(e):s}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-l>=a}function T(){var e=m();if(_(e))return w(e);u=setTimeout(T,function(e){var n=t-(e-c);return f?h(n,a-(e-l)):n}(e))}function w(e){return u=void 0,v&&o?b(e):(o=i=void 0,s)}function k(){var e=m(),n=_(e);if(o=arguments,i=this,c=e,n){if(void 0===u)return E(c);if(f)return u=setTimeout(T,t),b(c)}return void 0===u&&(u=setTimeout(T,t)),s}return t=y(t)||0,g(n)&&(d=!!n.leading,a=(f="maxWait"in n)?p(y(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==u&&clearTimeout(u),l=0,o=c=i=u=void 0},k.flush=function(){return void 0===u?s:w(m())},k}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),v(e,t,{leading:o,maxWait:t,trailing:i})}},90233:function(e,t,n){"use strict";n.r(t),n.d(t,{rankings:function(){return a}});var r=n(22122),o=n(76826),i=n.n(o),a={CASE_SENSITIVE_EQUAL:9,EQUAL:8,STARTS_WITH:7,WORD_STARTS_WITH:6,STRING_CASE:5,STRING_CASE_ACRONYM:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},s={CAMEL:.8,PASCAL:.6,KEBAB:.4,SNAKE:.2,NO_CASE:0};c.rankings=a,c.caseRankings=s;var u=function(e,t){return String(e.rankedItem).localeCompare(t.rankedItem)};function c(e,t,n){void 0===n&&(n={});var r=n,o=r.keys,i=r.threshold,s=void 0===i?a.MATCHES:i,c=r.baseSort,d=void 0===c?u:c;return e.reduce((function(e,r,i){var u=function(e,t,n,r){if(!t)return{rankedItem:e,rank:l(e,n,r),keyIndex:-1,keyThreshold:r.threshold};return function(e,t){return t.reduce((function(t,n){var r=function(e,t){"object"===typeof t&&(t=t.key);var n;n="function"===typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce((function(e,t){return e?e[t]:null}),e):e[t];return null!=n?[].concat(n):null}(e,n);return r&&r.forEach((function(e){t.push({itemValue:e,attributes:f(n)})})),t}),[])}(e,t).reduce((function(e,t,o){var i=e.rank,s=e.rankedItem,u=e.keyIndex,c=e.keyThreshold,d=t.itemValue,f=t.attributes,p=l(d,n,r),h=s,m=f.minRanking,v=f.maxRanking,g=f.threshold;return p<m&&p>=a.MATCHES?p=m:p>v&&(p=v),p>i&&(i=p,u=o,c=g,h=d),{rankedItem:h,rank:i,keyIndex:u,keyThreshold:c}}),{rank:a.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,o,t,n),c=u.rankedItem,d=u.rank,p=u.keyIndex,h=u.keyThreshold;d>=(void 0===h?s:h)&&e.push({rankedItem:c,item:r,rank:d,index:i,keyIndex:p});return e}),[]).sort((function(e,t){return function(e,t,n){var r=-1,o=1,i=e.rank,a=e.keyIndex,s=t.rank,u=t.keyIndex;return i===s?a===u?n(e,t):a<u?r:o:i>s?r:o}(e,t,d)})).map((function(e){return e.item}))}function l(e,t,n){if(e=d(e,n),(t=d(t,n)).length>e.length)return a.NO_MATCH;if(e===t)return a.CASE_SENSITIVE_EQUAL;var r=function(e){var t=e.toLowerCase()!==e,n=e.indexOf("-")>=0,r=e.indexOf("_")>=0;if(!t&&!r&&n)return s.KEBAB;if(!t&&r&&!n)return s.SNAKE;if(t&&!n&&!r){return e[0].toUpperCase()===e[0]?s.PASCAL:s.CAMEL}return s.NO_CASE}(e),o=function(e,t,n){var r=e.toLowerCase().indexOf(t.toLowerCase());switch(n){case s.SNAKE:return"_"===e[r-1];case s.KEBAB:return"-"===e[r-1];case s.PASCAL:case s.CAMEL:return-1!==r&&e[r]===e[r].toUpperCase();default:return!1}}(e,t,r),i=function(e,t,n){var r=null;switch(n){case s.SNAKE:r="_";break;case s.KEBAB:r="-";break;case s.PASCAL:case s.CAMEL:r=/(?=[A-Z])/;break;default:r=null}var o=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=o[n];return e&&r&&r[0].toLowerCase()===t}),!0)}(e,t,r);return(e=e.toLowerCase())===(t=t.toLowerCase())?a.EQUAL+r:0===e.indexOf(t)?a.STARTS_WITH+r:-1!==e.indexOf(" "+t)?a.WORD_STARTS_WITH+r:o?a.STRING_CASE+r:r>0&&i?a.STRING_CASE_ACRONYM+r:-1!==e.indexOf(t)?a.CONTAINS+r:1===t.length?a.NO_MATCH:-1!==function(e){var t="";return e.split(" ").forEach((function(e){e.split("-").forEach((function(e){t+=e.substr(0,1)}))})),t}(e).indexOf(t)?a.ACRONYM+r:function(e,t){var n=0,r=0;function o(e,t,r){for(var o=r;o<t.length;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){var r=n/t.length;return a.MATCHES+r*(1/e)}var s=o(t[0],e,0);if(s<0)return a.NO_MATCH;r=s;for(var u=1;u<t.length;u++){if(!((r=o(t[u],e,r))>-1))return a.NO_MATCH}return i(r-s)}(e,t)}function d(e,t){return e=""+e,t.keepDiacritics||(e=i()(e)),e}function f(e){return"string"===typeof e&&(e={key:e}),(0,r.Z)({maxRanking:1/0,minRanking:-1/0},e)}t.default=c},23398:function(e,t,n){"use strict";var r;t.__esModule=!0,t.AmpStateContext=void 0;var o=((r=n(67294))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},76393:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(67294))&&r.__esModule?r:{default:r},i=n(23398);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,i=e.hasQuery,a=void 0!==i&&i;return n||o&&a}},92775:function(e,t,n){"use strict";var r=n(59713);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.__esModule=!0,t.defaultHead=f,t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),s=(i=n(73244))&&i.__esModule?i:{default:i},u=n(23398),c=n(41165),l=n(76393);function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(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((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function m(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(p,[]).reverse().concat(f(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var i=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var s=o.key.slice(o.key.indexOf("$")+1);e.has(s)?i=!1:e.add(s)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(var u=0,c=h.length;u<c;u++){var l=h[u];if(o.props.hasOwnProperty(l))if("charSet"===l)n.has(l)?i=!1:n.add(l);else{var d=o.props[l],f=r[l]||new Set;"name"===l&&a||!f.has(d)?(f.add(d),r[l]=f):i=!1}}}return i}}()).reverse().map((function(e,n){var i=e.key||n;if(!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((function(t){return e.props.href.startsWith(t)}))){var s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props||{});return s["data-href"]=s.href,s.href=void 0,s["data-optimized-fonts"]=!0,a.default.cloneElement(e,s)}return a.default.cloneElement(e,{key:i})}))}var v=function(e){var t=e.children,n=(0,a.useContext)(u.AmpStateContext),r=(0,a.useContext)(c.HeadManagerContext);return a.default.createElement(s.default,{reduceComponentsToState:m,headManager:r,inAmpMode:(0,l.isInAmpMode)(n)},t)};t.default=v},73244:function(e,t,n){"use strict";var r=n(319),o=n(34575),i=n(93913),a=(n(81506),n(2205)),s=n(78585),u=n(29754);function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}t.__esModule=!0,t.default=void 0;var l=n(67294),d=function(e){a(n,e);var t=c(n);function n(e){var i;return o(this,n),(i=t.call(this,e))._hasHeadManager=void 0,i.emitChange=function(){i._hasHeadManager&&i.props.headManager.updateHead(i.props.reduceComponentsToState(r(i.props.headManager.mountedInstances),i.props))},i._hasHeadManager=i.props.headManager&&i.props.headManager.mountedInstances,i}return i(n,[{key:"componentDidMount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}},{key:"componentDidUpdate",value:function(){this.emitChange()}},{key:"componentWillUnmount",value:function(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}},{key:"render",value:function(){return null}}]),n}(l.Component);t.default=d},3752:function(e,t,n){"use strict";function r(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n;if(void 0===t){var o,i=r(e);try{for(i.s();!(o=i.n()).done;){var a=o.value;null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}}catch(d){i.e(d)}finally{i.f()}}else{var s,u=-1,c=r(e);try{for(c.s();!(s=c.n()).done;){var l=s.value;null!=(l=t(l,++u,e))&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(d){c.e(d)}finally{c.f()}}return n}n.d(t,{Z:function(){return i}})},86701:function(e,t,n){"use strict";function r(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n;if(void 0===t){var o,i=r(e);try{for(i.s();!(o=i.n()).done;){var a=o.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(d){i.e(d)}finally{i.f()}}else{var s,u=-1,c=r(e);try{for(c.s();!(s=c.n()).done;){var l=s.value;null!=(l=t(l,++u,e))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(d){c.e(d)}finally{c.f()}}return n}n.d(t,{Z:function(){return i}})},14275:function(e,t,n){"use strict";function r(e,t,n){if(isNaN(t))return e;var r,o,i,a,s,u,c=e._root,l={data:n},d=e._x0,f=e._x1;if(!c)return e._root=l,e;for(;c.length;)if((a=t>=(o=(d+f)/2))?d=o:f=o,r=c,!(c=c[s=+a]))return r[s]=l,e;if(t===(i=+e._x.call(null,c.data)))return l.next=c,r?r[s]=l:e._root=l,e;do{r=r?r[s]=new Array(2):e._root=new Array(2),(a=t>=(o=(d+f)/2))?d=o:f=o}while((s=+a)===(u=+(i>=o)));return r[u]=c,r[s]=l,e}function o(e,t,n){this.node=e,this.x0=t,this.x1=n}function i(e){return e[0]}function a(e,t){var n=new s(null==t?i:t,NaN,NaN);return null==e?n:n.addAll(e)}function s(e,t,n){this._x=e,this._x0=t,this._x1=n,this._root=void 0}function u(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return a}});var c=a.prototype=s.prototype;c.copy=function(){var e,t,n=new s(this._x,this._x0,this._x1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(e=[{source:r,target:n._root=new Array(2)}];r=e.pop();)for(var o=0;o<2;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(2)}):r.target[o]=u(t));return n},c.add=function(e){var t=+this._x.call(null,e);return r(this.cover(t),t,e)},c.addAll=function(e){var t,n,o=e.length,i=new Array(o),a=1/0,s=-1/0;for(t=0;t<o;++t)isNaN(n=+this._x.call(null,e[t]))||(i[t]=n,n<a&&(a=n),n>s&&(s=n));if(a>s)return this;for(this.cover(a).cover(s),t=0;t<o;++t)r(this,i[t],e[t]);return this},c.cover=function(e){if(isNaN(e=+e))return this;var t=this._x0,n=this._x1;if(isNaN(t))n=(t=Math.floor(e))+1;else{for(var r,o,i=n-t||1,a=this._root;t>e||e>=n;)switch(o=+(e<t),(r=new Array(2))[o]=a,a=r,i*=2,o){case 0:n=t+i;break;case 1:t=n-i}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._x1=n,this},c.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},c.extent=function(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]},c.find=function(e,t){var n,r,i,a,s,u=this._x0,c=this._x1,l=[],d=this._root;for(d&&l.push(new o(d,u,c)),null==t?t=1/0:(u=e-t,c=e+t);a=l.pop();)if(!(!(d=a.node)||(r=a.x0)>c||(i=a.x1)<u))if(d.length){var f=(r+i)/2;l.push(new o(d[1],f,i),new o(d[0],r,f)),(s=+(e>=f))&&(a=l[l.length-1],l[l.length-1]=l[l.length-1-s],l[l.length-1-s]=a)}else{var p=Math.abs(e-+this._x.call(null,d.data));p<t&&(t=p,u=e-p,c=e+p,n=d.data)}return n},c.remove=function(e){if(isNaN(i=+this._x.call(null,e)))return this;var t,n,r,o,i,a,s,u,c,l=this._root,d=this._x0,f=this._x1;if(!l)return this;if(l.length)for(;;){if((s=i>=(a=(d+f)/2))?d=a:f=a,t=l,!(l=l[u=+s]))return this;if(!l.length)break;t[u+1&1]&&(n=t,c=u)}for(;l.data!==e;)if(r=l,!(l=l.next))return this;return(o=l.next)&&delete l.next,r?(o?r.next=o:delete r.next,this):t?(o?t[u]=o:delete t[u],(l=t[0]||t[1])&&l===(t[1]||t[0])&&!l.length&&(n?n[c]=l:this._root=l),this):(this._root=o,this)},c.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},c.root=function(){return this._root},c.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},c.visit=function(e){var t,n,r,i,a=[],s=this._root;for(s&&a.push(new o(s,this._x0,this._x1));t=a.pop();)if(!e(s=t.node,r=t.x0,i=t.x1)&&s.length){var u=(r+i)/2;(n=s[1])&&a.push(new o(n,u,i)),(n=s[0])&&a.push(new o(n,r,u))}return this},c.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._x1));t=n.pop();){var i=t.node;if(i.length){var a,s=t.x0,u=t.x1,c=(s+u)/2;(a=i[0])&&n.push(new o(a,s,c)),(a=i[1])&&n.push(new o(a,c,u))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.x1);return this},c.x=function(e){return arguments.length?(this._x=e,this):this._x}},77137:function(e,t){"use strict";var n={value:function(){}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new o(r)}function o(e){this._=e}function i(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function a(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function s(e,t,r){for(var o=0,i=e.length;o<i;++o)if(e[o].name===t){e[o]=n,e=e.slice(0,o).concat(e.slice(o+1));break}return null!=r&&e.push({name:t,value:r}),e}o.prototype=r.prototype={constructor:o,on:function(e,t){var n,r=this._,o=i(e+"",r),u=-1,c=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++u<c;)if(n=(e=o[u]).type)r[n]=s(r[n],e.name,t);else if(null==t)for(n in r)r[n]=s(r[n],e.name,null);return this}for(;++u<c;)if((n=(e=o[u]).type)&&(n=a(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new o(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}},t.Z=r},20216:function(e,t,n){"use strict";function r(e,t,n){var r,o=1;function i(){var i,a,s=r.length,u=0,c=0,l=0;for(i=0;i<s;++i)u+=(a=r[i]).x||0,c+=a.y||0,l+=a.z||0;for(u=(u/s-e)*o,c=(c/s-t)*o,l=(l/s-n)*o,i=0;i<s;++i)a=r[i],u&&(a.x-=u),c&&(a.y-=c),l&&(a.z-=l)}return null==e&&(e=0),null==t&&(t=0),null==n&&(n=0),i.initialize=function(e){r=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.z=function(e){return arguments.length?(n=+e,i):n},i.strength=function(e){return arguments.length?(o=+e,i):o},i}n.d(t,{Z:function(){return r}})},29437:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},8246:function(e,t,n){"use strict";function r(e){return 1e-6*(e()-.5)}n.d(t,{Z:function(){return r}})},15560:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(29437),o=n(8246);function i(e){return e.index}function a(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function s(e){var t,n,s,u,c,l,d,f=i,p=function(e){return 1/Math.min(c[e.source.index],c[e.target.index])},h=(0,r.Z)(30),m=1;function v(r){for(var i=0,a=e.length;i<m;++i)for(var s,c,f,p,h,v=0,g=0,y=0,b=0;v<a;++v)c=(s=e[v]).source,g=(f=s.target).x+f.vx-c.x-c.vx||(0,o.Z)(d),u>1&&(y=f.y+f.vy-c.y-c.vy||(0,o.Z)(d)),u>2&&(b=f.z+f.vz-c.z-c.vz||(0,o.Z)(d)),g*=p=((p=Math.sqrt(g*g+y*y+b*b))-n[v])/p*r*t[v],y*=p,b*=p,f.vx-=g*(h=l[v]),u>1&&(f.vy-=y*h),u>2&&(f.vz-=b*h),c.vx+=g*(h=1-h),u>1&&(c.vy+=y*h),u>2&&(c.vz+=b*h)}function g(){if(s){var r,o,i=s.length,u=e.length,d=new Map(s.map((function(e,t){return[f(e,t,s),e]})));for(r=0,c=new Array(i);r<u;++r)(o=e[r]).index=r,"object"!==typeof o.source&&(o.source=a(d,o.source)),"object"!==typeof o.target&&(o.target=a(d,o.target)),c[o.source.index]=(c[o.source.index]||0)+1,c[o.target.index]=(c[o.target.index]||0)+1;for(r=0,l=new Array(u);r<u;++r)o=e[r],l[r]=c[o.source.index]/(c[o.source.index]+c[o.target.index]);t=new Array(u),y(),n=new Array(u),b()}}function y(){if(s)for(var n=0,r=e.length;n<r;++n)t[n]=+p(e[n],n,e)}function b(){if(s)for(var t=0,r=e.length;t<r;++t)n[t]=+h(e[t],t,e)}return null==e&&(e=[]),v.initialize=function(e){s=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];d=n.find((function(e){return"function"===typeof e}))||Math.random,u=n.find((function(e){return[1,2,3].includes(e)}))||2,g()},v.links=function(t){return arguments.length?(e=t,g(),v):e},v.id=function(e){return arguments.length?(f=e,v):f},v.iterations=function(e){return arguments.length?(m=+e,v):m},v.strength=function(e){return arguments.length?(p="function"===typeof e?e:(0,r.Z)(+e),y(),v):p},v.distance=function(e){return arguments.length?(h="function"===typeof e?e:(0,r.Z)(+e),b(),v):h},v}},92405:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14275),o=n(60054),i=n(78357),a=n(29437),s=n(8246),u=n(54505);function c(){var e,t,n,c,l,d,f=(0,a.Z)(-30),p=1,h=1/0,m=.81;function v(a){var s,c=e.length,d=(1===t?(0,r.Z)(e,u.x):2===t?(0,o.Z)(e,u.x,u.y):3===t?(0,i.Z)(e,u.x,u.y,u.z):null).visitAfter(y);for(l=a,s=0;s<c;++s)n=e[s],d.visit(b)}function g(){if(e){var t,n,r=e.length;for(d=new Array(r),t=0;t<r;++t)n=e[t],d[n.index]=+f(n,t,e)}}function y(e){var n,r,o,i,a,s,u=0,c=0,l=e.length;if(l){for(o=i=a=s=0;s<l;++s)(n=e[s])&&(r=Math.abs(n.value))&&(u+=n.value,c+=r,o+=r*(n.x||0),i+=r*(n.y||0),a+=r*(n.z||0));u*=Math.sqrt(4/l),e.x=o/c,t>1&&(e.y=i/c),t>2&&(e.z=a/c)}else{(n=e).x=n.data.x,t>1&&(n.y=n.data.y),t>2&&(n.z=n.data.z);do{u+=d[n.data.index]}while(n=n.next)}e.value=u}function b(e,r,o,i,a){if(!e.value)return!0;var u=[o,i,a][t-1],f=e.x-n.x,v=t>1?e.y-n.y:0,g=t>2?e.z-n.z:0,y=u-r,b=f*f+v*v+g*g;if(y*y/m<b)return b<h&&(0===f&&(b+=(f=(0,s.Z)(c))*f),t>1&&0===v&&(b+=(v=(0,s.Z)(c))*v),t>2&&0===g&&(b+=(g=(0,s.Z)(c))*g),b<p&&(b=Math.sqrt(p*b)),n.vx+=f*e.value*l/b,t>1&&(n.vy+=v*e.value*l/b),t>2&&(n.vz+=g*e.value*l/b)),!0;if(!(e.length||b>=h)){(e.data!==n||e.next)&&(0===f&&(b+=(f=(0,s.Z)(c))*f),t>1&&0===v&&(b+=(v=(0,s.Z)(c))*v),t>2&&0===g&&(b+=(g=(0,s.Z)(c))*g),b<p&&(b=Math.sqrt(p*b)));do{e.data!==n&&(y=d[e.data.index]*l/b,n.vx+=f*y,t>1&&(n.vy+=v*y),t>2&&(n.vz+=g*y))}while(e=e.next)}}return v.initialize=function(n){e=n;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];c=o.find((function(e){return"function"===typeof e}))||Math.random,t=o.find((function(e){return[1,2,3].includes(e)}))||2,g()},v.strength=function(e){return arguments.length?(f="function"===typeof e?e:(0,a.Z)(+e),g(),v):f},v.distanceMin=function(e){return arguments.length?(p=e*e,v):Math.sqrt(p)},v.distanceMax=function(e){return arguments.length?(h=e*e,v):Math.sqrt(h)},v.theta=function(e){return arguments.length?(m=e*e,v):Math.sqrt(m)},v}},16917:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(29437);function o(e,t,n,o){var i,a,s,u,c=(0,r.Z)(.1);function l(e){for(var r=0,c=i.length;r<c;++r){var l=i[r],d=l.x-t||1e-6,f=(l.y||0)-n||1e-6,p=(l.z||0)-o||1e-6,h=Math.sqrt(d*d+f*f+p*p),m=(u[r]-h)*s[r]*e/h;l.vx+=d*m,a>1&&(l.vy+=f*m),a>2&&(l.vz+=p*m)}}function d(){if(i){var t,n=i.length;for(s=new Array(n),u=new Array(n),t=0;t<n;++t)u[t]=+e(i[t],t,i),s[t]=isNaN(u[t])?0:+c(i[t],t,i)}}return"function"!==typeof e&&(e=(0,r.Z)(+e)),null==t&&(t=0),null==n&&(n=0),null==o&&(o=0),l.initialize=function(e){i=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a=n.find((function(e){return[1,2,3].includes(e)}))||2,d()},l.strength=function(e){return arguments.length?(c="function"===typeof e?e:(0,r.Z)(+e),d(),l):c},l.radius=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d(),l):e},l.x=function(e){return arguments.length?(t=+e,l):t},l.y=function(e){return arguments.length?(n=+e,l):n},l.z=function(e){return arguments.length?(o=+e,l):o},l}},54505:function(e,t,n){"use strict";n.d(t,{Z:function(){return d},x:function(){return a},y:function(){return s},z:function(){return u}});var r=n(77137),o=n(513),i=4294967296;function a(e){return e.x}function s(e){return e.y}function u(e){return e.z}var c=Math.PI*(3-Math.sqrt(5)),l=20*Math.PI/(9+Math.sqrt(221));function d(e,t){t=t||2;var n,a=Math.min(3,Math.max(1,Math.round(t))),s=1,u=.001,d=1-Math.pow(u,1/300),f=0,p=.6,h=new Map,m=(0,o.HT)(y),v=(0,r.Z)("tick","end"),g=function(){var e=1;return function(){return(e=(1664525*e+1013904223)%i)/i}}();function y(){b(),v.call("tick",n),s<u&&(m.stop(),v.call("end",n))}function b(t){var r,o,i=e.length;void 0===t&&(t=1);for(var u=0;u<t;++u)for(s+=(f-s)*d,h.forEach((function(e){e(s)})),r=0;r<i;++r)null==(o=e[r]).fx?o.x+=o.vx*=p:(o.x=o.fx,o.vx=0),a>1&&(null==o.fy?o.y+=o.vy*=p:(o.y=o.fy,o.vy=0)),a>2&&(null==o.fz?o.z+=o.vz*=p:(o.z=o.fz,o.vz=0));return n}function E(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),null!=t.fz&&(t.z=t.fz),isNaN(t.x)||a>1&&isNaN(t.y)||a>2&&isNaN(t.z)){var o=10*(a>2?Math.cbrt(.5+n):a>1?Math.sqrt(.5+n):n),i=n*c,s=n*l;1===a?t.x=o:2===a?(t.x=o*Math.cos(i),t.y=o*Math.sin(i)):(t.x=o*Math.sin(i)*Math.cos(s),t.y=o*Math.cos(i),t.z=o*Math.sin(i)*Math.sin(s))}(isNaN(t.vx)||a>1&&isNaN(t.vy)||a>2&&isNaN(t.vz))&&(t.vx=0,a>1&&(t.vy=0),a>2&&(t.vz=0))}}function _(t){return t.initialize&&t.initialize(e,g,a),t}return null==e&&(e=[]),E(),n={tick:b,restart:function(){return m.restart(y),n},stop:function(){return m.stop(),n},numDimensions:function(e){return arguments.length?(a=Math.min(3,Math.max(1,Math.round(e))),h.forEach(_),n):a},nodes:function(t){return arguments.length?(e=t,E(),h.forEach(_),n):e},alpha:function(e){return arguments.length?(s=+e,n):s},alphaMin:function(e){return arguments.length?(u=+e,n):u},alphaDecay:function(e){return arguments.length?(d=+e,n):+d},alphaTarget:function(e){return arguments.length?(f=+e,n):f},velocityDecay:function(e){return arguments.length?(p=1-e,n):1-p},randomSource:function(e){return arguments.length?(g=e,h.forEach(_),n):g},force:function(e,t){return arguments.length>1?(null==t?h.delete(e):h.set(e,_(t)),n):h.get(e)},find:function(){var t,n,r,o,i,s,u=Array.prototype.slice.call(arguments),c=u.shift()||0,l=(a>1?u.shift():null)||0,d=(a>2?u.shift():null)||0,f=u.shift()||1/0,p=0,h=e.length;for(f*=f,p=0;p<h;++p)(o=(t=c-(i=e[p]).x)*t+(n=l-(i.y||0))*n+(r=d-(i.z||0))*r)<f&&(s=i,f=o);return s},on:function(e,t){return arguments.length>1?(v.on(e,t),n):v.on(e)}}}},78357:function(e,t,n){"use strict";function r(e,t,n,r,o){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var i,a,s,u,c,l,d,f,p,h,m,v,g=e._root,y={data:o},b=e._x0,E=e._y0,_=e._z0,T=e._x1,w=e._y1,k=e._z1;if(!g)return e._root=y,e;for(;g.length;)if((f=t>=(a=(b+T)/2))?b=a:T=a,(p=n>=(s=(E+w)/2))?E=s:w=s,(h=r>=(u=(_+k)/2))?_=u:k=u,i=g,!(g=g[m=h<<2|p<<1|f]))return i[m]=y,e;if(c=+e._x.call(null,g.data),l=+e._y.call(null,g.data),d=+e._z.call(null,g.data),t===c&&n===l&&r===d)return y.next=g,i?i[m]=y:e._root=y,e;do{i=i?i[m]=new Array(8):e._root=new Array(8),(f=t>=(a=(b+T)/2))?b=a:T=a,(p=n>=(s=(E+w)/2))?E=s:w=s,(h=r>=(u=(_+k)/2))?_=u:k=u}while((m=h<<2|p<<1|f)===(v=(d>=u)<<2|(l>=s)<<1|c>=a));return i[v]=g,i[m]=y,e}function o(e,t,n,r,o,i,a){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=o,this.y1=i,this.z1=a}function i(e){return e[0]}function a(e){return e[1]}function s(e){return e[2]}function u(e,t,n,r){var o=new c(null==t?i:t,null==n?a:n,null==r?s:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==e?o:o.addAll(e)}function c(e,t,n,r,o,i,a,s,u){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=o,this._z0=i,this._x1=a,this._y1=s,this._z1=u,this._root=void 0}function l(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return u}});var d=u.prototype=c.prototype;d.copy=function(){var e,t,n=new c(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return n;if(!r.length)return n._root=l(r),n;for(e=[{source:r,target:n._root=new Array(8)}];r=e.pop();)for(var o=0;o<8;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(8)}):r.target[o]=l(t));return n},d.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e),o=+this._z.call(null,e);return r(this.cover(t,n,o),t,n,o,e)},d.addAll=function(e){var t,n,o,i,a,s=e.length,u=new Array(s),c=new Array(s),l=new Array(s),d=1/0,f=1/0,p=1/0,h=-1/0,m=-1/0,v=-1/0;for(n=0;n<s;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||isNaN(a=+this._z.call(null,t))||(u[n]=o,c[n]=i,l[n]=a,o<d&&(d=o),o>h&&(h=o),i<f&&(f=i),i>m&&(m=i),a<p&&(p=a),a>v&&(v=a));if(d>h||f>m||p>v)return this;for(this.cover(d,f,p).cover(h,m,v),n=0;n<s;++n)r(this,u[n],c[n],l[n],e[n]);return this},d.cover=function(e,t,n){if(isNaN(e=+e)||isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,i=this._z0,a=this._x1,s=this._y1,u=this._z1;if(isNaN(r))a=(r=Math.floor(e))+1,s=(o=Math.floor(t))+1,u=(i=Math.floor(n))+1;else{for(var c,l,d=a-r||1,f=this._root;r>e||e>=a||o>t||t>=s||i>n||n>=u;)switch(l=(n<i)<<2|(t<o)<<1|e<r,(c=new Array(8))[l]=f,f=c,d*=2,l){case 0:a=r+d,s=o+d,u=i+d;break;case 1:r=a-d,s=o+d,u=i+d;break;case 2:a=r+d,o=s-d,u=i+d;break;case 3:r=a-d,o=s-d,u=i+d;break;case 4:a=r+d,s=o+d,i=u-d;break;case 5:r=a-d,s=o+d,i=u-d;break;case 6:a=r+d,o=s-d,i=u-d;break;case 7:r=a-d,o=s-d,i=u-d}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=o,this._z0=i,this._x1=a,this._y1=s,this._z1=u,this},d.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},d.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]},d.find=function(e,t,n,r){var i,a,s,u,c,l,d,f,p,h=this._x0,m=this._y0,v=this._z0,g=this._x1,y=this._y1,b=this._z1,E=[],_=this._root;for(_&&E.push(new o(_,h,m,v,g,y,b)),null==r?r=1/0:(h=e-r,m=t-r,v=n-r,g=e+r,y=t+r,b=n+r,r*=r);f=E.pop();)if(!(!(_=f.node)||(a=f.x0)>g||(s=f.y0)>y||(u=f.z0)>b||(c=f.x1)<h||(l=f.y1)<m||(d=f.z1)<v))if(_.length){var T=(a+c)/2,w=(s+l)/2,k=(u+d)/2;E.push(new o(_[7],T,w,k,c,l,d),new o(_[6],a,w,k,T,l,d),new o(_[5],T,s,k,c,w,d),new o(_[4],a,s,k,T,w,d),new o(_[3],T,w,u,c,l,k),new o(_[2],a,w,u,T,l,k),new o(_[1],T,s,u,c,w,k),new o(_[0],a,s,u,T,w,k)),(p=(n>=k)<<2|(t>=w)<<1|e>=T)&&(f=E[E.length-1],E[E.length-1]=E[E.length-1-p],E[E.length-1-p]=f)}else{var x=e-+this._x.call(null,_.data),O=t-+this._y.call(null,_.data),C=n-+this._z.call(null,_.data),A=x*x+O*O+C*C;if(A<r){var S=Math.sqrt(r=A);h=e-S,m=t-S,v=n-S,g=e+S,y=t+S,b=n+S,i=_.data}}return i},d.remove=function(e){if(isNaN(i=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e))||isNaN(s=+this._z.call(null,e)))return this;var t,n,r,o,i,a,s,u,c,l,d,f,p,h,m,v=this._root,g=this._x0,y=this._y0,b=this._z0,E=this._x1,_=this._y1,T=this._z1;if(!v)return this;if(v.length)for(;;){if((d=i>=(u=(g+E)/2))?g=u:E=u,(f=a>=(c=(y+_)/2))?y=c:_=c,(p=s>=(l=(b+T)/2))?b=l:T=l,t=v,!(v=v[h=p<<2|f<<1|d]))return this;if(!v.length)break;(t[h+1&7]||t[h+2&7]||t[h+3&7]||t[h+4&7]||t[h+5&7]||t[h+6&7]||t[h+7&7])&&(n=t,m=h)}for(;v.data!==e;)if(r=v,!(v=v.next))return this;return(o=v.next)&&delete v.next,r?(o?r.next=o:delete r.next,this):t?(o?t[h]=o:delete t[h],(v=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&v===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!v.length&&(n?n[m]=v:this._root=v),this):(this._root=o,this)},d.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},d.root=function(){return this._root},d.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},d.visit=function(e){var t,n,r,i,a,s,u,c,l=[],d=this._root;for(d&&l.push(new o(d,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=l.pop();)if(!e(d=t.node,r=t.x0,i=t.y0,a=t.z0,s=t.x1,u=t.y1,c=t.z1)&&d.length){var f=(r+s)/2,p=(i+u)/2,h=(a+c)/2;(n=d[7])&&l.push(new o(n,f,p,h,s,u,c)),(n=d[6])&&l.push(new o(n,r,p,h,f,u,c)),(n=d[5])&&l.push(new o(n,f,i,h,s,p,c)),(n=d[4])&&l.push(new o(n,r,i,h,f,p,c)),(n=d[3])&&l.push(new o(n,f,p,a,s,u,h)),(n=d[2])&&l.push(new o(n,r,p,a,f,u,h)),(n=d[1])&&l.push(new o(n,f,i,a,s,p,h)),(n=d[0])&&l.push(new o(n,r,i,a,f,p,h))}return this},d.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=n.pop();){var i=t.node;if(i.length){var a,s=t.x0,u=t.y0,c=t.z0,l=t.x1,d=t.y1,f=t.z1,p=(s+l)/2,h=(u+d)/2,m=(c+f)/2;(a=i[0])&&n.push(new o(a,s,u,c,p,h,m)),(a=i[1])&&n.push(new o(a,p,u,c,l,h,m)),(a=i[2])&&n.push(new o(a,s,h,c,p,d,m)),(a=i[3])&&n.push(new o(a,p,h,c,l,d,m)),(a=i[4])&&n.push(new o(a,s,u,m,p,h,f)),(a=i[5])&&n.push(new o(a,p,u,m,l,h,f)),(a=i[6])&&n.push(new o(a,s,h,m,p,d,f)),(a=i[7])&&n.push(new o(a,p,h,m,l,d,f))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.z0,t.x1,t.y1,t.z1);return this},d.x=function(e){return arguments.length?(this._x=e,this):this._x},d.y=function(e){return arguments.length?(this._y=e,this):this._y},d.z=function(e){return arguments.length?(this._z=e,this):this._z}},60054:function(e,t,n){"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,i,a,s,u,c,l,d,f,p=e._root,h={data:r},m=e._x0,v=e._y0,g=e._x1,y=e._y1;if(!p)return e._root=h,e;for(;p.length;)if((c=t>=(i=(m+g)/2))?m=i:g=i,(l=n>=(a=(v+y)/2))?v=a:y=a,o=p,!(p=p[d=l<<1|c]))return o[d]=h,e;if(s=+e._x.call(null,p.data),u=+e._y.call(null,p.data),t===s&&n===u)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(c=t>=(i=(m+g)/2))?m=i:g=i,(l=n>=(a=(v+y)/2))?v=a:y=a}while((d=l<<1|c)===(f=(u>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}function o(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function i(e){return e[0]}function a(e){return e[1]}function s(e,t,n){var r=new u(null==t?i:t,null==n?a:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function u(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return s}});var l=s.prototype=u.prototype;l.copy=function(){var e,t,n=new u(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=c(t));return n},l.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},l.addAll=function(e){var t,n,o,i,a=e.length,s=new Array(a),u=new Array(a),c=1/0,l=1/0,d=-1/0,f=-1/0;for(n=0;n<a;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=o,u[n]=i,o<c&&(c=o),o>d&&(d=o),i<l&&(l=i),i>f&&(f=i));if(c>d||l>f)return this;for(this.cover(c,l).cover(d,f),n=0;n<a;++n)r(this,s[n],u[n],e[n]);return this},l.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,i=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var a,s,u=o-n||1,c=this._root;n>e||e>=o||r>t||t>=i;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=c,c=a,u*=2,s){case 0:o=n+u,i=r+u;break;case 1:n=o-u,i=r+u;break;case 2:o=n+u,r=i-u;break;case 3:n=o-u,r=i-u}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},l.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},l.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(e,t,n){var r,i,a,s,u,c,l,d=this._x0,f=this._y0,p=this._x1,h=this._y1,m=[],v=this._root;for(v&&m.push(new o(v,d,f,p,h)),null==n?n=1/0:(d=e-n,f=t-n,p=e+n,h=t+n,n*=n);c=m.pop();)if(!(!(v=c.node)||(i=c.x0)>p||(a=c.y0)>h||(s=c.x1)<d||(u=c.y1)<f))if(v.length){var g=(i+s)/2,y=(a+u)/2;m.push(new o(v[3],g,y,s,u),new o(v[2],i,y,g,u),new o(v[1],g,a,s,y),new o(v[0],i,a,g,y)),(l=(t>=y)<<1|e>=g)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-l],m[m.length-1-l]=c)}else{var b=e-+this._x.call(null,v.data),E=t-+this._y.call(null,v.data),_=b*b+E*E;if(_<n){var T=Math.sqrt(n=_);d=e-T,f=t-T,p=e+T,h=t+T,r=v.data}}return r},l.remove=function(e){if(isNaN(i=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,o,i,a,s,u,c,l,d,f,p=this._root,h=this._x0,m=this._y0,v=this._x1,g=this._y1;if(!p)return this;if(p.length)for(;;){if((c=i>=(s=(h+v)/2))?h=s:v=s,(l=a>=(u=(m+g)/2))?m=u:g=u,t=p,!(p=p[d=l<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},l.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},l.root=function(){return this._root},l.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},l.visit=function(e){var t,n,r,i,a,s,u=[],c=this._root;for(c&&u.push(new o(c,this._x0,this._y0,this._x1,this._y1));t=u.pop();)if(!e(c=t.node,r=t.x0,i=t.y0,a=t.x1,s=t.y1)&&c.length){var l=(r+a)/2,d=(i+s)/2;(n=c[3])&&u.push(new o(n,l,d,a,s)),(n=c[2])&&u.push(new o(n,r,d,l,s)),(n=c[1])&&u.push(new o(n,l,i,a,d)),(n=c[0])&&u.push(new o(n,r,i,l,d))}return this},l.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var a,s=t.x0,u=t.y0,c=t.x1,l=t.y1,d=(s+c)/2,f=(u+l)/2;(a=i[0])&&n.push(new o(a,s,u,d,f)),(a=i[1])&&n.push(new o(a,d,u,c,f)),(a=i[2])&&n.push(new o(a,s,f,d,l)),(a=i[3])&&n.push(new o(a,d,f,c,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},l.x=function(e){return arguments.length?(this._x=e,this):this._x},l.y=function(e){return arguments.length?(this._y=e,this):this._y}},47646:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},72462:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});class r extends Map{constructor(e,t=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(i(this,e),t)}delete(e){return super.delete(a(this,e))}}Set;function o({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function a({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function s(e){return null!==e&&"object"===typeof e?e.valueOf():e}function u(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function c(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=Symbol("implicit");function f(){var e=new r,t=[],n=[],o=d;function i(r){var i=e.get(r);if(void 0===i){if(o!==d)return o;e.set(r,i=t.push(r)-1)}return n[i%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;var o,a=c(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;e.has(s)||e.set(s,t.push(s)-1)}}catch(u){a.e(u)}finally{a.f()}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(o=e,i):o},i.copy=function(){return f(t,n).unknown(o)},u.apply(i,arguments),i}},513:function(e,t,n){"use strict";n.d(t,{zO:function(){return p},B7:function(){return m},HT:function(){return v}});var r,o,i=0,a=0,s=0,u=0,c=0,l=0,d="object"===typeof performance&&performance.now?performance:Date,f=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function p(){return c||(f(h),c=d.now()+l)}function h(){c=0}function m(){this._call=this._time=this._next=null}function v(e,t,n){var r=new m;return r.restart(e,t,n),r}function g(){c=(u=d.now())+l,i=a=0;try{!function(){p(),++i;for(var e,t=r;t;)(e=c-t._time)>=0&&t._call.call(void 0,e),t=t._next;--i}()}finally{i=0,function(){var e,t,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,b(i)}(),c=0}}function y(){var e=d.now(),t=e-u;t>1e3&&(l-=t,u=e)}function b(e){i||(a&&(a=clearTimeout(a)),e-c>24?(e<1/0&&(a=setTimeout(g,e-d.now()-l)),s&&(s=clearInterval(s))):(s||(u=d.now(),s=setInterval(y,1e3)),i=1,f(g)))}m.prototype=v.prototype={constructor:m,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},74477:function(){},9008:function(e,t,n){e.exports=n(92775)},84245:function(e){e.exports=function(e){!function(e){if(!e)throw new Error("Eventify cannot use falsy object as events subject");for(var t=["on","fire","off"],n=0;n<t.length;++n)if(e.hasOwnProperty(t[n]))throw new Error("Subject cannot be eventified, since it already has property '"+t[n]+"'")}(e);var t=function(e){var t=Object.create(null);return{on:function(n,r,o){if("function"!==typeof r)throw new Error("callback is expected to be a function");var i=t[n];return i||(i=t[n]=[]),i.push({callback:r,ctx:o}),e},off:function(n,r){if("undefined"===typeof n)return t=Object.create(null),e;if(t[n])if("function"!==typeof r)delete t[n];else for(var o=t[n],i=0;i<o.length;++i)o[i].callback===r&&o.splice(i,1);return e},fire:function(n){var r,o=t[n];if(!o)return e;arguments.length>1&&(r=Array.prototype.splice.call(arguments,1));for(var i=0;i<o.length;++i){var a=o[i];a.callback.apply(a.ctx,r)}return e}}}(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e}},16505:function(e,t,n){e.exports=function(e,t){if(!e)throw new Error("Graph structure cannot be undefined");var i=(t&&t.createSimulator||n(45818))(t);if(Array.isArray(t))throw new Error("Physics settings is expected to be an object");var a=function(t){var n=e.getLinks(t);return n?1+n.length/3:1};t&&"function"===typeof t.nodeMass&&(a=t.nodeMass);var s=new Map,u={},c=0,l=i.settings.springTransform||o;c=0,e.forEachNode((function(e){v(e.id),c+=1})),e.forEachLink(y),e.on("changed",m);var d=!1,f={step:function(){if(0===c)return p(!0),!0;var e=i.step();f.lastMove=e,f.fire("step");var t=e/c<=.01;return p(t),t},getNodePosition:function(e){return _(e).pos},setNodePosition:function(e){var t=_(e);t.setPosition.apply(t,Array.prototype.slice.call(arguments,1))},getLinkPosition:function(e){var t=u[e];if(t)return{from:t.from.pos,to:t.to.pos}},getGraphRect:function(){return i.getBBox()},forEachBody:h,pinNode:function(e,t){_(e.id).isPinned=!!t},isNodePinned:function(e){return _(e.id).isPinned},dispose:function(){e.off("changed",m),f.fire("disposed")},getBody:function(e){return s.get(e)},getSpring:function(t,n){var r;if(void 0===n)r="object"!==typeof t?t:t.id;else{var o=e.hasLink(t,n);if(!o)return;r=o.id}return u[r]},getForceVectorLength:function(){var e=0,t=0;return h((function(n){e+=Math.abs(n.force.x),t+=Math.abs(n.force.y)})),Math.sqrt(e*e+t*t)},simulator:i,graph:e,lastMove:0};return r(f),f;function p(e){var t;d!==e&&(d=e,t=e,f.fire("stable",t))}function h(e){s.forEach(e)}function m(t){for(var n=0;n<t.length;++n){var r=t[n];"add"===r.changeType?(r.node&&v(r.node.id),r.link&&y(r.link)):"remove"===r.changeType&&(r.node&&g(r.node),r.link&&b(r.link))}c=e.getNodesCount()}function v(t){var n=s.get(t);if(!n){var r=e.getNode(t);if(!r)throw new Error("initBody() was called with unknown node id");var o=r.position;if(!o){var a=function(e){var t=[];if(!e.links)return t;for(var n=Math.min(e.links.length,2),r=0;r<n;++r){var o=e.links[r],i=o.fromId!==e.id?s.get(o.fromId):s.get(o.toId);i&&i.pos&&t.push(i)}return t}(r);o=i.getBestNewBodyPosition(a)}(n=i.addBodyAt(o)).id=t,s.set(t,n),E(t),function(e){return e&&(e.isPinned||e.data&&e.data.isPinned)}(r)&&(n.isPinned=!0)}}function g(e){var t=e.id,n=s.get(t);n&&(s.delete(t),i.removeBody(n))}function y(e){E(e.fromId),E(e.toId);var t=s.get(e.fromId),n=s.get(e.toId),r=i.addSpring(t,n,e.length);l(e,r),u[e.id]=r}function b(t){var n=u[t.id];if(n){var r=e.getNode(t.fromId),o=e.getNode(t.toId);r&&E(r.id),o&&E(o.id),delete u[t.id],i.removeSpring(n)}}function E(e){var t=s.get(e);if(t.mass=a(e),Number.isNaN(t.mass))throw new Error("Node mass should be a number")}function _(e){var t=s.get(e);return t||(v(e),t=s.get(e)),t}},e.exports.simulator=n(45818);var r=n(84245);function o(){}},15189:function(e,t,n){const r=n(16422);e.exports=function(e){return function(t,n){let o=n&&n.indent||0,i=n&&void 0!==n.join?n.join:"\n",a=Array(o+1).join(" "),s=[];for(let u=0;u<e;++u){let e=r(u),n=0===u?"":a;s.push(n+t.replace(/{var}/g,e))}return s.join(i)}}},30891:function(e,t,n){e.exports=function(e){let t=o(e);return new Function("bodies","settings","random",t)},e.exports.generateFunctionBody=o;const r=n(15189);function o(e){let t=r(e);return`\n  var boundingBox = {\n    ${t("min_{var}: 0, max_{var}: 0,",{indent:4})}\n  };\n\n  return {\n    box: boundingBox,\n\n    update: updateBoundingBox,\n\n    reset: resetBoundingBox,\n\n    getBestNewPosition: function (neighbors) {\n      var ${t("base_{var} = 0",{join:", "})};\n\n      if (neighbors.length) {\n        for (var i = 0; i < neighbors.length; ++i) {\n          let neighborPos = neighbors[i].pos;\n          ${t("base_{var} += neighborPos.{var};",{indent:10})}\n        }\n\n        ${t("base_{var} /= neighbors.length;",{indent:8})}\n      } else {\n        ${t("base_{var} = (boundingBox.min_{var} + boundingBox.max_{var}) / 2;",{indent:8})}\n      }\n\n      var springLength = settings.springLength;\n      return {\n        ${t("{var}: base_{var} + (random.nextDouble() - 0.5) * springLength,",{indent:8})}\n      };\n    }\n  };\n\n  function updateBoundingBox() {\n    var i = bodies.length;\n    if (i === 0) return; // No bodies - no borders.\n\n    ${t("var max_{var} = -Infinity;",{indent:4})}\n    ${t("var min_{var} = Infinity;",{indent:4})}\n\n    while(i--) {\n      // this is O(n), it could be done faster with quadtree, if we check the root node bounds\n      var bodyPos = bodies[i].pos;\n      ${t("if (bodyPos.{var} < min_{var}) min_{var} = bodyPos.{var};",{indent:6})}\n      ${t("if (bodyPos.{var} > max_{var}) max_{var} = bodyPos.{var};",{indent:6})}\n    }\n\n    ${t("boundingBox.min_{var} = min_{var};",{indent:4})}\n    ${t("boundingBox.max_{var} = max_{var};",{indent:4})}\n  }\n\n  function resetBoundingBox() {\n    ${t("boundingBox.min_{var} = boundingBox.max_{var} = 0;",{indent:4})}\n  }\n`}},6410:function(e,t,n){const r=n(15189);function o(e,t){return`\n${a(e,t)}\n${i(e)}\nreturn {Body: Body, Vector: Vector};\n`}function i(e){let t=r(e),n=t("{var}",{join:", "});return`\nfunction Body(${n}) {\n  this.isPinned = false;\n  this.pos = new Vector(${n});\n  this.force = new Vector();\n  this.velocity = new Vector();\n  this.mass = 1;\n\n  this.springCount = 0;\n  this.springLength = 0;\n}\n\nBody.prototype.reset = function() {\n  this.force.reset();\n  this.springCount = 0;\n  this.springLength = 0;\n}\n\nBody.prototype.setPosition = function (${n}) {\n  ${t("this.pos.{var} = {var} || 0;",{indent:2})}\n};`}function a(e,t){let n=r(e),o="";return t&&(o=`${n("\n   var v{var};\nObject.defineProperty(this, '{var}', {\n  set: function(v) { \n    if (!Number.isFinite(v)) throw new Error('Cannot set non-numbers to {var}');\n    v{var} = v; \n  },\n  get: function() { return v{var}; }\n});")}`),`function Vector(${n("{var}",{join:", "})}) {\n  ${o}\n    if (typeof arguments[0] === 'object') {\n      // could be another vector\n      let v = arguments[0];\n      ${n('if (!Number.isFinite(v.{var})) throw new Error("Expected value is not a finite number at Vector constructor ({var})");',{indent:4})}\n      ${n("this.{var} = v.{var};",{indent:4})}\n    } else {\n      ${n('this.{var} = typeof {var} === "number" ? {var} : 0;',{indent:4})}\n    }\n  }\n  \n  Vector.prototype.reset = function () {\n    ${n("this.{var} = ",{join:""})}0;\n  };`}e.exports=function(e,t){let n=o(e,t),{Body:r}=new Function(n)();return r},e.exports.generateCreateBodyFunctionBody=o,e.exports.getVectorCode=a,e.exports.getBodyCode=i},36647:function(e,t,n){const r=n(15189);function o(e){return`\n  if (!Number.isFinite(options.dragCoefficient)) throw new Error('dragCoefficient is not a finite number');\n\n  return {\n    update: function(body) {\n      ${r(e)("body.force.{var} -= options.dragCoefficient * body.velocity.{var};",{indent:6})}\n    }\n  };\n`}e.exports=function(e){let t=o(e);return new Function("options",t)},e.exports.generateCreateDragForceFunctionBody=o},34079:function(e,t,n){const r=n(15189);function o(e){let t=r(e);return`\n  if (!Number.isFinite(options.springCoefficient)) throw new Error('Spring coefficient is not a number');\n  if (!Number.isFinite(options.springLength)) throw new Error('Spring length is not a number');\n\n  return {\n    /**\n     * Updates forces acting on a spring\n     */\n    update: function (spring) {\n      var body1 = spring.from;\n      var body2 = spring.to;\n      var length = spring.length < 0 ? options.springLength : spring.length;\n      ${t("var d{var} = body2.pos.{var} - body1.pos.{var};",{indent:6})}\n      var r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n      if (r === 0) {\n        ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:8})}\n        r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n      }\n\n      var d = r - length;\n      var coefficient = ((spring.coefficient > 0) ? spring.coefficient : options.springCoefficient) * d / r;\n\n      ${t("body1.force.{var} += coefficient * d{var}",{indent:6})};\n      body1.springCount += 1;\n      body1.springLength += r;\n\n      ${t("body2.force.{var} -= coefficient * d{var}",{indent:6})};\n      body2.springCount += 1;\n      body2.springLength += r;\n    }\n  };\n`}e.exports=function(e){let t=o(e);return new Function("options","random",t)},e.exports.generateCreateSpringForceFunctionBody=o},51763:function(e,t,n){const r=n(15189);function o(e){let t=r(e);return`\n  var length = bodies.length;\n  if (length === 0) return 0;\n\n  ${t("var d{var} = 0, t{var} = 0;",{indent:2})}\n\n  for (var i = 0; i < length; ++i) {\n    var body = bodies[i];\n    if (body.isPinned) continue;\n\n    if (adaptiveTimeStepWeight && body.springCount) {\n      timeStep = (adaptiveTimeStepWeight * body.springLength/body.springCount);\n    }\n\n    var coeff = timeStep / body.mass;\n\n    ${t("body.velocity.{var} += coeff * body.force.{var};",{indent:4})}\n    ${t("var v{var} = body.velocity.{var};",{indent:4})}\n    var v = Math.sqrt(${t("v{var} * v{var}",{join:" + "})});\n\n    if (v > 1) {\n      // We normalize it so that we move within timeStep range. \n      // for the case when v <= 1 - we let velocity to fade out.\n      ${t("body.velocity.{var} = v{var} / v;",{indent:6})}\n    }\n\n    ${t("d{var} = timeStep * body.velocity.{var};",{indent:4})}\n\n    ${t("body.pos.{var} += d{var};",{indent:4})}\n\n    ${t("t{var} += Math.abs(d{var});",{indent:4})}\n  }\n\n  return (${t("t{var} * t{var}",{join:" + "})})/length;\n`}e.exports=function(e){let t=o(e);return new Function("bodies","timeStep","adaptiveTimeStepWeight",t)},e.exports.generateIntegratorFunctionBody=o},1584:function(e,t,n){const r=n(15189),o=n(16422);function i(e){let t=r(e),n=Math.pow(2,e);return`\n${l()}\n${c(e)}\n${a(e)}\n${u(e)}\n${s(e)}\n\nfunction createQuadTree(options, random) {\n  options = options || {};\n  options.gravity = typeof options.gravity === 'number' ? options.gravity : -1;\n  options.theta = typeof options.theta === 'number' ? options.theta : 0.8;\n\n  var gravity = options.gravity;\n  var updateQueue = [];\n  var insertStack = new InsertStack();\n  var theta = options.theta;\n\n  var nodesCache = [];\n  var currentInCache = 0;\n  var root = newNode();\n\n  return {\n    insertBodies: insertBodies,\n\n    /**\n     * Gets root node if it is present\n     */\n    getRoot: function() {\n      return root;\n    },\n\n    updateBodyForce: update,\n\n    options: function(newOptions) {\n      if (newOptions) {\n        if (typeof newOptions.gravity === 'number') {\n          gravity = newOptions.gravity;\n        }\n        if (typeof newOptions.theta === 'number') {\n          theta = newOptions.theta;\n        }\n\n        return this;\n      }\n\n      return {\n        gravity: gravity,\n        theta: theta\n      };\n    }\n  };\n\n  function newNode() {\n    // To avoid pressure on GC we reuse nodes.\n    var node = nodesCache[currentInCache];\n    if (node) {\n${function(e){let t=[];for(let r=0;r<n;++r)t.push(`${e}quad${r} = null;`);return t.join("\n")}("      node.")}\n      node.body = null;\n      node.mass = ${t("node.mass_{var} = ",{join:""})}0;\n      ${t("node.min_{var} = node.max_{var} = ",{join:""})}0;\n    } else {\n      node = new QuadNode();\n      nodesCache[currentInCache] = node;\n    }\n\n    ++currentInCache;\n    return node;\n  }\n\n  function update(sourceBody) {\n    var queue = updateQueue;\n    var v;\n    ${t("var d{var};",{indent:4})}\n    var r; \n    ${t("var f{var} = 0;",{indent:4})}\n    var queueLength = 1;\n    var shiftIdx = 0;\n    var pushIdx = 1;\n\n    queue[0] = root;\n\n    while (queueLength) {\n      var node = queue[shiftIdx];\n      var body = node.body;\n\n      queueLength -= 1;\n      shiftIdx += 1;\n      var differentBody = (body !== sourceBody);\n      if (body && differentBody) {\n        // If the current node is a leaf node (and it is not source body),\n        // calculate the force exerted by the current node on body, and add this\n        // amount to body's net force.\n        ${t("d{var} = body.pos.{var} - sourceBody.pos.{var};",{indent:8})}\n        r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n        if (r === 0) {\n          // Poor man's protection against zero distance.\n          ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:10})}\n          r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n        }\n\n        // This is standard gravitation force calculation but we divide\n        // by r^3 to save two operations when normalizing force vector.\n        v = gravity * body.mass * sourceBody.mass / (r * r * r);\n        ${t("f{var} += v * d{var};",{indent:8})}\n      } else if (differentBody) {\n        // Otherwise, calculate the ratio s / r,  where s is the width of the region\n        // represented by the internal node, and r is the distance between the body\n        // and the node's center-of-mass\n        ${t("d{var} = node.mass_{var} / node.mass - sourceBody.pos.{var};",{indent:8})}\n        r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n        if (r === 0) {\n          // Sorry about code duplication. I don't want to create many functions\n          // right away. Just want to see performance first.\n          ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:10})}\n          r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n        }\n        // If s / r < \u03b8, treat this internal node as a single body, and calculate the\n        // force it exerts on sourceBody, and add this amount to sourceBody's net force.\n        if ((node.max_${o(0)} - node.min_${o(0)}) / r < theta) {\n          // in the if statement above we consider node's width only\n          // because the region was made into square during tree creation.\n          // Thus there is no difference between using width or height.\n          v = gravity * node.mass * sourceBody.mass / (r * r * r);\n          ${t("f{var} += v * d{var};",{indent:10})}\n        } else {\n          // Otherwise, run the procedure recursively on each of the current node's children.\n\n          // I intentionally unfolded this loop, to save several CPU cycles.\n${function(){let e=Array(11).join(" "),t=[];for(let r=0;r<n;++r)t.push(e+`if (node.quad${r}) {`),t.push(e+`  queue[pushIdx] = node.quad${r};`),t.push(e+"  queueLength += 1;"),t.push(e+"  pushIdx += 1;"),t.push(e+"}");return t.join("\n")}()}\n        }\n      }\n    }\n\n    ${t("sourceBody.force.{var} += f{var};",{indent:4})}\n  }\n\n  function insertBodies(bodies) {\n    ${t("var {var}min = Number.MAX_VALUE;",{indent:4})}\n    ${t("var {var}max = Number.MIN_VALUE;",{indent:4})}\n    var i = bodies.length;\n\n    // To reduce quad tree depth we are looking for exact bounding box of all particles.\n    while (i--) {\n      var pos = bodies[i].pos;\n      ${t("if (pos.{var} < {var}min) {var}min = pos.{var};",{indent:6})}\n      ${t("if (pos.{var} > {var}max) {var}max = pos.{var};",{indent:6})}\n    }\n\n    // Makes the bounds square.\n    var maxSideLength = -Infinity;\n    ${t("if ({var}max - {var}min > maxSideLength) maxSideLength = {var}max - {var}min ;",{indent:4})}\n\n    currentInCache = 0;\n    root = newNode();\n    ${t("root.min_{var} = {var}min;",{indent:4})}\n    ${t("root.max_{var} = {var}min + maxSideLength;",{indent:4})}\n\n    i = bodies.length - 1;\n    if (i >= 0) {\n      root.body = bodies[i];\n    }\n    while (i--) {\n      insert(bodies[i], root);\n    }\n  }\n\n  function insert(newBody) {\n    insertStack.reset();\n    insertStack.push(root, newBody);\n\n    while (!insertStack.isEmpty()) {\n      var stackItem = insertStack.pop();\n      var node = stackItem.node;\n      var body = stackItem.body;\n\n      if (!node.body) {\n        // This is internal node. Update the total mass of the node and center-of-mass.\n        ${t("var {var} = body.pos.{var};",{indent:8})}\n        node.mass += body.mass;\n        ${t("node.mass_{var} += body.mass * {var};",{indent:8})}\n\n        // Recursively insert the body in the appropriate quadrant.\n        // But first find the appropriate quadrant.\n        var quadIdx = 0; // Assume we are in the 0's quad.\n        ${t("var min_{var} = node.min_{var};",{indent:8})}\n        ${t("var max_{var} = (min_{var} + node.max_{var}) / 2;",{indent:8})}\n\n${function(t){let n=[],r=Array(t+1).join(" ");for(let i=0;i<e;++i)n.push(r+`if (${o(i)} > max_${o(i)}) {`),n.push(r+`  quadIdx = quadIdx + ${Math.pow(2,i)};`),n.push(r+`  min_${o(i)} = max_${o(i)};`),n.push(r+`  max_${o(i)} = node.max_${o(i)};`),n.push(r+"}");return n.join("\n")}(8)}\n\n        var child = getChild(node, quadIdx);\n\n        if (!child) {\n          // The node is internal but this quadrant is not taken. Add\n          // subnode to it.\n          child = newNode();\n          ${t("child.min_{var} = min_{var};",{indent:10})}\n          ${t("child.max_{var} = max_{var};",{indent:10})}\n          child.body = body;\n\n          setChild(node, quadIdx, child);\n        } else {\n          // continue searching in this quadrant.\n          insertStack.push(child, body);\n        }\n      } else {\n        // We are trying to add to the leaf node.\n        // We have to convert current leaf into internal node\n        // and continue adding two nodes.\n        var oldBody = node.body;\n        node.body = null; // internal nodes do not cary bodies\n\n        if (isSamePosition(oldBody.pos, body.pos)) {\n          // Prevent infinite subdivision by bumping one node\n          // anywhere in this quadrant\n          var retriesCount = 3;\n          do {\n            var offset = random.nextDouble();\n            ${t("var d{var} = (node.max_{var} - node.min_{var}) * offset;",{indent:12})}\n\n            ${t("oldBody.pos.{var} = node.min_{var} + d{var};",{indent:12})}\n            retriesCount -= 1;\n            // Make sure we don't bump it out of the box. If we do, next iteration should fix it\n          } while (retriesCount > 0 && isSamePosition(oldBody.pos, body.pos));\n\n          if (retriesCount === 0 && isSamePosition(oldBody.pos, body.pos)) {\n            // This is very bad, we ran out of precision.\n            // if we do not return from the method we'll get into\n            // infinite loop here. So we sacrifice correctness of layout, and keep the app running\n            // Next layout iteration should get larger bounding box in the first step and fix this\n            return;\n          }\n        }\n        // Next iteration should subdivide node further.\n        insertStack.push(node, oldBody);\n        insertStack.push(node, body);\n      }\n    }\n  }\n}\nreturn createQuadTree;\n\n`}function a(e){let t=r(e);return`\n  function isSamePosition(point1, point2) {\n    ${t("var d{var} = Math.abs(point1.{var} - point2.{var});",{indent:2})}\n  \n    return ${t("d{var} < 1e-8",{join:" && "})};\n  }  \n`}function s(e){var t=Math.pow(2,e);return`\nfunction setChild(node, idx, child) {\n  ${function(){let e=[];for(let n=0;n<t;++n){let t=0===n?"  ":"  else ";e.push(`${t}if (idx === ${n}) node.quad${n} = child;`)}return e.join("\n")}()}\n}`}function u(e){return`function getChild(node, idx) {\n${function(){let t=[],n=Math.pow(2,e);for(let e=0;e<n;++e)t.push(`  if (idx === ${e}) return node.quad${e};`);return t.join("\n")}()}\n  return null;\n}`}function c(e){let t=r(e),n=Math.pow(2,e);return`\nfunction QuadNode() {\n  // body stored inside this node. In quad tree only leaf nodes (by construction)\n  // contain bodies:\n  this.body = null;\n\n  // Child nodes are stored in quads. Each quad is presented by number:\n  // 0 | 1\n  // -----\n  // 2 | 3\n${function(e){let t=[];for(let r=0;r<n;++r)t.push(`${e}quad${r} = null;`);return t.join("\n")}("  this.")}\n\n  // Total mass of current node\n  this.mass = 0;\n\n  // Center of mass coordinates\n  ${t("this.mass_{var} = 0;",{indent:2})}\n\n  // bounding box coordinates\n  ${t("this.min_{var} = 0;",{indent:2})}\n  ${t("this.max_{var} = 0;",{indent:2})}\n}\n`}function l(){return"\n/**\n * Our implementation of QuadTree is non-recursive to avoid GC hit\n * This data structure represent stack of elements\n * which we are trying to insert into quad tree.\n */\nfunction InsertStack () {\n    this.stack = [];\n    this.popIdx = 0;\n}\n\nInsertStack.prototype = {\n    isEmpty: function() {\n        return this.popIdx === 0;\n    },\n    push: function (node, body) {\n        var item = this.stack[this.popIdx];\n        if (!item) {\n            // we are trying to avoid memory pressure: create new element\n            // only when absolutely necessary\n            this.stack[this.popIdx] = new InsertStackElement(node, body);\n        } else {\n            item.node = node;\n            item.body = body;\n        }\n        ++this.popIdx;\n    },\n    pop: function () {\n        if (this.popIdx > 0) {\n            return this.stack[--this.popIdx];\n        }\n    },\n    reset: function () {\n        this.popIdx = 0;\n    }\n};\n\nfunction InsertStackElement(node, body) {\n    this.node = node; // QuadTree node\n    this.body = body; // physical body which needs to be inserted to node\n}\n"}e.exports=function(e){let t=i(e);return new Function(t)()},e.exports.generateQuadTreeFunctionBody=i,e.exports.getInsertStackCode=l,e.exports.getQuadNodeCode=c,e.exports.isSamePosition=a,e.exports.getChildBodyCode=u,e.exports.setChildBodyCode=s},16422:function(e){e.exports=function(e){return 0===e?"x":1===e?"y":2===e?"z":"c"+(e+1)}},45818:function(e,t,n){e.exports=function(e){var t=n(68403),d=n(35510),f=n(84245);if(e){if(void 0!==e.springCoeff)throw new Error("springCoeff was renamed to springCoefficient");if(void 0!==e.dragCoeff)throw new Error("dragCoeff was renamed to dragCoefficient")}e=d(e,{springLength:10,springCoefficient:.8,gravity:-12,theta:.8,dragCoefficient:.9,timeStep:.5,adaptiveTimeStepWeight:0,dimensions:2,debug:!1});var p=c[e.dimensions];if(!p){var h=e.dimensions;p={Body:r(h,e.debug),createQuadTree:o(h),createBounds:i(h),createDragForce:a(h),createSpringForce:s(h),integrate:u(h)},c[h]=p}var m=p.Body,v=p.createQuadTree,g=p.createBounds,y=p.createDragForce,b=p.createSpringForce,E=p.integrate,_=n(78712).random(42),T=[],w=[],k=v(e,_),x=g(T,e,_),O=b(e,_),C=y(e),A=[],S=new Map,M=0;P("nbody",(function(){if(0===T.length)return;k.insertBodies(T);var e=T.length;for(;e--;){var t=T[e];t.isPinned||(t.reset(),k.updateBodyForce(t),C.update(t))}})),P("spring",(function(){var e=w.length;for(;e--;)O.update(w[e])}));var D={bodies:T,quadTree:k,springs:w,settings:e,addForce:P,removeForce:function(e){var t=A.indexOf(S.get(e));if(t<0)return;A.splice(t,1),S.delete(e)},getForces:function(){return S},step:function(){for(var t=0;t<A.length;++t)A[t](M);var n=E(T,e.timeStep,e.adaptiveTimeStepWeight);return M+=1,n},addBody:function(e){if(!e)throw new Error("Body is required");return T.push(e),e},addBodyAt:function(e){if(!e)throw new Error("Body position is required");var t=(e=>new m(e))(e);return T.push(t),t},removeBody:function(e){if(e){var t=T.indexOf(e);if(!(t<0))return T.splice(t,1),0===T.length&&x.reset(),!0}},addSpring:function(e,n,r,o){if(!e||!n)throw new Error("Cannot add null spring to force simulator");"number"!==typeof r&&(r=-1);var i=new t(e,n,r,o>=0?o:-1);return w.push(i),i},getTotalMovement:function(){return 0},removeSpring:function(e){if(e){var t=w.indexOf(e);return t>-1?(w.splice(t,1),!0):void 0}},getBestNewBodyPosition:function(e){return x.getBestNewPosition(e)},getBBox:I,getBoundingBox:I,invalidateBBox:function(){console.warn("invalidateBBox() is deprecated, bounds always recomputed on `getBBox()` call")},gravity:function(t){return void 0!==t?(e.gravity=t,k.options({gravity:t}),this):e.gravity},theta:function(t){return void 0!==t?(e.theta=t,k.options({theta:t}),this):e.theta},random:_};return function(e,t){for(var n in e)l(e,t,n)}(e,D),f(D),D;function I(){return x.update(),x.box}function P(e,t){if(S.has(e))throw new Error("Force "+e+" is already added");S.set(e,t),A.push(t)}};var r=n(6410),o=n(1584),i=n(30891),a=n(36647),s=n(34079),u=n(51763),c={};function l(e,t,n){if(e.hasOwnProperty(n)&&"function"!==typeof t[n]){var r=Number.isFinite(e[n]);t[n]=r?function(r){if(void 0!==r){if(!Number.isFinite(r))throw new Error("Value of "+n+" should be a valid number.");return e[n]=r,t}return e[n]}:function(r){return void 0!==r?(e[n]=r,t):e[n]}}}},68403:function(e){e.exports=function(e,t,n,r){this.from=e,this.to=t,this.length=n,this.coefficient=r}},54736:function(e,t,n){e.exports=function(e){"uniqueLinkId"in(e=e||{})&&(console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n","\n","Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."),e.multigraph=e.uniqueLinkId);void 0===e.multigraph&&(e.multigraph=!1);if("function"!==typeof Map)throw new Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");var t=new Map,n=[],c={},l=0,d=e.multigraph?function(e,t,n){var r=u(e,t),o=c.hasOwnProperty(r);if(o||O(e,t)){o||(c[r]=0);var i="@"+ ++c[r];r=u(e+i,t+i)}return new s(e,t,n,r)}:function(e,t,n){var r=u(e,t);return new s(e,t,n,r)},f=[],p=C,h=C,m=C,v=C,g={addNode:E,addLink:function(e,t,r){m();var o=_(e)||E(e),i=_(t)||E(t),s=d(e,t,r);n.push(s),a(o,s),e!==t&&a(i,s);return p(s,"add"),v(),s},removeLink:x,removeNode:T,getNode:_,getNodeCount:w,getLinkCount:k,getLinksCount:k,getNodesCount:w,getLinks:function(e){var t=_(e);return t?t.links:null},forEachNode:M,forEachLinkedNode:function(e,n,r){var o=_(e);if(o&&o.links&&"function"===typeof n)return r?function(e,n,r){for(var o=0;o<e.length;++o){var i=e[o];if(i.fromId===n&&r(t.get(i.toId),i))return!0}}(o.links,e,n):function(e,n,r){for(var o=0;o<e.length;++o){var i=e[o],a=i.fromId===n?i.toId:i.fromId;if(r(t.get(a),i))return!0}}(o.links,e,n)},forEachLink:function(e){var t,r;if("function"===typeof e)for(t=0,r=n.length;t<r;++t)e(n[t])},beginUpdate:m,endUpdate:v,clear:function(){m(),M((function(e){T(e.id)})),v()},hasLink:O,hasNode:_,getLink:O};return r(g),function(){var e=g.on;function t(){return g.beginUpdate=m=A,g.endUpdate=v=S,p=y,h=b,g.on=e,e.apply(g,arguments)}g.on=t}(),g;function y(e,t){f.push({link:e,changeType:t})}function b(e,t){f.push({node:e,changeType:t})}function E(e,n){if(void 0===e)throw new Error("Invalid node identifier");m();var r=_(e);return r?(r.data=n,h(r,"update")):(r=new i(e,n),h(r,"add")),t.set(e,r),v(),r}function _(e){return t.get(e)}function T(e){var n=_(e);if(!n)return!1;m();var r=n.links;if(r){n.links=null;for(var o=0;o<r.length;++o)x(r[o])}return t.delete(e),h(n,"remove"),v(),!0}function w(){return t.size}function k(){return n.length}function x(e){if(!e)return!1;var t=o(e,n);if(t<0)return!1;m(),n.splice(t,1);var r=_(e.fromId),i=_(e.toId);return r&&(t=o(e,r.links))>=0&&r.links.splice(t,1),i&&(t=o(e,i.links))>=0&&i.links.splice(t,1),p(e,"remove"),v(),!0}function O(e,t){var n,r=_(e);if(!r||!r.links)return null;for(n=0;n<r.links.length;++n){var o=r.links[n];if(o.fromId===e&&o.toId===t)return o}return null}function C(){}function A(){l+=1}function S(){0===(l-=1)&&f.length>0&&(g.fire("changed",f),f.length=0)}function M(e){if("function"!==typeof e)throw new Error("Function is expected to iterate over graph nodes. You passed "+e);for(var n=t.values(),r=n.next();!r.done;){if(e(r.value))return!0;r=n.next()}}};var r=n(84245);function o(e,t){if(!t)return-1;if(t.indexOf)return t.indexOf(e);var n,r=t.length;for(n=0;n<r;n+=1)if(t[n]===e)return n;return-1}function i(e,t){this.id=e,this.links=null,this.data=t}function a(e,t){e.links?e.links.push(t):e.links=[t]}function s(e,t,n,r){this.fromId=e,this.toId=t,this.data=n,this.id=r}function u(e,t){return e.toString()+"\ud83d\udc49 "+t.toString()}},35510:function(e){e.exports=function e(t,n){var r;t||(t={});if(n)for(r in n)if(n.hasOwnProperty(r)){var o=t.hasOwnProperty(r),i=typeof n[r];!o||typeof t[r]!==i?t[r]=n[r]:"object"===i&&(t[r]=e(t[r],n[r]))}return t}},78712:function(e){function t(e){return new n("number"===typeof e?e:+new Date)}function n(e){this.seed=e}function r(e){return Math.sqrt(2*Math.PI/e)*Math.pow(1/Math.E*(e+1/(12*e-1/(10*e))),e)}function o(){var e=this.seed;return e=4294967295&(3042594569^(e=(e=4294967295&((e=(e=4294967295&(3345072700^(e=e+2127912214+(e<<12)&4294967295)^e>>>19))+374761393+(e<<5)&4294967295)+3550635116^e<<9))+4251993797+(e<<3)&4294967295)^e>>>16),this.seed=e,(268435455&e)/268435456}e.exports=t,e.exports.random=t,e.exports.randomIterator=function(e,n){var r=n||t();if("function"!==typeof r.next)throw new Error("customRandom does not match expected API: next() function is missing");return{forEach:function(t){var n,o,i;for(n=e.length-1;n>0;--n)o=r.next(n+1),i=e[o],e[o]=e[n],e[n]=i,t(i);e.length&&t(e[0])},shuffle:function(){var t,n,o;for(t=e.length-1;t>0;--t)n=r.next(t+1),o=e[n],e[n]=e[t],e[t]=o;return e}}},n.prototype.next=function(e){return Math.floor(this.nextDouble()*e)},n.prototype.nextDouble=o,n.prototype.uniform=o,n.prototype.gaussian=function(){var e,t,n;do{t=2*this.nextDouble()-1,n=2*this.nextDouble()-1,e=t*t+n*n}while(e>=1||0===e);return t*Math.sqrt(-2*Math.log(e)/e)},n.prototype.levy=function(){var e=1.5,t=Math.pow(r(2.5)*Math.sin(Math.PI*e/2)/(r(1.25)*e*Math.pow(2,.25)),1/e);return this.gaussian()*t/Math.pow(Math.abs(this.gaussian()),1/e)}},31515:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152),o="html",i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],u=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=u.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function l(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return e.name===o&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==o)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),s.indexOf(n)>-1)return r.QUIRKS;let e=null===t?a:i;if(d(n,e))return r.QUIRKS;if(e=null===t?u:c,d(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+l(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+l(n)),r}},41734:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},88779:function(e,t,n){"use strict";const r=n(55763),o=n(16152),i=o.TAG_NAMES,a=o.NAMESPACES,s=o.ATTRS,u="text/html",c="application/xhtml+xml",l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},f=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p={[i.B]:!0,[i.BIG]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.CENTER]:!0,[i.CODE]:!0,[i.DD]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EM]:!0,[i.EMBED]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HR]:!0,[i.I]:!0,[i.IMG]:!0,[i.LI]:!0,[i.LISTING]:!0,[i.MENU]:!0,[i.META]:!0,[i.NOBR]:!0,[i.OL]:!0,[i.P]:!0,[i.PRE]:!0,[i.RUBY]:!0,[i.S]:!0,[i.SMALL]:!0,[i.SPAN]:!0,[i.STRONG]:!0,[i.STRIKE]:!0,[i.SUB]:!0,[i.SUP]:!0,[i.TABLE]:!0,[i.TT]:!0,[i.U]:!0,[i.UL]:!0,[i.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===i.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE)))||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=l[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=f[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===i.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===s.ENCODING){const e=n[r].value.toLowerCase();return e===u||e===c}return t===a.SVG&&(e===i.FOREIGN_OBJECT||e===i.DESC||e===i.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===i.MI||e===i.MO||e===i.MN||e===i.MS||e===i.MTEXT)}(e,t))}},16152:function(e,t){"use strict";const n=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[n.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[n.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[n.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}},54284:function(e,t){"use strict";const n=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="\ufffd",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},23843:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},22232:function(e,t,n){"use strict";const r=n(23843),o=n(70050),i=n(46110),a=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,o,e.opts),a.install(this.tokenizer,i)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},23288:function(e,t,n){"use strict";const r=n(23843),o=n(57930),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=i.install(e,o),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},70050:function(e,t,n){"use strict";const r=n(23843),o=n(23288),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t);const n=i.install(e.preprocessor,o,t);this.posTracker=n.posTracker}}},11077:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},452:function(e,t,n){"use strict";const r=n(81704),o=n(55763),i=n(46110),a=n(11077),s=n(16152).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i={};t.type===o.END_TAG_TOKEN&&r===t.tagName?(i.endTag=Object.assign({},n),i.endLine=n.endLine,i.endCol=n.endCol,i.endOffset=n.endOffset):(i.endLine=n.startLine,i.endCol=n.startCol,i.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(n,o){t._bootstrap.call(this,n,o),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,i);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===o.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),o=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(o,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),o=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(o),a=r&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,s=i[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:r}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:r})}else this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},46110:function(e,t,n){"use strict";const r=n(81704),o=n(55763),i=n(57930);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,i),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===o.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(o.MODE).forEach((r=>{const i=o.MODE[r];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}})),n}}},57930:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},12484:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const n=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===t.MARKER_ENTRY)break;const s=a.element,u=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===o&&this.treeAdapter.getNamespaceURI(s)===i&&u.length===r&&n.push({idx:e,attrs:u})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),o=r.length,i=Object.create(null);for(let e=0;e<o;e++){const t=r[e];i[t.name]=t.value}for(let e=0;e<o;e++)for(let r=0;r<n;r++){const o=t[r].attrs[e];if(i[o.name]!==o.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},7045:function(e,t,n){"use strict";const r=n(55763),o=n(46519),i=n(12484),a=n(452),s=n(22232),u=n(81704),c=n(17296),l=n(8904),d=n(31515),f=n(88779),p=n(41734),h=n(54284),m=n(16152),v=m.TAG_NAMES,g=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:c},E="hidden",_="INITIAL_MODE",T="BEFORE_HTML_MODE",w="BEFORE_HEAD_MODE",k="IN_HEAD_MODE",x="IN_HEAD_NO_SCRIPT_MODE",O="AFTER_HEAD_MODE",C="IN_BODY_MODE",A="TEXT_MODE",S="IN_TABLE_MODE",M="IN_TABLE_TEXT_MODE",D="IN_CAPTION_MODE",I="IN_COLUMN_GROUP_MODE",P="IN_TABLE_BODY_MODE",N="IN_ROW_MODE",R="IN_CELL_MODE",L="IN_SELECT_MODE",j="IN_SELECT_IN_TABLE_MODE",F="IN_TEMPLATE_MODE",B="AFTER_BODY_MODE",H="IN_FRAMESET_MODE",U="AFTER_FRAMESET_MODE",z="AFTER_AFTER_BODY_MODE",V="AFTER_AFTER_FRAMESET_MODE",G={[v.TR]:N,[v.TBODY]:P,[v.THEAD]:P,[v.TFOOT]:P,[v.CAPTION]:D,[v.COLGROUP]:I,[v.TABLE]:S,[v.BODY]:C,[v.FRAMESET]:H},W={[v.CAPTION]:S,[v.COLGROUP]:S,[v.TBODY]:S,[v.TFOOT]:S,[v.THEAD]:S,[v.COL]:I,[v.TR]:P,[v.TD]:N,[v.TH]:N},K={[_]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ae,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T},[r.START_TAG_TOKEN]:ae,[r.END_TAG_TOKEN]:ae,[r.EOF_TOKEN]:ae},[T]:{[r.CHARACTER_TOKEN]:se,[r.NULL_CHARACTER_TOKEN]:se,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?(e._insertElement(t,g.HTML),e.insertionMode=w):se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==v.HTML&&n!==v.HEAD&&n!==v.BODY&&n!==v.BR||se(e,t)},[r.EOF_TOKEN]:se},[w]:{[r.CHARACTER_TOKEN]:ue,[r.NULL_CHARACTER_TOKEN]:ue,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.HEAD?(e._insertElement(t,g.HTML),e.headElement=e.openElements.current,e.insertionMode=k):ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HEAD||n===v.BODY||n===v.HTML||n===v.BR?ue(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:ue},[k]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ce,[r.END_TAG_TOKEN]:le,[r.EOF_TOKEN]:de},[x]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.BASEFONT||n===v.BGSOUND||n===v.HEAD||n===v.LINK||n===v.META||n===v.NOFRAMES||n===v.STYLE?ce(e,t):n===v.NOSCRIPT?e._err(p.nestedNoscriptInHead):fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.NOSCRIPT?(e.openElements.pop(),e.insertionMode=k):n===v.BR?fe(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:fe},[O]:{[r.CHARACTER_TOKEN]:pe,[r.NULL_CHARACTER_TOKEN]:pe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.BODY?(e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=C):n===v.FRAMESET?(e._insertElement(t,g.HTML),e.insertionMode=H):n===v.BASE||n===v.BASEFONT||n===v.BGSOUND||n===v.LINK||n===v.META||n===v.NOFRAMES||n===v.SCRIPT||n===v.STYLE||n===v.TEMPLATE||n===v.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),ce(e,t),e.openElements.remove(e.headElement)):n===v.HEAD?e._err(p.misplacedStartTagForHeadElement):pe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.BODY||n===v.HTML||n===v.BR?pe(e,t):n===v.TEMPLATE?le(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:pe},[C]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Oe,[r.END_TAG_TOKEN]:Me,[r.EOF_TOKEN]:De},[A]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:oe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ee,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[S]:{[r.CHARACTER_TOKEN]:Ie,[r.NULL_CHARACTER_TOKEN]:Ie,[r.WHITESPACE_CHARACTER_TOKEN]:Ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Pe,[r.END_TAG_TOKEN]:Ne,[r.EOF_TOKEN]:De},[M]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:Le,[r.DOCTYPE_TOKEN]:Le,[r.START_TAG_TOKEN]:Le,[r.END_TAG_TOKEN]:Le,[r.EOF_TOKEN]:Le},[D]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TD||n===v.TFOOT||n===v.TH||n===v.THEAD||n===v.TR?e.openElements.hasInTableScope(v.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S,e._processToken(t)):Oe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.TABLE?e.openElements.hasInTableScope(v.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S,n===v.TABLE&&e._processToken(t)):n!==v.BODY&&n!==v.COL&&n!==v.COLGROUP&&n!==v.HTML&&n!==v.TBODY&&n!==v.TD&&n!==v.TFOOT&&n!==v.TH&&n!==v.THEAD&&n!==v.TR&&Me(e,t)},[r.EOF_TOKEN]:De},[I]:{[r.CHARACTER_TOKEN]:je,[r.NULL_CHARACTER_TOKEN]:je,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.COL?(e._appendElement(t,g.HTML),t.ackSelfClosing=!0):n===v.TEMPLATE?ce(e,t):je(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.COLGROUP?e.openElements.currentTagName===v.COLGROUP&&(e.openElements.pop(),e.insertionMode=S):n===v.TEMPLATE?le(e,t):n!==v.COL&&je(e,t)},[r.EOF_TOKEN]:De},[P]:{[r.CHARACTER_TOKEN]:Ie,[r.NULL_CHARACTER_TOKEN]:Ie,[r.WHITESPACE_CHARACTER_TOKEN]:Ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,g.HTML),e.insertionMode=N):n===v.TH||n===v.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(v.TR),e.insertionMode=N,e._processToken(t)):n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TFOOT||n===v.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S,e._processToken(t)):Pe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TBODY||n===v.TFOOT||n===v.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S):n===v.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S,e._processToken(t)):(n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP||n!==v.HTML&&n!==v.TD&&n!==v.TH&&n!==v.TR)&&Ne(e,t)},[r.EOF_TOKEN]:De},[N]:{[r.CHARACTER_TOKEN]:Ie,[r.NULL_CHARACTER_TOKEN]:Ie,[r.WHITESPACE_CHARACTER_TOKEN]:Ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TH||n===v.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,g.HTML),e.insertionMode=R,e.activeFormattingElements.insertMarker()):n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR?e.openElements.hasInTableScope(v.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P,e._processToken(t)):Pe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TR?e.openElements.hasInTableScope(v.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P):n===v.TABLE?e.openElements.hasInTableScope(v.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P,e._processToken(t)):n===v.TBODY||n===v.TFOOT||n===v.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(v.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=P,e._processToken(t)):(n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP||n!==v.HTML&&n!==v.TD&&n!==v.TH)&&Ne(e,t)},[r.EOF_TOKEN]:De},[R]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TD||n===v.TFOOT||n===v.TH||n===v.THEAD||n===v.TR?(e.openElements.hasInTableScope(v.TD)||e.openElements.hasInTableScope(v.TH))&&(e._closeTableCell(),e._processToken(t)):Oe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TD||n===v.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=N):n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP&&n!==v.HTML&&Me(e,t)},[r.EOF_TOKEN]:De},[L]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Fe,[r.END_TAG_TOKEN]:Be,[r.EOF_TOKEN]:De},[j]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR||n===v.TD||n===v.TH?(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),e._processToken(t)):Fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR||n===v.TD||n===v.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),e._processToken(t)):Be(e,t)},[r.EOF_TOKEN]:De},[F]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===v.BASE||n===v.BASEFONT||n===v.BGSOUND||n===v.LINK||n===v.META||n===v.NOFRAMES||n===v.SCRIPT||n===v.STYLE||n===v.TEMPLATE||n===v.TITLE)ce(e,t);else{const r=W[n]||C;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.TEMPLATE&&le(e,t)},[r.EOF_TOKEN]:He},[B]:{[r.CHARACTER_TOKEN]:Ue,[r.NULL_CHARACTER_TOKEN]:Ue,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?Oe(e,t):Ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?e.fragmentContext||(e.insertionMode=z):Ue(e,t)},[r.EOF_TOKEN]:ie},[H]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.FRAMESET?e._insertElement(t,g.HTML):n===v.FRAME?(e._appendElement(t,g.HTML),t.ackSelfClosing=!0):n===v.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==v.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===v.FRAMESET||(e.insertionMode=U))},[r.EOF_TOKEN]:ie},[U]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.HTML&&(e.insertionMode=V)},[r.EOF_TOKEN]:ie},[z]:{[r.CHARACTER_TOKEN]:ze,[r.NULL_CHARACTER_TOKEN]:ze,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?Oe(e,t):ze(e,t)},[r.END_TAG_TOKEN]:ze,[r.EOF_TOKEN]:ie},[V]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.NOFRAMES&&ce(e,t)},[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ie}};function q(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Se(e,t),n}function Y(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o)&&(n=o)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function $(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let i=0,a=o;a!==n;i++,a=o){o=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Z(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Z(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function X(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),o=e.treeAdapter.getNamespaceURI(t);r===v.TEMPLATE&&o===g.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Q(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),o=n.token,i=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function J(e,t){let n;for(let r=0;r<8&&(n=q(e,t),n);r++){const t=Y(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=$(e,t,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),X(e,o,r),Q(e,t,n)}}function ee(){}function te(e){e._err(p.misplacedDoctype)}function ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function re(e,t){e._appendCommentNode(t,e.document)}function oe(e,t){e._insertCharacters(t)}function ie(e){e.stopped=!0}function ae(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=T,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=w,e._processToken(t)}function ue(e,t){e._insertFakeElement(v.HEAD),e.headElement=e.openElements.current,e.insertionMode=k,e._processToken(t)}function ce(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.BASE||n===v.BASEFONT||n===v.BGSOUND||n===v.LINK||n===v.META?(e._appendElement(t,g.HTML),t.ackSelfClosing=!0):n===v.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===v.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,g.HTML),e.insertionMode=x):n===v.NOFRAMES||n===v.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===v.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===v.TEMPLATE?(e._insertTemplate(t,g.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=F,e._pushTmplInsertionMode(F)):n===v.HEAD?e._err(p.misplacedStartTagForHeadElement):de(e,t)}function le(e,t){const n=t.tagName;n===v.HEAD?(e.openElements.pop(),e.insertionMode=O):n===v.BODY||n===v.BR||n===v.HTML?de(e,t):n===v.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==v.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(v.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function de(e,t){e.openElements.pop(),e.insertionMode=O,e._processToken(t)}function fe(e,t){const n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=k,e._processToken(t)}function pe(e,t){e._insertFakeElement(v.BODY),e.insertionMode=C,e._processToken(t)}function he(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ve(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML)}function ge(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function be(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _e(e,t){e._appendElement(t,g.HTML),t.ackSelfClosing=!0}function Te(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function we(e,t){e.openElements.currentTagName===v.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function ke(e,t){e.openElements.hasInScope(v.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,g.HTML)}function xe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function Oe(e,t){const n=t.tagName;switch(n.length){case 1:n===v.I||n===v.S||n===v.B||n===v.U?ye(e,t):n===v.P?ve(e,t):n===v.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(v.A);n&&(J(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):xe(e,t);break;case 2:n===v.DL||n===v.OL||n===v.UL?ve(e,t):n===v.H1||n===v.H2||n===v.H3||n===v.H4||n===v.H5||n===v.H6?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==v.H1&&n!==v.H2&&n!==v.H3&&n!==v.H4&&n!==v.H5&&n!==v.H6||e.openElements.pop(),e._insertElement(t,g.HTML)}(e,t):n===v.LI||n===v.DD||n===v.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.items[r],o=e.treeAdapter.getTagName(t);let i=null;if(n===v.LI&&o===v.LI?i=v.LI:n!==v.DD&&n!==v.DT||o!==v.DD&&o!==v.DT||(i=o),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(o!==v.ADDRESS&&o!==v.DIV&&o!==v.P&&e._isSpecialElement(t))break}e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML)}(e,t):n===v.EM||n===v.TT?ye(e,t):n===v.BR?Ee(e,t):n===v.HR?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===v.RB?ke(e,t):n===v.RT||n===v.RP?function(e,t){e.openElements.hasInScope(v.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(v.RTC),e._insertElement(t,g.HTML)}(e,t):n!==v.TH&&n!==v.TD&&n!==v.TR&&xe(e,t);break;case 3:n===v.DIV||n===v.DIR||n===v.NAV?ve(e,t):n===v.PRE?ge(e,t):n===v.BIG?ye(e,t):n===v.IMG||n===v.WBR?Ee(e,t):n===v.XMP?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===v.SVG?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenSVGAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,g.SVG):e._insertElement(t,g.SVG),t.ackSelfClosing=!0}(e,t):n===v.RTC?ke(e,t):n!==v.COL&&xe(e,t);break;case 4:n===v.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===v.BASE||n===v.LINK||n===v.META?ce(e,t):n===v.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===v.MAIN||n===v.MENU?ve(e,t):n===v.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===v.CODE||n===v.FONT?ye(e,t):n===v.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(v.NOBR)&&(J(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===v.AREA?Ee(e,t):n===v.MATH?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenMathMLAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,g.MATHML):e._insertElement(t,g.MATHML),t.ackSelfClosing=!0}(e,t):n===v.MENU?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML)}(e,t):n!==v.HEAD&&xe(e,t);break;case 5:n===v.STYLE||n===v.TITLE?ce(e,t):n===v.ASIDE?ve(e,t):n===v.SMALL?ye(e,t):n===v.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=S}(e,t):n===v.EMBED?Ee(e,t):n===v.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===v.PARAM||n===v.TRACK?_e(e,t):n===v.IMAGE?function(e,t){t.tagName=v.IMG,Ee(e,t)}(e,t):n!==v.FRAME&&n!==v.TBODY&&n!==v.TFOOT&&n!==v.THEAD&&xe(e,t);break;case 6:n===v.SCRIPT?ce(e,t):n===v.CENTER||n===v.FIGURE||n===v.FOOTER||n===v.HEADER||n===v.HGROUP||n===v.DIALOG?ve(e,t):n===v.BUTTON?function(e,t){e.openElements.hasInScope(v.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1}(e,t):n===v.STRIKE||n===v.STRONG?ye(e,t):n===v.APPLET||n===v.OBJECT?be(e,t):n===v.KEYGEN?Ee(e,t):n===v.SOURCE?_e(e,t):n===v.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===v.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode===S||e.insertionMode===D||e.insertionMode===P||e.insertionMode===N||e.insertionMode===R?e.insertionMode=j:e.insertionMode=L}(e,t):n===v.OPTION?we(e,t):xe(e,t);break;case 7:n===v.BGSOUND?ce(e,t):n===v.DETAILS||n===v.ADDRESS||n===v.ARTICLE||n===v.SECTION||n===v.SUMMARY?ve(e,t):n===v.LISTING?ge(e,t):n===v.MARQUEE?be(e,t):n===v.NOEMBED?Te(e,t):n!==v.CAPTION&&xe(e,t);break;case 8:n===v.BASEFONT?ce(e,t):n===v.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,g.HTML),e.insertionMode=H)}(e,t):n===v.FIELDSET?ve(e,t):n===v.TEXTAREA?function(e,t){e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=A}(e,t):n===v.TEMPLATE?ce(e,t):n===v.NOSCRIPT?e.options.scriptingEnabled?Te(e,t):xe(e,t):n===v.OPTGROUP?we(e,t):n!==v.COLGROUP&&xe(e,t);break;case 9:n===v.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):xe(e,t);break;case 10:n===v.BLOCKQUOTE||n===v.FIGCAPTION?ve(e,t):xe(e,t);break;default:xe(e,t)}}function Ce(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Ae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Se(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const t=e.openElements.items[r];if(e.treeAdapter.getTagName(t)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(t);break}if(e._isSpecialElement(t))break}}function Me(e,t){const n=t.tagName;switch(n.length){case 1:n===v.A||n===v.B||n===v.I||n===v.S||n===v.U?J(e,t):n===v.P?function(e){e.openElements.hasInButtonScope(v.P)||e._insertFakeElement(v.P),e._closePElement()}(e):Se(e,t);break;case 2:n===v.DL||n===v.UL||n===v.OL?Ce(e,t):n===v.LI?function(e){e.openElements.hasInListItemScope(v.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(v.LI),e.openElements.popUntilTagNamePopped(v.LI))}(e):n===v.DD||n===v.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===v.H1||n===v.H2||n===v.H3||n===v.H4||n===v.H5||n===v.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===v.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(v.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===v.EM||n===v.TT?J(e,t):Se(e,t);break;case 3:n===v.BIG?J(e,t):n===v.DIR||n===v.DIV||n===v.NAV||n===v.PRE?Ce(e,t):Se(e,t);break;case 4:n===v.BODY?function(e){e.openElements.hasInScope(v.BODY)&&(e.insertionMode=B)}(e):n===v.HTML?function(e,t){e.openElements.hasInScope(v.BODY)&&(e.insertionMode=B,e._processToken(t))}(e,t):n===v.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(v.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(v.FORM):e.openElements.remove(n))}(e):n===v.CODE||n===v.FONT||n===v.NOBR?J(e,t):n===v.MAIN||n===v.MENU?Ce(e,t):Se(e,t);break;case 5:n===v.ASIDE?Ce(e,t):n===v.SMALL?J(e,t):Se(e,t);break;case 6:n===v.CENTER||n===v.FIGURE||n===v.FOOTER||n===v.HEADER||n===v.HGROUP||n===v.DIALOG?Ce(e,t):n===v.APPLET||n===v.OBJECT?Ae(e,t):n===v.STRIKE||n===v.STRONG?J(e,t):Se(e,t);break;case 7:n===v.ADDRESS||n===v.ARTICLE||n===v.DETAILS||n===v.SECTION||n===v.SUMMARY||n===v.LISTING?Ce(e,t):n===v.MARQUEE?Ae(e,t):Se(e,t);break;case 8:n===v.FIELDSET?Ce(e,t):n===v.TEMPLATE?le(e,t):Se(e,t);break;case 10:n===v.BLOCKQUOTE||n===v.FIGCAPTION?Ce(e,t):Se(e,t);break;default:Se(e,t)}}function De(e,t){e.tmplInsertionModeStackTop>-1?He(e,t):e.stopped=!0}function Ie(e,t){const n=e.openElements.currentTagName;n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=M,e._processToken(t)):Re(e,t)}function Pe(e,t){const n=t.tagName;switch(n.length){case 2:n===v.TD||n===v.TH||n===v.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.TBODY),e.insertionMode=P,e._processToken(t)}(e,t):Re(e,t);break;case 3:n===v.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.COLGROUP),e.insertionMode=I,e._processToken(t)}(e,t):Re(e,t);break;case 4:n===v.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,g.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Re(e,t);break;case 5:n===v.TABLE?function(e,t){e.openElements.hasInTableScope(v.TABLE)&&(e.openElements.popUntilTagNamePopped(v.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===v.STYLE?ce(e,t):n===v.TBODY||n===v.TFOOT||n===v.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=P}(e,t):n===v.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E?e._appendElement(t,g.HTML):Re(e,t),t.ackSelfClosing=!0}(e,t):Re(e,t);break;case 6:n===v.SCRIPT?ce(e,t):Re(e,t);break;case 7:n===v.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,g.HTML),e.insertionMode=D}(e,t):Re(e,t);break;case 8:n===v.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=I}(e,t):n===v.TEMPLATE?ce(e,t):Re(e,t);break;default:Re(e,t)}}function Ne(e,t){const n=t.tagName;n===v.TABLE?e.openElements.hasInTableScope(v.TABLE)&&(e.openElements.popUntilTagNamePopped(v.TABLE),e._resetInsertionMode()):n===v.TEMPLATE?le(e,t):n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP&&n!==v.HTML&&n!==v.TBODY&&n!==v.TD&&n!==v.TFOOT&&n!==v.TH&&n!==v.THEAD&&n!==v.TR&&Re(e,t)}function Re(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Le(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Re(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function je(e,t){e.openElements.currentTagName===v.COLGROUP&&(e.openElements.pop(),e.insertionMode=S,e._processToken(t))}function Fe(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.OPTION?(e.openElements.currentTagName===v.OPTION&&e.openElements.pop(),e._insertElement(t,g.HTML)):n===v.OPTGROUP?(e.openElements.currentTagName===v.OPTION&&e.openElements.pop(),e.openElements.currentTagName===v.OPTGROUP&&e.openElements.pop(),e._insertElement(t,g.HTML)):n===v.INPUT||n===v.KEYGEN||n===v.TEXTAREA||n===v.SELECT?e.openElements.hasInSelectScope(v.SELECT)&&(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),n!==v.SELECT&&e._processToken(t)):n!==v.SCRIPT&&n!==v.TEMPLATE||ce(e,t)}function Be(e,t){const n=t.tagName;if(n===v.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===v.OPTION&&n===v.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===v.OPTGROUP&&e.openElements.pop()}else n===v.OPTION?e.openElements.currentTagName===v.OPTION&&e.openElements.pop():n===v.SELECT&&e.openElements.hasInSelectScope(v.SELECT)?(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode()):n===v.TEMPLATE&&le(e,t)}function He(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(v.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ue(e,t){e.insertionMode=C,e._processToken(t)}function ze(e,t){e.insertionMode=C,e._processToken(t)}e.exports=class{constructor(e){this.options=l(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&u.install(this,a),this.options.onParseError&&u.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(v.TEMPLATE,g.HTML,[]));const n=this.treeAdapter.createElement("documentmock",g.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===v.TEMPLATE&&this._pushTmplInsertionMode(F),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,o),o}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=_,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new o(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==g.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,g.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=A}switchToPlaintextParsing(){this.insertionMode=A,this.originalInsertionMode=C,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===v.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===g.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===v.TITLE||e===v.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===v.STYLE||e===v.XMP||e===v.IFRAME||e===v.NOEMBED||e===v.NOFRAMES||e===v.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===v.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===v.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,g.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,g.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(v.HTML,g.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===g.HTML)return!1;if(this.treeAdapter.getTagName(t)===v.ANNOTATION_XML&&n===g.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===v.SVG)return!1;const o=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===r.START_TAG_TOKEN&&e.tagName!==v.MGLYPH&&e.tagName!==v.MALIGNMARK)&&!o||!this._isIntegrationPoint(t,g.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!o||!this._isIntegrationPoint(t,g.HTML))&&e.type!==r.EOF_TOKEN)}_processToken(e){K[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){K.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?oe(this,e):e.type===r.COMMENT_TOKEN?ne(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(f.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==g.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===g.MATHML?f.adjustTokenMathMLAttrs(t):r===g.SVG&&(f.adjustTokenSVGTagName(t),f.adjustTokenSVGAttrs(t)),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===g.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return f.isIntegrationPoint(n,r,o,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=N}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(v.P),this.openElements.popUntilTagNamePopped(v.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),o=G[r];if(o){this.insertionMode=o;break}if(!(t||r!==v.TD&&r!==v.TH)){this.insertionMode=R;break}if(!t&&r===v.HEAD){this.insertionMode=k;break}if(r===v.SELECT){this._resetInsertionModeForSelect(e);break}if(r===v.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===v.HTML){this.insertionMode=this.headElement?O:w;break}if(t){this.insertionMode=C;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===v.TEMPLATE)break;if(n===v.TABLE)return void(this.insertionMode=j)}this.insertionMode=L}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===v.TABLE||t===v.TBODY||t===v.TFOOT||t===v.THEAD||t===v.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),o=this.treeAdapter.getNamespaceURI(n);if(r===v.TEMPLATE&&o===g.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===v.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},46519:function(e,t,n){"use strict";const r=n(16152),o=r.TAG_NAMES,i=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI;case 3:return e===o.RTC;case 6:return e===o.OPTION;case 8:return e===o.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI||e===o.TD||e===o.TH||e===o.TR;case 3:return e===o.RTC;case 5:return e===o.TBODY||e===o.TFOOT||e===o.THEAD;case 6:return e===o.OPTION;case 7:return e===o.CAPTION;case 8:return e===o.OPTGROUP||e===o.COLGROUP}return!1}function u(e,t){switch(e.length){case 2:if(e===o.TD||e===o.TH)return t===i.HTML;if(e===o.MI||e===o.MO||e===o.MN||e===o.MS)return t===i.MATHML;break;case 4:if(e===o.HTML)return t===i.HTML;if(e===o.DESC)return t===i.SVG;break;case 5:if(e===o.TABLE)return t===i.HTML;if(e===o.MTEXT)return t===i.MATHML;if(e===o.TITLE)return t===i.SVG;break;case 6:return(e===o.APPLET||e===o.OBJECT)&&t===i.HTML;case 7:return(e===o.CAPTION||e===o.MARQUEE)&&t===i.HTML;case 8:return e===o.TEMPLATE&&t===i.HTML;case 13:return e===o.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===o.ANNOTATION_XML&&t===i.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===o.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.H1||e===o.H2||e===o.H3||e===o.H4||e===o.H5||e===o.H6&&t===i.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.TD||e===o.TH&&t===i.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==o.TABLE&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==o.TBODY&&this.currentTagName!==o.TFOOT&&this.currentTagName!==o.THEAD&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==o.TR&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===o.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===o.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if(u(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===o.H1||t===o.H2||t===o.H3||t===o.H4||t===o.H5||t===o.H6)&&n===i.HTML)return!0;if(u(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if((n===o.UL||n===o.OL)&&r===i.HTML||u(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if(n===o.BUTTON&&r===i.HTML||u(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n===o.TABLE||n===o.TEMPLATE||n===o.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===i.HTML){if(t===o.TBODY||t===o.THEAD||t===o.TFOOT)return!0;if(t===o.TABLE||t===o.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n!==o.OPTION&&n!==o.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},55763:function(e,t,n){"use strict";const r=n(77118),o=n(54284),i=n(5482),a=n(41734),s=o.CODE_POINTS,u=o.CODE_POINT_SEQUENCES,c={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},l="DATA_STATE",d="RCDATA_STATE",f="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",h="PLAINTEXT_STATE",m="TAG_OPEN_STATE",v="END_TAG_OPEN_STATE",g="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",E="RCDATA_END_TAG_NAME_STATE",_="RAWTEXT_LESS_THAN_SIGN_STATE",T="RAWTEXT_END_TAG_OPEN_STATE",w="RAWTEXT_END_TAG_NAME_STATE",k="SCRIPT_DATA_LESS_THAN_SIGN_STATE",x="SCRIPT_DATA_END_TAG_OPEN_STATE",O="SCRIPT_DATA_END_TAG_NAME_STATE",C="SCRIPT_DATA_ESCAPE_START_STATE",A="SCRIPT_DATA_ESCAPE_START_DASH_STATE",S="SCRIPT_DATA_ESCAPED_STATE",M="SCRIPT_DATA_ESCAPED_DASH_STATE",D="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",I="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",P="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",N="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",R="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",H="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",V="AFTER_ATTRIBUTE_NAME_STATE",G="BEFORE_ATTRIBUTE_VALUE_STATE",W="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",K="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",$="SELF_CLOSING_START_TAG_STATE",Z="BOGUS_COMMENT_STATE",X="MARKUP_DECLARATION_OPEN_STATE",Q="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_STATE",re="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",oe="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ie="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",se="COMMENT_END_BANG_STATE",ue="DOCTYPE_STATE",ce="BEFORE_DOCTYPE_NAME_STATE",le="DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_NAME_STATE",fe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",pe="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",he="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",ve="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ge="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ye="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",be="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ee="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_e="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Te="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",we="BOGUS_DOCTYPE_STATE",ke="CDATA_SECTION_STATE",xe="CDATA_SECTION_BRACKET_STATE",Oe="CDATA_SECTION_END_STATE",Ce="CHARACTER_REFERENCE_STATE",Ae="NAMED_CHARACTER_REFERENCE_STATE",Se="AMBIGUOS_AMPERSAND_STATE",Me="NUMERIC_CHARACTER_REFERENCE_STATE",De="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Ie="DECIMAL_CHARACTER_REFERENCE_START_STATE",Pe="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Ne="DECIMAL_CHARACTER_REFERENCE_STATE",Re="NUMERIC_CHARACTER_REFERENCE_END_STATE";function Le(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function je(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function Fe(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function Be(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function He(e){return Be(e)||Fe(e)}function Ue(e){return He(e)||je(e)}function ze(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function Ve(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function Ge(e){return e+32}function We(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function Ke(e){return String.fromCharCode(Ge(e))}function qe(e,t){const n=i[++e];let r=++e,o=r+n-1;for(;r<=o;){const e=r+o>>>1,a=i[e];if(a<t)r=e+1;else{if(!(a>t))return i[e+n];o=e-1}}return-1}class Ye{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=l,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ye.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,o=!0;const i=e.length;let a,u=0,c=t;for(;u<i;u++){if(u>0&&(c=this._consume(),r++),c===s.EOF){o=!1;break}if(a=e[u],c!==a&&(n||c!==Ge(a))){o=!1;break}}if(!o)for(;r--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==u.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==u.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Ye.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Ye.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Ye.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Ye.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Ye.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Ye.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Ye.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Ye.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ye.CHARACTER_TOKEN;Le(e)?t=Ye.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=Ye.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,We(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Ye.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=qe(0,e);for(this.tempBuff.push(e);r>-1;){const e=i[r],o=e<7;o&&1&e&&(t=2&e?[i[++r],i[++r]]:[i[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=o?4&e?qe(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===W||this.returnState===K||this.returnState===q}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||Ue(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=We(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[l](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=m:e===s.AMPERSAND?(this.returnState=l,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[d](e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState=d,this.state=Ce):e===s.LESS_THAN_SIGN?this.state=y:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[f](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=_:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=k:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[m](e){e===s.EXCLAMATION_MARK?this.state=X:e===s.SOLIDUS?this.state=v:He(e)?(this._createStartTagToken(),this._reconsumeInState(g)):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Z)):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(l))}[v](e){He(e)?(this._createEndTagToken(),this._reconsumeInState(g)):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=l):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Z))}[g](e){Le(e)?this.state=U:e===s.SOLIDUS?this.state=$:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):Fe(e)?this.currentToken.tagName+=Ke(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=We(e)}[y](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChars("<"),this._reconsumeInState(d))}[b](e){He(e)?(this._createEndTagToken(),this._reconsumeInState(E)):(this._emitChars("</"),this._reconsumeInState(d))}[E](e){if(Fe(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=$);if(e===s.GREATER_THAN_SIGN)return this.state=l,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(d)}}[_](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=T):(this._emitChars("<"),this._reconsumeInState(f))}[T](e){He(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChars("</"),this._reconsumeInState(f))}[w](e){if(Fe(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=$);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}}[k](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=x):e===s.EXCLAMATION_MARK?(this.state=C,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(p))}[x](e){He(e)?(this._createEndTagToken(),this._reconsumeInState(O)):(this._emitChars("</"),this._reconsumeInState(p))}[O](e){if(Fe(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=$);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}}[C](e){e===s.HYPHEN_MINUS?(this.state=A,this._emitChars("-")):this._reconsumeInState(p)}[A](e){e===s.HYPHEN_MINUS?(this.state=D,this._emitChars("-")):this._reconsumeInState(p)}[S](e){e===s.HYPHEN_MINUS?(this.state=M,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=I:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[M](e){e===s.HYPHEN_MINUS?(this.state=D,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=I:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=S,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=S,this._emitCodePoint(e))}[D](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state=I:e===s.GREATER_THAN_SIGN?(this.state=p,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=S,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=S,this._emitCodePoint(e))}[I](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=P):He(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(R)):(this._emitChars("<"),this._reconsumeInState(S))}[P](e){He(e)?(this._createEndTagToken(),this._reconsumeInState(N)):(this._emitChars("</"),this._reconsumeInState(S))}[N](e){if(Fe(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(Le(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=$);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(S)}}[R](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?L:S,this._emitCodePoint(e)):Fe(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(S)}[L](e){e===s.HYPHEN_MINUS?(this.state=j,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[j](e){e===s.HYPHEN_MINUS?(this.state=F,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[F](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state=p,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=L,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=L,this._emitCodePoint(e))}[B](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=H,this._emitChars("/")):this._reconsumeInState(L)}[H](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?S:L,this._emitCodePoint(e)):Fe(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(L)}[U](e){Le(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(V):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](e){Le(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(V),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(G):Fe(e)?this.currentAttr.name+=Ke(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=We(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=o.REPLACEMENT_CHARACTER):this.currentAttr.name+=We(e)}[V](e){Le(e)||(e===s.SOLIDUS?this.state=$:e===s.EQUALS_SIGN?this.state=G:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[G](e){Le(e)||(e===s.QUOTATION_MARK?this.state=W:e===s.APOSTROPHE?this.state=K:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=l,this._emitCurrentToken()):this._reconsumeInState(q))}[W](e){e===s.QUOTATION_MARK?this.state=Y:e===s.AMPERSAND?(this.returnState=W,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[K](e){e===s.APOSTROPHE?this.state=Y:e===s.AMPERSAND?(this.returnState=K,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[q](e){Le(e)?this._leaveAttrValue(U):e===s.AMPERSAND?(this.returnState=q,this.state=Ce):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=We(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[Y](e){Le(e)?this._leaveAttrValue(U):e===s.SOLIDUS?this._leaveAttrValue($):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState(U))}[$](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState(U))}[Z](e){e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):this.currentToken.data+=We(e)}[X](e){this._consumeSequenceIfMatch(u.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Q):this._consumeSequenceIfMatch(u.DOCTYPE_STRING,e,!1)?this.state=ue:this._consumeSequenceIfMatch(u.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=ke:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Z):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Z))}[Q](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=l,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ie:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=We(e)}[te](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ne):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ne](e){e===s.HYPHEN_MINUS?this.state=re:this._reconsumeInState(ee)}[re](e){e===s.HYPHEN_MINUS?this.state=oe:this._reconsumeInState(ie)}[oe](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[ie](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ae](e){e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=se:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[se](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ie):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[ue](e){Le(e)?this.state=ce:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ce):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ce))}[ce](e){Le(e)||(Fe(e)?(this._createDoctypeToken(Ke(e)),this.state=le):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(o.REPLACEMENT_CHARACTER),this.state=le):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(We(e)),this.state=le))}[le](e){Le(e)?this.state=de:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):Fe(e)?this.currentToken.name+=Ke(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=We(e)}[de](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(u.PUBLIC_STRING,e,!1)?this.state=fe:this._consumeSequenceIfMatch(u.SYSTEM_STRING,e,!1)?this.state=ye:this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[fe](e){Le(e)?this.state=pe:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[pe](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[he](e){e===s.QUOTATION_MARK?this.state=ve:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=We(e)}[me](e){e===s.APOSTROPHE?this.state=ve:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=We(e)}[ve](e){Le(e)?this.state=ge:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[ge](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[ye](e){Le(e)?this.state=be:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[be](e){Le(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[Ee](e){e===s.QUOTATION_MARK?this.state=Te:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=We(e)}[_e](e){e===s.APOSTROPHE?this.state=Te:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=We(e)}[Te](e){Le(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(we)))}[we](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[ke](e){e===s.RIGHT_SQUARE_BRACKET?this.state=xe:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[xe](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Oe:(this._emitChars("]"),this._reconsumeInState(ke))}[Oe](e){e===s.GREATER_THAN_SIGN?this.state=l:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(ke))}[Ce](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Me):Ue(e)?this._reconsumeInState(Ae):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ae](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Se}[Se](e){Ue(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=We(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Me](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=De):this._reconsumeInState(Ie)}[De](e){!function(e){return je(e)||ze(e)||Ve(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Pe)}[Ie](e){je(e)?this._reconsumeInState(Ne):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Pe](e){ze(e)?this.charRefCode=16*this.charRefCode+e-55:Ve(e)?this.charRefCode=16*this.charRefCode+e-87:je(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Re:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Re))}[Ne](e){je(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Re:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Re))}[Re](){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(o.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(o.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(o.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=c[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Ye.CHARACTER_TOKEN="CHARACTER_TOKEN",Ye.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ye.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ye.START_TAG_TOKEN="START_TAG_TOKEN",Ye.END_TAG_TOKEN="END_TAG_TOKEN",Ye.COMMENT_TOKEN="COMMENT_TOKEN",Ye.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ye.EOF_TOKEN="EOF_TOKEN",Ye.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ye.MODE={DATA:l,RCDATA:d,RAWTEXT:f,SCRIPT_DATA:p,PLAINTEXT:h},Ye.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=Ye},5482:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},77118:function(e,t,n){"use strict";const r=n(54284),o=n(41734),i=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(o.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===i.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===i.CARRIAGE_RETURN)return this.skipNextNewLine=!0,i.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(o.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(o.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},17296:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const o=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let o=null;for(let i=0;i<e.childNodes.length;i++)if("#documentType"===e.childNodes[i].nodeName){o=e.childNodes[i];break}o?(o.name=t,o.publicId=n,o.systemId=r):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,o(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,o(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},t.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}},8904:function(e){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((n=>{e[n]=t[n]})),e)),Object.create(null))}},81704:function(e){"use strict";class t{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"===typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let o=0;o<e.__mixins.length;o++)if(e.__mixins[o].constructor===t)return e.__mixins[o];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=t},81725:function(e){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},2974:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},18059:function(e,t,n){var r=n(34155),o=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])m(u)||!E(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,o){if(y(n.g.process))return function(){return t.deprecate(e,o).apply(this,arguments)};if(!0===r.noDeprecation)return e;var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?console.trace(o):console.error(o),i=!0}return e.apply(this,arguments)}};var i,a={};function s(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return g(o)||(o=l(e,o,r)),o}var i=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(w(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return d(n)}var c,E="",k=!1,x=["{","}"];(p(n)&&(k=!0,x=["[","]"]),w(n))&&(E=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(E=" "+RegExp.prototype.toString.call(n)),_(n)&&(E=" "+Date.prototype.toUTCString.call(n)),T(n)&&(E=" "+d(n)),0!==a.length||k&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=k?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)A(t,String(a))?i.push(f(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(f(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return f(e,n,r,s,t,k)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,E,x)):x[0]+E+x[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),A(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=m(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function h(e){return"boolean"===typeof e}function m(e){return null===e}function v(e){return"number"===typeof e}function g(e){return"string"===typeof e}function y(e){return void 0===e}function b(e){return E(e)&&"[object RegExp]"===k(e)}function E(e){return"object"===typeof e&&null!==e}function _(e){return E(e)&&"[object Date]"===k(e)}function T(e){return E(e)&&("[object Error]"===k(e)||e instanceof Error)}function w(e){return"function"===typeof e}function k(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(i)&&(i=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=E,t.isDate=_,t.isError=T,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(2974);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",C(),t.format.apply(t,arguments))},t.inherits=n(81725),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},62520:function(e,t,n){"use strict";var r=n(34155),o="win32"===r.platform,i=n(18059);function a(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,c=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,l={};function d(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=c.exec(r);return[n,o[1],o[2],o[3]]}function f(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}l.resolve=function(){for(var e="",t="",n=!1,o=arguments.length-1;o>=-1;o--){var s;if(o>=0?s=arguments[o]:e?(s=r.env["="+e])&&s.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(s=e+"\\"):s=r.cwd(),!i.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var u=f(s),c=u.device,l=u.isUnc,d=u.isAbsolute,h=u.tail;if((!c||!e||c.toLowerCase()===e.toLowerCase())&&(e||(e=c),n||(t=h+"\\"+t,n=d),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},l.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),r&&(n=p(n)),n+(o?"\\":"")+i},l.isAbsolute=function(e){return f(e).isAbsolute},l.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),l.normalize(r)},l.relative=function(e,t){e=l.resolve(e),t=l.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=s(t.split("\\")),i=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(i.length,a.length),c=u,d=0;d<u;d++)if(i[d]!==a[d]){c=d;break}if(0==c)return t;var f=[];for(d=c;d<i.length;d++)f.push("..");return(f=f.concat(o.slice(c))).join("\\")},l._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=l.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},l.dirname=function(e){var t=d(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},l.basename=function(e,t){var n=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},l.extname=function(e){return d(e)[3]},l.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,r=e.base||"";return n?n[n.length-1]===l.sep?n+r:n+l.sep+r:r},l.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=d(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},l.sep="\\",l.delimiter=";";var h=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,m={};function v(e){return h.exec(e).slice(1)}m.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var o=n>=0?arguments[n]:r.cwd();if(!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,t="/"===o[0])}return(t?"/":"")+(e=a(e.split("/"),!t).join("/"))||"."},m.normalize=function(e){var t=m.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},m.isAbsolute=function(e){return"/"===e.charAt(0)},m.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return m.normalize(e)},m.relative=function(e,t){e=m.resolve(e).substr(1),t=m.resolve(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var u=[];for(a=i;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},m._makeLong=function(e){return e},m.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},m.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},m.extname=function(e){return v(e)[3]},m.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+m.sep:"")+(e.base||"")},m.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},m.sep="/",m.delimiter=":",e.exports=o?l:m,e.exports.posix=m,e.exports.win32=l},75:function(e,t,n){var r=n(34155);(function(){var t,n,o,i,a,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof r&&null!==r&&r.hrtime?(e.exports=function(){return(t()-a)/1e6},n=r.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),s=1e9*r.uptime(),a=i-s):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)},87236:function(e){var t=null,n=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var r=t.style;if(e in r)return e;for(var o=e.charAt(0).toUpperCase()+e.slice(1),i=n.length;i>=0;i--){var a=n[i]+o;if(a in r)return a}return!1}},34155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,u=[],c=!1,l=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},99560:function(e,t,n){"use strict";var r=n(66632),o=n(98805),i=n(57643),a="data";e.exports=function(e,t){var n=r(t),f=t,p=i;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?f=function(e){var t=e.slice(5).replace(u,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(u.test(t))return e;"-"!==(t=t.replace(c,l)).charAt(0)&&(t="-"+t);return a+t}(t),p=o);return new p(f,t)};var s=/^data[-\w.:]+$/i,u=/-[a-z]/g,c=/[A-Z]/g;function l(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},93934:function(e){"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')},97247:function(e,t,n){"use strict";var r=n(19940),o=n(8289),i=n(5812),a=n(94397),s=n(67716),u=n(61805);e.exports=r([i,o,a,s,u])},67716:function(e,t,n){"use strict";var r=n(17e3),o=n(17596),i=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:i,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},61805:function(e,t,n){"use strict";var r=n(17e3),o=n(17596),i=n(10855),a=r.boolean,s=r.overloadedBoolean,u=r.booleanish,c=r.number,l=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:l,accessKey:l,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:l,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:l,cols:c,colSpan:null,content:null,contentEditable:u,controls:a,controlsList:l,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:u,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:l,height:c,hidden:a,high:c,href:null,hrefLang:null,htmlFor:l,httpEquiv:l,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:l,itemRef:l,itemScope:a,itemType:l,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:c,pattern:null,ping:l,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:l,required:a,reversed:a,rows:c,rowSpan:c,sandbox:l,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:u,width:c,wrap:null,align:null,aLink:null,archive:l,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:c,security:null,unselectable:null}})},45789:function(e,t,n){"use strict";var r=n(17e3),o=n(17596),i=n(28740),a=r.boolean,s=r.number,u=r.spaceSeparated,c=r.commaSeparated,l=r.commaOrSpaceSeparated;e.exports=o({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:i,properties:{about:l,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:c,g2:c,glyphName:c,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:l,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l,rev:l,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l,requiredFeatures:l,requiredFonts:l,requiredFormats:l,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:l,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},10855:function(e,t,n){"use strict";var r=n(28740);e.exports=function(e,t){return r(e,t.toLowerCase())}},28740:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},17596:function(e,t,n){"use strict";var r=n(66632),o=n(99607),i=n(98805);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],u=e.attributes||{},c=e.properties,l=e.transform,d={},f={};for(t in c)n=new i(t,l(u,t),c[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new o(d,f,a)}},98805:function(e,t,n){"use strict";var r=n(57643),o=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=i.length;function s(e,t,n,s){var c,l=-1;for(u(this,"space",s),r.call(this,e,t);++l<a;)u(this,c=i[l],(n&o[c])===o[c])}function u(e,t,n){n&&(e[t]=n)}},57643:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},19940:function(e,t,n){"use strict";var r=n(47529),o=n(99607);e.exports=function(e){var t,n,i=e.length,a=[],s=[],u=-1;for(;++u<i;)t=e[u],a.push(t.property),s.push(t.normal),n=t.space;return new o(r.apply(null,a),r.apply(null,s),n)}},99607:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},17e3:function(e,t){"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},8289:function(e,t,n){"use strict";var r=n(17596);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},5812:function(e,t,n){"use strict";var r=n(17596);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},94397:function(e,t,n){"use strict";var r=n(17596),o=n(10855);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:o,properties:{xmlns:null,xmlnsXLink:null}})},66632:function(e){"use strict";e.exports=function(e){return e.toLowerCase()}},11218:function(e,t,n){"use strict";var r=n(19940),o=n(8289),i=n(5812),a=n(94397),s=n(67716),u=n(45789);e.exports=r([i,o,a,s,u])},54087:function(e,t,n){for(var r=n(75),o="undefined"===typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],u=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!u){var l=0,d=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,16.666666666666668-(t-l));l=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=u}},33485:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.renderViewDefault=function(e){return a.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))};var o,i=n(67294),a=(o=i)&&o.__esModule?o:{default:o};function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},36164:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(54087),a=g(i),s=g(n(53879)),u=n(67294),c=g(n(45697)),l=g(n(77928)),d=g(n(66445)),f=g(n(18309)),p=g(n(51608)),h=g(n(43840)),m=n(58285),v=n(33485);function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var E=function(e){function t(e){var n;y(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=b(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(o)));return a.getScrollLeft=a.getScrollLeft.bind(a),a.getScrollTop=a.getScrollTop.bind(a),a.getScrollWidth=a.getScrollWidth.bind(a),a.getScrollHeight=a.getScrollHeight.bind(a),a.getClientWidth=a.getClientWidth.bind(a),a.getClientHeight=a.getClientHeight.bind(a),a.getValues=a.getValues.bind(a),a.getThumbHorizontalWidth=a.getThumbHorizontalWidth.bind(a),a.getThumbVerticalHeight=a.getThumbVerticalHeight.bind(a),a.getScrollLeftForOffset=a.getScrollLeftForOffset.bind(a),a.getScrollTopForOffset=a.getScrollTopForOffset.bind(a),a.scrollLeft=a.scrollLeft.bind(a),a.scrollTop=a.scrollTop.bind(a),a.scrollToLeft=a.scrollToLeft.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.scrollToRight=a.scrollToRight.bind(a),a.scrollToBottom=a.scrollToBottom.bind(a),a.handleTrackMouseEnter=a.handleTrackMouseEnter.bind(a),a.handleTrackMouseLeave=a.handleTrackMouseLeave.bind(a),a.handleHorizontalTrackMouseDown=a.handleHorizontalTrackMouseDown.bind(a),a.handleVerticalTrackMouseDown=a.handleVerticalTrackMouseDown.bind(a),a.handleHorizontalThumbMouseDown=a.handleHorizontalThumbMouseDown.bind(a),a.handleVerticalThumbMouseDown=a.handleVerticalThumbMouseDown.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleScroll=a.handleScroll.bind(a),a.handleDrag=a.handleDrag.bind(a),a.handleDragEnd=a.handleDragEnd.bind(a),a.state={didMountUniversal:!1},a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r,i=e.scrollWidth,a=void 0===i?0:i,s=e.scrollHeight,u=void 0===s?0:s,c=e.clientWidth,l=void 0===c?0:c,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(a-l)||0,top:o/(u-f)||0,scrollLeft:n,scrollTop:o,scrollWidth:a,scrollHeight:u,clientWidth:l,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollWidth,i=r.clientWidth,a=(0,p.default)(this.trackHorizontal),s=Math.ceil(i/o*a);return a<=s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollHeight,i=r.clientHeight,a=(0,h.default)(this.trackVertical),s=Math.ceil(i/o*a);return a<=s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,p.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,h.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,d.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),i=Math.abs(r-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,o=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(o)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,d.default)()){var i=o.scrollLeft,a=o.clientWidth,u=o.scrollWidth,c=(0,p.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),f={width:l,transform:"translateX("+i/(u-a)*(c-l)+"px)"},m=o.scrollTop,v=o.clientHeight,g=o.scrollHeight,y=(0,h.default)(this.trackVertical),b=this.getThumbVerticalHeight(),E={height:b,transform:"translateY("+m/(g-v)*(y-b)+"px)"};if(r){var _={visibility:u>a?"visible":"hidden"},T={visibility:g>v?"visible":"hidden"};(0,s.default)(this.trackHorizontal,_),(0,s.default)(this.trackVertical,T)}(0,s.default)(this.thumbHorizontal,f),(0,s.default)(this.thumbVertical,E)}n&&n(o),"function"===typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,o=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,f=n.tagName,p=(n.hideTracksWhenNotNeeded,n.autoHide),h=(n.autoHideTimeout,n.autoHideDuration),v=(n.thumbSize,n.thumbMinSize,n.universal),g=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,E=n.style,_=n.children,T=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),w=this.state.didMountUniversal,k=r({},m.containerStyleDefault,g&&r({},m.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),E),x=r({},m.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},g&&r({},m.viewStyleAutoHeight,{minHeight:(0,l.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,l.default)(b)?"calc("+b+" + "+t+"px)":b+t}),g&&v&&!w&&{minHeight:y,maxHeight:b},v&&!w&&m.viewStyleUniversalInitial),O={transition:"opacity "+h+"ms",opacity:0},C=r({},m.trackHorizontalStyleDefault,p&&O,(!t||v&&!w)&&{display:"none"}),A=r({},m.trackVerticalStyleDefault,p&&O,(!t||v&&!w)&&{display:"none"});return(0,u.createElement)(f,r({},T,{style:k,ref:function(t){e.container=t}}),[(0,u.cloneElement)(o({style:x}),{key:"view",ref:function(t){e.view=t}},_),(0,u.cloneElement)(i({style:C}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(s({style:m.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(a({style:A}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(c({style:m.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=E,E.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},E.defaultProps={renderView:v.renderViewDefault,renderTrackHorizontal:v.renderTrackHorizontalDefault,renderTrackVertical:v.renderTrackVerticalDefault,renderThumbHorizontal:v.renderThumbHorizontalDefault,renderThumbVertical:v.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},58285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},86658:function(e,t,n){"use strict";t.$B=void 0;var r,o=n(36164),i=(r=o)&&r.__esModule?r:{default:r};t.ZP=i.default,t.$B=i.default},43840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}},51608:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}},66445:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e&&!1!==a)return a;if("undefined"!==typeof document){var t=document.createElement("div");(0,i.default)(t,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}else a=0;return a||0};var r,o=n(53879),i=(r=o)&&r.__esModule?r:{default:r};var a=!1},77928:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e}},18309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},69590:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!i(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!i(e[c[u]],a[c[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},61957:function(e,n,r){"use strict";r.d(n,{f$:function(){return Hi},s6:function(){return Bi}});var o=r(67294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e,t){var n=new Set(t);return Object.assign.apply(Object,[{}].concat(s(Object.entries(e).filter((function(e){var t=a(e,1)[0];return!n.has(t)})).map((function(e){var t=a(e,2);return i({},t[0],t[1])})))))},d=r(23405),f=r.n(d);function p(e){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"===typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y=function(e,t){var n="object"===p(t)?t:{wrapperElementType:t,methodNames:(arguments.length<=2?void 0:arguments[2])||void 0,initPropNames:(arguments.length<=3?void 0:arguments[3])||void 0},r=n.wrapperElementType,i=void 0===r?"div":r,a=n.nodeMapper,s=void 0===a?function(e){return e}:a,u=n.methodNames,c=void 0===u?[]:u,d=n.initPropNames,v=void 0===d?[]:d;return(0,o.forwardRef)((function(t,n){var r=(0,o.useRef)(),a=h((0,o.useState)({}),2),u=a[0],d=a[1];(0,o.useEffect)((function(){return d(t)}));var p=(0,o.useMemo)((function(){var n=f()(v.filter((function(e){return t.hasOwnProperty(e)})).map((function(e){return[e,t[e]]})));return e(n)}),[]);(0,o.useLayoutEffect)((function(){p(s(r.current))}),[]),(0,o.useEffect)((function(){return p._destructor instanceof Function?p._destructor:void 0}),[]);var g=(0,o.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return p[e]instanceof Function?p[e].apply(p,n):void 0}),[p]),y=l(t,[].concat(m(c),m(v)));return Object.keys(y).filter((function(e){return u[e]!==t[e]})).forEach((function(e){return g(e,t[e])})),(0,o.useImperativeHandle)(n,(function(){return f()(c.map((function(e){return[e,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g.apply(void 0,[e].concat(n))}]})))})),o.createElement(i,{ref:r})}))},b=(r(75569),r(60401),r(31359),r(44858)),E=r(92539);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".graph-nav-info {\n  position: absolute;\n  bottom: 5px;\n  width: 100%;\n  text-align: center;\n  color: slategrey;\n  opacity: 0.7;\n  font-size: 10px;\n  font-family: Sans-serif;\n  z-index: 1000;\n}");var A=(0,b.Z)({props:{width:{default:window.innerWidth,triggerUpdate:!1,onChange:function(e,t){t.container&&(t.container.style.width=e)}},height:{default:window.innerHeight,triggerUpdate:!1,onChange:function(e,t){t.container&&(t.container.style.height=e)}},jsonUrl:{},graphData:{default:{nodes:[],links:[]}},numDimensions:{default:3},dagMode:{},dagLevelDistance:{},dagNodeFilter:{default:function(){return!0}},onDagError:{default:void 0},backgroundColor:{default:"#002"},showNavInfo:{default:!0},nodeRelSize:{default:4},nodeId:{default:"id"},nodeLabel:{default:"name"},nodeDesc:{default:"desc"},onNodeHover:{},onNodeClick:{},nodeVal:{default:"val"},nodeResolution:{default:8},nodeVisibility:{default:!0},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkLabel:{default:"name"},linkDesc:{default:"desc"},onLinkHover:{},onLinkClick:{},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{default:0},linkResolution:{default:6},linkCurvature:{default:0},linkCurveRotation:{default:0},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228},d3VelocityDecay:{default:.4},ngraphPhysics:{},warmupTicks:{default:0},cooldownTicks:{},cooldownTime:{default:15e3},onEngineTick:{},onEngineStop:{}},methods:T(T({},Object.assign.apply(Object,[{}].concat(x(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return w({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=n[e].apply(n,o);return a===n?this:a}))})))))),{},{_destructor:function(){this.graphData({nodes:[],links:[]})}}),init:function(e,t){e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container),t.container.style.position="relative",t.container.style.width=t.width,t.container.style.height=t.height,t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="graph-nav-info",t.navInfo.textContent="Mouse drag: look, gamepad/arrow/wasd keys: move";var n,r,o,i,a,s=document.createElement("a-scene");s.setAttribute("embedded",""),s.appendChild(t.sky=document.createElement("a-sky")),t.sky.setAttribute("radius",3e3),s.appendChild(n=document.createElement("a-entity")),n.setAttribute("position","0 0 300"),n.setAttribute("movement-controls","fly: true; speed: 7"),n.appendChild(r=document.createElement("a-entity")),r.setAttribute("camera",""),r.setAttribute("position","0 0 0"),r.setAttribute("look-controls","reverseMouseDrag: false; pointerLockEnabled: false"),r.appendChild(o=document.createElement("a-text")),o.setAttribute("position","0 -0.3 -1"),o.setAttribute("width",2),o.setAttribute("align","center"),o.setAttribute("color","lavender"),o.setAttribute("value",""),r.appendChild(i=document.createElement("a-text")),i.setAttribute("position","0 -0.4 -1"),i.setAttribute("width",1.3),i.setAttribute("align","center"),i.setAttribute("color","lavender"),i.setAttribute("value",""),s.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor","rayOrigin: mouse; mouseCursorStylesEnabled: true"),a.setAttribute("raycaster","objects: [forcegraph]; interval: 100"),["left","right"].forEach((function(e){var t;n.appendChild(t=document.createElement("a-entity")),t.setAttribute("laser-controls","hand: ".concat(e)),t.setAttribute("raycaster","objects: [forcegraph]; interval: 100; lineColor: steelblue; lineOpacity: 0.85")})),s.appendChild(t.forcegraph=document.createElement("a-entity")),t.forcegraph.setAttribute("forcegraph",null),t.container.appendChild(s),t.forcegraph.setAttribute("forcegraph",Object.assign.apply(Object,x(["node","link"].map((function(e){var n={node:"Node",link:"Link"}[e];return w({},"on".concat(n,"Hover"),(function(r,a){var s=r&&(0,E.default)(t["".concat(e,"Label")])(r)||"",u=r&&(0,E.default)(t["".concat(e,"Desc")])(r)||"";o.setAttribute("value",s),i.setAttribute("value",u),t["on".concat(n,"Hover")]&&t["on".concat(n,"Hover")](r,a)}))})))))},update:function(e,t){t.hasOwnProperty("backgroundColor")&&e.sky.setAttribute("color",e.backgroundColor),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none");var n=["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","onNodeClick","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","onLinkClick","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"],r=Object.assign.apply(Object,[{}].concat(x(Object.entries(e).filter((function(e){var r=k(e,2),o=r[0],i=r[1];return t.hasOwnProperty(o)&&-1!==n.indexOf(o)&&void 0!==i&&null!==i})).map((function(e){var t=k(e,2);return w({},t[0],t[1])}))),x(Object.entries(e.graphData).map((function(e){var t=k(e,2);return w({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",r)}}),S=r(45697),M=r.n(S);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||L(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){if(e){if("string"===typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var F=(0,b.Z)({props:{width:{},height:{},yOffset:{default:1.5},glScale:{default:200},jsonUrl:{},graphData:{default:{nodes:[],links:[]}},numDimensions:{default:3},dagMode:{},dagLevelDistance:{},dagNodeFilter:{default:function(){return!0}},onDagError:{default:void 0},nodeRelSize:{default:4},nodeId:{default:"id"},nodeVal:{default:"val"},nodeResolution:{default:8},nodeVisibility:{default:!0},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{default:0},linkResolution:{default:6},linkCurvature:{default:0},linkCurveRotation:{default:0},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},onNodeHover:{},onNodeClick:{},onLinkHover:{},onLinkClick:{},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228},d3VelocityDecay:{default:.4},ngraphPhysics:{},warmupTicks:{default:0},cooldownTicks:{},cooldownTime:{default:15e3},onEngineTick:{},onEngineStop:{}},methods:I(I({},Object.assign.apply(Object,[{}].concat(R(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return P({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=n[e].apply(n,o);return a===n?this:a}))})))))),{},{_destructor:function(){this.graphData({nodes:[],links:[]})}}),init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.markerAttrs,o=void 0===r?{preset:"hiro"}:r;e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container);var i=document.createElement("a-scene");i.setAttribute("embedded",""),i.setAttribute("arjs","debugUIEnabled: false;");var a,s=document.createElement("a-marker");Object.entries(o).forEach((function(e){var t=N(e,2),n=t[0],r=t[1];return s.setAttribute(n,r)})),i.appendChild(s),i.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor"),a.setAttribute("raycaster","objects: [forcegraph]"),t.forcegraph=document.createElement("a-entity"),t.forcegraph.setAttribute("forcegraph",null),s.appendChild(t.forcegraph);var u=document.createElement("a-entity");u.setAttribute("camera",""),i.appendChild(u),t.container.appendChild(i)},update:function(e,t){t.hasOwnProperty("width")&&e.width&&(e.container.style.width=e.width),t.hasOwnProperty("height")&&e.height&&(e.container.style.height=e.height),t.hasOwnProperty("glScale")&&e.forcegraph.setAttribute("scale",R(new Array(3)).map((function(){return 1/e.glScale})).join(" ")),t.hasOwnProperty("yOffset")&&e.forcegraph.setAttribute("position","0 ".concat(e.yOffset," 0"));var n=["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","onNodeHover","onNodeClick","onLinkHover","onLinkClick","forceEngine","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"],r=Object.assign.apply(Object,[{}].concat(R(Object.entries(e).filter((function(e){var r=N(e,2),o=r[0],i=r[1];return t.hasOwnProperty(o)&&-1!==n.indexOf(o)&&void 0!==i&&null!==i})).map((function(e){var t=N(e,2);return P({},t[0],t[1])}))),R(Object.entries(e.graphData).map((function(e){var t=N(e,2);return P({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",r)}}),B=r(2212);const H=new B.JOQ,U=new B.iMs,z=new B.FM8,V=new B.Pa4,G=new B.Pa4,W=new B.Pa4,K=new B.yGw;class q extends B.pBf{constructor(e,t,n){super(),n.style.touchAction="none";let r=null,o=null;const i=[],a=this;function s(){n.addEventListener("pointermove",c),n.addEventListener("pointerdown",l),n.addEventListener("pointerup",d),n.addEventListener("pointerleave",d)}function u(){n.removeEventListener("pointermove",c),n.removeEventListener("pointerdown",l),n.removeEventListener("pointerup",d),n.removeEventListener("pointerleave",d),n.style.cursor=""}function c(s){if(!1!==a.enabled){if(f(s),U.setFromCamera(z,t),r)return U.ray.intersectPlane(H,G)&&r.position.copy(G.sub(V).applyMatrix4(K)),void a.dispatchEvent({type:"drag",object:r});if("mouse"===s.pointerType||"pen"===s.pointerType)if(i.length=0,U.setFromCamera(z,t),U.intersectObjects(e,!0,i),i.length>0){const e=i[0].object;H.setFromNormalAndCoplanarPoint(t.getWorldDirection(H.normal),W.setFromMatrixPosition(e.matrixWorld)),o!==e&&null!==o&&(a.dispatchEvent({type:"hoveroff",object:o}),n.style.cursor="auto",o=null),o!==e&&(a.dispatchEvent({type:"hoveron",object:e}),n.style.cursor="pointer",o=e)}else null!==o&&(a.dispatchEvent({type:"hoveroff",object:o}),n.style.cursor="auto",o=null)}}function l(o){!1!==a.enabled&&(f(o),i.length=0,U.setFromCamera(z,t),U.intersectObjects(e,!0,i),i.length>0&&(r=!0===a.transformGroup?e[0]:i[0].object,H.setFromNormalAndCoplanarPoint(t.getWorldDirection(H.normal),W.setFromMatrixPosition(r.matrixWorld)),U.ray.intersectPlane(H,G)&&(K.copy(r.parent.matrixWorld).invert(),V.copy(G).sub(W.setFromMatrixPosition(r.matrixWorld))),n.style.cursor="move",a.dispatchEvent({type:"dragstart",object:r})))}function d(){!1!==a.enabled&&(r&&(a.dispatchEvent({type:"dragend",object:r}),r=null),n.style.cursor=o?"pointer":"auto")}function f(e){const t=n.getBoundingClientRect();z.x=(e.clientX-t.left)/t.width*2-1,z.y=-(e.clientY-t.top)/t.height*2+1}s(),this.enabled=!0,this.transformGroup=!1,this.activate=s,this.deactivate=u,this.dispose=function(){u()},this.getObjects=function(){return e}}}var Y=r(81398);const $={type:"change"},Z={type:"start"},X={type:"end"};class Q extends B.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.TrackballControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.TrackballControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.');const n=this,r=-1,o=0,i=1,a=2,s=3,u=4;this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:B.RsA.ROTATE,MIDDLE:B.RsA.DOLLY,RIGHT:B.RsA.PAN},this.target=new B.Pa4;const c=1e-6,l=new B.Pa4;let d=1,f=r,p=r,h=0,m=0,v=0;const g=new B.Pa4,y=new B.FM8,b=new B.FM8,E=new B.Pa4,_=new B.FM8,T=new B.FM8,w=new B.FM8,k=new B.FM8,x=[],O={};this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.up0=this.object.up.clone(),this.zoom0=this.object.zoom,this.handleResize=function(){const e=n.domElement.getBoundingClientRect(),t=n.domElement.ownerDocument.documentElement;n.screen.left=e.left+window.pageXOffset-t.clientLeft,n.screen.top=e.top+window.pageYOffset-t.clientTop,n.screen.width=e.width,n.screen.height=e.height};const C=function(){const e=new B.FM8;return function(t,r){return e.set((t-n.screen.left)/n.screen.width,(r-n.screen.top)/n.screen.height),e}}(),A=function(){const e=new B.FM8;return function(t,r){return e.set((t-.5*n.screen.width-n.screen.left)/(.5*n.screen.width),(n.screen.height+2*(n.screen.top-r))/n.screen.width),e}}();function S(e){!1!==n.enabled&&(0===x.length&&(n.domElement.ownerDocument.addEventListener("pointermove",M),n.domElement.ownerDocument.addEventListener("pointerup",D)),function(e){x.push(e)}(e),"touch"===e.pointerType?function(e){switch(F(e),x.length){case 1:f=s,b.copy(A(x[0].pageX,x[0].pageY)),y.copy(b);break;default:f=u;const e=x[0].pageX-x[1].pageX,t=x[0].pageY-x[1].pageY;m=h=Math.sqrt(e*e+t*t);const n=(x[0].pageX+x[1].pageX)/2,r=(x[0].pageY+x[1].pageY)/2;w.copy(C(n,r)),k.copy(w)}n.dispatchEvent(Z)}(e):function(e){if(f===r)switch(e.button){case n.mouseButtons.LEFT:f=o;break;case n.mouseButtons.MIDDLE:f=i;break;case n.mouseButtons.RIGHT:f=a;break;default:f=r}const t=p!==r?p:f;t!==o||n.noRotate?t!==i||n.noZoom?t!==a||n.noPan||(w.copy(C(e.pageX,e.pageY)),k.copy(w)):(_.copy(C(e.pageX,e.pageY)),T.copy(_)):(b.copy(A(e.pageX,e.pageY)),y.copy(b));n.domElement.ownerDocument.addEventListener("pointermove",M),n.domElement.ownerDocument.addEventListener("pointerup",D),n.dispatchEvent(Z)}(e))}function M(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(F(e),x.length){case 1:y.copy(b),b.copy(A(e.pageX,e.pageY));break;default:const t=function(e){const t=e.pointerId===x[0].pointerId?x[1]:x[0];return O[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;m=Math.sqrt(n*n+r*r);const o=(e.pageX+t.x)/2,i=(e.pageY+t.y)/2;k.copy(C(o,i))}}(e):function(e){const t=p!==r?p:f;t!==o||n.noRotate?t!==i||n.noZoom?t!==a||n.noPan||k.copy(C(e.pageX,e.pageY)):T.copy(C(e.pageX,e.pageY)):(y.copy(b),b.copy(A(e.pageX,e.pageY)))}(e))}function D(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(x.length){case 0:f=r;break;case 1:f=s,b.copy(A(e.pageX,e.pageY)),y.copy(b)}n.dispatchEvent(X)}(e):(f=r,n.domElement.ownerDocument.removeEventListener("pointermove",M),n.domElement.ownerDocument.removeEventListener("pointerup",D),n.dispatchEvent(X)),j(e),0===x.length&&(n.domElement.ownerDocument.removeEventListener("pointermove",M),n.domElement.ownerDocument.removeEventListener("pointerup",D)))}function I(e){j(e)}function P(e){!1!==n.enabled&&(window.removeEventListener("keydown",P),p===r&&(e.code!==n.keys[o]||n.noRotate?e.code!==n.keys[i]||n.noZoom?e.code!==n.keys[a]||n.noPan||(p=a):p=i:p=o))}function N(){!1!==n.enabled&&(p=r,window.addEventListener("keydown",P))}function R(e){if(!1!==n.enabled&&!0!==n.noZoom){switch(e.preventDefault(),e.deltaMode){case 2:_.y-=.025*e.deltaY;break;case 1:_.y-=.01*e.deltaY;break;default:_.y-=25e-5*e.deltaY}n.dispatchEvent(Z),n.dispatchEvent(X)}}function L(e){!1!==n.enabled&&e.preventDefault()}function j(e){delete O[e.pointerId];for(let t=0;t<x.length;t++)if(x[t].pointerId==e.pointerId)return void x.splice(t,1)}function F(e){let t=O[e.pointerId];void 0===t&&(t=new B.FM8,O[e.pointerId]=t),t.set(e.pageX,e.pageY)}this.rotateCamera=function(){const e=new B.Pa4,t=new B._fP,r=new B.Pa4,o=new B.Pa4,i=new B.Pa4,a=new B.Pa4;return function(){a.set(b.x-y.x,b.y-y.y,0);let s=a.length();s?(g.copy(n.object.position).sub(n.target),r.copy(g).normalize(),o.copy(n.object.up).normalize(),i.crossVectors(o,r).normalize(),o.setLength(b.y-y.y),i.setLength(b.x-y.x),a.copy(o.add(i)),e.crossVectors(a,g).normalize(),s*=n.rotateSpeed,t.setFromAxisAngle(e,s),g.applyQuaternion(t),n.object.up.applyQuaternion(t),E.copy(e),v=s):!n.staticMoving&&v&&(v*=Math.sqrt(1-n.dynamicDampingFactor),g.copy(n.object.position).sub(n.target),t.setFromAxisAngle(E,v),g.applyQuaternion(t),n.object.up.applyQuaternion(t)),y.copy(b)}}(),this.zoomCamera=function(){let e;f===u?(e=h/m,h=m,n.object.isPerspectiveCamera?g.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom*=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(e=1+(T.y-_.y)*n.zoomSpeed,1!==e&&e>0&&(n.object.isPerspectiveCamera?g.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom/=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),n.staticMoving?_.copy(T):_.y+=(T.y-_.y)*this.dynamicDampingFactor)},this.panCamera=function(){const e=new B.FM8,t=new B.Pa4,r=new B.Pa4;return function(){if(e.copy(k).sub(w),e.lengthSq()){if(n.object.isOrthographicCamera){const t=(n.object.right-n.object.left)/n.object.zoom/n.domElement.clientWidth,r=(n.object.top-n.object.bottom)/n.object.zoom/n.domElement.clientWidth;e.x*=t,e.y*=r}e.multiplyScalar(g.length()*n.panSpeed),r.copy(g).cross(n.object.up).setLength(e.x),r.add(t.copy(n.object.up).setLength(e.y)),n.object.position.add(r),n.target.add(r),n.staticMoving?w.copy(k):w.add(e.subVectors(k,w).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(g.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,g.setLength(n.maxDistance)),_.copy(T)),g.lengthSq()<n.minDistance*n.minDistance&&(n.object.position.addVectors(n.target,g.setLength(n.minDistance)),_.copy(T)))},this.update=function(){g.subVectors(n.object.position,n.target),n.noRotate||n.rotateCamera(),n.noZoom||n.zoomCamera(),n.noPan||n.panCamera(),n.object.position.addVectors(n.target,g),n.object.isPerspectiveCamera?(n.checkDistances(),n.object.lookAt(n.target),l.distanceToSquared(n.object.position)>c&&(n.dispatchEvent($),l.copy(n.object.position))):n.object.isOrthographicCamera?(n.object.lookAt(n.target),(l.distanceToSquared(n.object.position)>c||d!==n.object.zoom)&&(n.dispatchEvent($),l.copy(n.object.position),d=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){f=r,p=r,n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.up.copy(n.up0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),g.subVectors(n.object.position,n.target),n.object.lookAt(n.target),n.dispatchEvent($),l.copy(n.object.position),d=n.object.zoom},this.dispose=function(){n.domElement.removeEventListener("contextmenu",L),n.domElement.removeEventListener("pointerdown",S),n.domElement.removeEventListener("pointercancel",I),n.domElement.removeEventListener("wheel",R),window.removeEventListener("keydown",P),window.removeEventListener("keyup",N)},this.domElement.addEventListener("contextmenu",L),this.domElement.addEventListener("pointerdown",S),this.domElement.addEventListener("pointercancel",I),this.domElement.addEventListener("wheel",R,{passive:!1}),window.addEventListener("keydown",P),window.addEventListener("keyup",N),this.handleResize(),this.update()}}const J={type:"change"},ee={type:"start"},te={type:"end"};class ne extends B.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new B.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:B.RsA.ROTATE,MIDDLE:B.RsA.DOLLY,RIGHT:B.RsA.PAN},this.touches={ONE:B.QmN.ROTATE,TWO:B.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.listenToKeyEvents=function(e){e.addEventListener("keydown",G),this._domElementKeyEvents=e},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(J),n.update(),o=r.NONE},this.update=function(){const t=new B.Pa4,d=(new B._fP).setFromUnitVectors(e.up,new B.Pa4(0,1,0)),f=d.clone().invert(),p=new B.Pa4,h=new B._fP,m=2*Math.PI;return function(){const e=n.object.position;t.copy(e).sub(n.target),t.applyQuaternion(d),a.setFromVector3(t),n.autoRotate&&o===r.NONE&&w(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(a.theta+=s.theta*n.dampingFactor,a.phi+=s.phi*n.dampingFactor):(a.theta+=s.theta,a.phi+=s.phi);let v=n.minAzimuthAngle,g=n.maxAzimuthAngle;return isFinite(v)&&isFinite(g)&&(v<-Math.PI?v+=m:v>Math.PI&&(v-=m),g<-Math.PI?g+=m:g>Math.PI&&(g-=m),a.theta=v<=g?Math.max(v,Math.min(g,a.theta)):a.theta>(v+g)/2?Math.max(v,a.theta):Math.min(g,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),a.radius*=u,a.radius=Math.max(n.minDistance,Math.min(n.maxDistance,a.radius)),!0===n.enableDamping?n.target.addScaledVector(c,n.dampingFactor):n.target.add(c),t.setFromSpherical(a),t.applyQuaternion(f),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(s.theta*=1-n.dampingFactor,s.phi*=1-n.dampingFactor,c.multiplyScalar(1-n.dampingFactor)):(s.set(0,0,0),c.set(0,0,0)),u=1,!!(l||p.distanceToSquared(n.object.position)>i||8*(1-h.dot(n.object.quaternion))>i)&&(n.dispatchEvent(J),p.copy(n.object.position),h.copy(n.object.quaternion),l=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",W),n.domElement.removeEventListener("pointerdown",F),n.domElement.removeEventListener("pointercancel",z),n.domElement.removeEventListener("wheel",V),n.domElement.ownerDocument.removeEventListener("pointermove",H),n.domElement.ownerDocument.removeEventListener("pointerup",U),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",G)};const n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let o=r.NONE;const i=1e-6,a=new B.$V,s=new B.$V;let u=1;const c=new B.Pa4;let l=!1;const d=new B.FM8,f=new B.FM8,p=new B.FM8,h=new B.FM8,m=new B.FM8,v=new B.FM8,g=new B.FM8,y=new B.FM8,b=new B.FM8,E=[],_={};function T(){return Math.pow(.95,n.zoomSpeed)}function w(e){s.theta-=e}function k(e){s.phi-=e}const x=function(){const e=new B.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),c.add(e)}}(),O=function(){const e=new B.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),c.add(e)}}(),C=function(){const e=new B.Pa4;return function(t,r){const o=n.domElement;if(n.object.isPerspectiveCamera){const i=n.object.position;e.copy(i).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),x(2*t*a/o.clientHeight,n.object.matrix),O(2*r*a/o.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(x(t*(n.object.right-n.object.left)/n.object.zoom/o.clientWidth,n.object.matrix),O(r*(n.object.top-n.object.bottom)/n.object.zoom/o.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function A(e){n.object.isPerspectiveCamera?u/=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function S(e){n.object.isPerspectiveCamera?u*=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function M(e){d.set(e.clientX,e.clientY)}function D(e){h.set(e.clientX,e.clientY)}function I(){if(1===E.length)d.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);d.set(e,t)}}function P(){if(1===E.length)h.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);h.set(e,t)}}function N(){const e=E[0].pageX-E[1].pageX,t=E[0].pageY-E[1].pageY,n=Math.sqrt(e*e+t*t);g.set(0,n)}function R(e){if(1==E.length)f.set(e.pageX,e.pageY);else{const t=Y(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}p.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;w(2*Math.PI*p.x/t.clientHeight),k(2*Math.PI*p.y/t.clientHeight),d.copy(f)}function L(e){if(1===E.length)m.set(e.pageX,e.pageY);else{const t=Y(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}v.subVectors(m,h).multiplyScalar(n.panSpeed),C(v.x,v.y),h.copy(m)}function j(e){const t=Y(e),r=e.pageX-t.x,o=e.pageY-t.y,i=Math.sqrt(r*r+o*o);y.set(0,i),b.set(0,Math.pow(y.y/g.y,n.zoomSpeed)),A(b.y),g.copy(y)}function F(e){!1!==n.enabled&&(0===E.length&&(n.domElement.ownerDocument.addEventListener("pointermove",H),n.domElement.ownerDocument.addEventListener("pointerup",U)),function(e){E.push(e)}(e),"touch"===e.pointerType?function(e){switch(q(e),E.length){case 1:switch(n.touches.ONE){case B.QmN.ROTATE:if(!1===n.enableRotate)return;I(),o=r.TOUCH_ROTATE;break;case B.QmN.PAN:if(!1===n.enablePan)return;P(),o=r.TOUCH_PAN;break;default:o=r.NONE}break;case 2:switch(n.touches.TWO){case B.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&N(),n.enablePan&&P(),o=r.TOUCH_DOLLY_PAN;break;case B.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&N(),n.enableRotate&&I(),o=r.TOUCH_DOLLY_ROTATE;break;default:o=r.NONE}break;default:o=r.NONE}o!==r.NONE&&n.dispatchEvent(ee)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case B.RsA.DOLLY:if(!1===n.enableZoom)return;!function(e){g.set(e.clientX,e.clientY)}(e),o=r.DOLLY;break;case B.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;D(e),o=r.PAN}else{if(!1===n.enableRotate)return;M(e),o=r.ROTATE}break;case B.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;M(e),o=r.ROTATE}else{if(!1===n.enablePan)return;D(e),o=r.PAN}break;default:o=r.NONE}o!==r.NONE&&n.dispatchEvent(ee)}(e))}function H(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(q(e),o){case r.TOUCH_ROTATE:if(!1===n.enableRotate)return;R(e),n.update();break;case r.TOUCH_PAN:if(!1===n.enablePan)return;L(e),n.update();break;case r.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&j(e),n.enablePan&&L(e)}(e),n.update();break;case r.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&j(e),n.enableRotate&&R(e)}(e),n.update();break;default:o=r.NONE}}(e):function(e){if(!1===n.enabled)return;switch(o){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){f.set(e.clientX,e.clientY),p.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;w(2*Math.PI*p.x/t.clientHeight),k(2*Math.PI*p.y/t.clientHeight),d.copy(f),n.update()}(e);break;case r.DOLLY:if(!1===n.enableZoom)return;!function(e){y.set(e.clientX,e.clientY),b.subVectors(y,g),b.y>0?A(T()):b.y<0&&S(T()),g.copy(y),n.update()}(e);break;case r.PAN:if(!1===n.enablePan)return;!function(e){m.set(e.clientX,e.clientY),v.subVectors(m,h).multiplyScalar(n.panSpeed),C(v.x,v.y),h.copy(m),n.update()}(e)}}(e))}function U(e){!1!==n.enabled&&(e.pointerType,n.dispatchEvent(te),o=r.NONE,K(e),0===E.length&&(n.domElement.ownerDocument.removeEventListener("pointermove",H),n.domElement.ownerDocument.removeEventListener("pointerup",U)))}function z(e){K(e)}function V(e){!1===n.enabled||!1===n.enableZoom||o!==r.NONE&&o!==r.ROTATE||(e.preventDefault(),n.dispatchEvent(ee),function(e){e.deltaY<0?S(T()):e.deltaY>0&&A(T()),n.update()}(e),n.dispatchEvent(te))}function G(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:C(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:C(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:C(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:C(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function W(e){!1!==n.enabled&&e.preventDefault()}function K(e){delete _[e.pointerId];for(let t=0;t<E.length;t++)if(E[t].pointerId==e.pointerId)return void E.splice(t,1)}function q(e){let t=_[e.pointerId];void 0===t&&(t=new B.FM8,_[e.pointerId]=t),t.set(e.pageX,e.pageY)}function Y(e){const t=e.pointerId===E[0].pointerId?E[1]:E[0];return _[t.pointerId]}n.domElement.addEventListener("contextmenu",W),n.domElement.addEventListener("pointerdown",F),n.domElement.addEventListener("pointercancel",z),n.domElement.addEventListener("wheel",V,{passive:!1}),this.update()}}const re={type:"change"};class oe extends B.pBf{constructor(e,t){super(),void 0===t&&(console.warn('THREE.FlyControls: The second parameter "domElement" is now mandatory.'),t=document),this.object=e,this.domElement=t,this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1;const n=this,r=1e-6,o=new B._fP,i=new B.Pa4;this.tmpQuaternion=new B._fP,this.mouseStatus=0,this.moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this.moveVector=new B.Pa4(0,0,0),this.rotationVector=new B.Pa4(0,0,0),this.keydown=function(e){if(!e.altKey){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this.moveState.forward=1;break;case"KeyS":this.moveState.back=1;break;case"KeyA":this.moveState.left=1;break;case"KeyD":this.moveState.right=1;break;case"KeyR":this.moveState.up=1;break;case"KeyF":this.moveState.down=1;break;case"ArrowUp":this.moveState.pitchUp=1;break;case"ArrowDown":this.moveState.pitchDown=1;break;case"ArrowLeft":this.moveState.yawLeft=1;break;case"ArrowRight":this.moveState.yawRight=1;break;case"KeyQ":this.moveState.rollLeft=1;break;case"KeyE":this.moveState.rollRight=1}this.updateMovementVector(),this.updateRotationVector()}},this.keyup=function(e){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this.moveState.forward=0;break;case"KeyS":this.moveState.back=0;break;case"KeyA":this.moveState.left=0;break;case"KeyD":this.moveState.right=0;break;case"KeyR":this.moveState.up=0;break;case"KeyF":this.moveState.down=0;break;case"ArrowUp":this.moveState.pitchUp=0;break;case"ArrowDown":this.moveState.pitchDown=0;break;case"ArrowLeft":this.moveState.yawLeft=0;break;case"ArrowRight":this.moveState.yawRight=0;break;case"KeyQ":this.moveState.rollLeft=0;break;case"KeyE":this.moveState.rollRight=0}this.updateMovementVector(),this.updateRotationVector()},this.mousedown=function(e){if(this.dragToLook)this.mouseStatus++;else{switch(e.button){case 0:this.moveState.forward=1;break;case 2:this.moveState.back=1}this.updateMovementVector()}},this.mousemove=function(e){if(!this.dragToLook||this.mouseStatus>0){const t=this.getContainerDimensions(),n=t.size[0]/2,r=t.size[1]/2;this.moveState.yawLeft=-(e.pageX-t.offset[0]-n)/n,this.moveState.pitchDown=(e.pageY-t.offset[1]-r)/r,this.updateRotationVector()}},this.mouseup=function(e){if(this.dragToLook)this.mouseStatus--,this.moveState.yawLeft=this.moveState.pitchDown=0;else{switch(e.button){case 0:this.moveState.forward=0;break;case 2:this.moveState.back=0}this.updateMovementVector()}this.updateRotationVector()},this.update=function(e){const t=e*n.movementSpeed,a=e*n.rollSpeed;n.object.translateX(n.moveVector.x*t),n.object.translateY(n.moveVector.y*t),n.object.translateZ(n.moveVector.z*t),n.tmpQuaternion.set(n.rotationVector.x*a,n.rotationVector.y*a,n.rotationVector.z*a,1).normalize(),n.object.quaternion.multiply(n.tmpQuaternion),(i.distanceToSquared(n.object.position)>r||8*(1-o.dot(n.object.quaternion))>r)&&(n.dispatchEvent(re),o.copy(n.object.quaternion),i.copy(n.object.position))},this.updateMovementVector=function(){const e=this.moveState.forward||this.autoForward&&!this.moveState.back?1:0;this.moveVector.x=-this.moveState.left+this.moveState.right,this.moveVector.y=-this.moveState.down+this.moveState.up,this.moveVector.z=-e+this.moveState.back},this.updateRotationVector=function(){this.rotationVector.x=-this.moveState.pitchDown+this.moveState.pitchUp,this.rotationVector.y=-this.moveState.yawRight+this.moveState.yawLeft,this.rotationVector.z=-this.moveState.rollRight+this.moveState.rollLeft},this.getContainerDimensions=function(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}},this.dispose=function(){this.domElement.removeEventListener("contextmenu",ie),this.domElement.removeEventListener("mousedown",s),this.domElement.removeEventListener("mousemove",a),this.domElement.removeEventListener("mouseup",u),window.removeEventListener("keydown",c),window.removeEventListener("keyup",l)};const a=this.mousemove.bind(this),s=this.mousedown.bind(this),u=this.mouseup.bind(this),c=this.keydown.bind(this),l=this.keyup.bind(this);this.domElement.addEventListener("contextmenu",ie),this.domElement.addEventListener("mousemove",a),this.domElement.addEventListener("mousedown",s),this.domElement.addEventListener("mouseup",u),window.addEventListener("keydown",c),window.addEventListener("keyup",l),this.updateMovementVector(),this.updateRotationVector()}}function ie(e){e.preventDefault()}var ae={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\t\t}"};class se{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const ue=new B.iKG(-1,1,1,-1,0,1),ce=new B.u9r;ce.setAttribute("position",new B.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),ce.setAttribute("uv",new B.a$l([0,2,0,0,2,0],2));class le{constructor(e){this._mesh=new B.Kj0(ce,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,ue)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}class de extends se{constructor(e,t){super(),this.textureID=void 0!==t?t:"tDiffuse",e instanceof B.jyz?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=B.rDY.clone(e.uniforms),this.material=new B.jyz({defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new le(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}}class fe extends se{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){const r=e.getContext(),o=e.state;let i,a;o.buffers.color.setMask(!1),o.buffers.depth.setMask(!1),o.buffers.color.setLocked(!0),o.buffers.depth.setLocked(!0),this.inverse?(i=0,a=1):(i=1,a=0),o.buffers.stencil.setTest(!0),o.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),o.buffers.stencil.setFunc(r.ALWAYS,i,4294967295),o.buffers.stencil.setClear(a),o.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),o.buffers.color.setLocked(!1),o.buffers.depth.setLocked(!1),o.buffers.stencil.setLocked(!1),o.buffers.stencil.setFunc(r.EQUAL,1,4294967295),o.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),o.buffers.stencil.setLocked(!0)}}class pe extends se{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class he{constructor(e,t){if(this.renderer=e,void 0===t){const n={minFilter:B.wem,magFilter:B.wem,format:B.wk1},r=e.getSize(new B.FM8);this._pixelRatio=e.getPixelRatio(),this._width=r.width,this._height=r.height,(t=new B.dd2(this._width*this._pixelRatio,this._height*this._pixelRatio,n)).texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],void 0===ae&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===de&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new de(ae),this.clock=new B.SUY}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t<this.passes.length;t++)if(this.passes[t].enabled)return!1;return!0}render(e){void 0===e&&(e=this.clock.getDelta());const t=this.renderer.getRenderTarget();let n=!1;for(let r=0,o=this.passes.length;r<o;r++){const t=this.passes[r];if(!1!==t.enabled){if(t.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(r),t.render(this.renderer,this.writeBuffer,this.readBuffer,e,n),t.needsSwap){if(n){const t=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(t.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,e),n.setFunc(t.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==fe&&(t instanceof fe?n=!0:t instanceof pe&&(n=!1))}}this.renderer.setRenderTarget(t)}reset(e){if(void 0===e){const t=this.renderer.getSize(new B.FM8);this._pixelRatio=this.renderer.getPixelRatio(),this._width=t.width,this._height=t.height,(e=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=e,this.renderTarget2=e.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(e,t){this._width=e,this._height=t;const n=this._width*this._pixelRatio,r=this._height*this._pixelRatio;this.renderTarget1.setSize(n,r),this.renderTarget2.setSize(n,r);for(let o=0;o<this.passes.length;o++)this.passes[o].setSize(n,r)}setPixelRatio(e){this._pixelRatio=e,this.setSize(this._width,this._height)}}new B.iKG(-1,1,1,-1,0,1);const me=new B.u9r;me.setAttribute("position",new B.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),me.setAttribute("uv",new B.a$l([0,2,0,0,2,0],2));class ve extends se{constructor(e,t,n,r,o){super(),this.scene=e,this.camera=t,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=void 0!==o?o:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new B.Ilk}render(e,t,n){const r=e.autoClear;let o,i;e.autoClear=!1,void 0!==this.overrideMaterial&&(i=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(e.getClearColor(this._oldClearColor),o=e.getClearAlpha(),e.setClearColor(this.clearColor,this.clearAlpha)),this.clearDepth&&e.clearDepth(),e.setRenderTarget(this.renderToScreen?null:n),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),e.render(this.scene,this.camera),this.clearColor&&e.setClearColor(this._oldClearColor,o),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=i),e.autoClear=r}}function ge(){return(ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(e){return(be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ee(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _e(e,t,n){return(_e=Ee()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ye(o,n.prototype),o}).apply(null,arguments)}function Te(e){var t="function"===typeof Map?new Map:void 0;return(Te=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _e(e,arguments,be(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ye(r,e)})(e)}var we=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ye(t,n),r}(Te(Error));function ke(e){return Math.round(255*e)}function xe(e,t,n){return ke(e)+","+ke(t)+","+ke(n)}function Oe(e,t,n,r){if(void 0===r&&(r=xe),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,u=0,c=0;o>=0&&o<1?(s=i,u=a):o>=1&&o<2?(s=a,u=i):o>=2&&o<3?(u=i,c=a):o>=3&&o<4?(u=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);var l=n-i/2;return r(s+l,u+l,c+l)}var Ce={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Ae=/^#[a-fA-F0-9]{6}$/,Se=/^#[a-fA-F0-9]{8}$/,Me=/^#[a-fA-F0-9]{3}$/,De=/^#[a-fA-F0-9]{4}$/,Ie=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Pe=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Ne=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Re=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function Le(e){if("string"!==typeof e)throw new we(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return Ce[t]?"#"+Ce[t]:e}(e);if(t.match(Ae))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Se)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Me))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(De)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=Ie.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Pe.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=Ne.exec(t);if(a){var s="rgb("+Oe(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Ie.exec(s);if(!u)throw new we(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=Re.exec(t.substring(0,50));if(c){var l="rgb("+Oe(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Ie.exec(l);if(!d)throw new we(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])}}throw new we(5)}var je=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Fe(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Be(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return je("#"+Fe(e)+Fe(t)+Fe(n));if("object"===typeof e&&void 0===t&&void 0===n)return je("#"+Fe(e.red)+Fe(e.green)+Fe(e.blue));throw new we(6)}function He(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var o=Le(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?Be(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Be(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new we(7)}function Ue(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ue(e,t,r)}}function ze(e){return Ue(e,e.length,[])}function Ve(e,t,n){return Math.max(e,Math.min(t,n))}function Ge(e,t){if("transparent"===t)return t;var n=Le(t);return He(ge({},n,{alpha:Ve(0,1,(100*("number"===typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}var We=ze(Ge);var Ke=r(36194);function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||Ze(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e){return function(e){if(Array.isArray(e))return Xe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ze(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){if(e){if("string"===typeof e)return Xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xe(e,t):void 0}}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".scene-nav-info {\n  bottom: 5px;\n  width: 100%;\n  text-align: center;\n  color: slategrey;\n  opacity: 0.7;\n  font-size: 10px;\n}\n\n.scene-tooltip {\n  color: lavender;\n  font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n  position: absolute;\n  font-family: sans-serif;\n  pointer-events: none;\n}\n\n.scene-container canvas:focus {\n  outline: none;\n}");var Qe=window.THREE?window.THREE:{WebGLRenderer:B.CP7,Scene:B.xsS,PerspectiveCamera:B.cPb,Raycaster:B.iMs,TextureLoader:B.dpR,Vector2:B.FM8,Vector3:B.Pa4,Box3:B.ZzF,Color:B.Ilk,Mesh:B.Kj0,SphereGeometry:B.xo$,MeshBasicMaterial:B.vBJ,BackSide:B._Li,EventDispatcher:B.pBf,MOUSE:B.RsA,Quaternion:B._fP,Spherical:B.$V,Clock:B.SUY},Je=(0,b.Z)({props:{width:{default:window.innerWidth,onChange:function(e,t,n){isNaN(e)&&(t.width=n)}},height:{default:window.innerHeight,onChange:function(e,t,n){isNaN(e)&&(t.height=n)}},backgroundColor:{default:"#000011"},backgroundImageUrl:{},onBackgroundImageLoaded:{},showNavInfo:{default:!0},skyRadius:{default:5e4},objects:{default:[]},enablePointerInteraction:{default:!0,onChange:function(e,t){t.hoverObj=null,t.toolTipElem&&(t.toolTipElem.innerHTML="")},triggerUpdate:!1},lineHoverPrecision:{default:1,triggerUpdate:!1},hoverOrderComparator:{default:function(){return-1},triggerUpdate:!1},hoverFilter:{default:function(){return!0},triggerUpdate:!1},tooltipContent:{triggerUpdate:!1},hoverDuringDrag:{default:!1,triggerUpdate:!1},clickAfterDrag:{default:!1,triggerUpdate:!1},onHover:{default:function(){},triggerUpdate:!1},onClick:{default:function(){},triggerUpdate:!1},onRightClick:{triggerUpdate:!1}},methods:{tick:function(e){if(e.initialised){if(e.controls.update&&e.controls.update(e.clock.getDelta()),e.postProcessingComposer?e.postProcessingComposer.render():e.renderer.render(e.scene,e.camera),e.extraRenderers.forEach((function(t){return t.render(e.scene,e.camera)})),e.enablePointerInteraction){var t=null;if(e.hoverDuringDrag||!e.isPointerDragging){var n=this.intersectingObjects(e.pointerPos.x,e.pointerPos.y).filter((function(t){return e.hoverFilter(t.object)})).sort((function(t,n){return e.hoverOrderComparator(t.object,n.object)})),r=n.length?n[0]:null;t=r?r.object:null,e.intersectionPoint=r?r.point:null}t!==e.hoverObj&&(e.onHover(t,e.hoverObj),e.toolTipElem.innerHTML=t&&(0,E.default)(e.tooltipContent)(t)||"",e.hoverObj=t)}Ke.ZP.update()}return this},getPointerPos:function(e){var t=e.pointerPos;return{x:t.x,y:t.y}},cameraPosition:function(e,t,n,r){var o=e.camera;if(t&&e.initialised){var i=t,a=n||{x:0,y:0,z:0};if(r){var s=Object.assign({},o.position),u=d();new Ke.ZP.Tween(s).to(i,r).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate(c).start(),new Ke.ZP.Tween(u).to(a,r/3).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate(l).start()}else c(i),l(a);return this}return Object.assign({},o.position,{lookAt:d()});function c(e){var t=e.x,n=e.y,r=e.z;void 0!==t&&(o.position.x=t),void 0!==n&&(o.position.y=n),void 0!==r&&(o.position.z=r)}function l(t){e.controls.target=new Qe.Vector3(t.x,t.y,t.z)}function d(){return Object.assign(new Qe.Vector3(0,0,-1e3).applyQuaternion(o.quaternion).add(o.position))}},zoomToFit:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return this.fitToBbox(this.getBbox.apply(this,o),t,n)},fitToBbox:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=e.camera;if(t){var i=new Qe.Vector3(0,0,0),a=2*Math.max.apply(Math,$e(Object.entries(t).map((function(e){var t=Ye(e,2),n=t[0],r=t[1];return Math.max.apply(Math,$e(r.map((function(e){return Math.abs(i[n]-e)}))))})))),s=(1-2*r/e.height)*o.fov,u=a/Math.atan(s*Math.PI/180),c=u/o.aspect,l=Math.max(u,c);if(l>0){var d=i.clone().sub(o.position).normalize().multiplyScalar(-l);this.cameraPosition(d,i,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new Qe.Box3(new Qe.Vector3(0,0,0),new Qe.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach((function(e){return n.expandByObject(e)})),Object.assign.apply(Object,$e(["x","y","z"].map((function(e){return qe({},e,[n.min[e],n.max[e]])}))))):null},getScreenCoords:function(e,t,n,r){var o=new Qe.Vector3(t,n,r);return o.project(this.camera()),{x:(o.x+1)*e.width/2,y:-(o.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=new Qe.Vector2(t/e.width*2-1,-n/e.height*2+1),i=new Qe.Raycaster;return i.setFromCamera(o,e.camera),Object.assign({},i.ray.at(r,new Qe.Vector3))},intersectingObjects:function(e,t,n){var r=new Qe.Vector2(t/e.width*2-1,-n/e.height*2+1),o=new Qe.Raycaster;return o.params.Line.threshold=e.lineHoverPrecision,o.setFromCamera(r,e.camera),o.intersectObjects(e.objects,!0)},renderer:function(e){return e.renderer},scene:function(e){return e.scene},camera:function(e){return e.camera},postProcessingComposer:function(e){return e.postProcessingComposer},controls:function(e){return e.controls},tbControls:function(e){return e.controls}},stateInit:function(){return{scene:new Qe.Scene,camera:new Qe.PerspectiveCamera,clock:new Qe.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,o=void 0===r?"trackball":r,i=n.rendererConfig,a=void 0===i?{}:i,s=n.extraRenderers,u=void 0===s?[]:s,c=n.waitForLoadComplete,l=void 0===c||c;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.className="scene-container",t.container.style.position="relative",t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="scene-nav-info",t.navInfo.textContent={orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"}[o]||"",t.navInfo.style.display=t.showNavInfo?null:"none",t.toolTipElem=document.createElement("div"),t.toolTipElem.classList.add("scene-tooltip"),t.container.appendChild(t.toolTipElem),t.pointerPos=new Qe.Vector2,t.pointerPos.x=-2,t.pointerPos.y=-2,["pointermove","pointerdown"].forEach((function(e){return t.container.addEventListener(e,(function(n){if("pointerdown"===e&&(t.isPointerPressed=!0),!t.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||t.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0),t.enablePointerInteraction){var r=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(t.container);t.pointerPos.x=n.pageX-r.left,t.pointerPos.y=n.pageY-r.top,t.toolTipElem.style.top="".concat(t.pointerPos.y,"px"),t.toolTipElem.style.left="".concat(t.pointerPos.x,"px"),t.toolTipElem.style.transform="translate(-".concat(t.pointerPos.x/t.width*100,"%, 21px)")}}),{passive:!0})})),t.container.addEventListener("pointerup",(function(e){t.isPointerPressed=!1,t.isPointerDragging&&(t.isPointerDragging=!1,!t.clickAfterDrag)||requestAnimationFrame((function(){0===e.button&&t.onClick(t.hoverObj||null,e,t.intersectionPoint),2===e.button&&t.onRightClick&&t.onRightClick(t.hoverObj||null,e,t.intersectionPoint)}))}),{passive:!0,capture:!0}),t.container.addEventListener("contextmenu",(function(e){t.onRightClick&&e.preventDefault()})),t.renderer=new Qe.WebGLRenderer(Object.assign({antialias:!0,alpha:!0},a)),t.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),t.container.appendChild(t.renderer.domElement),t.extraRenderers=u,t.extraRenderers.forEach((function(e){e.domElement.style.position="absolute",e.domElement.style.top="0px",e.domElement.style.pointerEvents="none",t.container.appendChild(e.domElement)})),t.postProcessingComposer=new he(t.renderer),t.postProcessingComposer.addPass(new ve(t.scene,t.camera)),t.controls=new{trackball:Q,orbit:ne,fly:oe}[o](t.camera,t.renderer.domElement),"fly"===o&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),"trackball"!==o&&"orbit"!==o||(t.controls.minDistance=.1,t.controls.maxDistance=t.skyRadius,t.controls.addEventListener("start",(function(){t.controlsEngaged=!0})),t.controls.addEventListener("change",(function(){t.controlsEngaged&&(t.controlsDragging=!0)})),t.controls.addEventListener("end",(function(){t.controlsEngaged=!1,t.controlsDragging=!1}))),[t.renderer,t.postProcessingComposer].concat($e(t.extraRenderers)).forEach((function(e){return e.setSize(t.width,t.height)})),t.camera.aspect=t.width/t.height,t.camera.updateProjectionMatrix(),t.camera.position.z=1e3,t.scene.add(t.skysphere=new Qe.Mesh),t.skysphere.visible=!1,t.loadComplete=t.scene.visible=!l,window.scene=t.scene},update:function(e,t){if(e.width&&e.height&&(t.hasOwnProperty("width")||t.hasOwnProperty("height"))&&(e.container.style.width=e.width,e.container.style.height=e.height,[e.renderer,e.postProcessingComposer].concat($e(e.extraRenderers)).forEach((function(t){return t.setSize(e.width,e.height)})),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix()),t.hasOwnProperty("skyRadius")&&e.skyRadius&&(e.controls.hasOwnProperty("maxDistance")&&t.skyRadius&&(e.controls.maxDistance=e.skyRadius),e.camera.far=2.5*e.skyRadius,e.camera.updateProjectionMatrix(),e.skysphere.geometry=new Qe.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=Le(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new Qe.Color(We(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?(new Qe.TextureLoader).load(e.backgroundImageUrl,(function(t){e.skysphere.material=new Qe.MeshBasicMaterial({map:t,side:Qe.BackSide}),e.skysphere.visible=!0,e.onBackgroundImageLoaded&&setTimeout(e.onBackgroundImageLoaded),!e.loadComplete&&r()})):(e.skysphere.visible=!1,e.skysphere.material.map=null,!e.loadComplete&&r())),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none"),t.hasOwnProperty("objects")&&((t.objects||[]).forEach((function(t){return e.scene.remove(t)})),e.objects.forEach((function(t){return e.scene.add(t)})))}});function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e){return function(e){if(Array.isArray(e))return ot(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function it(e,t){var n=new t;return{linkProp:function(t){return{default:n[t](),onChange:function(n,r){r[e][t](n)},triggerUpdate:!1}},linkMethod:function(t){return function(n){for(var r=n[e],o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=r[t].apply(r,i);return s===r?this:s}}}}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".graph-info-msg {\n  top: 50%;\n  width: 100%;\n  text-align: center;\n  color: lavender;\n  opacity: 0.7;\n  font-size: 22px;\n  position: absolute;\n  font-family: Sans-serif;\n}\n\n.scene-container .clickable {\n  cursor: pointer;\n}\n\n.scene-container .grabbable {\n  cursor: move;\n  cursor: grab;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n}\n\n.scene-container .grabbable:active {\n  cursor: grabbing;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n}");var at=window.THREE?window.THREE:{AmbientLight:B.Mig,DirectionalLight:B.Ox3,Vector3:B.Pa4},st=it("forceGraph",Y.default),ut=Object.assign.apply(Object,rt(["jsonUrl","graphData","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeColor","nodeAutoColorBy","nodeOpacity","nodeVisibility","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaDecay","d3VelocityDecay","d3AlphaMin","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map((function(e){return nt({},e,st.linkProp(e))})))),ct=Object.assign.apply(Object,rt(["refresh","getGraphBbox","d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return nt({},e,st.linkMethod(e))})))),lt=it("renderObjs",Je),dt=Object.assign.apply(Object,rt(["width","height","backgroundColor","showNavInfo","enablePointerInteraction"].map((function(e){return nt({},e,lt.linkProp(e))})))),ft=Object.assign.apply(Object,rt(["cameraPosition","postProcessingComposer"].map((function(e){return nt({},e,lt.linkMethod(e))}))).concat([{graph2ScreenCoords:lt.linkMethod("getScreenCoords"),screen2GraphCoords:lt.linkMethod("getSceneCoords")}]));function pt(e){for(var t=e;t&&!t.hasOwnProperty("__graphObjType");)t=t.parent;return t}var ht=(0,b.Z)({props:tt(tt({nodeLabel:{default:"name",triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:1,onChange:function(e,t){return t.renderObjs.lineHoverPrecision(e)},triggerUpdate:!1},enableNavigationControls:{default:!0,onChange:function(e,t){var n=t.renderObjs.controls();n&&(n.enabled=e)},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1}},ut),dt),methods:tt(tt({zoomToFit:function(e,t,n){for(var r,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return e.renderObjs.fitToBbox((r=e.forceGraph).getGraphBbox.apply(r,i),t,n),this},pauseAnimation:function(e){return null!==e.animationFrameRequestId&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),this},resumeAnimation:function(e){return null===e.animationFrameRequestId&&this._animationCycle(),this},_animationCycle:function(e){e.enablePointerInteraction&&(this.renderer().domElement.style.cursor=null),e.forceGraph.tickFrame(),e.renderObjs.tick(),e.animationFrameRequestId=requestAnimationFrame(this._animationCycle)},scene:function(e){return e.renderObjs.scene()},camera:function(e){return e.renderObjs.camera()},renderer:function(e){return e.renderObjs.renderer()},controls:function(e){return e.renderObjs.controls()},tbControls:function(e){return e.renderObjs.tbControls()},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},ct),ft),stateInit:function(e){var t=e.controlType,n=e.rendererConfig,r=e.extraRenderers;return{forceGraph:new Y.default,renderObjs:Je({controlType:t,rendererConfig:n,extraRenderers:r})}},init:function(e,t){e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.style.position="relative";var n=document.createElement("div");t.container.appendChild(n),t.renderObjs(n);var r,o=t.renderObjs.camera(),i=t.renderObjs.renderer(),a=t.renderObjs.controls();a.enabled=!!t.enableNavigationControls,t.lastSetCameraZ=o.position.z,t.container.appendChild(r=document.createElement("div")),r.className="graph-info-msg",r.textContent="",t.forceGraph.onLoading((function(){r.textContent="Loading..."})).onFinishLoading((function(){r.textContent=""})).onUpdate((function(){t.graphData=t.forceGraph.graphData(),0===o.position.x&&0===o.position.y&&o.position.z===t.lastSetCameraZ&&t.graphData.nodes.length&&(o.lookAt(t.forceGraph.position),t.lastSetCameraZ=o.position.z=170*Math.cbrt(t.graphData.nodes.length))})).onFinishUpdate((function(){if(t._dragControls){var e=t.graphData.nodes.find((function(e){return e.__initialFixedPos&&!e.__disposeControlsAfterDrag}));e?e.__disposeControlsAfterDrag=!0:t._dragControls.dispose(),t._dragControls=void 0}if(t.enableNodeDrag&&t.enablePointerInteraction&&"d3"===t.forceEngine){var n=t._dragControls=new q(t.graphData.nodes.map((function(e){return e.__threeObj})).filter((function(e){return e})),o,i.domElement);n.addEventListener("dragstart",(function(e){a.enabled=!1,e.object.__initialPos=e.object.position.clone(),e.object.__prevPos=e.object.position.clone();var t=pt(e.object).__data;!t.__initialFixedPos&&(t.__initialFixedPos={fx:t.fx,fy:t.fy,fz:t.fz}),!t.__initialPos&&(t.__initialPos={x:t.x,y:t.y,z:t.z}),["x","y","z"].forEach((function(e){return t["f".concat(e)]=t[e]})),i.domElement.classList.add("grabbable")})),n.addEventListener("drag",(function(e){var n=pt(e.object);if(!e.object.hasOwnProperty("__graphObjType")){var r=e.object.__initialPos,o=e.object.__prevPos,i=e.object.position;n.position.add(i.clone().sub(o)),o.copy(i),i.copy(r)}var a=n.__data,s=n.position,u={x:s.x-a.x,y:s.y-a.y,z:s.z-a.z};["x","y","z"].forEach((function(e){return a["f".concat(e)]=a[e]=s[e]})),t.forceGraph.d3AlphaTarget(.3).resetCountdown(),a.__dragged=!0,t.onNodeDrag(a,u)})),n.addEventListener("dragend",(function(e){delete e.object.__initialPos,delete e.object.__prevPos;var r=pt(e.object).__data;r.__disposeControlsAfterDrag&&(n.dispose(),delete r.__disposeControlsAfterDrag);var o=r.__initialFixedPos,s=r.__initialPos,u={x:s.x-r.x,y:s.y-r.y,z:s.z-r.z};o&&(["x","y","z"].forEach((function(e){var t="f".concat(e);void 0===o[t]&&delete r[t]})),delete r.__initialFixedPos,delete r.__initialPos,r.__dragged&&(delete r.__dragged,t.onNodeDragEnd(r,u))),t.forceGraph.d3AlphaTarget(0).resetCountdown(),t.enableNavigationControls&&(a.enabled=!0,a.domElement&&a.domElement.ownerDocument&&a.domElement.ownerDocument.dispatchEvent(new PointerEvent("pointerup",{pointerType:"touch"}))),i.domElement.classList.remove("grabbable")}))}})),t.renderObjs.objects([new at.AmbientLight(12303291),new at.DirectionalLight(16777215,.6),t.forceGraph]).hoverOrderComparator((function(e,t){var n=pt(e);if(!n)return 1;var r=pt(t);if(!r)return-1;var o=function(e){return"node"===e.__graphObjType};return o(r)-o(n)})).tooltipContent((function(e){var n=pt(e);return n&&(0,E.default)(t["".concat(n.__graphObjType,"Label")])(n.__data)||""})).hoverDuringDrag(!1).onHover((function(e){var n=pt(e);if(n!==t.hoverObj){var r=t.hoverObj?t.hoverObj.__graphObjType:null,o=t.hoverObj?t.hoverObj.__data:null,a=n?n.__graphObjType:null,s=n?n.__data:null;if(r&&r!==a){var u=t["on".concat("node"===r?"Node":"Link","Hover")];u&&u(null,o)}if(a){var c=t["on".concat("node"===a?"Node":"Link","Hover")];c&&c(s,r===a?o:null)}i.domElement.classList[n&&t["on".concat("node"===a?"Node":"Link","Click")]||!n&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=n}})).clickAfterDrag(!1).onClick((function(e,n){var r=pt(e);if(r){var o=t["on".concat("node"===r.__graphObjType?"Node":"Link","Click")];o&&o(r.__data,n)}else t.onBackgroundClick&&t.onBackgroundClick(n)})).onRightClick((function(e,n){var r=pt(e);if(r){var o=t["on".concat("node"===r.__graphObjType?"Node":"Link","RightClick")];o&&o(r.__data,n)}else t.onBackgroundRightClick&&t.onBackgroundRightClick(n)})),this._animationCycle()}}),mt=r(96156);function vt(){}function gt(e){return null==e?vt:function(){return this.querySelector(e)}}function yt(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function bt(){return[]}function Et(e){return null==e?bt:function(){return this.querySelectorAll(e)}}function _t(e){return function(){return this.matches(e)}}function Tt(e){return function(t){return t.matches(e)}}var wt=Array.prototype.find;function kt(){return this.firstElementChild}var xt=Array.prototype.filter;function Ot(){return Array.from(this.children)}function Ct(e){return new Array(e.length)}function At(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function St(e){return function(){return e}}function Mt(e,t,n,r,o,i){for(var a,s=0,u=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new At(e,i[s]);for(;s<u;++s)(a=t[s])&&(o[s]=a)}function Dt(e,t,n,r,o,i,a){var s,u,c,l=new Map,d=t.length,f=i.length,p=new Array(d);for(s=0;s<d;++s)(u=t[s])&&(p[s]=c=a.call(u,u.__data__,s,t)+"",l.has(c)?o[s]=u:l.set(c,u));for(s=0;s<f;++s)c=a.call(e,i[s],s,i)+"",(u=l.get(c))?(r[s]=u,u.__data__=i[s],l.delete(c)):n[s]=new At(e,i[s]);for(s=0;s<d;++s)(u=t[s])&&l.get(p[s])===u&&(o[s]=u)}function It(e){return e.__data__}function Pt(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Nt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Rt(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lt(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}At.prototype={constructor:At,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var jt="http://www.w3.org/1999/xhtml",Ft={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bt(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ft.hasOwnProperty(t)?{space:Ft[t],local:e}:e}function Ht(e){return function(){this.removeAttribute(e)}}function Ut(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zt(e,t){return function(){this.setAttribute(e,t)}}function Vt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Gt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Wt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Kt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qt(e){return function(){this.style.removeProperty(e)}}function Yt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function $t(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Zt(e,t){return e.style.getPropertyValue(t)||Kt(e).getComputedStyle(e,null).getPropertyValue(t)}function Xt(e){return function(){delete this[e]}}function Qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function en(e){return e.trim().split(/^|\s+/)}function tn(e){return e.classList||new nn(e)}function nn(e){this._node=e,this._names=en(e.getAttribute("class")||"")}function rn(e,t){for(var n=tn(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function on(e,t){for(var n=tn(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function an(e){return function(){rn(this,e)}}function sn(e){return function(){on(this,e)}}function un(e,t){return function(){(t.apply(this,arguments)?rn:on)(this,e)}}function cn(){this.textContent=""}function ln(e){return function(){this.textContent=e}}function dn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function fn(){this.innerHTML=""}function pn(e){return function(){this.innerHTML=e}}function hn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function vn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===jt&&t.documentElement.namespaceURI===jt?t.createElement(e):t.createElementNS(n,e)}}function yn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function bn(e){var t=Bt(e);return(t.local?yn:gn)(t)}function En(){return null}function _n(){var e=this.parentNode;e&&e.removeChild(this)}function Tn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kn(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function xn(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function On(e,t,n){return function(){var r,o=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var a=0,s=o.length;a<s;++a)if((r=o[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function Cn(e,t,n){var r=Kt(e),o=r.CustomEvent;"function"===typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function An(e,t){return function(){return Cn(this,e,t)}}function Sn(e,t){return function(){return Cn(this,e,t.apply(this,arguments))}}nn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Mn=r(87757),Dn=r.n(Mn),In=Dn().mark(Pn);function Pn(){var e,t,n,r,o,i,a;return Dn().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){s.next=13;break}r=e[t],o=0,i=r.length;case 3:if(!(o<i)){s.next=10;break}if(!(a=r[o])){s.next=7;break}return s.next=7,a;case 7:++o,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),In,this)}var Nn=[null];function Rn(e,t){this._groups=e,this._parents=t}function Ln(){return new Rn([[document.documentElement]],Nn)}Rn.prototype=Ln.prototype=(0,mt.Z)({constructor:Rn,select:function(e){"function"!==typeof e&&(e=gt(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,s=t[o],u=s.length,c=r[o]=new Array(u),l=0;l<u;++l)(i=s[l])&&(a=e.call(i,i.__data__,l,s))&&("__data__"in i&&(a.__data__=i.__data__),c[l]=a);return new Rn(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return yt(e.apply(this,arguments))}}(e):Et(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,s=t[i],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),o.push(a));return new Rn(r,o)},selectChild:function(e){return this.select(null==e?kt:function(e){return function(){return wt.call(this.children,e)}}("function"===typeof e?e:Tt(e)))},selectChildren:function(e){return this.selectAll(null==e?Ot:function(e){return function(){return xt.call(this.children,e)}}("function"===typeof e?e:Tt(e)))},filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,u=r[o]=[],c=0;c<s;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&u.push(i);return new Rn(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,It);var n=t?Dt:Mt,r=this._parents,o=this._groups;"function"!==typeof e&&(e=St(e));for(var i=o.length,a=new Array(i),s=new Array(i),u=new Array(i),c=0;c<i;++c){var l=r[c],d=o[c],f=d.length,p=Pt(e.call(l,l&&l.__data__,c,r)),h=p.length,m=s[c]=new Array(h),v=a[c]=new Array(h),g=u[c]=new Array(f);n(l,d,m,v,g,p,t);for(var y,b,E=0,_=0;E<h;++E)if(y=m[E]){for(E>=_&&(_=E+1);!(b=v[_])&&++_<h;);y._next=b||null}}return(a=new Rn(a,r))._enter=s,a._exit=u,a},enter:function(){return new Rn(this._enter||this._groups.map(Ct),this._parents)},exit:function(){return new Rn(this._exit||this._groups.map(Ct),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),s=new Array(o),u=0;u<a;++u)for(var c,l=n[u],d=r[u],f=l.length,p=s[u]=new Array(f),h=0;h<f;++h)(c=l[h]||d[h])&&(p[h]=c);for(;u<o;++u)s[u]=n[u];return new Rn(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Nt);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,s=n[i],u=s.length,c=o[i]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(t)}return new Rn(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){var e,t=0,n=Rt(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,i=t[n],a=0,s=i.length;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=Bt(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Ut:Ht:"function"===typeof t?n.local?Wt:Gt:n.local?Vt:zt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?qt:"function"===typeof t?$t:Yt)(e,t,null==n?"":n)):Zt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Xt:"function"===typeof t?Jt:Qt)(e,t)):this.node()[e]},classed:function(e,t){var n=en(e+"");if(arguments.length<2){for(var r=tn(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"===typeof t?un:t?an:sn)(n,t))},text:function(e){return arguments.length?this.each(null==e?cn:("function"===typeof e?dn:ln)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?fn:("function"===typeof e?hn:pn)(e)):this.node().innerHTML},raise:function(){return this.each(mn)},lower:function(){return this.each(vn)},append:function(e){var t="function"===typeof e?e:bn(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:bn(e),r=null==t?En:"function"===typeof t?t:gt(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(_n)},clone:function(e){return this.select(e?wn:Tn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=kn(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?On:xn,r=0;r<a;++r)this.each(s(i[r],t,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((o=i[r]).type===u.type&&o.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?Sn:An)(e,t))}},Symbol.iterator,Pn);var jn=Ln;function Fn(e){return"string"===typeof e?new Rn([[document.querySelector(e)]],[document.documentElement]):new Rn([[e]],Nn)}var Bn=r(77137),Hn={passive:!1},Un={capture:!0,passive:!1};function zn(e){e.stopImmediatePropagation()}function Vn(e){e.preventDefault(),e.stopImmediatePropagation()}function Gn(e){var t=e.document.documentElement,n=Fn(e).on("dragstart.drag",Vn,Un);"onselectstart"in t?n.on("selectstart.drag",Vn,Un):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Wn(e,t){var n=e.document.documentElement,r=Fn(e).on("dragstart.drag",null);t&&(r.on("click.drag",Vn,Un),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Kn(e){return((e=Math.exp(e))+1/e)/2}var qn=function e(t,n,r){function o(e,o){var i,a,s=e[0],u=e[1],c=e[2],l=o[0],d=o[1],f=o[2],p=l-s,h=d-u,m=p*p+h*h;if(m<1e-12)a=Math.log(f/c)/t,i=function(e){return[s+e*p,u+e*h,c*Math.exp(t*e*a)]};else{var v=Math.sqrt(m),g=(f*f-c*c+r*m)/(2*c*n*v),y=(f*f-c*c-r*m)/(2*f*n*v),b=Math.log(Math.sqrt(g*g+1)-g),E=Math.log(Math.sqrt(y*y+1)-y);a=(E-b)/t,i=function(e){var r,o=e*a,i=Kn(b),l=c/(n*v)*(i*(r=t*o+b,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+l*p,u+l*h,c*i/Kn(t*o+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4);function Yn(e,t){if(e=function(e){for(var t;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var $n=r(513);function Zn(e,t,n){var r=new $n.B7;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}var Xn=(0,Bn.Z)("start","end","cancel","interrupt"),Qn=[];function Jn(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(i){var c,l,d,f;if(1!==n.state)return u();for(c in o)if((f=o[c]).name===n.name){if(3===f.state)return Zn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[c]):+c<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[c])}if(Zn((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(i))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,l=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=(0,$n.HT)(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:Xn,tween:Qn,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function er(e,t){var n=nr(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function tr(e,t){var n=nr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function nr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function rr(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete e.__transition}}var or,ir=r(16033),ar=180/Math.PI,sr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ur(e,t,n,r,o,i){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*ar,skewX:Math.atan(u)*ar,scaleX:a,scaleY:s}}function cr(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var s=[],u=[];return i=e(i),a=e(a),function(e,r,o,i,a,s){if(e!==o||r!==i){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:(0,ir.Z)(e,o)},{i:u-2,x:(0,ir.Z)(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,s,u),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:(0,ir.Z)(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,u),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:(0,ir.Z)(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,u),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,ir.Z)(e,n)},{i:s-2,x:(0,ir.Z)(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,u),i=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var lr=cr((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?sr:ur(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),dr=cr((function(e){return null==e?sr:(or||(or=document.createElementNS("http://www.w3.org/2000/svg","g")),or.setAttribute("transform",e),(e=or.transform.baseVal.consolidate())?ur((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):sr)}),", ",")",")");function fr(e,t){var n,r;return function(){var o=tr(this,e),i=o.tween;if(i!==n)for(var a=0,s=(r=n=i).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}o.tween=r}}function pr(e,t,n){var r,o;if("function"!==typeof n)throw new Error;return function(){var i=tr(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var s={name:t,value:n},u=0,c=o.length;u<c;++u)if(o[u].name===t){o[u]=s;break}u===c&&o.push(s)}i.tween=o}}function hr(e,t,n){var r=e._id;return e.each((function(){var e=tr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return nr(e,r).value[t]}}var mr=r(76374),vr=r(73028),gr=r(10370);function yr(e,t){var n;return("number"===typeof t?ir.Z:t instanceof mr.ZP?vr.ZP:(n=(0,mr.ZP)(t))?(t=n,vr.ZP):gr.Z)(e,t)}function br(e){return function(){this.removeAttribute(e)}}function Er(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _r(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Tr(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function wr(e,t,n){var r,o,i;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(s=u+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,u));this.removeAttribute(e)}}function kr(e,t,n){var r,o,i;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(s=u+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function xr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Or(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Cr(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Or(e,o)),n}return o._value=t,o}function Ar(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&xr(e,o)),n}return o._value=t,o}function Sr(e,t){return function(){er(this,e).delay=+t.apply(this,arguments)}}function Mr(e,t){return t=+t,function(){er(this,e).delay=t}}function Dr(e,t){return function(){tr(this,e).duration=+t.apply(this,arguments)}}function Ir(e,t){return t=+t,function(){tr(this,e).duration=t}}function Pr(e,t){if("function"!==typeof t)throw new Error;return function(){tr(this,e).ease=t}}function Nr(e,t,n){var r,o,i=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?er:tr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}var Rr=jn.prototype.constructor;function Lr(e){return function(){this.style.removeProperty(e)}}function jr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Fr(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&jr(e,i,n)),r}return i._value=t,i}function Br(e){return function(t){this.textContent=e.call(this,t)}}function Hr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Br(r)),t}return r._value=e,r}var Ur=0;function zr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Vr(){return++Ur}var Gr=jn.prototype;zr.prototype=function(e){return jn().transition(e)}.prototype=(0,mt.Z)({constructor:zr,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=gt(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var s,u,c=r[a],l=c.length,d=i[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=e.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),d[f]=u,Jn(d[f],t,n,f,d,nr(s,n)));return new zr(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Et(e));for(var r=this._groups,o=r.length,i=[],a=[],s=0;s<o;++s)for(var u,c=r[s],l=c.length,d=0;d<l;++d)if(u=c[d]){for(var f,p=e.call(u,u.__data__,d,c),h=nr(u,n),m=0,v=p.length;m<v;++m)(f=p[m])&&Jn(f,t,n,m,p,h);i.push(p),a.push(u)}return new zr(i,a,t,n)},selectChild:Gr.selectChild,selectChildren:Gr.selectChildren,filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,u=r[o]=[],c=0;c<s;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&u.push(i);return new zr(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var u,c=t[s],l=n[s],d=c.length,f=a[s]=new Array(d),p=0;p<d;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=t[s];return new zr(a,this._parents,this._name,this._id)},selection:function(){return new Rr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Vr(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=nr(a,t);Jn(a,e,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new zr(r,this._parents,e,n)},call:Gr.call,nodes:Gr.nodes,node:Gr.node,size:Gr.size,empty:Gr.empty,each:Gr.each,on:function(e,t){var n=this._id;return arguments.length<2?nr(this.node(),n).on.on(e):this.each(Nr(n,e,t))},attr:function(e,t){var n=Bt(e),r="transform"===n?dr:yr;return this.attrTween(e,"function"===typeof t?(n.local?kr:wr)(n,r,hr(this,"attr."+e,t)):null==t?(n.local?Er:br)(n):(n.local?Tr:_r)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Bt(e);return this.tween(n,(r.local?Cr:Ar)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?lr:yr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=Zt(this,e),a=(this.style.removeProperty(e),Zt(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,Lr(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=Zt(this,e),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(e),u=s=Zt(this,e)),a===u?null:a===r&&u===o?i:(o=u,i=t(r=a,s))}}(e,r,hr(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var u=tr(this,e),c=u.on,l=null==u.value[a]?i||(i=Lr(t)):void 0;c===n&&o===l||(r=(n=c).copy()).on(s,o=l),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=Zt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Fr(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(hr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Hr(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=nr(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===e)return r.value;return null}return this.each((null==t?fr:pr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Sr:Mr)(t,e)):nr(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Dr:Ir)(t,e)):nr(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Pr(t,e)):nr(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;tr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(i,a){var s={value:a},u={value:function(){0===--o&&i()}};n.each((function(){var n=tr(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),n.on=t})),0===o&&i()}))}},Symbol.iterator,Gr[Symbol.iterator]);var Wr={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Kr(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}jn.prototype.interrupt=function(e){return this.each((function(){rr(this,e)}))},jn.prototype.transition=function(e){var t,n;e instanceof zr?(t=e._id,e=e._name):(t=Vr(),(n=Wr).time=(0,$n.zO)(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],u=s.length,c=0;c<u;++c)(a=s[c])&&Jn(a,e,t,c,s,n||Kr(a,t));return new zr(r,this._parents,e,t)};var qr=function(e){return function(){return e}};function Yr(e,t){var n=t.sourceEvent,r=t.target,o=t.transform,i=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function $r(e,t,n){this.k=e,this.x=t,this.y=n}$r.prototype={constructor:$r,scale:function(e){return 1===e?this:new $r(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new $r(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zr=new $r(1,0,0);function Xr(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Zr;return e.__zoom}function Qr(e){e.stopImmediatePropagation()}function Jr(e){e.preventDefault(),e.stopImmediatePropagation()}function eo(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function to(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function no(){return this.__zoom||Zr}function ro(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function oo(){return navigator.maxTouchPoints||"ontouchstart"in this}function io(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function ao(){var e,t,n,r=eo,o=to,i=io,a=ro,s=oo,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,d=qn,f=(0,Bn.Z)("start","zoom","end"),p=500,h=0,m=10;function v(e){e.property("__zoom",no).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",x).filter(s).on("touchstart.zoom",O).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new $r(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new $r(e.k,r,o)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function E(e,t,n,r){e.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=_(e,i).event(r),s=o.apply(e,i),u=null==n?b(s):"function"===typeof n?n.apply(e,i):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=e.__zoom,f="function"===typeof t?t.apply(e,i):t,p=d(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=c/t[2];e=new $r(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function _(e,t,n){return!n&&e.__zooming||new T(e,t)}function T(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function w(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(r.apply(this,arguments)){var s=_(this,n).event(e),l=this.__zoom,d=Math.max(u[0],Math.min(u[1],l.k*Math.pow(2,a.apply(this,arguments)))),f=Yn(e);if(s.wheel)s.mouse[0][0]===f[0]&&s.mouse[0][1]===f[1]||(s.mouse[1]=l.invert(s.mouse[0]=f)),clearTimeout(s.wheel);else{if(l.k===d)return;s.mouse=[f,l.invert(f)],rr(this),s.start()}Jr(e),s.wheel=setTimeout(p,150),s.zoom("mouse",i(y(g(l,d),s.mouse[0],s.mouse[1]),s.extent,c))}function p(){s.wheel=null,s.end()}}function k(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=e.currentTarget,u=_(this,o,!0).event(e),l=Fn(e.view).on("mousemove.zoom",m,!0).on("mouseup.zoom",v,!0),d=Yn(e,s),f=e.clientX,p=e.clientY;Gn(e.view),Qr(e),u.mouse=[d,this.__zoom.invert(d)],rr(this),u.start()}function m(e){if(Jr(e),!u.moved){var t=e.clientX-f,n=e.clientY-p;u.moved=t*t+n*n>h}u.event(e).zoom("mouse",i(y(u.that.__zoom,u.mouse[0]=Yn(e,s),u.mouse[1]),u.extent,c))}function v(e){l.on("mousemove.zoom mouseup.zoom",null),Wn(e.view,u.moved),Jr(e),u.event(e).end()}}function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var s=this.__zoom,u=Yn(e.changedTouches?e.changedTouches[0]:e,this),d=s.invert(u),f=s.k*(e.shiftKey?.5:2),p=i(y(g(s,f),u,d),o.apply(this,n),c);Jr(e),l>0?Fn(this).transition().duration(l).call(E,p,u,e):Fn(this).call(v.transform,p,u,e)}}function O(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(r.apply(this,arguments)){var s,u,c,l,d=n.touches,f=d.length,h=_(this,i,n.changedTouches.length===f).event(n);for(Qr(n),u=0;u<f;++u)l=[l=Yn(c=d[u],this),this.__zoom.invert(l),c.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),rr(this),h.start())}}function C(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o,a,s,u,l=_(this,n).event(e),d=e.changedTouches,f=d.length;for(Jr(e),o=0;o<f;++o)s=Yn(a=d[o],this),l.touch0&&l.touch0[2]===a.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===a.identifier&&(l.touch1[0]=s);if(a=l.that.__zoom,l.touch1){var p=l.touch0[0],h=l.touch0[1],m=l.touch1[0],v=l.touch1[1],b=(b=m[0]-p[0])*b+(b=m[1]-p[1])*b,E=(E=v[0]-h[0])*E+(E=v[1]-h[1])*E;a=g(a,Math.sqrt(b/E)),s=[(p[0]+m[0])/2,(p[1]+m[1])/2],u=[(h[0]+v[0])/2,(h[1]+v[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],u=l.touch0[1]}l.zoom("touch",i(y(a,s,u),l.extent,c))}}function A(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.__zooming){var a,s,u=_(this,o).event(e),c=e.changedTouches,l=c.length;for(Qr(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),a=0;a<l;++a)s=c[a],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=Yn(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<m)){var d=Fn(this).on("dblclick.zoom");d&&d.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",no),e!==o?E(e,t,n,r):o.interrupt().each((function(){_(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==n?b(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),u="function"===typeof t?t.apply(this,arguments):t;return i(y(g(r,u),a,s),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return i(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,r)},v.translateTo=function(e,t,n,r,a){v.transform(e,(function(){var e=o.apply(this,arguments),a=this.__zoom,s=null==r?b(e):"function"===typeof r?r.apply(this,arguments):r;return i(Zr.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,c)}),r,a)},T.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Fn(this.that).datum();f.call(e,this.that,new Yr(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:f}),t)}},v.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:qr(+e),v):a},v.filter=function(e){return arguments.length?(r="function"===typeof e?e:qr(!!e),v):r},v.touchable=function(e){return arguments.length?(s="function"===typeof e?e:qr(!!e),v):s},v.extent=function(e){return arguments.length?(o="function"===typeof e?e:qr([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],v):[u[0],u[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(i=e,v):i},v.duration=function(e){return arguments.length?(l=+e,v):l},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=f.on.apply(f,arguments);return e===f?v:e},v.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,v):Math.sqrt(h)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}Xr.prototype=$r.prototype;var so=function(e){return function(){return e}};function uo(e,t){var n=t.sourceEvent,r=t.subject,o=t.target,i=t.identifier,a=t.active,s=t.x,u=t.y,c=t.dx,l=t.dy,d=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:d}})}function co(e){return!e.ctrlKey&&!e.button}function lo(){return this.parentNode}function fo(e,t){return null==t?{x:e.x,y:e.y}:t}function po(){return navigator.maxTouchPoints||"ontouchstart"in this}uo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var ho=r(86701),mo=r(3752),vo=r(93096),go=r.n(vo),yo=r(17621),bo=r.n(yo);function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function To(e){return function(e){if(Array.isArray(e))return wo(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ko=function(e,t,n){return(e<<16)+(t<<8)+n},xo=function(e,t){return 123*e%Math.pow(2,t)},Oo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;Eo(this,e),this.csBits=t,this.registry=["__reserved for background__"]}var t,n,r;return t=e,(n=[{key:"register",value:function(e){if(this.registry.length>=Math.pow(2,24-this.csBits))return null;var t,n=this.registry.length,r=xo(n,this.csBits),o=(t=n+(r<<24-this.csBits),"#".concat(Math.min(t,Math.pow(2,24)).toString(16).padStart(6,"0")));return this.registry.push(e),o}},{key:"lookup",value:function(e){var t="string"===typeof e?function(e){var t=bo()(e).toRgb(),n=t.r,r=t.g,o=t.b;return ko(n,r,o)}(e):ko.apply(void 0,To(e));if(!t)return null;var n=t&Math.pow(2,24-this.csBits)-1,r=t>>24-this.csBits&Math.pow(2,this.csBits)-1;return xo(n,this.csBits)!==r||n>=this.registry.length?null:this.registry[n]}}])&&_o(t.prototype,n),r&&_o(t,r),e}(),Co=r(54505),Ao=r(15560),So=r(92405),Mo=r(20216),Do=r(16917);const{abs:Io,cos:Po,sin:No,acos:Ro,atan2:Lo,sqrt:jo,pow:Fo}=Math;function Bo(e){return e<0?-Fo(-e,1/3):Fo(e,1/3)}const Ho=Math.PI,Uo=2*Ho,zo=Ho/2,Vo=Number.MAX_SAFE_INTEGER||9007199254740991,Go=Number.MIN_SAFE_INTEGER||-9007199254740991,Wo={x:0,y:0,z:0},Ko={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,t){const n=t(e);let r=n.x*n.x+n.y*n.y;return"undefined"!==typeof n.z&&(r+=n.z*n.z),jo(r)},compute:function(e,t,n){if(0===e)return t[0].t=0,t[0];const r=t.length-1;if(1===e)return t[r].t=1,t[r];const o=1-e;let i=t;if(0===r)return t[0].t=e,t[0];if(1===r){const t={x:o*i[0].x+e*i[1].x,y:o*i[0].y+e*i[1].y,t:e};return n&&(t.z=o*i[0].z+e*i[1].z),t}if(r<4){let t,a,s,u=o*o,c=e*e,l=0;2===r?(i=[i[0],i[1],i[2],Wo],t=u,a=o*e*2,s=c):3===r&&(t=u*o,a=u*e*3,s=o*c*3,l=e*c);const d={x:t*i[0].x+a*i[1].x+s*i[2].x+l*i[3].x,y:t*i[0].y+a*i[1].y+s*i[2].y+l*i[3].y,t:e};return n&&(d.z=t*i[0].z+a*i[1].z+s*i[2].z+l*i[3].z),d}const a=JSON.parse(JSON.stringify(t));for(;a.length>1;){for(let t=0;t<a.length-1;t++)a[t]={x:a[t].x+(a[t+1].x-a[t].x)*e,y:a[t].y+(a[t+1].y-a[t].y)*e},"undefined"!==typeof a[t].z&&(a[t]=a[t].z+(a[t+1].z-a[t].z)*e);a.splice(a.length-1,1)}return a[0].t=e,a[0]},computeWithRatios:function(e,t,n,r){const o=1-e,i=n,a=t;let s,u=i[0],c=i[1],l=i[2],d=i[3];return u*=o,c*=e,2===a.length?(s=u+c,{x:(u*a[0].x+c*a[1].x)/s,y:(u*a[0].y+c*a[1].y)/s,z:!!r&&(u*a[0].z+c*a[1].z)/s,t:e}):(u*=o,c*=2*o,l*=e*e,3===a.length?(s=u+c+l,{x:(u*a[0].x+c*a[1].x+l*a[2].x)/s,y:(u*a[0].y+c*a[1].y+l*a[2].y)/s,z:!!r&&(u*a[0].z+c*a[1].z+l*a[2].z)/s,t:e}):(u*=o,c*=1.5*o,l*=3*o,d*=e*e*e,4===a.length?(s=u+c+l+d,{x:(u*a[0].x+c*a[1].x+l*a[2].x+d*a[3].x)/s,y:(u*a[0].y+c*a[1].y+l*a[2].y+d*a[3].y)/s,z:!!r&&(u*a[0].z+c*a[1].z+l*a[2].z+d*a[3].z)/s,t:e}):void 0))},derive:function(e,t){const n=[];for(let r=e,o=r.length,i=o-1;o>1;o--,i--){const e=[];for(let n,o=0;o<i;o++)n={x:i*(r[o+1].x-r[o].x),y:i*(r[o+1].y-r[o].y)},t&&(n.z=i*(r[o+1].z-r[o].z)),e.push(n);n.push(e),r=e}return n},between:function(e,t,n){return t<=e&&e<=n||Ko.approximately(e,t)||Ko.approximately(e,n)},approximately:function(e,t,n){return Io(e-t)<=(n||1e-6)},length:function(e){const t=Ko.Tvalues.length;let n=0;for(let r,o=0;o<t;o++)r=.5*Ko.Tvalues[o]+.5,n+=Ko.Cvalues[o]*Ko.arcfn(r,e);return.5*n},map:function(e,t,n,r,o){return r+(o-r)*((e-t)/(n-t))},lerp:function(e,t,n){const r={x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)};return void 0!==t.z&&void 0!==n.z&&(r.z=t.z+e*(n.z-t.z)),r},pointToString:function(e){let t=e.x+"/"+e.y;return"undefined"!==typeof e.z&&(t+="/"+e.z),t},pointsToString:function(e){return"["+e.map(Ko.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,t,n){const r=t.x-e.x,o=t.y-e.y,i=n.x-e.x,a=n.y-e.y;return Lo(r*a-o*i,r*i+o*a)},round:function(e,t){const n=""+e,r=n.indexOf(".");return parseFloat(n.substring(0,r+1+t))},dist:function(e,t){const n=e.x-t.x,r=e.y-t.y;return jo(n*n+r*r)},closest:function(e,t){let n,r,o=Fo(2,63);return e.forEach((function(e,i){r=Ko.dist(t,e),r<o&&(o=r,n=i)})),{mdist:o,mpos:n}},abcratio:function(e,t){if(2!==t&&3!==t)return!1;if("undefined"===typeof e)e=.5;else if(0===e||1===e)return e;const n=Fo(e,t)+Fo(1-e,t);return Io((n-1)/n)},projectionratio:function(e,t){if(2!==t&&3!==t)return!1;if("undefined"===typeof e)e=.5;else if(0===e||1===e)return e;const n=Fo(1-e,t);return n/(Fo(e,t)+n)},lli8:function(e,t,n,r,o,i,a,s){const u=(e-n)*(i-s)-(t-r)*(o-a);return 0!=u&&{x:((e*r-t*n)*(o-a)-(e-n)*(o*s-i*a))/u,y:((e*r-t*n)*(i-s)-(t-r)*(o*s-i*a))/u}},lli4:function(e,t,n,r){const o=e.x,i=e.y,a=t.x,s=t.y,u=n.x,c=n.y,l=r.x,d=r.y;return Ko.lli8(o,i,a,s,u,c,l,d)},lli:function(e,t){return Ko.lli4(e,e.c,t,t.c)},makeline:function(e,t){const n=e.x,r=e.y,o=t.x,i=t.y,a=(o-n)/3,s=(i-r)/3;return new ni(n,r,n+a,r+s,n+2*a,r+2*s,o,i)},findbbox:function(e){let t=Vo,n=Vo,r=Go,o=Go;return e.forEach((function(e){const i=e.bbox();t>i.x.min&&(t=i.x.min),n>i.y.min&&(n=i.y.min),r<i.x.max&&(r=i.x.max),o<i.y.max&&(o=i.y.max)})),{x:{min:t,mid:(t+r)/2,max:r,size:r-t},y:{min:n,mid:(n+o)/2,max:o,size:o-n}}},shapeintersections:function(e,t,n,r,o){if(!Ko.bboxoverlap(t,r))return[];const i=[],a=[e.startcap,e.forward,e.back,e.endcap],s=[n.startcap,n.forward,n.back,n.endcap];return a.forEach((function(t){t.virtual||s.forEach((function(r){if(r.virtual)return;const a=t.intersects(r,o);a.length>0&&(a.c1=t,a.c2=r,a.s1=e,a.s2=n,i.push(a))}))})),i},makeshape:function(e,t,n){const r=t.points.length,o=e.points.length,i=Ko.makeline(t.points[r-1],e.points[0]),a=Ko.makeline(e.points[o-1],t.points[0]),s={startcap:i,forward:e,back:t,endcap:a,bbox:Ko.findbbox([i,e,t,a]),intersections:function(e){return Ko.shapeintersections(s,s.bbox,e,e.bbox,n)}};return s},getminmax:function(e,t,n){if(!n)return{min:0,max:0};let r,o,i=Vo,a=Go;-1===n.indexOf(0)&&(n=[0].concat(n)),-1===n.indexOf(1)&&n.push(1);for(let s=0,u=n.length;s<u;s++)r=n[s],o=e.get(r),o[t]<i&&(i=o[t]),o[t]>a&&(a=o[t]);return{min:i,mid:(i+a)/2,max:a,size:a-i}},align:function(e,t){const n=t.p1.x,r=t.p1.y,o=-Lo(t.p2.y-r,t.p2.x-n);return e.map((function(e){return{x:(e.x-n)*Po(o)-(e.y-r)*No(o),y:(e.x-n)*No(o)+(e.y-r)*Po(o)}}))},roots:function(e,t){t=t||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,r=Ko.align(e,t),o=function(e){return 0<=e&&e<=1};if(2===n){const e=r[0].y,t=r[1].y,n=r[2].y,i=e-2*t+n;if(0!==i){const r=-jo(t*t-e*n),a=-e+t;return[-(r+a)/i,-(-r+a)/i].filter(o)}return t!==n&&0===i?[(2*t-n)/(2*t-2*n)].filter(o):[]}const i=r[0].y,a=r[1].y,s=r[2].y;let u=3*a-i-3*s+r[3].y,c=3*i-6*a+3*s,l=-3*i+3*a,d=i;if(Ko.approximately(u,0)){if(Ko.approximately(c,0))return Ko.approximately(l,0)?[]:[-d/l].filter(o);const e=jo(l*l-4*c*d),t=2*c;return[(e-l)/t,(-l-e)/t].filter(o)}c/=u,l/=u,d/=u;const f=(3*l-c*c)/3,p=f/3,h=(2*c*c*c-9*c*l+27*d)/27,m=h/2,v=m*m+p*p*p;let g,y,b,E,_;if(v<0){const e=-f/3,t=jo(e*e*e),n=-h/(2*t),r=Ro(n<-1?-1:n>1?1:n),i=2*Bo(t);return b=i*Po(r/3)-c/3,E=i*Po((r+Uo)/3)-c/3,_=i*Po((r+2*Uo)/3)-c/3,[b,E,_].filter(o)}if(0===v)return g=m<0?Bo(-m):-Bo(m),b=2*g-c/3,E=-g-c/3,[b,E].filter(o);{const e=jo(v);return g=Bo(-m+e),y=Bo(m+e),[g-y-c/3].filter(o)}},droots:function(e){if(3===e.length){const t=e[0],n=e[1],r=e[2],o=t-2*n+r;if(0!==o){const e=-jo(n*n-t*r),i=-t+n;return[-(e+i)/o,-(-e+i)/o]}return n!==r&&0===o?[(2*n-r)/(2*(n-r))]:[]}if(2===e.length){const t=e[0],n=e[1];return t!==n?[t/(t-n)]:[]}return[]},curvature:function(e,t,n,r,o){let i,a,s,u,c=0,l=0;const d=Ko.compute(e,t),f=Ko.compute(e,n),p=d.x*d.x+d.y*d.y;if(r?(i=jo(Fo(d.y*f.z-f.y*d.z,2)+Fo(d.z*f.x-f.z*d.x,2)+Fo(d.x*f.y-f.x*d.y,2)),a=Fo(p+d.z*d.z,1.5)):(i=d.x*f.y-d.y*f.x,a=Fo(p,1.5)),0===i||0===a)return{k:0,r:0};if(c=i/a,l=a/i,!o){const o=Ko.curvature(e-.001,t,n,r,!0).k,i=Ko.curvature(e+.001,t,n,r,!0).k;u=(i-c+(c-o))/2,s=(Io(i-c)+Io(c-o))/2}return{k:c,r:l,dk:u,adk:s}},inflections:function(e){if(e.length<4)return[];const t=Ko.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=t[2].x*t[1].y,r=t[3].x*t[1].y,o=t[1].x*t[2].y,i=18*(-3*n+2*r+3*o-t[3].x*t[2].y),a=18*(3*n-r-3*o),s=18*(o-n);if(Ko.approximately(i,0)){if(!Ko.approximately(a,0)){let e=-s/a;if(0<=e&&e<=1)return[e]}return[]}const u=a*a-4*i*s,c=Math.sqrt(u),l=2*i;return Ko.approximately(l,0)?[]:[(c-a)/l,-(a+c)/l].filter((function(e){return 0<=e&&e<=1}))},bboxoverlap:function(e,t){const n=["x","y"],r=n.length;for(let o,i,a,s,u=0;u<r;u++)if(o=n[u],i=e[o].mid,a=t[o].mid,s=(e[o].size+t[o].size)/2,Io(i-a)>=s)return!1;return!0},expandbox:function(e,t){t.x.min<e.x.min&&(e.x.min=t.x.min),t.y.min<e.y.min&&(e.y.min=t.y.min),t.z&&t.z.min<e.z.min&&(e.z.min=t.z.min),t.x.max>e.x.max&&(e.x.max=t.x.max),t.y.max>e.y.max&&(e.y.max=t.y.max),t.z&&t.z.max>e.z.max&&(e.z.max=t.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,t,n){const r=e.bbox(),o=t.bbox(),i=1e5,a=n||.5;if(r.x.size+r.y.size<a&&o.x.size+o.y.size<a)return[(i*(e._t1+e._t2)/2|0)/i+"/"+(i*(t._t1+t._t2)/2|0)/i];let s=e.split(.5),u=t.split(.5),c=[{left:s.left,right:u.left},{left:s.left,right:u.right},{left:s.right,right:u.right},{left:s.right,right:u.left}];c=c.filter((function(e){return Ko.bboxoverlap(e.left.bbox(),e.right.bbox())}));let l=[];return 0===c.length||(c.forEach((function(e){l=l.concat(Ko.pairiteration(e.left,e.right,a))})),l=l.filter((function(e,t){return l.indexOf(e)===t}))),l},getccenter:function(e,t,n){const r=t.x-e.x,o=t.y-e.y,i=n.x-t.x,a=n.y-t.y,s=r*Po(zo)-o*No(zo),u=r*No(zo)+o*Po(zo),c=i*Po(zo)-a*No(zo),l=i*No(zo)+a*Po(zo),d=(e.x+t.x)/2,f=(e.y+t.y)/2,p=(t.x+n.x)/2,h=(t.y+n.y)/2,m=d+s,v=f+u,g=p+c,y=h+l,b=Ko.lli8(d,f,m,v,p,h,g,y),E=Ko.dist(b,e);let _,T=Lo(e.y-b.y,e.x-b.x),w=Lo(t.y-b.y,t.x-b.x),k=Lo(n.y-b.y,n.x-b.x);return T<k?((T>w||w>k)&&(T+=Uo),T>k&&(_=k,k=T,T=_)):k<w&&w<T?(_=k,k=T,T=_):k+=Uo,b.s=T,b.e=k,b.r=E,b},numberSort:function(e,t){return e-t}};class qo{constructor(e){this.curves=[],this._3d=!1,e&&(this.curves=e,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map((function(e){return Ko.pointsToString(e.points)})).join(", ")+"]"}addCurve(e){this.curves.push(e),this._3d=this._3d||e._3d}length(){return this.curves.map((function(e){return e.length()})).reduce((function(e,t){return e+t}))}curve(e){return this.curves[e]}bbox(){const e=this.curves;for(var t=e[0].bbox(),n=1;n<e.length;n++)Ko.expandbox(t,e[n].bbox());return t}offset(e){const t=[];return this.curves.forEach((function(n){t.push(...n.offset(e))})),new qo(t)}}const{abs:Yo,min:$o,max:Zo,cos:Xo,sin:Qo,acos:Jo,sqrt:ei}=Math,ti=Math.PI;class ni{constructor(e){let t=e&&e.forEach?e:Array.from(arguments).slice(),n=!1;if("object"===typeof t[0]){n=t.length;const e=[];t.forEach((function(t){["x","y","z"].forEach((function(n){"undefined"!==typeof t[n]&&e.push(t[n])}))})),t=e}let r=!1;const o=t.length;if(n){if(n>4){if(1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");r=!0}}else if(6!==o&&8!==o&&9!==o&&12!==o&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const i=this._3d=!r&&(9===o||12===o)||e&&e[0]&&"undefined"!==typeof e[0].z,a=this.points=[];for(let d=0,f=i?3:2;d<o;d+=f){var s={x:t[d],y:t[d+1]};i&&(s.z=t[d+2]),a.push(s)}const u=this.order=a.length-1,c=this.dims=["x","y"];i&&c.push("z"),this.dimlen=c.length;const l=Ko.align(a,{p1:a[0],p2:a[u]});this._linear=!l.some((e=>Yo(e.y)>1e-4)),this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(e,t,n,r){if("undefined"===typeof r&&(r=.5),0===r)return new ni(t,t,n);if(1===r)return new ni(e,t,t);const o=ni.getABC(2,e,t,n,r);return new ni(e,o.A,n)}static cubicFromPoints(e,t,n,r,o){"undefined"===typeof r&&(r=.5);const i=ni.getABC(3,e,t,n,r);"undefined"===typeof o&&(o=Ko.dist(t,i.C));const a=o*(1-r)/r,s=Ko.dist(e,n),u=(n.x-e.x)/s,c=(n.y-e.y)/s,l=o*u,d=o*c,f=a*u,p=a*c,h=t.x-l,m=t.y-d,v=t.x+f,g=t.y+p,y=i.A,b=y.x+(h-y.x)/(1-r),E=y.y+(m-y.y)/(1-r),_=y.x+(v-y.x)/r,T=y.y+(g-y.y)/r,w={x:e.x+(b-e.x)/r,y:e.y+(E-e.y)/r},k={x:n.x+(_-n.x)/(1-r),y:n.y+(T-n.y)/(1-r)};return new ni(e,w,k,n)}static getUtils(){return Ko}getUtils(){return ni.getUtils()}static get PolyBezier(){return qo}valueOf(){return this.toString()}toString(){return Ko.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const e=this.points,t=["M",e[0].x,e[0].y,2===this.order?"Q":"C"];for(let n=1,r=e.length;n<r;n++)t.push(e[n].x),t.push(e[n].y);return t.join(" ")}setRatios(e){if(e.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=e,this._lut=[]}verify(){const e=this.coordDigest();e!==this._print&&(this._print=e,this.update())}coordDigest(){return this.points.map((function(e,t){return""+t+e.x+e.y+(e.z?e.z:0)})).join("")}update(){this._lut=[],this.dpoints=Ko.derive(this.points,this._3d),this.computedirection()}computedirection(){const e=this.points,t=Ko.angle(e[0],e[this.order],e[1]);this.clockwise=t>0}length(){return Ko.length(this.derivative.bind(this))}static getABC(e=2,t,n,r,o=.5){const i=Ko.projectionratio(o,e),a=1-i,s={x:i*t.x+a*r.x,y:i*t.y+a*r.y},u=Ko.abcratio(o,e);return{A:{x:n.x+(n.x-s.x)/u,y:n.y+(n.y-s.y)/u},B:n,C:s,S:t,E:r}}getABC(e,t){t=t||this.get(e);let n=this.points[0],r=this.points[this.order];return ni.getABC(this.order,n,t,r,e)}getLUT(e){if(this.verify(),e=e||100,this._lut.length===e)return this._lut;this._lut=[],e--;for(let t,n,r=0;r<e;r++)n=r/(e-1),t=this.compute(n),t.t=n,this._lut.push(t);return this._lut}on(e,n){n=n||5;const r=this.getLUT(),o=[];for(let t,i=0,a=0;i<r.length;i++)t=r[i],Ko.dist(t,e)<n&&(o.push(t),a+=i/r.length);return!!o.length&&(t/=o.length)}project(e){const t=this.getLUT(),n=t.length-1,r=Ko.closest(t,e),o=r.mpos,i=(o-1)/n,a=(o+1)/n,s=.1/n;let u,c,l=r.mdist,d=i,f=d;for(l+=1;d<a+s;d+=s)u=this.compute(d),c=Ko.dist(e,u),c<l&&(l=c,f=d);return f=f<0?0:f>1?1:f,u=this.compute(f),u.t=f,u.d=l,u}get(e){return this.compute(e)}point(e){return this.points[e]}compute(e){return this.ratios?Ko.computeWithRatios(e,this.points,this.ratios,this._3d):Ko.compute(e,this.points,this._3d,this.ratios)}raise(){const e=this.points,t=[e[0]],n=e.length;for(let r,o,i=1;i<n;i++)r=e[i],o=e[i-1],t[i]={x:(n-i)/n*r.x+i/n*o.x,y:(n-i)/n*r.y+i/n*o.y};return t[n]=e[n-1],new ni(t)}derivative(e){return Ko.compute(e,this.dpoints[0],this._3d)}dderivative(e){return Ko.compute(e,this.dpoints[1],this._3d)}align(){let e=this.points;return new ni(Ko.align(e,{p1:e[0],p2:e[e.length-1]}))}curvature(e){return Ko.curvature(e,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return Ko.inflections(this.points)}normal(e){return this._3d?this.__normal3(e):this.__normal2(e)}__normal2(e){const t=this.derivative(e),n=ei(t.x*t.x+t.y*t.y);return{x:-t.y/n,y:t.x/n}}__normal3(e){const t=this.derivative(e),n=this.derivative(e+.01),r=ei(t.x*t.x+t.y*t.y+t.z*t.z),o=ei(n.x*n.x+n.y*n.y+n.z*n.z);t.x/=r,t.y/=r,t.z/=r,n.x/=o,n.y/=o,n.z/=o;const i={x:n.y*t.z-n.z*t.y,y:n.z*t.x-n.x*t.z,z:n.x*t.y-n.y*t.x},a=ei(i.x*i.x+i.y*i.y+i.z*i.z);i.x/=a,i.y/=a,i.z/=a;const s=[i.x*i.x,i.x*i.y-i.z,i.x*i.z+i.y,i.x*i.y+i.z,i.y*i.y,i.y*i.z-i.x,i.x*i.z-i.y,i.y*i.z+i.x,i.z*i.z];return{x:s[0]*t.x+s[1]*t.y+s[2]*t.z,y:s[3]*t.x+s[4]*t.y+s[5]*t.z,z:s[6]*t.x+s[7]*t.y+s[8]*t.z}}hull(e){let t=this.points,n=[],r=[],o=0;for(r[o++]=t[0],r[o++]=t[1],r[o++]=t[2],3===this.order&&(r[o++]=t[3]);t.length>1;){n=[];for(let i,a=0,s=t.length-1;a<s;a++)i=Ko.lerp(e,t[a],t[a+1]),r[o++]=i,n.push(i);t=n}return r}split(e,t){if(0===e&&t)return this.split(t).left;if(1===t)return this.split(e).right;const n=this.hull(e),r={left:2===this.order?new ni([n[0],n[3],n[5]]):new ni([n[0],n[4],n[7],n[9]]),right:2===this.order?new ni([n[5],n[4],n[2]]):new ni([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=Ko.map(0,0,1,this._t1,this._t2),r.left._t2=Ko.map(e,0,1,this._t1,this._t2),r.right._t1=Ko.map(e,0,1,this._t1,this._t2),r.right._t2=Ko.map(1,0,1,this._t1,this._t2),t?(t=Ko.map(t,e,1,0,1),r.right.split(t).left):r}extrema(){const e={};let t=[];return this.dims.forEach(function(n){let r=function(e){return e[n]},o=this.dpoints[0].map(r);e[n]=Ko.droots(o),3===this.order&&(o=this.dpoints[1].map(r),e[n]=e[n].concat(Ko.droots(o))),e[n]=e[n].filter((function(e){return e>=0&&e<=1})),t=t.concat(e[n].sort(Ko.numberSort))}.bind(this)),e.values=t.sort(Ko.numberSort).filter((function(e,n){return t.indexOf(e)===n})),e}bbox(){const e=this.extrema(),t={};return this.dims.forEach(function(n){t[n]=Ko.getminmax(this,n,e[n])}.bind(this)),t}overlaps(e){const t=this.bbox(),n=e.bbox();return Ko.bboxoverlap(t,n)}offset(e,t){if("undefined"!==typeof t){const n=this.get(e),r=this.normal(e),o={c:n,n:r,x:n.x+r.x*t,y:n.y+r.y*t};return this._3d&&(o.z=n.z+r.z*t),o}if(this._linear){const t=this.normal(0),n=this.points.map((function(n){const r={x:n.x+e*t.x,y:n.y+e*t.y};return n.z&&t.z&&(r.z=n.z+e*t.z),r}));return[new ni(n)]}return this.reduce().map((function(t){return t._linear?t.offset(e)[0]:t.scale(e)}))}simple(){if(3===this.order){const e=Ko.angle(this.points[0],this.points[3],this.points[1]),t=Ko.angle(this.points[0],this.points[3],this.points[2]);if(e>0&&t<0||e<0&&t>0)return!1}const e=this.normal(0),t=this.normal(1);let n=e.x*t.x+e.y*t.y;return this._3d&&(n+=e.z*t.z),Yo(Jo(n))<ti/3}reduce(){let e,t,n=0,r=0,o=.01,i=[],a=[],s=this.extrema().values;for(-1===s.indexOf(0)&&(s=[0].concat(s)),-1===s.indexOf(1)&&s.push(1),n=s[0],e=1;e<s.length;e++)r=s[e],t=this.split(n,r),t._t1=n,t._t2=r,i.push(t),n=r;return i.forEach((function(e){for(n=0,r=0;r<=1;)for(r=n+o;r<=1.01;r+=o)if(t=e.split(n,r),!t.simple()){if(r-=o,Yo(n-r)<o)return[];t=e.split(n,r),t._t1=Ko.map(n,0,1,e._t1,e._t2),t._t2=Ko.map(r,0,1,e._t1,e._t2),a.push(t),n=r;break}n<1&&(t=e.split(n,1),t._t1=Ko.map(n,0,1,e._t1,e._t2),t._t2=e._t2,a.push(t))})),a}scale(e){const t=this.order;let n=!1;if("function"===typeof e&&(n=e),n&&2===t)return this.raise().scale(n);const r=this.clockwise,o=n?n(0):e,i=n?n(1):e,a=[this.offset(0,10),this.offset(1,10)],s=this.points,u=[],c=Ko.lli4(a[0],a[0].c,a[1],a[1].c);if(!c)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach((function(e){const n=u[e*t]=Ko.copy(s[e*t]);n.x+=(e?i:o)*a[e].n.x,n.y+=(e?i:o)*a[e].n.y})),n?([0,1].forEach((function(o){if(2!==t||!o){var i=s[o+1],a={x:i.x-c.x,y:i.y-c.y},l=n?n((o+1)/t):e;n&&!r&&(l=-l);var d=ei(a.x*a.x+a.y*a.y);a.x/=d,a.y/=d,u[o+1]={x:i.x+l*a.x,y:i.y+l*a.y}}})),new ni(u)):([0,1].forEach((e=>{if(2===t&&e)return;const n=u[e*t],r=this.derivative(e),o={x:n.x+r.x,y:n.y+r.y};u[e+1]=Ko.lli4(n,o,c,s[e+1])})),new ni(u))}outline(e,t,n,r){t="undefined"===typeof t?e:t;const o=this.reduce(),i=o.length,a=[];let s,u=[],c=0,l=this.length();const d="undefined"!==typeof n&&"undefined"!==typeof r;function f(e,t,n,r,o){return function(i){const a=r/n,s=(r+o)/n,u=t-e;return Ko.map(i,0,1,e+a*u,e+s*u)}}o.forEach((function(o){const i=o.length();d?(a.push(o.scale(f(e,n,l,c,i))),u.push(o.scale(f(-t,-r,l,c,i)))):(a.push(o.scale(e)),u.push(o.scale(-t))),c+=i})),u=u.map((function(e){return s=e.points,s[3]?e.points=[s[3],s[2],s[1],s[0]]:e.points=[s[2],s[1],s[0]],e})).reverse();const p=a[0].points[0],h=a[i-1].points[a[i-1].points.length-1],m=u[i-1].points[u[i-1].points.length-1],v=u[0].points[0],g=Ko.makeline(m,p),y=Ko.makeline(h,v),b=[g].concat(a).concat([y]).concat(u);b.length;return new qo(b)}outlineshapes(e,t,n){t=t||e;const r=this.outline(e,t).curves,o=[];for(let i=1,a=r.length;i<a/2;i++){const e=Ko.makeshape(r[i],r[a-i],n);e.startcap.virtual=i>1,e.endcap.virtual=i<a/2-1,o.push(e)}return o}intersects(e,t){return e?e.p1&&e.p2?this.lineIntersects(e):(e instanceof ni&&(e=e.reduce()),this.curveintersects(this.reduce(),e,t)):this.selfintersects(t)}lineIntersects(e){const t=$o(e.p1.x,e.p2.x),n=$o(e.p1.y,e.p2.y),r=Zo(e.p1.x,e.p2.x),o=Zo(e.p1.y,e.p2.y);return Ko.roots(this.points,e).filter((e=>{var i=this.get(e);return Ko.between(i.x,t,r)&&Ko.between(i.y,n,o)}))}selfintersects(e){const t=this.reduce(),n=t.length-2,r=[];for(let o,i,a,s=0;s<n;s++)i=t.slice(s,s+1),a=t.slice(s+2),o=this.curveintersects(i,a,e),r.push(...o);return r}curveintersects(e,t,n){const r=[];e.forEach((function(e){t.forEach((function(t){e.overlaps(t)&&r.push({left:e,right:t})}))}));let o=[];return r.forEach((function(e){const t=Ko.pairiteration(e.left,e.right,n);t.length>0&&(o=o.concat(t))})),o}arcs(e){return e=e||.5,this._iterate(e,[])}_error(e,t,n,r){const o=(r-n)/4,i=this.get(n+o),a=this.get(r-o),s=Ko.dist(e,t),u=Ko.dist(e,i),c=Ko.dist(e,a);return Yo(u-s)+Yo(c-s)}_iterate(e,t){let n,r=0,o=1;do{n=0,o=1;let i,a,s,u,c,l=this.get(r),d=!1,f=!1,p=o,h=1,m=0;do{if(f=d,u=s,p=(r+o)/2,m++,i=this.get(p),a=this.get(o),s=Ko.getccenter(l,i,a),s.interval={start:r,end:o},d=this._error(s,l,r,o)<=e,c=f&&!d,c||(h=o),d){if(o>=1){if(s.interval.end=h=1,u=s,o>1){let e={x:s.x+s.r*Xo(s.e),y:s.y+s.r*Qo(s.e)};s.e+=Ko.angle({x:s.x,y:s.y},e,this.get(1))}break}o+=(o-r)/2}else o=p}while(!c&&n++<100);if(n>=100)break;u=u||s,t.push(u),r=h}while(o<1);return t}}var ri=r(1527),oi=r(72462),ii=r(47646);function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(Object(n),!0).forEach((function(t){ci(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(e){return(ui="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ci(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function li(e,t){return(li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function di(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function fi(e,t,n){return(fi=di()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&li(o,n.prototype),o}).apply(null,arguments)}function pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||mi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(e){return function(e){if(Array.isArray(e))return vi(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mi(e,t){if(e){if("string"===typeof e)return vi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vi(e,t):void 0}}function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".force-graph-container canvas {\n  display: block;\n  user-select: none;\n  outline: none;\n  -webkit-tap-highlight-color: transparent;\n}\n\n.force-graph-container .graph-tooltip {\n  position: absolute;\n  transform: translate(-50%, 25px);\n  font-family: sans-serif;\n  font-size: 16px;\n  padding: 4px;\n  border-radius: 3px;\n  color: #eee;\n  background: rgba(0,0,0,0.65);\n  visibility: hidden; /* by default */\n}\n\n.force-graph-container .clickable {\n  cursor: pointer;\n}\n\n.force-graph-container .grabbable {\n  cursor: move;\n  cursor: grab;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n}\n\n.force-graph-container .grabbable:active {\n  cursor: grabbing;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n}\n");var gi=(0,oi.Z)(ii.Z);function yi(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=gi(t(e))}))}var bi=function(e,t){return t.onNeedsRedraw&&t.onNeedsRedraw()},Ei=(0,b.Z)({props:{graphData:{default:{nodes:[],links:[]},onChange:function(e,t){t.engineRunning=!1}},dagMode:{onChange:function(e,t){!e&&(t.graphData.nodes||[]).forEach((function(e){return e.fx=e.fy=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(e){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:bi},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:bi},nodeColor:{default:"color",triggerUpdate:!1,onChange:bi},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:bi},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:bi},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:bi},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:bi},linkColor:{default:"color",triggerUpdate:!1,onChange:bi},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:bi},linkWidth:{default:1,triggerUpdate:!1,onChange:bi},linkCurvature:{default:0,triggerUpdate:!1,onChange:bi},linkCanvasObject:{triggerUpdate:!1,onChange:bi},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:bi},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:bi},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:bi},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:bi},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.alphaDecay(e)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.alphaTarget(e)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.velocityDecay(e)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(e,t,n){return void 0===n?e.forceLayout.force(t):(e.forceLayout.force(t,n),this)},d3ReheatSimulation:function(e){return e.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(e){return e.cntTicks=0,e.startTickTime=new Date,e.engineRunning=!0,this},isEngineRunning:function(e){return!!e.engineRunning},tickFrame:function(e){return!e.isShadow&&e.engineRunning&&(++e.cntTicks>e.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||e.d3AlphaMin>0&&e.forceLayout.alpha()<e.d3AlphaMin?(e.engineRunning=!1,e.onEngineStop()):(e.forceLayout.tick(),e.onEngineTick())),function(){var t=(0,E.default)(e.linkVisibility),n=(0,E.default)(e.linkColor),r=(0,E.default)(e.linkWidth),o=(0,E.default)(e.linkLineDash),i=(0,E.default)(e.linkCurvature),a=(0,E.default)(e.linkCanvasObjectMode),s=e.ctx,u=2*e.isShadow,c=e.graphData.links.filter(t);c.forEach((function(e){var t=i(e);if(!t)return void(e.__controlPoints=null);var n=e.source,r=e.target;if(!n||!r||!n.hasOwnProperty("x")||!r.hasOwnProperty("x"))return;var o=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2));if(o>0){var a=Math.atan2(r.y-n.y,r.x-n.x),s=o*t,u={x:(n.x+r.x)/2+s*Math.cos(a-Math.PI/2),y:(n.y+r.y)/2+s*Math.sin(a-Math.PI/2)};e.__controlPoints=[u.x,u.y]}else{var c=70*t;e.__controlPoints=[r.x,r.y-c,r.x+c,r.y]}}));var l=[],d=[],f=c;if(e.linkCanvasObject){var p=[],h=[];c.forEach((function(e){return({before:l,after:d,replace:p}[a(e)]||h).push(e)})),f=[].concat(hi(l),d,h),l=l.concat(p)}s.save(),l.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore();var m=(0,ri.Z)(f,[n,r,o]);s.save(),Object.entries(m).forEach((function(t){var n=pi(t,2),r=n[0],i=n[1],a=r&&"undefined"!==r?r:"rgba(0,0,0,0.15)";Object.entries(i).forEach((function(t){var n=pi(t,2),r=n[0],i=n[1],c=(r||1)/e.globalScale+u;Object.entries(i).forEach((function(e){var t=pi(e,2);t[0];var n=t[1],r=o(n[0]);s.beginPath(),n.forEach((function(e){var t=e.source,n=e.target;if(t&&n&&t.hasOwnProperty("x")&&n.hasOwnProperty("x")){s.moveTo(t.x,t.y);var r=e.__controlPoints;r?s[2===r.length?"quadraticCurveTo":"bezierCurveTo"].apply(s,hi(r).concat([n.x,n.y])):s.lineTo(n.x,n.y)}})),s.strokeStyle=a,s.lineWidth=c,s.setLineDash(r||[]),s.stroke()}))}))})),s.restore(),s.save(),d.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore()}(),!e.isShadow&&function(){var t=(0,E.default)(e.linkDirectionalArrowLength),n=(0,E.default)(e.linkDirectionalArrowRelPos),r=(0,E.default)(e.linkVisibility),o=(0,E.default)(e.linkDirectionalArrowColor||e.linkColor),i=(0,E.default)(e.nodeVal),a=e.ctx;a.save(),e.graphData.links.filter(r).forEach((function(r){var s=t(r);if(s&&!(s<0)){var u=r.source,c=r.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,i(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,i(c)||1))*e.nodeRelSize,f=Math.min(1,Math.max(0,n(r))),p=o(r)||"rgba(0,0,0,0.28)",h=s/1.6/2,m=r.__controlPoints&&fi(ni,[u.x,u.y].concat(hi(r.__controlPoints),[c.x,c.y])),v=m?function(e){return m.get(e)}:function(e){return{x:u.x+(c.x-u.x)*e||0,y:u.y+(c.y-u.y)*e||0}},g=m?m.length():Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2)),y=l+s+(g-l-d-s)*f,b=v(y/g),E=v((y-s)/g),_=v((y-.8*s)/g),T=Math.atan2(b.y-E.y,b.x-E.x)-Math.PI/2;a.beginPath(),a.moveTo(b.x,b.y),a.lineTo(E.x+h*Math.cos(T),E.y+h*Math.sin(T)),a.lineTo(_.x,_.y),a.lineTo(E.x-h*Math.cos(T),E.y-h*Math.sin(T)),a.fillStyle=p,a.fill()}}})),a.restore()}(),!e.isShadow&&function(){var t=(0,E.default)(e.linkDirectionalParticles),n=(0,E.default)(e.linkDirectionalParticleSpeed),r=(0,E.default)(e.linkDirectionalParticleWidth),o=(0,E.default)(e.linkVisibility),i=(0,E.default)(e.linkDirectionalParticleColor||e.linkColor),a=e.ctx;a.save(),e.graphData.links.filter(o).forEach((function(o){var s=t(o);if(o.hasOwnProperty("__photons")&&o.__photons.length){var u=o.source,c=o.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=n(o),d=o.__photons||[],f=Math.max(0,r(o)/2)/Math.sqrt(e.globalScale),p=i(o)||"rgba(0,0,0,0.28)";a.fillStyle=p;var h=o.__controlPoints?fi(ni,[u.x,u.y].concat(hi(o.__controlPoints),[c.x,c.y])):null,m=0,v=!1;d.forEach((function(e){var t=!!e.__singleHop;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=t?0:m/s),!t&&m++,e.__progressRatio+=l,e.__progressRatio>=1){if(t)return void(v=!0);e.__progressRatio=e.__progressRatio%1}var n=e.__progressRatio,r=h?h.get(n):{x:u.x+(c.x-u.x)*n||0,y:u.y+(c.y-u.y)*n||0};a.beginPath(),a.arc(r.x,r.y,f,0,2*Math.PI,!1),a.fill()})),v&&(o.__photons=o.__photons.filter((function(e){return!e.__singleHop||e.__progressRatio<=1})))}}})),a.restore()}(),function(){var t=(0,E.default)(e.nodeVisibility),n=(0,E.default)(e.nodeVal),r=(0,E.default)(e.nodeColor),o=(0,E.default)(e.nodeCanvasObjectMode),i=e.ctx,a=e.isShadow/e.globalScale,s=e.graphData.nodes.filter(t);i.save(),s.forEach((function(t){var s=o(t);if(!e.nodeCanvasObject||"before"!==s&&"replace"!==s||(e.nodeCanvasObject(t,i,e.globalScale),"replace"!==s)){var u=Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize+a;i.beginPath(),i.arc(t.x,t.y,u,0,2*Math.PI,!1),i.fillStyle=r(t)||"rgba(31, 120, 180, 0.92)",i.fill(),e.nodeCanvasObject&&"after"===s&&e.nodeCanvasObject(t,e.ctx,e.globalScale)}else i.restore()})),i.restore()}(),this},emitParticle:function(e,t){return t&&(!t.__photons&&(t.__photons=[]),t.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:(0,Co.Z)().force("link",(0,Ao.Z)()).force("charge",(0,So.Z)()).force("center",(0,Mo.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.ctx=e},update:function(e){if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&yi(e.graphData.nodes,(0,E.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&yi(e.graphData.links,(0,E.default)(e.linkAutoColorBy),e.linkColor),e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]})),!e.isShadow){var t=(0,E.default)(e.linkDirectionalParticles);e.graphData.links.forEach((function(e){var n=Math.round(Math.abs(t(e)));n?e.__photons=hi(Array(n)).map((function(){return{}})):delete e.__photons}))}e.forceLayout.stop().alpha(1).nodes(e.graphData.nodes);var n=e.forceLayout.force("link");n&&n.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var r=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.nodeFilter,a=void 0===i?function(){return!0}:i,s=o.onLoopError,u=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,c={};n.forEach((function(e){return c[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,o=u(n),i=u(r);if(!c.hasOwnProperty(o))throw"Missing source node with id: ".concat(o);if(!c.hasOwnProperty(i))throw"Missing target node with id: ".concat(i);var a=c[o],s=c[i];function u(e){return"object"===ui(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(hi(Object.entries(c).filter((function(e){return!pi(e,2)[1].skip})).map((function(e){var t=pi(e,2);return ci({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=0,i=e.length;o<i;o++){var a=e[o];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(hi(n.slice(n.indexOf(a))),[a]).map((function(e){return t(e.data)}));return l.some((function(t){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}))||(l.push(e),u(e)),"continue"}())continue;r>a.depth&&(a.depth=r,d(a.out,[].concat(hi(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),o=Math.max.apply(Math,hi(Object.values(r||[]))),i=e.dagLevelDistance||e.graphData.nodes.length/(o||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var a=function(t,n){return function(a){return t?(r[a[e.nodeId]]-o/2)*i*(n?-1:1):void 0}},s=a(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),u=a(-1!==["td","bu"].indexOf(e.dagMode),"bu"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=s(e),e.fy=u(e)}))}e.forceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,Do.Z)((function(t){var n=r[t[e.nodeId]]||-1;return("radialin"===e.dagMode?o-n:n)*i})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null);for(var c=0;c<e.warmupTicks&&!(e.d3AlphaMin>0&&e.forceLayout.alpha()<e.d3AlphaMin);c++)e.forceLayout.tick();this.resetCountdown(),e.onFinishUpdate()}});function _i(e,t){var n=e instanceof Array?e:[e],r=new t;return{linkProp:function(e){return{default:r[e](),onChange:function(t,r){n.forEach((function(n){return r[n][e](t)}))},triggerUpdate:!1}},linkMethod:function(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=[];return n.forEach((function(n){var r=t[n],i=r[e].apply(r,o);i!==r&&a.push(i)})),a.length?a[0]:this}}}}var Ti=_i("forceGraph",Ei),wi=_i(["forceGraph","shadowGraph"],Ei),ki=Object.assign.apply(Object,hi(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map((function(e){return ci({},e,Ti.linkProp(e))}))).concat(hi(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map((function(e){return ci({},e,wi.linkProp(e))}))))),xi=Object.assign.apply(Object,hi(["d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return ci({},e,Ti.linkMethod(e))}))));function Oi(e){if(e.canvas){var t=e.canvas.width,n=e.canvas.height;300===t&&150===n&&(t=n=0);var r=window.devicePixelRatio;t/=r,n/=r,[e.canvas,e.shadowCanvas].forEach((function(o){o.style.width="".concat(e.width,"px"),o.style.height="".concat(e.height,"px"),o.width=e.width*r,o.height=e.height*r,t||n||o.getContext("2d").scale(r,r)}));var o=Xr(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-t)/2/o,(e.height-n)/2/o),e.needsRedraw=!0}}function Ci(e){var t=window.devicePixelRatio;e.setTransform(t,0,0,t,0,0)}function Ai(e,t,n){e.save(),Ci(e),e.clearRect(0,0,t,n),e.restore()}var Si=(0,b.Z)({props:si({width:{default:window.innerWidth,onChange:function(e,t){return Oi(t)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(e,t){return Oi(t)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(e,t){[{type:"Node",objs:e.nodes},{type:"Link",objs:e.links}].forEach((function(e){var n=e.type;e.objs.filter((function(e){if(!e.hasOwnProperty("__indexColor"))return!0;var n=t.colorTracker.lookup(e.__indexColor);return!n||!n.hasOwnProperty("d")||n.d!==e})).forEach((function(e){e.__indexColor=t.colorTracker.register({type:n,d:e})}))})),t.forceGraph.graphData(e),t.shadowGraph.graphData(e)},triggerUpdate:!1},backgroundColor:{onChange:function(e,t){t.canvas&&e&&(t.canvas.style.background=e)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(e,t){t.shadowGraph.nodeCanvasObject(e?function(t,n,r){return e(t,t.__indexColor,n,r)}:null)},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(e,t){t.shadowGraph.linkCanvasObject(e?function(t,n,r){return e(t,t.__indexColor,n,r)}:null)},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(e,t){t.zoom.scaleExtent([e,t.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(e,t){t.zoom.scaleExtent([t.zoom.scaleExtent()[0],e])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(e,t){t.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{default:function(){},triggerUpdate:!1},onZoomEnd:{default:function(){},triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},ki),aliases:{stopAnimation:"pauseAnimation"},methods:si({graph2ScreenCoords:function(e,t,n){var r=Xr(e.canvas);return{x:t*r.k+r.x,y:n*r.k+r.y}},screen2GraphCoords:function(e,t,n){var r=Xr(e.canvas);return{x:(t-r.x)/r.k,y:(n-r.y)/r.k}},centerAt:function(e,t,n,r){if(!e.canvas)return null;if(void 0!==t||void 0!==n){var o=Object.assign({},void 0!==t?{x:t}:{},void 0!==n?{y:n}:{});return r?new Ke.ZP.Tween(i()).to(o,r).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate(a).start():a(o),this}return i();function i(){var t=Xr(e.canvas);return{x:(e.width/2-t.x)/t.k,y:(e.height/2-t.y)/t.k}}function a(t){var n=t.x,r=t.y;e.zoom.translateTo(e.zoom.__baseElem,void 0===n?i().x:n,void 0===r?i().y:r),e.needsRedraw=!0}},zoom:function(e,t,n){return e.canvas?void 0!==t?(n?new Ke.ZP.Tween({k:r()}).to({k:t},n).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate((function(e){return o(e.k)})).start():o(t),this):r():null;function r(){return Xr(e.canvas).k}function o(t){e.zoom.scaleTo(e.zoom.__baseElem,t),e.needsRedraw=!0}},zoomToFit:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=this.getGraphBbox.apply(this,o);if(a){var s={x:(a.x[0]+a.x[1])/2,y:(a.y[0]+a.y[1])/2},u=Math.max(1e-12,Math.min(1e12,(e.width-2*n)/(a.x[1]-a.x[0]),(e.height-2*n)/(a.y[1]-a.y[0])));this.centerAt(s.x,s.y,t),this.zoom(u,t)}return this},getGraphBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=(0,E.default)(e.nodeVal),r=function(t){return Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize},o=e.graphData.nodes.filter(t).map((function(e){return{x:e.x,y:e.y,r:r(e)}}));return o.length?{x:[(0,ho.Z)(o,(function(e){return e.x-e.r})),(0,mo.Z)(o,(function(e){return e.x+e.r}))],y:[(0,ho.Z)(o,(function(e){return e.y-e.r})),(0,mo.Z)(o,(function(e){return e.y+e.r}))]}:null},pauseAnimation:function(e){return e.animationFrameRequestId&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),this},resumeAnimation:function(e){return e.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},xi),stateInit:function(){return{lastSetZoom:1,zoom:ao(),forceGraph:new Ei,shadowGraph:(new Ei).cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Oo}},init:function(e,t){e.innerHTML="";var n=document.createElement("div");n.classList.add("force-graph-container"),n.style.position="relative",e.appendChild(n),t.canvas=document.createElement("canvas"),t.backgroundColor&&(t.canvas.style.background=t.backgroundColor),n.appendChild(t.canvas),t.shadowCanvas=document.createElement("canvas");var r=t.canvas.getContext("2d"),o=t.shadowCanvas.getContext("2d"),i={x:-1e12,y:-1e12},a=function(){var e=null,n=window.devicePixelRatio,r=i.x>0&&i.y>0?o.getImageData(i.x*n,i.y*n,1,1):null;return r&&(e=t.colorTracker.lookup(r.data)),e};Fn(t.canvas).call(function(){var e,t,n,r,o=co,i=lo,a=fo,s=po,u={},c=(0,Bn.Z)("start","drag","end"),l=0,d=0;function f(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",v).on("touchmove.drag",g,Hn).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,s){if(!r&&o.call(this,a,s)){var u=b(this,i.call(this,a,s),a,s,"mouse");u&&(Fn(a.view).on("mousemove.drag",h,Un).on("mouseup.drag",m,Un),Gn(a.view),zn(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function h(r){if(Vn(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>d}u.mouse("drag",r)}function m(e){Fn(e.view).on("mousemove.drag mouseup.drag",null),Wn(e.view,n),Vn(e),u.mouse("end",e)}function v(e,t){if(o.call(this,e,t)){var n,r,a=e.changedTouches,s=i.call(this,e,t),u=a.length;for(n=0;n<u;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&(zn(e),r("start",e,a[n]))}}function g(e){var t,n,r=e.changedTouches,o=r.length;for(t=0;t<o;++t)(n=u[r[t].identifier])&&(Vn(e),n("drag",e,r[t]))}function y(e){var t,n,o=e.changedTouches,i=o.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(n=u[o[t].identifier])&&(zn(e),n("end",e,o[t]))}function b(e,t,n,r,o,i){var s,d,p,h=c.copy(),m=Yn(i||n,t);if(null!=(p=a.call(e,new uo("beforestart",{sourceEvent:n,target:f,identifier:o,active:l,x:m[0],y:m[1],dx:0,dy:0,dispatch:h}),r)))return s=p.x-m[0]||0,d=p.y-m[1]||0,function n(i,a,c){var v,g=m;switch(i){case"start":u[o]=n,v=l++;break;case"end":delete u[o],--l;case"drag":m=Yn(c||a,t),v=l}h.call(i,e,new uo(i,{sourceEvent:a,subject:p,target:f,identifier:o,active:v,x:m[0]+s,y:m[1]+d,dx:m[0]-g[0],dy:m[1]-g[1],dispatch:h}),r)}}return f.filter=function(e){return arguments.length?(o="function"===typeof e?e:so(!!e),f):o},f.container=function(e){return arguments.length?(i="function"===typeof e?e:so(e),f):i},f.subject=function(e){return arguments.length?(a="function"===typeof e?e:so(e),f):a},f.touchable=function(e){return arguments.length?(s="function"===typeof e?e:so(!!e),f):s},f.on=function(){var e=c.on.apply(c,arguments);return e===c?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}().subject((function(){if(!t.enableNodeDrag)return null;var e=a();return e&&"Node"===e.type?e.d:null})).on("start",(function(e){var n=e.subject;n.__initialDragPos={x:n.x,y:n.y,fx:n.fx,fy:n.fy},e.active||(n.fx=n.x,n.fy=n.y),t.canvas.classList.add("grabbable")})).on("drag",(function(e){var n=e.subject,r=n.__initialDragPos,o=e,i=Xr(t.canvas).k,a={x:r.x+(o.x-r.x)/i-n.x,y:r.y+(o.y-r.y)/i-n.y};["x","y"].forEach((function(e){return n["f".concat(e)]=n[e]=r[e]+(o[e]-r[e])/i})),t.forceGraph.d3AlphaTarget(.3).resetCountdown(),t.isPointerDragging=!0,n.__dragged=!0,t.onNodeDrag(n,a)})).on("end",(function(e){var n=e.subject,r=n.__initialDragPos,o={x:n.x-r.x,y:n.y-r.y};void 0===r.fx&&(n.fx=void 0),void 0===r.fy&&(n.fy=void 0),delete n.__initialDragPos,t.forceGraph.d3AlphaTarget(0).resetCountdown(),t.canvas.classList.remove("grabbable"),t.isPointerDragging=!1,n.__dragged&&(delete n.__dragged,t.onNodeDragEnd(n,o))}))),t.zoom(t.zoom.__baseElem=Fn(t.canvas)),t.zoom.__baseElem.on("dblclick.zoom",null),t.zoom.filter((function(e){return!e.button&&t.enableZoomPanInteraction&&(t.enableZoomInteraction||"wheel"!==e.type)&&(t.enablePanInteraction||"wheel"===e.type)})).on("zoom",(function(e){var n=e.transform;[r,o].forEach((function(e){Ci(e),e.translate(n.x,n.y),e.scale(n.k,n.k)})),t.onZoom(si({},n)),t.needsRedraw=!0})).on("end",(function(e){return t.onZoomEnd(si({},e.transform))})),Oi(t),t.forceGraph.onNeedsRedraw((function(){return t.needsRedraw=!0})).onFinishUpdate((function(){Xr(t.canvas).k===t.lastSetZoom&&t.graphData.nodes.length&&(t.zoom.scaleTo(t.zoom.__baseElem,t.lastSetZoom=4/Math.cbrt(t.graphData.nodes.length)),t.needsRedraw=!0)}));var s=document.createElement("div");s.classList.add("graph-tooltip"),n.appendChild(s),["pointermove","pointerdown"].forEach((function(e){return n.addEventListener(e,(function(r){"pointerdown"===e&&(t.isPointerPressed=!0,t.pointerDownEvent=r),!t.isPointerDragging&&"pointermove"===r.type&&t.onBackgroundClick&&(r.pressure>0||t.isPointerPressed)&&("touch"!==r.pointerType||void 0===r.movementX||[r.movementX,r.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0);var o=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(n);i.x=r.pageX-o.left,i.y=r.pageY-o.top,s.style.top="".concat(i.y,"px"),s.style.left="".concat(i.x,"px")}),{passive:!0})})),n.addEventListener("pointerup",(function(e){if(t.isPointerPressed=!1,t.isPointerDragging)t.isPointerDragging=!1;else{var n=[e,t.pointerDownEvent];requestAnimationFrame((function(){if(0===e.button)if(t.hoverObj){var r=t["on".concat(t.hoverObj.type,"Click")];r&&r.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundClick&&t.onBackgroundClick.apply(t,n);if(2===e.button)if(t.hoverObj){var o=t["on".concat(t.hoverObj.type,"RightClick")];o&&o.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundRightClick&&t.onBackgroundRightClick.apply(t,n)}))}}),{passive:!0}),n.addEventListener("contextmenu",(function(e){return!(t.onBackgroundRightClick||t.onNodeRightClick||t.onLinkRightClick)||(e.preventDefault(),!1)})),t.forceGraph(r),t.shadowGraph(o);var u=go()((function(){Ai(o,t.width,t.height),t.shadowGraph.linkWidth((function(e){return(0,E.default)(t.linkWidth)(e)+t.linkHoverPrecision}));var e=Xr(t.canvas);t.shadowGraph.globalScale(e.k).tickFrame()}),800);(this._animationCycle=function e(){var n=!t.autoPauseRedraw||!!t.needsRedraw||t.forceGraph.isEngineRunning()||t.graphData.links.some((function(e){return e.__photons&&e.__photons.length}));if(t.needsRedraw=!1,t.enablePointerInteraction){var o=t.isPointerDragging?null:a();if(o!==t.hoverObj){var i=t.hoverObj,c=i?i.type:null,l=o?o.type:null;if(c&&c!==l){var d=t["on".concat(c,"Hover")];d&&d(null,i.d)}if(l){var f=t["on".concat(l,"Hover")];f&&f(o.d,c===l?i.d:null)}var p=o&&(0,E.default)(t["".concat(o.type.toLowerCase(),"Label")])(o.d)||"";s.style.visibility=p?"visible":"hidden",s.innerHTML=p,t.canvas.classList[o&&t["on".concat(l,"Click")]||!o&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=o}n&&u()}if(n){Ai(r,t.width,t.height);var h=Xr(t.canvas).k;t.onRenderFramePre&&t.onRenderFramePre(r,h),t.forceGraph.globalScale(h).tickFrame(),t.onRenderFramePost&&t.onRenderFramePost(r,h)}Ke.ZP.update(),t.animationFrameRequestId=requestAnimationFrame(e)})()},update:function(e){}}),Mi={width:M().number,height:M().number,graphData:M().shape({nodes:M().arrayOf(M().object).isRequired,links:M().arrayOf(M().object).isRequired}),backgroundColor:M().string,nodeRelSize:M().number,nodeId:M().string,nodeLabel:M().oneOfType([M().string,M().func]),nodeVal:M().oneOfType([M().number,M().string,M().func]),nodeVisibility:M().oneOfType([M().bool,M().string,M().func]),nodeColor:M().oneOfType([M().string,M().func]),nodeAutoColorBy:M().oneOfType([M().string,M().func]),onNodeHover:M().func,onNodeClick:M().func,linkSource:M().string,linkTarget:M().string,linkLabel:M().oneOfType([M().string,M().func]),linkVisibility:M().oneOfType([M().bool,M().string,M().func]),linkColor:M().oneOfType([M().string,M().func]),linkAutoColorBy:M().oneOfType([M().string,M().func]),linkWidth:M().oneOfType([M().number,M().string,M().func]),linkCurvature:M().oneOfType([M().number,M().string,M().func]),linkDirectionalArrowLength:M().oneOfType([M().number,M().string,M().func]),linkDirectionalArrowColor:M().oneOfType([M().string,M().func]),linkDirectionalArrowRelPos:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticles:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticleSpeed:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticleWidth:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticleColor:M().oneOfType([M().string,M().func]),onLinkHover:M().func,onLinkClick:M().func,dagMode:M().oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:M().number,dagNodeFilter:M().func,onDagError:M().func,d3AlphaMin:M().number,d3AlphaDecay:M().number,d3VelocityDecay:M().number,warmupTicks:M().number,cooldownTicks:M().number,cooldownTime:M().number,onEngineTick:M().func,onEngineStop:M().func,getGraphBbox:M().func},Di={zoomToFit:M().func,onNodeRightClick:M().func,onNodeDrag:M().func,onNodeDragEnd:M().func,onLinkRightClick:M().func,linkHoverPrecision:M().number,onBackgroundClick:M().func,onBackgroundRightClick:M().func,enablePointerInteraction:M().bool,enableNodeDrag:M().bool},Ii={showNavInfo:M().bool,nodeOpacity:M().number,nodeResolution:M().number,nodeThreeObject:M().oneOfType([M().object,M().string,M().func]),nodeThreeObjectExtend:M().oneOfType([M().bool,M().string,M().func]),linkOpacity:M().number,linkResolution:M().number,linkCurveRotation:M().oneOfType([M().number,M().string,M().func]),linkMaterial:M().oneOfType([M().object,M().string,M().func]),linkThreeObject:M().oneOfType([M().object,M().string,M().func]),linkThreeObjectExtend:M().oneOfType([M().bool,M().string,M().func]),linkPositionUpdate:M().func,linkDirectionalArrowResolution:M().number,linkDirectionalParticleResolution:M().number,forceEngine:M().oneOf(["d3","ngraph"]),ngraphPhysics:M().object,numDimensions:M().oneOf([1,2,3])},Pi=Object.assign({},Mi,Di,{linkLineDash:M().oneOfType([M().arrayOf(M().number),M().string,M().func]),nodeCanvasObjectMode:M().oneOfType([M().string,M().func]),nodeCanvasObject:M().func,nodePointerAreaPaint:M().func,linkCanvasObjectMode:M().oneOfType([M().string,M().func]),linkCanvasObject:M().func,linkPointerAreaPaint:M().func,autoPauseRedraw:M().bool,minZoom:M().number,maxZoom:M().number,enableZoomInteraction:M().bool,enablePanInteraction:M().bool,onZoom:M().func,onZoomEnd:M().func,onRenderFramePre:M().func,onRenderFramePost:M().func}),Ni=Object.assign({},Mi,Di,Ii,{enableNavigationControls:M().bool,controlType:M().oneOf(["trackball","orbit","fly"]),rendererConfig:M().object,extraRenderers:M().arrayOf(M().shape({render:M().func.isRequired}))}),Ri=Object.assign({},Mi,Ii,{nodeDesc:M().oneOfType([M().string,M().func]),linkDesc:M().oneOfType([M().string,M().func])}),Li=Object.assign({},Mi,Ii,{markerAttrs:M().object,yOffset:M().number,glScale:M().number});const ji=y(A,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"]});ji.displayName="ForceGraphVR",ji.propTypes=Ri;const Fi=y(F,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"],initPropNames:["markerAttrs"]});Fi.displayName="ForceGraphAR",Fi.propTypes=Li;const Bi=y(ht,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","cameraPosition","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords","postProcessingComposer","scene","camera","renderer","controls","refresh"],initPropNames:["controlType","rendererConfig","extraRenderers"]});Bi.displayName="ForceGraph3D",Bi.propTypes=Ni;const Hi=y(Si,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Hi.displayName="ForceGraph2D",Hi.propTypes=Pi},37763:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=c;var i=n(3),a=o(n(4)),s=n(14),u=o(n(15));function c(e){var t=e.activeClassName,n=void 0===t?"":t,o=e.activeIndex,a=void 0===o?-1:o,c=e.activeStyle,l=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,p=e.className,h=e.findChunks,m=e.highlightClassName,v=void 0===m?"":m,g=e.highlightStyle,y=void 0===g?{}:g,b=e.highlightTag,E=void 0===b?"mark":b,_=e.sanitize,T=e.searchWords,w=e.textToHighlight,k=e.unhighlightClassName,x=void 0===k?"":k,O=e.unhighlightStyle,C=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),A=(0,i.findAll)({autoEscape:l,caseSensitive:f,findChunks:h,sanitize:_,searchWords:T,textToHighlight:w}),S=E,M=-1,D="",I=void 0,P=(0,u.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",r({className:p},C,{children:A.map((function(e,t){var r=w.substr(e.start,e.end-e.start);if(e.highlight){M++;var o=void 0;o="object"===typeof v?f?v[r]:(v=P(v))[r.toLowerCase()]:v;var i=M===+a;D=o+" "+(i?n:""),I=!0===i&&null!=c?Object.assign({},y,c):y;var u={children:r,className:D,key:t,style:I};return"string"!==typeof S&&(u.highlightIndex=M),(0,s.createElement)(S,u)}return(0,s.createElement)("span",{children:r,className:x,key:t,style:O})}))}))}c.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,u=void 0===s?r:s,c=e.sanitize,l=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:l,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var u=a.index,c=i.lastIndex;c>u&&e.push({start:u,end:c}),a.index==i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),s=n(11),u=n(12);e.exports=function(e,n){var c="function"===typeof Symbol&&Symbol.iterator;var l="<<anonymous>>",d={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(r.thatReturnsNull),arrayOf:function(e){return h((function(t,n,r,o,i){if("function"!==typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<a.length;u++){var c=e(a,u,r,o,i+"["+u+"]",s);if(c instanceof Error)return c}return null}))},element:h((function(t,n,r,o,i){var a=t[n];return e(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||l;return new p("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:l)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,o){return v(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,r,o,i){if("function"!==typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=g(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,o,i+"."+c,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return h((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;return new p("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!==typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(o),n),r.thatReturnsNull}return h((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new p("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return h((function(t,n,r,o,i){var a=t[n],u=g(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var l=e[c];if(l){var d=l(a,c,r,o,i+"."+c,s);if(d)return d}}return null}))},exact:function(e){return h((function(t,n,r,o,i){var u=t[n],c=g(u);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var l=a({},t[n],e);for(var d in l){var f=e[d];if(!f)return new p("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var h=f(u,d,r,o,i+"."+d,s);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function h(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function u(u,c,d,f,h,m,v){if(f=f||l,m=m||d,v!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var g=f+":"+d;!r[g]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,f),r[g]=!0,a++)}return null==c[d]?u?null===c[d]?new p("The "+h+" `"+m+"` is marked as required in `"+f+"`, but its value is `null`."):new p("The "+h+" `"+m+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(c,d,f,h,m)}var c=u.bind(null,!1);return c.isRequired=u.bind(null,!0),c}function m(e){return h((function(t,n,r,o,i,a){var s=t[n];return g(s)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!v(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if("undefined"===typeof e||null===e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=u,d.PropTypes=d,d}}).call(t,n(5))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,u){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],d=0;(c=new Error(t.replace(/%s/g,(function(){return l[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(5))},function(e,t,n){(function(t){"use strict";var r=n(7);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!==typeof console&&console.error(i);try{throw new Error(i)}catch(a){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(5))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var a,s,u=i(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(n){s=n(a);for(var d=0;d<s.length;d++)o.call(a,s[d])&&(u[s[d]]=a[s[d]])}}return u}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var r=n(8),o=n(9),i=n(11),a={};e.exports=function(e,n,s,u,c){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var d;try{r("function"===typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",s,l,typeof e[l]),d=e[l](n,l,u,s,null,i)}catch(p){d=p}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,l,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=c?c():"";o(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(11);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){e.exports=n(67294)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,o=[],i=void 0,a=!1,s=function(e,n){return t(e,o[n])},u=function(){for(var t=arguments.length,n=Array(t),u=0;u<t;u++)n[u]=arguments[u];return a&&r===this&&n.length===o.length&&n.every(s)?i:(a=!0,r=this,o=n,i=e.apply(this,n))};return u}}])},44405:function(e,t,n){"use strict";n.d(t,{w_:function(){return c}});var r=n(67294),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function u(e){return e&&e.map((function(e,t){return r.createElement(e.tag,a({key:t},e.attr),u(e.child))}))}function c(e){return function(t){return r.createElement(l,a({attr:a({},e.attr)},t),u(e.child))}}function l(e){var t=function(t){var n,o=e.attr,i=e.size,u=e.title,c=s(e,["attr","size","title"]),l=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,c,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==i?r.createElement(i.Consumer,null,(function(e){return t(e)})):t(o)}},69921:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,u=60110,c=60112,l=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),u=b("react.context"),c=b("react.forward_ref"),l=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case l:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}},59864:function(e,t,n){"use strict";n(69921)},49909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(67294);t.default=function(e,t,n){var o=r.useRef(void 0);o.current&&n(t,o.current)||(o.current=t),r.useEffect(e,o.current)}},96705:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5272),o=n(85987),i=r.__importDefault(n(49909));t.default=function(e,t){i.default(e,t,o.isDeepEqual)}},85987:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeepEqual=t.off=t.on=t.isClient=void 0;var r=n(5272).__importDefault(n(38252));t.isClient="object"===typeof window,t.on=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.addEventListener.apply(e,t)},t.off=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.removeEventListener.apply(e,t)},t.isDeepEqual=r.default},5272:function(e,t,n){"use strict";n.r(t),n.d(t,{__extends:function(){return o},__assign:function(){return i},__rest:function(){return a},__decorate:function(){return s},__param:function(){return u},__metadata:function(){return c},__awaiter:function(){return l},__generator:function(){return d},__createBinding:function(){return f},__exportStar:function(){return p},__values:function(){return h},__read:function(){return m},__spread:function(){return v},__spreadArrays:function(){return g},__spreadArray:function(){return y},__await:function(){return b},__asyncGenerator:function(){return E},__asyncDelegator:function(){return _},__asyncValues:function(){return T},__makeTemplateObject:function(){return w},__importStar:function(){return x},__importDefault:function(){return O},__classPrivateFieldGet:function(){return C},__classPrivateFieldSet:function(){return A}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function h(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(r){l(i[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return k(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function A(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},22003:function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function i(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}var a=function(e,t){this.target=t,this.type=e},s=function(e){function t(t,n){var r=e.call(this,"error",n)||this;return r.message=t.message,r.error=t,r}return r(t,e),t}(a),u=function(e){function t(t,n,r){void 0===t&&(t=1e3),void 0===n&&(n="");var o=e.call(this,"close",r)||this;return o.wasClean=!0,o.code=t,o.reason=n,o}return r(t,e),t}(a),c=function(){if("undefined"!==typeof WebSocket)return WebSocket},l={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},d=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(e){r._debug("open event");var t=r._options.minUptime,n=void 0===t?l.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout((function(){return r._acceptOpen()}),n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach((function(e){return r._ws.send(e)})),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach((function(t){return r._callEventListener(e,t)}))},this._handleMessage=function(e){r._debug("message event"),r.onmessage&&r.onmessage(e),r._listeners.message.forEach((function(t){return r._callEventListener(e,t)}))},this._handleError=function(e){r._debug("error event",e.message),r._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),r.onerror&&r.onerror(e),r._debug("exec error listeners"),r._listeners.error.forEach((function(t){return r._callEventListener(e,t)})),r._connect()},this._handleClose=function(e){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach((function(t){return r._callEventListener(e,t)}))},this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this._messageQueue.reduce((function(e,t){return"string"===typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e}),0)+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=void 0===t?l.maxEnqueuedMessages:t;this._messageQueue.length<n&&(this._debug("enqueue",e),this._messageQueue.push(e))}},e.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},e.prototype.dispatchEvent=function(e){var t,n,r=this._listeners[e.type];if(r)try{for(var o=function(e){var t="function"===typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),i=o.next();!i.done;i=o.next()){var a=i.value;this._callEventListener(e,a)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,i(["RWS>"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?l.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?l.minReconnectionDelay:r,i=e.maxReconnectionDelay,a=void 0===i?l.maxReconnectionDelay:i,s=0;return this._retryCount>0&&(s=o*Math.pow(n,this._retryCount-1))>a&&(s=a),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"===typeof e)return Promise.resolve(e);if("function"===typeof e){var t=e();if("string"===typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?l.maxRetries:n,o=t.connectionTimeout,i=void 0===o?l.connectionTimeout:o,a=t.WebSocket,s=void 0===a?c():a;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),"undefined"===typeof(u=s)||!u||2!==u.CLOSING)throw Error("No valid WebSocket class provided");var u;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),i))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new s(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new u(e,t,this))}catch(n){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();t.Z=d},71167:function(e,t,n){const r=n(62854),o=n(20527).renderToString,i=n(18835),a=n(13322),s=n(85330);e.exports=function(e){const t=e||{},n=t.throwOnError||!1;return function(e,i){function a(e){const r=e.properties.className||[],a=r.includes("math-inline"),d=r.includes("math-display");if(!a&&!d)return;const f=s(e);let p;try{p=o(f,u({},t,{displayMode:d,throwOnError:!0}))}catch(h){const r=n?"fail":"message",a=[l,h.name.toLowerCase()].join(":");i[r](h.message,e.position,a),p=o(f,u({},t,{displayMode:d,throwOnError:!1,strict:"ignore"}))}e.children=c.parse(p).children}r(e,"element",a)}};const u=Object.assign,c=i().use(a,{fragment:!0,position:!1}),l="rehype-katex"},67172:function(e){"use strict";e.exports=JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `\x3c!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `\x3c!--`. Expected `--\x3e`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}')},13322:function(e,t,n){"use strict";var r=n(92114),o=n(7045),i=n(67172),a={2:!0,1:!1,0:null};function s(e){return e.charAt(1).toUpperCase()}e.exports=function(e){var t=Object.assign({},e,this.data("settings")),n=t.position;n="boolean"!==typeof n||n,this.Parser=function(e,u){var c=t.fragment?"parseFragment":"parse",l=t.emitParseErrors?function(n){var r,o,c=n.code,l=c.replace(/-[a-z]/g,s),d=t[l],f=void 0===d||null===d||d,p="number"===typeof f?f:f?1:0,h={line:n.startLine,column:n.startCol,offset:n.startOffset},m={line:n.endLine,column:n.endCol,offset:n.endOffset};function v(e){return e.replace(/%c(?:-(\d+))?/g,g).replace(/%x/g,y)}function g(t,r){var o=r?-parseInt(r,10):0,i=e.charAt(n.startOffset+o);return"`"===i?"` ` `":i}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}p&&(r=i[l]||{reason:"",description:""},(o=u.message(v(r.reason),{start:h,end:m})).source="parse-error",o.ruleId=c,o.fatal=a[p],o.note=v(r.description),o.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+c)}:null,d=new o({sourceCodeLocationInfo:n,onParseError:l,scriptingEnabled:!1});return r(d[c](e),{space:t.space,file:u,verbose:t.verbose})}}},27431:function(e,t,n){"use strict";var r=n(76331),o=n(90478);e.exports=function(e){var t=e||{},n=t.createElement;function s(e,r,o){var s=e;return o&&a.has(e)&&(o=o.filter((function(e){return"\n"!==e}))),t.components&&i.call(t.components,e)&&(s=t.components[e],t.passNode&&(r.node=this)),n(s,r,o)}this.Compiler=function(e){var i=r(s,o(e),t.prefix);return"root"===e.type?(i="div"!==i.type||1===e.children.length&&"element"===e.children[0].type?[i]:i.props.children,n(t.Fragment||"div",{},i)):i}};var i={}.hasOwnProperty,a=new Set(["table","thead","tbody","tfoot","tr","th","td"])},76826:function(e){var t={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\u1ea4":"A","\u1eae":"A","\u1eb2":"A","\u1eb4":"A","\u1eb6":"A","\xc6":"AE","\u1ea6":"A","\u1eb0":"A","\u0202":"A","\xc7":"C","\u1e08":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\u1ebe":"E","\u1e16":"E","\u1ec0":"E","\u1e14":"E","\u1e1c":"E","\u0206":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u020a":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\u1ed0":"O","\u1e4c":"O","\u1e52":"O","\u020e":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\u1ea5":"a","\u1eaf":"a","\u1eb3":"a","\u1eb5":"a","\u1eb7":"a","\xe6":"ae","\u1ea7":"a","\u1eb1":"a","\u0203":"a","\xe7":"c","\u1e09":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\u1ebf":"e","\u1e17":"e","\u1ec1":"e","\u1e15":"e","\u1e1d":"e","\u0207":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u020b":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\u1ed1":"o","\u1e4d":"o","\u1e53":"o","\u020f":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u0108":"C","\u0109":"c","\u010a":"C","\u010b":"c","\u010c":"C","\u010d":"c","C\u0306":"C","c\u0306":"c","\u010e":"D","\u010f":"d","\u0110":"D","\u0111":"d","\u0112":"E","\u0113":"e","\u0114":"E","\u0115":"e","\u0116":"E","\u0117":"e","\u0118":"E","\u0119":"e","\u011a":"E","\u011b":"e","\u011c":"G","\u01f4":"G","\u011d":"g","\u01f5":"g","\u011e":"G","\u011f":"g","\u0120":"G","\u0121":"g","\u0122":"G","\u0123":"g","\u0124":"H","\u0125":"h","\u0126":"H","\u0127":"h","\u1e2a":"H","\u1e2b":"h","\u0128":"I","\u0129":"i","\u012a":"I","\u012b":"i","\u012c":"I","\u012d":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0132":"IJ","\u0133":"ij","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u1e30":"K","\u1e31":"k","K\u0306":"K","k\u0306":"k","\u0139":"L","\u013a":"l","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u013f":"L","\u0140":"l","\u0141":"l","\u0142":"l","\u1e3e":"M","\u1e3f":"m","M\u0306":"M","m\u0306":"m","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u0149":"n","N\u0306":"N","n\u0306":"n","\u014c":"O","\u014d":"o","\u014e":"O","\u014f":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","P\u0306":"P","p\u0306":"p","\u0154":"R","\u0155":"r","\u0156":"R","\u0157":"r","\u0158":"R","\u0159":"r","R\u0306":"R","r\u0306":"r","\u0212":"R","\u0213":"r","\u015a":"S","\u015b":"s","\u015c":"S","\u015d":"s","\u015e":"S","\u0218":"S","\u0219":"s","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u021b":"t","\u021a":"T","\u0164":"T","\u0165":"t","\u0166":"T","\u0167":"t","T\u0306":"T","t\u0306":"t","\u0168":"U","\u0169":"u","\u016a":"U","\u016b":"u","\u016c":"U","\u016d":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0216":"U","\u0217":"u","V\u0306":"V","v\u0306":"v","\u0174":"W","\u0175":"w","\u1e82":"W","\u1e83":"w","X\u0306":"X","x\u0306":"x","\u0176":"Y","\u0177":"y","\u0178":"Y","Y\u0306":"Y","y\u0306":"y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u017f":"s","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01cd":"A","\u01ce":"a","\u01cf":"I","\u01d0":"i","\u01d1":"O","\u01d2":"o","\u01d3":"U","\u01d4":"u","\u01d5":"U","\u01d6":"u","\u01d7":"U","\u01d8":"u","\u01d9":"U","\u01da":"u","\u01db":"U","\u01dc":"u","\u1ee8":"U","\u1ee9":"u","\u1e78":"U","\u1e79":"u","\u01fa":"A","\u01fb":"a","\u01fc":"AE","\u01fd":"ae","\u01fe":"O","\u01ff":"o","\xde":"TH","\xfe":"th","\u1e54":"P","\u1e55":"p","\u1e64":"S","\u1e65":"s","X\u0301":"X","x\u0301":"x","\u0403":"\u0413","\u0453":"\u0433","\u040c":"\u041a","\u045c":"\u043a","A\u030b":"A","a\u030b":"a","E\u030b":"E","e\u030b":"e","I\u030b":"I","i\u030b":"i","\u01f8":"N","\u01f9":"n","\u1ed2":"O","\u1ed3":"o","\u1e50":"O","\u1e51":"o","\u1eea":"U","\u1eeb":"u","\u1e80":"W","\u1e81":"w","\u1ef2":"Y","\u1ef3":"y","\u0200":"A","\u0201":"a","\u0204":"E","\u0205":"e","\u0208":"I","\u0209":"i","\u020c":"O","\u020d":"o","\u0210":"R","\u0211":"r","\u0214":"U","\u0215":"u","B\u030c":"B","b\u030c":"b","\u010c\u0323":"C","\u010d\u0323":"c","\xca\u030c":"E","\xea\u030c":"e","F\u030c":"F","f\u030c":"f","\u01e6":"G","\u01e7":"g","\u021e":"H","\u021f":"h","J\u030c":"J","\u01f0":"j","\u01e8":"K","\u01e9":"k","M\u030c":"M","m\u030c":"m","P\u030c":"P","p\u030c":"p","Q\u030c":"Q","q\u030c":"q","\u0158\u0329":"R","\u0159\u0329":"r","\u1e66":"S","\u1e67":"s","V\u030c":"V","v\u030c":"v","W\u030c":"W","w\u030c":"w","X\u030c":"X","x\u030c":"x","Y\u030c":"Y","y\u030c":"y","A\u0327":"A","a\u0327":"a","B\u0327":"B","b\u0327":"b","\u1e10":"D","\u1e11":"d","\u0228":"E","\u0229":"e","\u0190\u0327":"E","\u025b\u0327":"e","\u1e28":"H","\u1e29":"h","I\u0327":"I","i\u0327":"i","\u0197\u0327":"I","\u0268\u0327":"i","M\u0327":"M","m\u0327":"m","O\u0327":"O","o\u0327":"o","Q\u0327":"Q","q\u0327":"q","U\u0327":"U","u\u0327":"u","X\u0327":"X","x\u0327":"x","Z\u0327":"Z","z\u0327":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),i=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i},96464:function(e){"use strict";var t,n="";e.exports=function(e,r){if("string"!==typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var o=e.length*r;if(t!==e||"undefined"===typeof t)t=e,n="";else if(n.length>=o)return n.substr(0,o);for(;o>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,o)}},36582:function(e,t){"use strict";t.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)},t.stringify=function(e){return e.join(" ").trim()};var n=/[ \t\n\r\f]+/g},57848:function(e,t,n){var r=n(18139);e.exports=function(e,t){var n,o=null;if(!e||"string"!==typeof e)return o;for(var i,a,s=r(e),u="function"===typeof t,c=0,l=s.length;c<l;c++)i=(n=s[c]).property,a=n.value,u?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}},81398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ue}});var r=n(2212),o=n(54505),i=n(15560),a=n(92405),s=n(20216),u=n(16917),c=n(54736),l=n.n(c),d=n(16505),f=n.n(d),p=n(44858),h=n(92539),m=n(86701),v=n(3752),g=n(1527);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t,n){var r=n.objBindAttr,o=void 0===r?"__obj":r,i=n.dataBindAttr,a=void 0===i?"__data":i,s=n.idAccessor,u=n.purge,c=void 0!==u&&u,l=function(e){return e.hasOwnProperty(a)},d=t.filter((function(e){return!l(e)})),f=t.filter(l).map((function(e){return e[a]})),p=c?{enter:e,exit:f,update:[]}:function(e,t,n){var r={enter:[],update:[],exit:[]};if(n){var o=(0,g.Z)(e,n,!1),i=(0,g.Z)(t,n,!1),a=Object.assign({},o,i);Object.entries(a).forEach((function(e){var t=_(e,2),n=t[0],a=t[1],s=o.hasOwnProperty(n)?i.hasOwnProperty(n)?"update":"exit":"enter";r[s].push("update"===s?[o[n],i[n]]:a)}))}else{var s=new Set(e),u=new Set(t);new Set([].concat(T(s),T(u))).forEach((function(e){var t=s.has(e)?u.has(e)?"update":"exit":"enter";r[t].push("update"===t?[e,e]:e)}))}return r}(f,e,s);return p.update=p.update.map((function(e){var t=_(e,2),n=t[0],r=t[1];return n!==r&&(r[o]=n[o],r[o][a]=r),r})),p.exit=p.exit.concat(d.map((function(e){return b({},o,e)}))),p}var O=function(e,t,n,r,o){var i=o.createObj,a=void 0===i?function(e){return{}}:i,s=o.updateObj,u=void 0===s?function(e,t){}:s,c=o.exitObj,l=void 0===c?function(e){}:c,d=o.objBindAttr,f=void 0===d?"__obj":d,p=o.dataBindAttr,h=void 0===p?"__data":p,m=E(o,["createObj","updateObj","exitObj","objBindAttr","dataBindAttr"]),v=x(e,t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({objBindAttr:f,dataBindAttr:h},m)),g=v.enter,_=v.update;v.exit.forEach((function(e){var t=e[f];delete e[f],l(t),r(t)}));var w=function(e){var t=[];return e.forEach((function(e){var n=a(e);n&&(n[h]=e,e[f]=n,t.push(n))})),t}(g);!function(e){e.forEach((function(e){var t=e[f];t&&(t[h]=e,u(t,e))}))}([].concat(T(g),T(_))),w.forEach(n)},C=n(72462),A=n(47646),S=n(17621),M=n.n(S);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e){return(P="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function H(e,t,n){return(H=B()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&F(o,n.prototype),o}).apply(null,arguments)}function U(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?z(e):t}function G(e){var t=B();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"===typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $=function e(t){t instanceof Array?t.forEach(e):(t.map&&t.map.dispose(),t.dispose())},Z=function e(t){t.geometry&&t.geometry.dispose(),t.material&&$(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(e)},X=function(e){for(;e.children.length;){var t=e.children[0];e.remove(t),Z(t)}},Q=["objFilter"];function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.objFilter,o=void 0===r?function(){return!0}:r,i=U(n,Q);return O(e,t.children.filter(o),(function(e){return t.add(e)}),(function(e){t.remove(e),X(e)}),I({objBindAttr:"__threeObj"},i))}var ee=function(e){return isNaN(e)?parseInt(M()(e).toHex(),16):e},te=function(e){return isNaN(e)?M()(e).getAlpha():1},ne=(0,C.Z)(A.Z);function re(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=ne(t(e))}))}var oe=window.THREE?window.THREE:{Group:r.ZAu,Mesh:r.Kj0,MeshLambertMaterial:r.YBo,Color:r.Ilk,BufferGeometry:r.u9r,BufferAttribute:r.TlE,Matrix4:r.yGw,Vector3:r.Pa4,SphereBufferGeometry:r.Aip,CylinderBufferGeometry:r.m_w,TubeBufferGeometry:r.Lcc,ConeBufferGeometry:r._3,Line:r.x12,LineBasicMaterial:r.nls,QuadraticBezierCurve3:r.mXe,CubicBezierCurve3:r.yj7,Box3:r.ZzF},ie={graph:l(),forcelayout:f()},ae=(new oe.BufferGeometry).setAttribute?"setAttribute":"addAttribute",se=(new oe.BufferGeometry).applyMatrix4?"applyMatrix4":"applyMatrix";var ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(t){L(o,t);var r=G(o);function o(){var t;N(this,o);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(t=r.call.apply(r,[this].concat(a))).__kapsuleInstance=e().apply(void 0,[].concat(K(n?[z(t)]:[]),a)),t}return o}(t);return Object.keys(e()).forEach((function(e){return r.prototype[e]=function(){var t,n=(t=this.__kapsuleInstance)[e].apply(t,arguments);return n===this.__kapsuleInstance?this:n}})),r}((0,p.Z)({props:{jsonUrl:{onChange:function(e,t){var n=this;e&&!t.fetchingJson&&(t.fetchingJson=!0,t.onLoading(),fetch(e).then((function(e){return e.json()})).then((function(e){t.fetchingJson=!1,t.onFinishLoading(e),n.graphData(e)})))},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(e,t){t.engineRunning=!1}},numDimensions:{default:3,onChange:function(e,t){var n=t.d3ForceLayout.force("charge");function r(e,t){e.forEach((function(e){delete e[t],delete e["v".concat(t)]}))}n&&n.strength(e>2?-60:-30),e<3&&r(t.graphData.nodes,"z"),e<2&&r(t.graphData.nodes,"y")}},dagMode:{onChange:function(e,t){!e&&"d3"===t.forceEngine&&(t.graphData.nodes||[]).forEach((function(e){return e.fx=e.fy=e.fz=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(e){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4},nodeId:{default:"id"},nodeVal:{default:"val"},nodeResolution:{default:8},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeVisibility:{default:!0},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{},linkResolution:{default:6},linkCurvature:{default:0,triggerUpdate:!1},linkCurveRotation:{default:0,triggerUpdate:!1},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{triggerUpdate:!1},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaDecay(e)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaTarget(e)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.velocityDecay(e)}},ngraphPhysics:{default:{timeStep:20,gravity:-1.2,theta:.8,springLength:30,springCoefficient:8e-4,dragCoefficient:.02}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onLoading:{default:function(){},triggerUpdate:!1},onFinishLoading:{default:function(){},triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1}},methods:{refresh:function(e){return e._flushObjects=!0,e._rerender(),this},d3Force:function(e,t,n){return void 0===n?e.d3ForceLayout.force(t):(e.d3ForceLayout.force(t,n),this)},d3ReheatSimulation:function(e){return e.d3ForceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(e){return e.cntTicks=0,e.startTickTime=new Date,e.engineRunning=!0,this},tickFrame:function(e){var t="ngraph"!==e.forceEngine;return e.engineRunning&&function(){++e.cntTicks>e.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||t&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()<e.d3AlphaMin?(e.engineRunning=!1,e.onEngineStop()):(e.layout[t?"tick":"step"](),e.onEngineTick());e.graphData.nodes.forEach((function(n){var r=n.__threeObj;if(r){var o=t?n:e.layout.getNodePosition(n[e.nodeId]);r.position.x=o.x,r.position.y=o.y||0,r.position.z=o.z||0}}));var n=(0,h.default)(e.linkWidth),r=(0,h.default)(e.linkCurvature),o=(0,h.default)(e.linkCurveRotation),i=(0,h.default)(e.linkThreeObjectExtend);function a(n){var i=t?n:e.layout.getLinkPosition(e.layout.graph.getLink(n.source,n.target).id),a=i[t?"source":"from"],s=i[t?"target":"to"];if(a&&s&&a.hasOwnProperty("x")&&s.hasOwnProperty("x")){var u=r(n);if(u){var c,l=new oe.Vector3(a.x,a.y||0,a.z||0),d=new oe.Vector3(s.x,s.y||0,s.z||0),f=l.distanceTo(d),p=o(n);if(f>0){var h=s.x-a.x,m=s.y-a.y||0,v=(new oe.Vector3).subVectors(d,l),g=v.clone().multiplyScalar(u).cross(0!==h||0!==m?new oe.Vector3(0,0,1):new oe.Vector3(0,1,0)).applyAxisAngle(v.normalize(),p).add((new oe.Vector3).addVectors(l,d).divideScalar(2));c=new oe.QuadraticBezierCurve3(l,g,d)}else{var y=70*u,b=-p,E=b+Math.PI/2;c=new oe.CubicBezierCurve3(l,new oe.Vector3(y*Math.cos(E),y*Math.sin(E),0).add(l),new oe.Vector3(y*Math.cos(b),y*Math.sin(b),0).add(l),d)}n.__curve=c}else n.__curve=null}}e.graphData.links.forEach((function(r){var o=r.__lineObj;if(o){var s=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),u=s[t?"source":"from"],c=s[t?"target":"to"];if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){a(r);var l=i(r);if(!e.linkPositionUpdate||!e.linkPositionUpdate(l?o.children[1]:o,{start:{x:u.x,y:u.y,z:u.z},end:{x:c.x,y:c.y,z:c.z}},r)||l){var d=30,f=r.__curve,p=o.children.length?o.children[0]:o;if("Line"===p.type){if(f)p.geometry.setFromPoints(f.getPoints(d));else{var h=p.geometry.getAttribute("position");h&&h.array&&6===h.array.length||p.geometry[ae]("position",h=new oe.BufferAttribute(new Float32Array(6),3)),h.array[0]=u.x,h.array[1]=u.y||0,h.array[2]=u.z||0,h.array[3]=c.x,h.array[4]=c.y||0,h.array[5]=c.z||0,h.needsUpdate=!0}p.geometry.computeBoundingSphere()}else if("Mesh"===p.type)if(f){p.geometry.type.match(/^Tube(Buffer)?Geometry$/)||(p.position.set(0,0,0),p.rotation.set(0,0,0),p.scale.set(1,1,1));var m=Math.ceil(10*n(r))/10/2,v=new oe.TubeBufferGeometry(f,d,m,e.linkResolution,!1);p.geometry.dispose(),p.geometry=v}else{if(!p.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)){var g=Math.ceil(10*n(r))/10/2,y=new oe.CylinderBufferGeometry(g,g,1,e.linkResolution,1,!1);y[se]((new oe.Matrix4).makeTranslation(0,.5,0)),y[se]((new oe.Matrix4).makeRotationX(Math.PI/2)),p.geometry.dispose(),p.geometry=y}var b=new oe.Vector3(u.x,u.y||0,u.z||0),E=new oe.Vector3(c.x,c.y||0,c.z||0),_=b.distanceTo(E);p.position.x=b.x,p.position.y=b.y,p.position.z=b.z,p.scale.z=_,p.parent.localToWorld(E),p.lookAt(E)}}}}}))}(),function(){var n=(0,h.default)(e.linkDirectionalArrowRelPos),r=(0,h.default)(e.linkDirectionalArrowLength),o=(0,h.default)(e.nodeVal);e.graphData.links.forEach((function(i){var a=i.__arrowObj;if(a){var s=t?i:e.layout.getLinkPosition(e.layout.graph.getLink(i.source,i.target).id),u=s[t?"source":"from"],c=s[t?"target":"to"];if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,o(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,o(c)||1))*e.nodeRelSize,f=r(i),p=n(i),h=i.__curve?function(e){return i.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",u,c,e),y:t("y",u,c,e),z:t("z",u,c,e)}},m=i.__curve?i.__curve.getLength():Math.sqrt(["x","y","z"].map((function(e){return Math.pow((c[e]||0)-(u[e]||0),2)})).reduce((function(e,t){return e+t}),0)),v=l+f+(m-l-d-f)*p,g=h(v/m),y=h((v-f)/m);["x","y","z"].forEach((function(e){return a.position[e]=y[e]}));var b=H(oe.Vector3,K(["x","y","z"].map((function(e){return g[e]}))));a.parent.localToWorld(b),a.lookAt(b)}}}))}(),function(){var n=(0,h.default)(e.linkDirectionalParticleSpeed);e.graphData.links.forEach((function(r){var o=r.__photonsObj&&r.__photonsObj.children,i=r.__singleHopPhotonsObj&&r.__singleHopPhotonsObj.children;if(i&&i.length||o&&o.length){var a=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),s=a[t?"source":"from"],u=a[t?"target":"to"];if(s&&u&&s.hasOwnProperty("x")&&u.hasOwnProperty("x")){var c=n(r),l=r.__curve?function(e){return r.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",s,u,e),y:t("y",s,u,e),z:t("z",s,u,e)}};[].concat(K(o||[]),K(i||[])).forEach((function(e,t){var n="singleHopPhotons"===e.parent.__linkThreeObjType;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=n?0:t/o.length),e.__progressRatio+=c,e.__progressRatio>=1){if(n)return e.parent.remove(e),void X(e);e.__progressRatio=e.__progressRatio%1}var r=e.__progressRatio,i=l(r);["x","y","z"].forEach((function(t){return e.position[t]=i[t]}))}))}}}))}(),this},emitParticle:function(e,t){if(t){if(!t.__singleHopPhotonsObj){var n=new oe.Group;n.__linkThreeObjType="singleHopPhotons",t.__singleHopPhotonsObj=n,e.graphScene.add(n)}var r=(0,h.default)(e.linkDirectionalParticleWidth),o=Math.ceil(10*r(t))/10/2,i=e.linkDirectionalParticleResolution,a=new oe.SphereBufferGeometry(o,i,i),s=(0,h.default)(e.linkColor),u=(0,h.default)(e.linkDirectionalParticleColor)(t)||s(t)||"#f0f0f0",c=new oe.Color(ee(u)),l=3*e.linkOpacity,d=new oe.MeshLambertMaterial({color:c,transparent:!0,opacity:l});t.__singleHopPhotonsObj.add(new oe.Mesh(a,d))}return this},getGraphBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(!e.initialised)return null;var n=function e(n){var r=[];if(n.geometry){n.geometry.computeBoundingBox();var o=new oe.Box3;o.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld),r.push(o)}return r.concat.apply(r,K((n.children||[]).filter((function(e){return!e.hasOwnProperty("__graphObjType")||"node"===e.__graphObjType&&t(e.__data)})).map(e)))}(e.graphScene);return n.length?Object.assign.apply(Object,K(["x","y","z"].map((function(e){return R({},e,[(0,m.Z)(n,(function(t){return t.min[e]})),(0,v.Z)(n,(function(t){return t.max[e]}))])})))):null}},stateInit:function(){return{d3ForceLayout:(0,o.Z)().force("link",(0,i.Z)()).force("charge",(0,a.Z)()).force("center",(0,s.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.graphScene=e},update:function(e,t){var n=function(e){return e.some((function(e){return t.hasOwnProperty(e)}))};if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&n(["nodeAutoColorBy","graphData","nodeColor"])&&re(e.graphData.nodes,(0,h.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&n(["linkAutoColorBy","graphData","linkColor"])&&re(e.graphData.links,(0,h.default)(e.linkAutoColorBy),e.linkColor),e._flushObjects||n(["graphData","nodeThreeObject","nodeThreeObjectExtend","nodeVal","nodeColor","nodeVisibility","nodeRelSize","nodeResolution","nodeOpacity"])){var r=(0,h.default)(e.nodeThreeObject),o=(0,h.default)(e.nodeThreeObjectExtend),i=(0,h.default)(e.nodeVal),a=(0,h.default)(e.nodeColor),s=(0,h.default)(e.nodeVisibility),c={},l={};J(e.graphData.nodes.filter(s),e.graphScene,{purge:e._flushObjects||n(["nodeThreeObject","nodeThreeObjectExtend"]),objFilter:function(e){return"node"===e.__graphObjType},createObj:function(t){var n,i=r(t),a=o(t);return i&&e.nodeThreeObject===i&&(i=i.clone()),i&&!a?n=i:((n=new oe.Mesh).__graphDefaultObj=!0,i&&a&&n.add(i)),n.__graphObjType="node",n},updateObj:function(t,n){if(t.__graphDefaultObj){var r=i(n)||1,o=Math.cbrt(r)*e.nodeRelSize,s=e.nodeResolution;t.geometry.type.match(/^Sphere(Buffer)?Geometry$/)&&t.geometry.parameters.radius===o&&t.geometry.parameters.widthSegments===s||(c.hasOwnProperty(r)||(c[r]=new oe.SphereBufferGeometry(o,s,s)),t.geometry.dispose(),t.geometry=c[r]);var u=a(n),d=new oe.Color(ee(u||"#ffffaa")),f=e.nodeOpacity*te(u);"MeshLambertMaterial"===t.material.type&&t.material.color.equals(d)&&t.material.opacity===f||(l.hasOwnProperty(u)||(l[u]=new oe.MeshLambertMaterial({color:d,transparent:!0,opacity:f})),t.material.dispose(),t.material=l[u])}}})}if(e._flushObjects||n(["graphData","linkThreeObject","linkThreeObjectExtend","linkMaterial","linkColor","linkWidth","linkVisibility","linkResolution","linkOpacity","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution"])){var d=(0,h.default)(e.linkThreeObject),f=(0,h.default)(e.linkThreeObjectExtend),p=(0,h.default)(e.linkMaterial),m=(0,h.default)(e.linkVisibility),v=(0,h.default)(e.linkColor),g=(0,h.default)(e.linkWidth),y={},b={},E={},_=e.graphData.links.filter(m);if(J(_,e.graphScene,{objBindAttr:"__lineObj",purge:e._flushObjects||n(["linkThreeObject","linkThreeObjectExtend","linkWidth"]),objFilter:function(e){return"link"===e.__graphObjType},createObj:function(t){var n,r,o=d(t),i=f(t);if(o&&e.linkThreeObject===o&&(o=o.clone()),!o||i)if(!!g(t))n=new oe.Mesh;else{var a=new oe.BufferGeometry;a[ae]("position",new oe.BufferAttribute(new Float32Array(6),3)),n=new oe.Line(a)}return o?i?((r=new oe.Group).__graphDefaultObj=!0,r.add(n),r.add(o)):r=o:(r=n).__graphDefaultObj=!0,r.renderOrder=10,r.__graphObjType="link",r},updateObj:function(t,n){if(t.__graphDefaultObj){var r=t.children.length?t.children[0]:t,o=Math.ceil(10*g(n))/10,i=!!o;if(i){var a=o/2,s=e.linkResolution;if(!r.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)||r.geometry.parameters.radiusTop!==a||r.geometry.parameters.radialSegments!==s){if(!y.hasOwnProperty(o)){var u=new oe.CylinderBufferGeometry(a,a,1,s,1,!1);u[se]((new oe.Matrix4).makeTranslation(0,.5,0)),u[se]((new oe.Matrix4).makeRotationX(Math.PI/2)),y[o]=u}r.geometry.dispose(),r.geometry=y[o]}}var c=p(n);if(c)r.material=c;else{var l=v(n),d=new oe.Color(ee(l||"#f0f0f0")),f=e.linkOpacity*te(l),h=i?"MeshLambertMaterial":"LineBasicMaterial";if(r.material.type!==h||!r.material.color.equals(d)||r.material.opacity!==f){var m=i?b:E;m.hasOwnProperty(l)||(m[l]=new oe[h]({color:d,transparent:f<1,opacity:f,depthWrite:f>=1})),r.material.dispose(),r.material=m[l]}}}}}),e.linkDirectionalArrowLength||t.hasOwnProperty("linkDirectionalArrowLength")){var T=(0,h.default)(e.linkDirectionalArrowLength),w=(0,h.default)(e.linkDirectionalArrowColor);J(_.filter(T),e.graphScene,{objBindAttr:"__arrowObj",objFilter:function(e){return"arrow"===e.__linkThreeObjType},createObj:function(){var e=new oe.Mesh(void 0,new oe.MeshLambertMaterial({transparent:!0}));return e.__linkThreeObjType="arrow",e},updateObj:function(t,n){var r=T(n),o=e.linkDirectionalArrowResolution;if(!t.geometry.type.match(/^Cone(Buffer)?Geometry$/)||t.geometry.parameters.height!==r||t.geometry.parameters.radialSegments!==o){var i=new oe.ConeBufferGeometry(.25*r,r,o);i.translate(0,r/2,0),i.rotateX(Math.PI/2),t.geometry.dispose(),t.geometry=i}t.material.color=new oe.Color(w(n)||v(n)||"#f0f0f0"),t.material.opacity=3*e.linkOpacity}})}if(e.linkDirectionalParticles||t.hasOwnProperty("linkDirectionalParticles")){var k=(0,h.default)(e.linkDirectionalParticles),x=(0,h.default)(e.linkDirectionalParticleWidth),O=(0,h.default)(e.linkDirectionalParticleColor),C={},A={};J(_.filter(k),e.graphScene,{objBindAttr:"__photonsObj",objFilter:function(e){return"photons"===e.__linkThreeObjType},createObj:function(){var e=new oe.Group;return e.__linkThreeObjType="photons",e},updateObj:function(t,n){var r,o=Math.round(Math.abs(k(n))),i=!!t.children.length&&t.children[0],a=Math.ceil(10*x(n))/10/2,s=e.linkDirectionalParticleResolution;i&&i.geometry.parameters.radius===a&&i.geometry.parameters.widthSegments===s?r=i.geometry:(A.hasOwnProperty(a)||(A[a]=new oe.SphereBufferGeometry(a,s,s)),r=A[a],i&&i.geometry.dispose());var u,c=O(n)||v(n)||"#f0f0f0",l=new oe.Color(ee(c)),d=3*e.linkOpacity;i&&i.material.color.equals(l)&&i.material.opacity===d?u=i.material:(C.hasOwnProperty(c)||(C[c]=new oe.MeshLambertMaterial({color:l,transparent:!0,opacity:d})),u=C[c],i&&i.material.dispose()),J(K(new Array(o)).map((function(e,t){return{idx:t}})),t,{idAccessor:function(e){return e.idx},createObj:function(){return new oe.Mesh(r,u)},updateObj:function(e){e.geometry=r,e.material=u}})}})}}if(e._flushObjects=!1,n(["graphData","nodeId","linkSource","linkTarget","numDimensions","forceEngine","dagMode","dagNodeFilter","dagLevelDistance"])){e.engineRunning=!1,e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]}));var S,M="ngraph"!==e.forceEngine;if(M){(S=e.d3ForceLayout).stop().alpha(1).numDimensions(e.numDimensions).nodes(e.graphData.nodes);var D=e.d3ForceLayout.force("link");D&&D.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var N=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.nodeFilter,a=void 0===i?function(){return!0}:i,s=o.onLoopError,u=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,c={};n.forEach((function(e){return c[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,o=u(n),i=u(r);if(!c.hasOwnProperty(o))throw"Missing source node with id: ".concat(o);if(!c.hasOwnProperty(i))throw"Missing target node with id: ".concat(i);var a=c[o],s=c[i];function u(e){return"object"===P(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(K(Object.entries(c).filter((function(e){return!W(e,2)[1].skip})).map((function(e){var t=W(e,2);return R({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=0,i=e.length;o<i;o++){var a=e[o];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(K(n.slice(n.indexOf(a))),[a]).map((function(e){return t(e.data)}));return l.some((function(t){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}))||(l.push(e),u(e)),"continue"}())continue;r>a.depth&&(a.depth=r,d(a.out,[].concat(K(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),L=Math.max.apply(Math,K(Object.values(N||[]))),j=e.dagLevelDistance||e.graphData.nodes.length/(L||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var F=function(t,n){return function(r){return t?(N[r[e.nodeId]]-L/2)*j*(n?-1:1):void 0}},B=F(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),H=F(-1!==["td","bu"].indexOf(e.dagMode),"td"===e.dagMode),U=F(-1!==["zin","zout"].indexOf(e.dagMode),"zout"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=B(e),e.fy=H(e),e.fz=U(e)}))}e.d3ForceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,u.Z)((function(t){var n=N[t[e.nodeId]]||-1;return("radialin"===e.dagMode?L-n:n)*j})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null)}else{var z=ie.graph();e.graphData.nodes.forEach((function(t){z.addNode(t[e.nodeId])})),e.graphData.links.forEach((function(e){z.addLink(e.source,e.target)})),(S=ie.forcelayout(z,I({dimensions:e.numDimensions},e.ngraphPhysics))).graph=z}for(var V=0;V<e.warmupTicks&&!(M&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()<e.d3AlphaMin);V++)S[M?"tick":"step"]();e.layout=S,this.resetCountdown()}e.engineRunning=!0,e.onFinishUpdate()}}),(window.THREE?window.THREE:{Group:r.ZAu}).Group,!0)},56594:function(e,t,n){"use strict";n.r(t),n.d(t,{Pathfinding:function(){return m}});var r=function(){};r.computeCentroids=function(e){var t,n,r;for(t=0,n=e.faces.length;t<n;t++)(r=e.faces[t]).centroid=new THREE.Vector3(0,0,0),r.centroid.add(e.vertices[r.a]),r.centroid.add(e.vertices[r.b]),r.centroid.add(e.vertices[r.c]),r.centroid.divideScalar(3)},r.roundNumber=function(e,t){return Number(e.toFixed(t))},r.sample=function(e){return e[Math.floor(Math.random()*e.length)]},r.mergeVertexIds=function(e,t){var n=[];if(e.forEach((function(e){t.indexOf(e)>=0&&n.push(e)})),n.length<2)return[];n.includes(e[0])&&n.includes(e[e.length-1])&&e.push(e.shift()),n.includes(t[0])&&n.includes(t[t.length-1])&&t.push(t.shift()),n=[],e.forEach((function(e){t.includes(e)&&n.push(e)}));for(var r=n[1],o=n[0],i=e.slice();i[0]!==r;)i.push(i.shift());for(var a=0,s=t.slice();s[0]!==o;)if(s.push(s.shift()),a++>10)throw new Error("Unexpected state");return s.shift(),s.pop(),i.concat(s)},r.setPolygonCentroid=function(e,t){var n=new THREE.Vector3,r=t.vertices;e.vertexIds.forEach((function(e){n.add(r[e])})),n.divideScalar(e.vertexIds.length),e.centroid.copy(n)},r.cleanPolygon=function(e,t){for(var n=[],r=t.vertices,o=0;o<e.vertexIds.length;o++){var i,a,s,u=r[e.vertexIds[o]];0===o?(i=e.vertexIds[1],a=e.vertexIds[e.vertexIds.length-1]):o===e.vertexIds.length-1?(i=e.vertexIds[0],a=e.vertexIds[e.vertexIds.length-2]):(i=e.vertexIds[o+1],a=e.vertexIds[o-1]),s=r[a];var c=r[i].clone().sub(u),l=s.clone().sub(u),d=c.angleTo(l);if(d>Math.PI-.01&&d<Math.PI+.01){var f=[];e.neighbours.forEach((function(t){t.vertexIds.includes(e.vertexIds[o])||f.push(t)})),e.neighbours=f}else n.push(e.vertexIds[o])}e.vertexIds=n,this.setPolygonCentroid(e,t)},r.isConvex=function(e,t){var n=t.vertices;if(e.vertexIds.length<3)return!1;for(var r=!0,o=[],i=0;i<e.vertexIds.length;i++){var a,s,u=n[e.vertexIds[i]];0===i?(a=n[e.vertexIds[1]],s=n[e.vertexIds[e.vertexIds.length-1]]):i===e.vertexIds.length-1?(a=n[e.vertexIds[0]],s=n[e.vertexIds[e.vertexIds.length-2]]):(a=n[e.vertexIds[i+1]],s=n[e.vertexIds[i-1]]);var c=a.clone().sub(u),l=s.clone().sub(u),d=c.angleTo(l);if(d===Math.PI||0===d)return!1;var f=c.cross(l).y;o.push(f)}return o.forEach((function(e){0===e&&(r=!1)})),o.forEach(o[0]>0?function(e){e<0&&(r=!1)}:function(e){e>0&&(r=!1)}),r},r.distanceToSquared=function(e,t){var n=e.x-t.x,r=e.y-t.y,o=e.z-t.z;return n*n+r*r+o*o},r.isPointInPoly=function(e,t){for(var n=!1,r=-1,o=e.length,i=o-1;++r<o;i=r)(e[r].z<=t.z&&t.z<e[i].z||e[i].z<=t.z&&t.z<e[r].z)&&t.x<(e[i].x-e[r].x)*(t.z-e[r].z)/(e[i].z-e[r].z)+e[r].x&&(n=!n);return n},r.isVectorInPolygon=function(e,t,n){var r=1e5,o=-1e5,i=[];return t.vertexIds.forEach((function(e){r=Math.min(n[e].y,r),o=Math.max(n[e].y,o),i.push(n[e])})),!!(e.y<o+.5&&e.y>r-.5&&this.isPointInPoly(i,e))},r.triarea2=function(e,t,n){return(n.x-e.x)*(t.z-e.z)-(t.x-e.x)*(n.z-e.z)},r.vequal=function(e,t){return this.distanceToSquared(e,t)<1e-5};var o=function(e){this.content=[],this.scoreFunction=e};o.prototype.push=function(e){this.content.push(e),this.sinkDown(this.content.length-1)},o.prototype.pop=function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.bubbleUp(0)),e},o.prototype.remove=function(e){var t=this.content.indexOf(e),n=this.content.pop();t!==this.content.length-1&&(this.content[t]=n,this.scoreFunction(n)<this.scoreFunction(e)?this.sinkDown(t):this.bubbleUp(t))},o.prototype.size=function(){return this.content.length},o.prototype.rescoreElement=function(e){this.sinkDown(this.content.indexOf(e))},o.prototype.sinkDown=function(e){for(var t=this.content[e];e>0;){var n=(e+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(t)<this.scoreFunction(r)))break;this.content[n]=t,this.content[e]=r,e=n}},o.prototype.bubbleUp=function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var o=e+1<<1,i=o-1,a=null,s=void 0;if(i<t&&(s=this.scoreFunction(this.content[i]))<r&&(a=i),o<t&&this.scoreFunction(this.content[o])<(null===a?r:s)&&(a=o),null===a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}};var i=function(){};i.init=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.f=0,n.g=0,n.h=0,n.cost=1,n.visited=!1,n.closed=!1,n.parent=null}},i.cleanUp=function(e){for(var t=0;t<e.length;t++){var n=e[t];delete n.f,delete n.g,delete n.h,delete n.cost,delete n.visited,delete n.closed,delete n.parent}},i.heap=function(){return new o((function(e){return e.f}))},i.search=function(e,t,n){this.init(e);var r=this.heap();for(r.push(t);r.size()>0;){var o=r.pop();if(o===n){for(var i=o,a=[];i.parent;)a.push(i),i=i.parent;return this.cleanUp(a),a.reverse()}o.closed=!0;for(var s=this.neighbours(e,o),u=0,c=s.length;u<c;u++){var l=s[u];if(!l.closed){var d=o.g+l.cost,f=l.visited;if(!f||d<l.g){if(l.visited=!0,l.parent=o,!l.centroid||!n.centroid)throw new Error("Unexpected state");l.h=l.h||this.heuristic(l.centroid,n.centroid),l.g=d,l.f=l.g+l.h,f?r.rescoreElement(l):r.push(l)}}}}return[]},i.heuristic=function(e,t){return r.distanceToSquared(e,t)},i.neighbours=function(e,t){for(var n=[],r=0;r<t.neighbours.length;r++)n.push(e[t.neighbours[r]]);return n};var a=1,s=function(){};s.buildZone=function(e){var t=this,n=this._buildNavigationMesh(e),o={};n.vertices.forEach((function(e){e.x=r.roundNumber(e.x,2),e.y=r.roundNumber(e.y,2),e.z=r.roundNumber(e.z,2)})),o.vertices=n.vertices;var i=this._buildPolygonGroups(n);o.groups=[];var a=function(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return n};return i.forEach((function(e){var n=[];e.forEach((function(o){var i=o.neighbours.map((function(t){return a(e,t)})),s=o.neighbours.map((function(e){return t._getSharedVerticesInOrder(o,e)}));o.centroid.x=r.roundNumber(o.centroid.x,2),o.centroid.y=r.roundNumber(o.centroid.y,2),o.centroid.z=r.roundNumber(o.centroid.z,2),n.push({id:a(e,o),neighbours:i,vertexIds:o.vertexIds,centroid:o.centroid,portals:s})})),o.groups.push(n)})),o},s._buildNavigationMesh=function(e){return r.computeCentroids(e),e.mergeVertices(),this._buildPolygonsFromGeometry(e)},s._buildPolygonGroups=function(e){var t=[],n=0,r=function(e){e.neighbours.forEach((function(t){void 0===t.group&&(t.group=e.group,r(t))}))};return e.polygons.forEach((function(e){void 0===e.group&&(e.group=n++,r(e)),t[e.group]||(t[e.group]=[]),t[e.group].push(e)})),t},s._buildPolygonNeighbours=function(e,t,n){var r=new Set,o=n.get(e.vertexIds[0]),i=n.get(e.vertexIds[1]),a=n.get(e.vertexIds[2]);o.forEach((function(e){(i.has(e)||a.has(e))&&r.add(t.polygons[e])})),i.forEach((function(e){a.has(e)&&r.add(t.polygons[e])})),e.neighbours=Array.from(r)},s._buildPolygonsFromGeometry=function(e){for(var t=this,n=[],r=e.vertices,o=e.faceVertexUvs,i=new Map,s=0;s<r.length;s++)i.set(s,new Set);e.faces.forEach((function(e){n.push({id:a++,vertexIds:[e.a,e.b,e.c],centroid:e.centroid,normal:e.normal,neighbours:[]}),i.get(e.a).add(n.length-1),i.get(e.b).add(n.length-1),i.get(e.c).add(n.length-1)}));var u={polygons:n,vertices:r,faceVertexUvs:o};return n.forEach((function(e){t._buildPolygonNeighbours(e,u,i)})),u},s._getSharedVerticesInOrder=function(e,t){var n=e.vertexIds,r=t.vertexIds,o=new Set;if(n.forEach((function(e){r.includes(e)&&o.add(e)})),o.size<2)return[];o.has(n[0])&&o.has(n[n.length-1])&&n.push(n.shift()),o.has(r[0])&&o.has(r[r.length-1])&&r.push(r.shift());var i=[];return n.forEach((function(e){r.includes(e)&&i.push(e)})),i};var u=function(){this.portals=[]};u.prototype.push=function(e,t){void 0===t&&(t=e),this.portals.push({left:e,right:t})},u.prototype.stringPull=function(){var e,t,n,o=this.portals,i=[],a=0,s=0,u=0;t=o[0].left,n=o[0].right,i.push(e=o[0].left);for(var c=1;c<o.length;c++){var l=o[c].left,d=o[c].right;if(r.triarea2(e,n,d)<=0){if(!(r.vequal(e,n)||r.triarea2(e,t,d)>0)){i.push(t),t=e=t,n=e,s=a=s,u=a,c=a;continue}n=d,u=c}if(r.triarea2(e,t,l)>=0){if(!(r.vequal(e,t)||r.triarea2(e,n,l)<0)){i.push(n),t=e=n,n=e,s=a=u,u=a,c=a;continue}t=l,s=c}}return 0!==i.length&&r.vequal(i[i.length-1],o[o.length-1].left)||i.push(o[o.length-1].left),this.path=i,i};var c,l,d,f,p,h,m=function(){this.zones={}};m.createZone=function(e){return s.buildZone(e)},m.prototype.setZoneData=function(e,t){this.zones[e]=t},m.prototype.getGroup=function(e,t){if(!this.zones[e])return null;var n=null,o=Math.pow(50,2);return this.zones[e].groups.forEach((function(e,i){e.forEach((function(e){var a=r.distanceToSquared(e.centroid,t);a<o&&(n=i,o=a)}))})),n},m.prototype.getRandomNode=function(e,t,n,o){if(!this.zones[e])return new THREE.Vector3;n=n||null,o=o||0;var i=[];return this.zones[e].groups[t].forEach((function(e){n&&o?r.distanceToSquared(n,e.centroid)<o*o&&i.push(e.centroid):i.push(e.centroid)})),r.sample(i)||new THREE.Vector3},m.prototype.getClosestNode=function(e,t,n,o){void 0===o&&(o=!1);var i=this.zones[t].vertices,a=null,s=1/0;return this.zones[t].groups[n].forEach((function(t){var n=r.distanceToSquared(t.centroid,e);n<s&&(!o||r.isVectorInPolygon(e,t,i))&&(a=t,s=n)})),a},m.prototype.findPath=function(e,t,n,r){var o=this.zones[n].groups[r],a=this.zones[n].vertices,s=this.getClosestNode(e,n,r),c=this.getClosestNode(t,n,r,!0);if(!s||!c)return null;var l=i.search(o,s,c),d=function(e,t){for(var n=0;n<e.neighbours.length;n++)if(e.neighbours[n]===t.id)return e.portals[n]},f=new u;f.push(e);for(var p=0;p<l.length;p++){var h=l[p+1];if(h){var m=d(l[p],h);f.push(a[m[0]],a[m[1]])}}f.push(t),f.stringPull();var v=f.path.map((function(e){return new THREE.Vector3(e.x,e.y,e.z)}));return v.shift(),v},m.prototype.clampStep=(d=new THREE.Vector3,f=new THREE.Plane,p=new THREE.Triangle,h=new THREE.Vector3,function(e,t,n,r,o,i){var a=this.zones[r].vertices,s=this.zones[r].groups[o],u=[n],m={};m[n.id]=0,c=void 0,h.set(0,0,0),l=1/0,f.setFromCoplanarPoints(a[n.vertexIds[0]],a[n.vertexIds[1]],a[n.vertexIds[2]]),f.projectPoint(t,d),t.copy(d);for(var v=u.pop();v;v=u.pop()){p.set(a[v.vertexIds[0]],a[v.vertexIds[1]],a[v.vertexIds[2]]),p.closestPointToPoint(t,d),d.distanceToSquared(t)<l&&(c=v,h.copy(d),l=d.distanceToSquared(t));var g=m[v];if(!(g>2))for(var y=0;y<v.neighbours.length;y++){var b=s[v.neighbours[y]];b.id in m||(u.push(b),m[b.id]=g+1)}}return i.copy(h),c})},31122:function(e,t,n){"use strict";var r=n(2212);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h="undefined"!==typeof window&&window.THREE?window.THREE:{LinearFilter:r.wem,Sprite:r.jyi,SpriteMaterial:r.xeV,Texture:r.xEZ},m=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,a=c(u);function u(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 1)";return o(this,u),(e=a.call(this,new h.SpriteMaterial({map:new h.Texture})))._text="".concat(t),e._textHeight=n,e._color=r,e._backgroundColor=!1,e._padding=0,e._borderWidth=0,e._borderRadius=0,e._borderColor="white",e._strokeWidth=0,e._strokeColor="white",e._fontFace="Arial",e._fontSize=90,e._fontWeight="normal",e._canvas=document.createElement("canvas"),e._texture=e.material.map,e._texture.minFilter=h.LinearFilter,e._genCanvas(),e}return t=u,(n=[{key:"text",get:function(){return this._text},set:function(e){this._text=e,this._genCanvas()}},{key:"textHeight",get:function(){return this._textHeight},set:function(e){this._textHeight=e,this._genCanvas()}},{key:"color",get:function(){return this._color},set:function(e){this._color=e,this._genCanvas()}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._genCanvas()}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding=e,this._genCanvas()}},{key:"borderWidth",get:function(){return this._borderWidth},set:function(e){this._borderWidth=e,this._genCanvas()}},{key:"borderRadius",get:function(){return this._borderRadius},set:function(e){this._borderRadius=e,this._genCanvas()}},{key:"borderColor",get:function(){return this._borderColor},set:function(e){this._borderColor=e,this._genCanvas()}},{key:"fontFace",get:function(){return this._fontFace},set:function(e){this._fontFace=e,this._genCanvas()}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize=e,this._genCanvas()}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight=e,this._genCanvas()}},{key:"strokeWidth",get:function(){return this._strokeWidth},set:function(e){this._strokeWidth=e,this._genCanvas()}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(e){this._strokeColor=e,this._genCanvas()}},{key:"_genCanvas",value:function(){var e=this,t=this._canvas,n=t.getContext("2d"),r=Array.isArray(this.borderWidth)?this.borderWidth:[this.borderWidth,this.borderWidth],o=r.map((function(t){return t*e.fontSize*.1})),i=(Array.isArray(this.borderRadius)?this.borderRadius:[this.borderRadius,this.borderRadius,this.borderRadius,this.borderRadius]).map((function(t){return t*e.fontSize*.1})),a=Array.isArray(this.padding)?this.padding:[this.padding,this.padding],s=a.map((function(t){return t*e.fontSize*.1})),u=this.text.split("\n"),c="".concat(this.fontWeight," ").concat(this.fontSize,"px ").concat(this.fontFace);n.font=c;var f=Math.max.apply(Math,d(u.map((function(e){return n.measureText(e).width})))),p=this.fontSize*u.length;if(t.width=f+2*o[0]+2*s[0],t.height=p+2*o[1]+2*s[1],this.borderWidth){if(n.strokeStyle=this.borderColor,o[0]){var h=o[0]/2;n.lineWidth=o[0],n.beginPath(),n.moveTo(h,i[0]),n.lineTo(h,t.height-i[3]),n.moveTo(t.width-h,i[1]),n.lineTo(t.width-h,t.height-i[2]),n.stroke()}if(o[1]){var m=o[1]/2;n.lineWidth=o[1],n.beginPath(),n.moveTo(Math.max(o[0],i[0]),m),n.lineTo(t.width-Math.max(o[0],i[1]),m),n.moveTo(Math.max(o[0],i[3]),t.height-m),n.lineTo(t.width-Math.max(o[0],i[2]),t.height-m),n.stroke()}if(this.borderRadius){var v=Math.max.apply(Math,d(o)),g=v/2;n.lineWidth=v,n.beginPath(),[!!i[0]&&[i[0],g,g,i[0]],!!i[1]&&[t.width-i[1],t.width-g,g,i[1]],!!i[2]&&[t.width-i[2],t.width-g,t.height-g,t.height-i[2]],!!i[3]&&[i[3],g,t.height-g,t.height-i[3]]].filter((function(e){return e})).forEach((function(e){var t=l(e,4),r=t[0],o=t[1],i=t[2],a=t[3];n.moveTo(r,i),n.quadraticCurveTo(o,i,o,a)})),n.stroke()}}this.backgroundColor&&(n.fillStyle=this.backgroundColor,this.borderRadius?(n.beginPath(),n.moveTo(o[0],i[0]),[[o[0],i[0],t.width-i[1],o[1],o[1],o[1]],[t.width-o[0],t.width-o[0],t.width-o[0],o[1],i[1],t.height-i[2]],[t.width-o[0],t.width-i[2],i[3],t.height-o[1],t.height-o[1],t.height-o[1]],[o[0],o[0],o[0],t.height-o[1],t.height-i[3],i[0]]].forEach((function(e){var t=l(e,6),r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],u=t[5];n.quadraticCurveTo(r,a,o,s),n.lineTo(i,u)})),n.closePath(),n.fill()):n.fillRect(o[0],o[1],t.width-2*o[0],t.height-2*o[1])),n.translate.apply(n,d(o)),n.translate.apply(n,d(s)),n.font=c,n.fillStyle=this.color,n.textBaseline="bottom";var y=this.strokeWidth>0;y&&(n.lineWidth=this.strokeWidth*this.fontSize/10,n.strokeStyle=this.strokeColor),u.forEach((function(t,r){var o=(f-n.measureText(t).width)/2,i=(r+1)*e.fontSize;y&&n.strokeText(t,o,i),n.fillText(t,o,i)})),this._texture.image=t,this._texture.needsUpdate=!0;var b=this.textHeight*u.length+2*r[1]+2*a[1];this.scale.set(b*t.width/t.height,b,0)}},{key:"clone",value:function(){return new this.constructor(this.text,this.textHeight,this.color).copy(this)}},{key:"copy",value:function(e){return h.Sprite.prototype.copy.call(this,e),this.color=e.color,this.backgroundColor=e.backgroundColor,this.padding=e.padding,this.borderWidth=e.borderWidth,this.borderColor=e.borderColor,this.fontFace=e.fontFace,this.fontSize=e.fontSize,this.fontWeight=e.fontWeight,this.strokeWidth=e.strokeWidth,this.strokeColor=e.strokeColor,this}}])&&i(t.prototype,n),r&&i(t,r),u}(h.Sprite);t.Z=m},6189:function(e,t,n){var r=n(7966);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},71788:function(e){e.exports=function(e){return t.test(e)?e.toLowerCase():n.test(e)?(function(e){return e.replace(o,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(i,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,n=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;var o=/[\W_]+(.|$)/g;var i=/(.)([A-Z]+)/g},7966:function(e,t,n){var r=n(71788);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},28281:function(e,t,n){"use strict";var r=n(43368);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!==typeof i)throw new Error("Expected function as last argument, not "+i);function a(s){var u=e[++t],c=o.call(arguments,0),l=c.slice(1),d=n.length,f=-1;if(s)i(s);else{for(;++f<d;)null!==l[f]&&void 0!==l[f]||(l[f]=n[f]);n=l,u?r(u,a).apply(null,n):i.apply(null,[null].concat(n))}}a.apply(null,[null].concat(n))},use:function(n){if("function"!==typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},43368:function(e){"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,a=t.call(arguments,0),s=e.length>a.length;s&&a.push(o);try{n=e.apply(null,a)}catch(u){if(s&&r)throw u;return o(u)}s||(n&&"function"===typeof n.then?n.then(i,o):n instanceof Error?o(n):i(n))};function o(){r||(r=!0,n.apply(null,arguments))}function i(e){o(null,e)}}},70655:function(e,t,n){"use strict";n.d(t,{pi:function(){return r},_T:function(){return o}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}},18835:function(e,t,n){"use strict";var r=n(18869),o=n(73469),i=n(94470),a=n(33310),s=n(28281),u=n(10939);e.exports=function e(){var t,n=[],o=s(),y={},b=-1;return E.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(m("data",t),y[e]=n,E):l.call(y,e)&&y[e]||null;if(e)return m("data",t),y=e,E;return y},E.freeze=_,E.attachers=n,E.use=function(e){var r;if(m("use",t),null===e||void 0===e);else if("function"===typeof e)l.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?u(e):o(e)}r&&(y.settings=i(y.settings||{},r));return E;function o(e){u(e.plugins),e.settings&&(r=i(r||{},e.settings))}function s(e){if("function"===typeof e)l(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):o(e)}}function u(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function l(e,t){var r=T(e);r?(a(r[1])&&a(t)&&(t=i(!0,r[1],t)),r[1]=t):n.push(c.call(arguments))}},E.parse=function(e){var t,n=u(e);if(_(),p("parse",t=E.Parser),f(t,"parse"))return new t(String(n),n).parse();return t(String(n),n)},E.stringify=function(e,t){var n,r=u(t);if(_(),h("stringify",n=E.Compiler),v(e),f(n,"compile"))return new n(e,r).compile();return n(e,r)},E.run=w,E.runSync=function(e,t){var n,o;return w(e,t,i),g("runSync","run",o),n;function i(e,t){o=!0,n=t,r(e)}},E.process=k,E.processSync=function(e){var t,n;return _(),p("processSync",E.Parser),h("processSync",E.Compiler),k(t=u(e),o),g("processSync","process",n),t;function o(e){n=!0,r(e)}},E;function E(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(i(!0,{},y)),t}function _(){var e,r;if(t)return E;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"===typeof(r=e[0].apply(E,e.slice(1)))&&o.use(r));return t=!0,b=1/0,E}function T(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}function w(e,t,n){if(v(e),_(),n||"function"!==typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,i){o.run(e,u(t),(function(t,o,a){o=o||e,t?i(t):r?r(o):n(null,o,a)}))}r(null,n)}function k(e,t){if(_(),p("process",E.Parser),h("process",E.Compiler),!t)return new Promise(n);function n(n,r){var o=u(e);d.run(E,{file:o},(function(e){e?r(e):n?n(o):t(null,o)}))}n(null,t)}}().freeze();var c=[].slice,l={}.hasOwnProperty,d=s().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,o){e?n(e):(t.tree=r,t.file=o,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);void 0===n||null===n||("string"===typeof n||o(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}));function f(e,t){return"function"===typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function p(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function v(e){if(!e||"string"!==typeof e.type)throw new Error("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},73469:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},88541:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.uniorgAttach=t.idTsFolderFormat=t.idUuidFolderFormat=void 0;const o=r(n(62520)),i=r(n(99294)),a={idDir:"data/",useInheritance:!1,idToPath:s};function s(e){return o.default.join(e.substring(0,2),e.substring(2))}t.idUuidFolderFormat=s,t.idTsFolderFormat=function(e){return o.default.join(e.substring(0,6),e.substring(6))};function u(e,t,n){var r;e=[...e];do{let n=e.pop();for(;n&&"section"!==n.type&&"org-data"!==n.type;)n=e.pop();if(!n)return null;const o=n.children.find((e=>"property-drawer"===e.type)),i=null===(r=null===o||void 0===o?void 0:o.children.find((e=>e.key===t)))||void 0===r?void 0:r.value;if(void 0!==i)return i}while(n);return null}t.uniorgAttach=(e={})=>{const t=Object.assign(Object.assign({},a),e);return function(e,n){(0,i.default)(e,"link",((e,n)=>{if("attachment"===e.linkType){const r=function(e,t,n,r){if(o.default.isAbsolute(e.path))return e.path;const i=u(t,"DIR",r.useInheritance);if(i)return o.default.join(i,e.path);const a=u(t,"ID",r.useInheritance);if(a){const t=r.idToPath(a);return o.default.join(r.idDir,t,e.path)}return e.path}(e,n,0,t);e.linkType="file",e.path=r,e.rawLink=e.linkType+":"+e.path}}))}},t.default=t.uniorgAttach},94986:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extractKeywords=void 0;const o=r(n(62854));t.extractKeywords=(e={})=>function(t,n){o.default(t,"keyword",(t=>{let r=n.data=n.data||{};e.name&&(r=r[e.name]=r[e.name]||{});let o=t.key;e.preserveCase||(o=o.toLowerCase()),r[o]=t.value}))},t.default=t.extractKeywords},89859:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrgEntity=void 0;t.getOrgEntity=e=>{const t=n.find((t=>t[0]===e));return t?{name:e,latex:t[1],requireLatexMath:t[2],html:t[3],ascii:t[4],latin1:t[5],utf8:t[6]}:null};const n=[["Agrave","\\`{A}",!1,"&Agrave;","A","\xc0","\xc0"],["agrave","\\`{a}",!1,"&agrave;","a","\xe0","\xe0"],["Aacute","\\'{A}",!1,"&Aacute;","A","\xc1","\xc1"],["aacute","\\'{a}",!1,"&aacute;","a","\xe1","\xe1"],["Acirc","\\^{A}",!1,"&Acirc;","A","\xc2","\xc2"],["acirc","\\^{a}",!1,"&acirc;","a","\xe2","\xe2"],["Amacr","\\bar{A}",!1,"&Amacr;","A","\xc3","\xc3"],["amacr","\\bar{a}",!1,"&amacr;","a","\xe3","\xe3"],["Atilde","\\~{A}",!1,"&Atilde;","A","\xc3","\xc3"],["atilde","\\~{a}",!1,"&atilde;","a","\xe3","\xe3"],["Auml",'\\"{A}',!1,"&Auml;","Ae","\xc4","\xc4"],["auml",'\\"{a}',!1,"&auml;","ae","\xe4","\xe4"],["Aring","\\AA{}",!1,"&Aring;","A","\xc5","\xc5"],["AA","\\AA{}",!1,"&Aring;","A","\xc5","\xc5"],["aring","\\aa{}",!1,"&aring;","a","\xe5","\xe5"],["AElig","\\AE{}",!1,"&AElig;","AE","\xc6","\xc6"],["aelig","\\ae{}",!1,"&aelig;","ae","\xe6","\xe6"],["Ccedil","\\c{C}",!1,"&Ccedil;","C","\xc7","\xc7"],["ccedil","\\c{c}",!1,"&ccedil;","c","\xe7","\xe7"],["Egrave","\\`{E}",!1,"&Egrave;","E","\xc8","\xc8"],["egrave","\\`{e}",!1,"&egrave;","e","\xe8","\xe8"],["Eacute","\\'{E}",!1,"&Eacute;","E","\xc9","\xc9"],["eacute","\\'{e}",!1,"&eacute;","e","\xe9","\xe9"],["Ecirc","\\^{E}",!1,"&Ecirc;","E","\xca","\xca"],["ecirc","\\^{e}",!1,"&ecirc;","e","\xea","\xea"],["Euml",'\\"{E}',!1,"&Euml;","E","\xcb","\xcb"],["euml",'\\"{e}',!1,"&euml;","e","\xeb","\xeb"],["Igrave","\\`{I}",!1,"&Igrave;","I","\xcc","\xcc"],["igrave","\\`{i}",!1,"&igrave;","i","\xec","\xec"],["Iacute","\\'{I}",!1,"&Iacute;","I","\xcd","\xcd"],["iacute","\\'{i}",!1,"&iacute;","i","\xed","\xed"],["Icirc","\\^{I}",!1,"&Icirc;","I","\xce","\xce"],["icirc","\\^{i}",!1,"&icirc;","i","\xee","\xee"],["Iuml",'\\"{I}',!1,"&Iuml;","I","\xcf","\xcf"],["iuml",'\\"{i}',!1,"&iuml;","i","\xef","\xef"],["Ntilde","\\~{N}",!1,"&Ntilde;","N","\xd1","\xd1"],["ntilde","\\~{n}",!1,"&ntilde;","n","\xf1","\xf1"],["Ograve","\\`{O}",!1,"&Ograve;","O","\xd2","\xd2"],["ograve","\\`{o}",!1,"&ograve;","o","\xf2","\xf2"],["Oacute","\\'{O}",!1,"&Oacute;","O","\xd3","\xd3"],["oacute","\\'{o}",!1,"&oacute;","o","\xf3","\xf3"],["Ocirc","\\^{O}",!1,"&Ocirc;","O","\xd4","\xd4"],["ocirc","\\^{o}",!1,"&ocirc;","o","\xf4","\xf4"],["Otilde","\\~{O}",!1,"&Otilde;","O","\xd5","\xd5"],["otilde","\\~{o}",!1,"&otilde;","o","\xf5","\xf5"],["Ouml",'\\"{O}',!1,"&Ouml;","Oe","\xd6","\xd6"],["ouml",'\\"{o}',!1,"&ouml;","oe","\xf6","\xf6"],["Oslash","\\O",!1,"&Oslash;","O","\xd8","\xd8"],["oslash","\\o{}",!1,"&oslash;","o","\xf8","\xf8"],["OElig","\\OE{}",!1,"&OElig;","OE","OE","\u0152"],["oelig","\\oe{}",!1,"&oelig;","oe","oe","\u0153"],["Scaron","\\v{S}",!1,"&Scaron;","S","S","\u0160"],["scaron","\\v{s}",!1,"&scaron;","s","s","\u0161"],["szlig","\\ss{}",!1,"&szlig;","ss","\xdf","\xdf"],["Ugrave","\\`{U}",!1,"&Ugrave;","U","\xd9","\xd9"],["ugrave","\\`{u}",!1,"&ugrave;","u","\xf9","\xf9"],["Uacute","\\'{U}",!1,"&Uacute;","U","\xda","\xda"],["uacute","\\'{u}",!1,"&uacute;","u","\xfa","\xfa"],["Ucirc","\\^{U}",!1,"&Ucirc;","U","\xdb","\xdb"],["ucirc","\\^{u}",!1,"&ucirc;","u","\xfb","\xfb"],["Uuml",'\\"{U}',!1,"&Uuml;","Ue","\xdc","\xdc"],["uuml",'\\"{u}',!1,"&uuml;","ue","\xfc","\xfc"],["Yacute","\\'{Y}",!1,"&Yacute;","Y","\xdd","\xdd"],["yacute","\\'{y}",!1,"&yacute;","y","\xfd","\xfd"],["Yuml",'\\"{Y}',!1,"&Yuml;","Y","Y","\u0178"],["yuml",'\\"{y}',!1,"&yuml;","y","\xff","\xff"],["fnof","\\textit{f}",!1,"&fnof;","f","f","\u0192"],["real","\\Re",!0,"&real;","R","R","\u211c"],["image","\\Im",!0,"&image;","I","I","\u2111"],["weierp","\\wp",!0,"&weierp;","P","P","\u2118"],["ell","\\ell",!0,"&ell;","ell","ell","\u2113"],["imath","\\imath",!0,"&imath;","[dotless i]","dotless i","\u0131"],["jmath","\\jmath",!0,"&jmath;","[dotless j]","dotless j","\u0237"],["Alpha","A",!1,"&Alpha;","Alpha","Alpha","\u0391"],["alpha","\\alpha",!0,"&alpha;","alpha","alpha","\u03b1"],["Beta","B",!1,"&Beta;","Beta","Beta","\u0392"],["beta","\\beta",!0,"&beta;","beta","beta","\u03b2"],["Gamma","\\Gamma",!0,"&Gamma;","Gamma","Gamma","\u0393"],["gamma","\\gamma",!0,"&gamma;","gamma","gamma","\u03b3"],["Delta","\\Delta",!0,"&Delta;","Delta","Delta","\u0394"],["delta","\\delta",!0,"&delta;","delta","delta","\u03b4"],["Epsilon","E",!1,"&Epsilon;","Epsilon","Epsilon","\u0395"],["epsilon","\\epsilon",!0,"&epsilon;","epsilon","epsilon","\u03b5"],["varepsilon","\\varepsilon",!0,"&epsilon;","varepsilon","varepsilon","\u03b5"],["Zeta","Z",!1,"&Zeta;","Zeta","Zeta","\u0396"],["zeta","\\zeta",!0,"&zeta;","zeta","zeta","\u03b6"],["Eta","H",!1,"&Eta;","Eta","Eta","\u0397"],["eta","\\eta",!0,"&eta;","eta","eta","\u03b7"],["Theta","\\Theta",!0,"&Theta;","Theta","Theta","\u0398"],["theta","\\theta",!0,"&theta;","theta","theta","\u03b8"],["thetasym","\\vartheta",!0,"&thetasym;","theta","theta","\u03d1"],["vartheta","\\vartheta",!0,"&thetasym;","theta","theta","\u03d1"],["Iota","I",!1,"&Iota;","Iota","Iota","\u0399"],["iota","\\iota",!0,"&iota;","iota","iota","\u03b9"],["Kappa","K",!1,"&Kappa;","Kappa","Kappa","\u039a"],["kappa","\\kappa",!0,"&kappa;","kappa","kappa","\u03ba"],["Lambda","\\Lambda",!0,"&Lambda;","Lambda","Lambda","\u039b"],["lambda","\\lambda",!0,"&lambda;","lambda","lambda","\u03bb"],["Mu","M",!1,"&Mu;","Mu","Mu","\u039c"],["mu","\\mu",!0,"&mu;","mu","mu","\u03bc"],["nu","\\nu",!0,"&nu;","nu","nu","\u03bd"],["Nu","N",!1,"&Nu;","Nu","Nu","\u039d"],["Xi","\\Xi",!0,"&Xi;","Xi","Xi","\u039e"],["xi","\\xi",!0,"&xi;","xi","xi","\u03be"],["Omicron","O",!1,"&Omicron;","Omicron","Omicron","\u039f"],["omicron","\\textit{o}",!1,"&omicron;","omicron","omicron","\u03bf"],["Pi","\\Pi",!0,"&Pi;","Pi","Pi","\u03a0"],["pi","\\pi",!0,"&pi;","pi","pi","\u03c0"],["Rho","P",!1,"&Rho;","Rho","Rho","\u03a1"],["rho","\\rho",!0,"&rho;","rho","rho","\u03c1"],["Sigma","\\Sigma",!0,"&Sigma;","Sigma","Sigma","\u03a3"],["sigma","\\sigma",!0,"&sigma;","sigma","sigma","\u03c3"],["sigmaf","\\varsigma",!0,"&sigmaf;","sigmaf","sigmaf","\u03c2"],["varsigma","\\varsigma",!0,"&sigmaf;","varsigma","varsigma","\u03c2"],["Tau","T",!1,"&Tau;","Tau","Tau","\u03a4"],["Upsilon","\\Upsilon",!0,"&Upsilon;","Upsilon","Upsilon","\u03a5"],["upsih","\\Upsilon",!0,"&upsih;","upsilon","upsilon","\u03d2"],["upsilon","\\upsilon",!0,"&upsilon;","upsilon","upsilon","\u03c5"],["Phi","\\Phi",!0,"&Phi;","Phi","Phi","\u03a6"],["phi","\\phi",!0,"&phi;","phi","phi","\u0278"],["varphi","\\varphi",!0,"&varphi;","varphi","varphi","\u03c6"],["Chi","X",!1,"&Chi;","Chi","Chi","\u03a7"],["chi","\\chi",!0,"&chi;","chi","chi","\u03c7"],["acutex","\\acute x",!0,"&acute;x","'x","'x","\ud835\udc65\u0301"],["Psi","\\Psi",!0,"&Psi;","Psi","Psi","\u03a8"],["psi","\\psi",!0,"&psi;","psi","psi","\u03c8"],["tau","\\tau",!0,"&tau;","tau","tau","\u03c4"],["Omega","\\Omega",!0,"&Omega;","Omega","Omega","\u03a9"],["omega","\\omega",!0,"&omega;","omega","omega","\u03c9"],["piv","\\varpi",!0,"&piv;","omega-pi","omega-pi","\u03d6"],["varpi","\\varpi",!0,"&piv;","omega-pi","omega-pi","\u03d6"],["partial","\\partial",!0,"&part;","[partial differential]","[partial differential]","\u2202"],["alefsym","\\aleph",!0,"&alefsym;","aleph","aleph","\u2135"],["aleph","\\aleph",!0,"&aleph;","aleph","aleph","\u2135"],["gimel","\\gimel",!0,"&gimel;","gimel","gimel","\u2137"],["beth","\\beth",!0,"&beth;","beth","beth","\u05d1"],["dalet","\\daleth",!0,"&daleth;","dalet","dalet","\u05d3"],["ETH","\\DH{}",!1,"&ETH;","D","\xd0","\xd0"],["eth","\\dh{}",!1,"&eth;","dh","\xf0","\xf0"],["THORN","\\TH{}",!1,"&THORN;","TH","\xde","\xde"],["thorn","\\th{}",!1,"&thorn;","th","\xfe","\xfe"],["dots","\\dots{}",!1,"&hellip;","...","...","\u2026"],["cdots","\\cdots{}",!0,"&ctdot;","...","...","\u22ef"],["hellip","\\dots{}",!1,"&hellip;","...","...","\u2026"],["middot","\\textperiodcentered{}",!1,"&middot;",".","\xb7","\xb7"],["iexcl","!`",!1,"&iexcl;","!","\xa1","\xa1"],["iquest","?`",!1,"&iquest;","?","\xbf","\xbf"],["shy","\\-",!1,"&shy;","","",""],["ndash","--",!1,"&ndash;","-","-","\u2013"],["mdash","---",!1,"&mdash;","--","--","\u2014"],["quot","\\textquotedbl{}",!1,"&quot;",'"','"','"'],["acute","\\textasciiacute{}",!1,"&acute;","'","\xb4","\xb4"],["ldquo","\\textquotedblleft{}",!1,"&ldquo;",'"','"',"\u201c"],["rdquo","\\textquotedblright{}",!1,"&rdquo;",'"','"',"\u201d"],["bdquo","\\quotedblbase{}",!1,"&bdquo;",'"','"',"\u201e"],["lsquo","\\textquoteleft{}",!1,"&lsquo;","`","`","\u2018"],["rsquo","\\textquoteright{}",!1,"&rsquo;","'","'","\u2019"],["sbquo","\\quotesinglbase{}",!1,"&sbquo;",",",",","\u201a"],["laquo","\\guillemotleft{}",!1,"&laquo;","<<","\xab","\xab"],["raquo","\\guillemotright{}",!1,"&raquo;",">>","\xbb","\xbb"],["lsaquo","\\guilsinglleft{}",!1,"&lsaquo;","<","<","\u2039"],["rsaquo","\\guilsinglright{}",!1,"&rsaquo;",">",">","\u203a"],["circ","\\^{}",!1,"&circ;","^","^","\u2218"],["vert","\\vert{}",!0,"&vert;","|","|","|"],["vbar","|",!1,"|","|","|","|"],["brvbar","\\textbrokenbar{}",!1,"&brvbar;","|","\xa6","\xa6"],["S","\\S",!1,"&sect;","paragraph","\xa7","\xa7"],["sect","\\S",!1,"&sect;","paragraph","\xa7","\xa7"],["amp","\\&",!1,"&amp;","&","&","&"],["lt","\\textless{}",!1,"&lt;","<","<","<"],["gt","\\textgreater{}",!1,"&gt;",">",">",">"],["tilde","\\textasciitilde{}",!1,"~","~","~","~"],["slash","/",!1,"/","/","/","/"],["plus","+",!1,"+","+","+","+"],["under","\\_",!1,"_","_","_","_"],["equal","=",!1,"=","=","=","="],["asciicirc","\\textasciicircum{}",!1,"^","^","^","^"],["dagger","\\textdagger{}",!1,"&dagger;","[dagger]","[dagger]","\u2020"],["dag","\\dag{}",!1,"&dagger;","[dagger]","[dagger]","\u2020"],["Dagger","\\textdaggerdbl{}",!1,"&Dagger;","[doubledagger]","[doubledagger]","\u2021"],["ddag","\\ddag{}",!1,"&Dagger;","[doubledagger]","[doubledagger]","\u2021"],["nbsp","~",!1,"&nbsp;"," ","\xa0","\xa0"],["ensp","\\hspace*{.5em}",!1,"&ensp;"," "," ","\u2002"],["emsp","\\hspace*{1em}",!1,"&emsp;"," "," ","\u2003"],["thinsp","\\hspace*{.2em}",!1,"&thinsp;"," "," ","\u2009"],["curren","\\textcurrency{}",!1,"&curren;","curr.","\xa4","\xa4"],["cent","\\textcent{}",!1,"&cent;","cent","\xa2","\xa2"],["pound","\\pounds{}",!1,"&pound;","pound","\xa3","\xa3"],["yen","\\textyen{}",!1,"&yen;","yen","\xa5","\xa5"],["euro","\\texteuro{}",!1,"&euro;","EUR","EUR","\u20ac"],["EUR","\\texteuro{}",!1,"&euro;","EUR","EUR","\u20ac"],["dollar","\\$",!1,"$","$","$","$"],["USD","\\$",!1,"$","$","$","$"],["copy","\\textcopyright{}",!1,"&copy;","(c)","\xa9","\xa9"],["reg","\\textregistered{}",!1,"&reg;","(r)","\xae","\xae"],["trade","\\texttrademark{}",!1,"&trade;","TM","TM","\u2122"],["minus","\\minus",!0,"&minus;","-","-","\u2212"],["pm","\\textpm{}",!1,"&plusmn;","+-","\xb1","\xb1"],["plusmn","\\textpm{}",!1,"&plusmn;","+-","\xb1","\xb1"],["times","\\texttimes{}",!1,"&times;","*","\xd7","\xd7"],["frasl","/",!1,"&frasl;","/","/","\u2044"],["colon","\\colon",!0,":",":",":",":"],["div","\\textdiv{}",!1,"&divide;","/","\xf7","\xf7"],["frac12","\\textonehalf{}",!1,"&frac12;","1/2","\xbd","\xbd"],["frac14","\\textonequarter{}",!1,"&frac14;","1/4","\xbc","\xbc"],["frac34","\\textthreequarters{}",!1,"&frac34;","3/4","\xbe","\xbe"],["permil","\\textperthousand{}",!1,"&permil;","per thousand","per thousand","\u2030"],["sup1","\\textonesuperior{}",!1,"&sup1;","^1","\xb9","\xb9"],["sup2","\\texttwosuperior{}",!1,"&sup2;","^2","\xb2","\xb2"],["sup3","\\textthreesuperior{}",!1,"&sup3;","^3","\xb3","\xb3"],["radic","\\sqrt{\\,}",!0,"&radic;","[square root]","[square root]","\u221a"],["sum","\\sum",!0,"&sum;","[sum]","[sum]","\u2211"],["prod","\\prod",!0,"&prod;","[product]","[n-ary product]","\u220f"],["micro","\\textmu{}",!1,"&micro;","micro","\xb5","\xb5"],["macr","\\textasciimacron{}",!1,"&macr;","[macron]","\xaf","\xaf"],["deg","\\textdegree{}",!1,"&deg;","degree","\xb0","\xb0"],["prime","\\prime",!0,"&prime;","'","'","\u2032"],["Prime","\\prime{}\\prime",!0,"&Prime;","''","''","\u2033"],["infin","\\infty",!0,"&infin;","[infinity]","[infinity]","\u221e"],["infty","\\infty",!0,"&infin;","[infinity]","[infinity]","\u221e"],["prop","\\propto",!0,"&prop;","[proportional to]","[proportional to]","\u221d"],["propto","\\propto",!0,"&prop;","[proportional to]","[proportional to]","\u221d"],["not","\\textlnot{}",!1,"&not;","[angled dash]","\xac","\xac"],["neg","\\neg{}",!0,"&not;","[angled dash]","\xac","\xac"],["land","\\land",!0,"&and;","[logical and]","[logical and]","\u2227"],["wedge","\\wedge",!0,"&and;","[logical and]","[logical and]","\u2227"],["lor","\\lor",!0,"&or;","[logical or]","[logical or]","\u2228"],["vee","\\vee",!0,"&or;","[logical or]","[logical or]","\u2228"],["cap","\\cap",!0,"&cap;","[intersection]","[intersection]","\u2229"],["cup","\\cup",!0,"&cup;","[union]","[union]","\u222a"],["smile","\\smile",!0,"&smile;","[cup product]","[cup product]","\u2323"],["frown","\\frown",!0,"&frown;","[Cap product]","[cap product]","\u2322"],["int","\\int",!0,"&int;","[integral]","[integral]","\u222b"],["therefore","\\therefore",!0,"&there4;","[therefore]","[therefore]","\u2234"],["there4","\\therefore",!0,"&there4;","[therefore]","[therefore]","\u2234"],["because","\\because",!0,"&because;","[because]","[because]","\u2235"],["sim","\\sim",!0,"&sim;","~","~","\u223c"],["cong","\\cong",!0,"&cong;","[approx. equal to]","[approx. equal to]","\u2245"],["simeq","\\simeq",!0,"&cong;","[approx. equal to]","[approx. equal to]","\u2245"],["asymp","\\asymp",!0,"&asymp;","[almost equal to]","[almost equal to]","\u2248"],["approx","\\approx",!0,"&asymp;","[almost equal to]","[almost equal to]","\u2248"],["ne","\\ne",!0,"&ne;","[not equal to]","[not equal to]","\u2260"],["neq","\\neq",!0,"&ne;","[not equal to]","[not equal to]","\u2260"],["equiv","\\equiv",!0,"&equiv;","[identical to]","[identical to]","\u2261"],["triangleq","\\triangleq",!0,"&triangleq;","[defined to]","[defined to]","\u225c"],["le","\\le",!0,"&le;","<=","<=","\u2264"],["leq","\\le",!0,"&le;","<=","<=","\u2264"],["ge","\\ge",!0,"&ge;",">=",">=","\u2265"],["geq","\\ge",!0,"&ge;",">=",">=","\u2265"],["lessgtr","\\lessgtr",!0,"&lessgtr;","[less than or greater than]","[less than or greater than]","\u2276"],["lesseqgtr","\\lesseqgtr",!0,"&lesseqgtr;","[less than or equal or greater than or equal]","[less than or equal or greater than or equal]","\u22da"],["ll","\\ll",!0,"&Lt;","<<","<<","\u226a"],["Ll","\\lll",!0,"&Ll;","<<<","<<<","\u22d8"],["lll","\\lll",!0,"&Ll;","<<<","<<<","\u22d8"],["gg","\\gg",!0,"&Gt;",">>",">>","\u226b"],["Gg","\\ggg",!0,"&Gg;",">>>",">>>","\u22d9"],["ggg","\\ggg",!0,"&Gg;",">>>",">>>","\u22d9"],["prec","\\prec",!0,"&pr;","[precedes]","[precedes]","\u227a"],["preceq","\\preceq",!0,"&prcue;","[precedes or equal]","[precedes or equal]","\u227c"],["preccurlyeq","\\preccurlyeq",!0,"&prcue;","[precedes or equal]","[precedes or equal]","\u227c"],["succ","\\succ",!0,"&sc;","[succeeds]","[succeeds]","\u227b"],["succeq","\\succeq",!0,"&sccue;","[succeeds or equal]","[succeeds or equal]","\u227d"],["succcurlyeq","\\succcurlyeq",!0,"&sccue;","[succeeds or equal]","[succeeds or equal]","\u227d"],["sub","\\subset",!0,"&sub;","[subset of]","[subset of]","\u2282"],["subset","\\subset",!0,"&sub;","[subset of]","[subset of]","\u2282"],["sup","\\supset",!0,"&sup;","[superset of]","[superset of]","\u2283"],["supset","\\supset",!0,"&sup;","[superset of]","[superset of]","\u2283"],["nsub","\\not\\subset",!0,"&nsub;","[not a subset of]","[not a subset of","\u2284"],["sube","\\subseteq",!0,"&sube;","[subset of or equal to]","[subset of or equal to]","\u2286"],["nsup","\\not\\supset",!0,"&nsup;","[not a superset of]","[not a superset of]","\u2285"],["supe","\\supseteq",!0,"&supe;","[superset of or equal to]","[superset of or equal to]","\u2287"],["setminus","\\setminus",!0,"&setminus;",'" ','"',"\u29f5"],["forall","\\forall",!0,"&forall;","[for all]","[for all]","\u2200"],["exist","\\exists",!0,"&exist;","[there exists]","[there exists]","\u2203"],["exists","\\exists",!0,"&exist;","[there exists]","[there exists]","\u2203"],["nexist","\\nexists",!0,"&exist;","[there does not exists]","[there does not  exists]","\u2204"],["nexists","\\nexists",!0,"&exist;","[there does not exists]","[there does not  exists]","\u2204"],["empty","\\emptyset",!0,"&empty;","[empty set]","[empty set]","\u2205"],["emptyset","\\emptyset",!0,"&empty;","[empty set]","[empty set]","\u2205"],["isin","\\in",!0,"&isin;","[element of]","[element of]","\u2208"],["in","\\in",!0,"&isin;","[element of]","[element of]","\u2208"],["notin","\\notin",!0,"&notin;","[not an element of]","[not an element of]","\u2209"],["ni","\\ni",!0,"&ni;","[contains as member]","[contains as member]","\u220b"],["nabla","\\nabla",!0,"&nabla;","[nabla]","[nabla]","\u2207"],["ang","\\angle",!0,"&ang;","[angle]","[angle]","\u2220"],["angle","\\angle",!0,"&ang;","[angle]","[angle]","\u2220"],["perp","\\perp",!0,"&perp;","[up tack]","[up tack]","\u22a5"],["parallel","\\parallel",!0,"&parallel;","||","||","\u2225"],["sdot","\\cdot",!0,"&sdot;","[dot]","[dot]","\u22c5"],["cdot","\\cdot",!0,"&sdot;","[dot]","[dot]","\u22c5"],["lceil","\\lceil",!0,"&lceil;","[left ceiling]","[left ceiling]","\u2308"],["rceil","\\rceil",!0,"&rceil;","[right ceiling]","[right ceiling]","\u2309"],["lfloor","\\lfloor",!0,"&lfloor;","[left floor]","[left floor]","\u230a"],["rfloor","\\rfloor",!0,"&rfloor;","[right floor]","[right floor]","\u230b"],["lang","\\langle",!0,"&lang;","<","<","\u27e8"],["rang","\\rangle",!0,"&rang;",">",">","\u27e9"],["langle","\\langle",!0,"&lang;","<","<","\u27e8"],["rangle","\\rangle",!0,"&rang;",">",">","\u27e9"],["hbar","\\hbar",!0,"&hbar;","hbar","hbar","\u210f"],["mho","\\mho",!0,"&mho;","mho","mho","\u2127"],["larr","\\leftarrow",!0,"&larr;","<-","<-","\u2190"],["leftarrow","\\leftarrow",!0,"&larr;","<-","<-","\u2190"],["gets","\\gets",!0,"&larr;","<-","<-","\u2190"],["lArr","\\Leftarrow",!0,"&lArr;","<=","<=","\u21d0"],["Leftarrow","\\Leftarrow",!0,"&lArr;","<=","<=","\u21d0"],["uarr","\\uparrow",!0,"&uarr;","[uparrow]","[uparrow]","\u2191"],["uparrow","\\uparrow",!0,"&uarr;","[uparrow]","[uparrow]","\u2191"],["uArr","\\Uparrow",!0,"&uArr;","[dbluparrow]","[dbluparrow]","\u21d1"],["Uparrow","\\Uparrow",!0,"&uArr;","[dbluparrow]","[dbluparrow]","\u21d1"],["rarr","\\rightarrow",!0,"&rarr;","->","->","\u2192"],["to","\\to",!0,"&rarr;","->","->","\u2192"],["rightarrow","\\rightarrow",!0,"&rarr;","->","->","\u2192"],["rArr","\\Rightarrow",!0,"&rArr;","=>","=>","\u21d2"],["Rightarrow","\\Rightarrow",!0,"&rArr;","=>","=>","\u21d2"],["darr","\\downarrow",!0,"&darr;","[downarrow]","[downarrow]","\u2193"],["downarrow","\\downarrow",!0,"&darr;","[downarrow]","[downarrow]","\u2193"],["dArr","\\Downarrow",!0,"&dArr;","[dbldownarrow]","[dbldownarrow]","\u21d3"],["Downarrow","\\Downarrow",!0,"&dArr;","[dbldownarrow]","[dbldownarrow]","\u21d3"],["harr","\\leftrightarrow",!0,"&harr;","<->","<->","\u2194"],["leftrightarrow","\\leftrightarrow",!0,"&harr;","<->","<->","\u2194"],["hArr","\\Leftrightarrow",!0,"&hArr;","<=>","<=>","\u21d4"],["Leftrightarrow","\\Leftrightarrow",!0,"&hArr;","<=>","<=>","\u21d4"],["crarr","\\hookleftarrow",!0,"&crarr;","<-'","<-'","\u21b5"],["hookleftarrow","\\hookleftarrow",!0,"&crarr;","<-'","<-'","\u21b5"],["arccos","\\arccos",!0,"arccos","arccos","arccos","arccos"],["arcsin","\\arcsin",!0,"arcsin","arcsin","arcsin","arcsin"],["arctan","\\arctan",!0,"arctan","arctan","arctan","arctan"],["arg","\\arg",!0,"arg","arg","arg","arg"],["cos","\\cos",!0,"cos","cos","cos","cos"],["cosh","\\cosh",!0,"cosh","cosh","cosh","cosh"],["cot","\\cot",!0,"cot","cot","cot","cot"],["coth","\\coth",!0,"coth","coth","coth","coth"],["csc","\\csc",!0,"csc","csc","csc","csc"],["deg","\\deg",!0,"&deg;","deg","deg","deg"],["det","\\det",!0,"det","det","det","det"],["dim","\\dim",!0,"dim","dim","dim","dim"],["exp","\\exp",!0,"exp","exp","exp","exp"],["gcd","\\gcd",!0,"gcd","gcd","gcd","gcd"],["hom","\\hom",!0,"hom","hom","hom","hom"],["inf","\\inf",!0,"inf","inf","inf","inf"],["ker","\\ker",!0,"ker","ker","ker","ker"],["lg","\\lg",!0,"lg","lg","lg","lg"],["lim","\\lim",!0,"lim","lim","lim","lim"],["liminf","\\liminf",!0,"liminf","liminf","liminf","liminf"],["limsup","\\limsup",!0,"limsup","limsup","limsup","limsup"],["ln","\\ln",!0,"ln","ln","ln","ln"],["log","\\log",!0,"log","log","log","log"],["max","\\max",!0,"max","max","max","max"],["min","\\min",!0,"min","min","min","min"],["Pr","\\Pr",!0,"Pr","Pr","Pr","Pr"],["sec","\\sec",!0,"sec","sec","sec","sec"],["sin","\\sin",!0,"sin","sin","sin","sin"],["sinh","\\sinh",!0,"sinh","sinh","sinh","sinh"],["sup","\\sup",!0,"&sup;","sup","sup","sup"],["tan","\\tan",!0,"tan","tan","tan","tan"],["tanh","\\tanh",!0,"tanh","tanh","tanh","tanh"],["bull","\\textbullet{}",!1,"&bull;","*","*","\u2022"],["bullet","\\textbullet{}",!1,"&bull;","*","*","\u2022"],["star","\\star",!0,"*","*","*","\u22c6"],["lowast","\\ast",!0,"&lowast;","*","*","\u2217"],["ast","\\ast",!0,"&lowast;","*","*","*"],["odot","\\odot",!0,"o","[circled dot]","[circled dot]","\u0298"],["oplus","\\oplus",!0,"&oplus;","[circled plus]","[circled plus]","\u2295"],["otimes","\\otimes",!0,"&otimes;","[circled times]","[circled times]","\u2297"],["check","\\checkmark",!0,"&checkmark;","[checkmark]","[checkmark]","\u2713"],["checkmark","\\checkmark",!0,"&check;","[checkmark]","[checkmark]","\u2713"],["para","\\P{}",!1,"&para;","[pilcrow]","\xb6","\xb6"],["ordf","\\textordfeminine{}",!1,"&ordf;","_a_","\xaa","\xaa"],["ordm","\\textordmasculine{}",!1,"&ordm;","_o_","\xba","\xba"],["cedil","\\c{}",!1,"&cedil;","[cedilla]","\xb8","\xb8"],["oline","\\overline{~}",!0,"&oline;","[overline]","\xaf","\u203e"],["uml","\\textasciidieresis{}",!1,"&uml;","[diaeresis]","\xa8","\xa8"],["zwnj","\\/{}",!1,"&zwnj;","","","\u200c"],["zwj","",!1,"&zwj;","","","\u200d"],["lrm","",!1,"&lrm;","","","\u200e"],["rlm","",!1,"&rlm;","","","\u200f"],["smiley","\\ddot\\smile",!0,"&#9786;",":-)",":-)","\u263a"],["blacksmile","\\ddot\\smile",!0,"&#9787;",":-)",":-)","\u263b"],["sad","\\ddot\\frown",!0,"&#9785;",":-(",":-(","\u2639"],["frowny","\\ddot\\frown",!0,"&#9785;",":-(",":-(","\u2639"],["clubs","\\clubsuit",!0,"&clubs;","[clubs]","[clubs]","\u2663"],["clubsuit","\\clubsuit",!0,"&clubs;","[clubs]","[clubs]","\u2663"],["spades","\\spadesuit",!0,"&spades;","[spades]","[spades]","\u2660"],["spadesuit","\\spadesuit",!0,"&spades;","[spades]","[spades]","\u2660"],["hearts","\\heartsuit",!0,"&hearts;","[hearts]","[hearts]","\u2665"],["heartsuit","\\heartsuit",!0,"&heartsuit;","[hearts]","[hearts]","\u2665"],["diams","\\diamondsuit",!0,"&diams;","[diamonds]","[diamonds]","\u25c6"],["diamondsuit","\\diamondsuit",!0,"&diams;","[diamonds]","[diamonds]","\u25c6"],["diamond","\\diamondsuit",!0,"&diamond;","[diamond]","[diamond]","\u25c6"],["Diamond","\\diamondsuit",!0,"&diamond;","[diamond]","[diamond]","\u25c6"],["loz","\\lozenge",!0,"&loz;","[lozenge]","[lozenge]","\u29eb"],["_ ","\\hspace*{0.5em}",!1,"&ensp;"," "," ","\u2002"],["_  ","\\hspace*{1.0em}",!1,"&ensp;&ensp;","  ","  ","\u2002\u2002"],["_   ","\\hspace*{1.5em}",!1,"&ensp;&ensp;&ensp;","   ","   ","\u2002\u2002\u2002"],["_    ","\\hspace*{2.0em}",!1,"&ensp;&ensp;&ensp;&ensp;","    ","    ","\u2002\u2002\u2002\u2002"],["_     ","\\hspace*{2.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;","     ","     ","\u2002\u2002\u2002\u2002\u2002"],["_      ","\\hspace*{3.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","      ","      ","\u2002\u2002\u2002\u2002\u2002\u2002"],["_       ","\\hspace*{3.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","       ","       ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_        ","\\hspace*{4.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","        ","        ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_         ","\\hspace*{4.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","         ","         ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_          ","\\hspace*{5.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","          ","          ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_           ","\\hspace*{5.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","           ","           ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_            ","\\hspace*{6.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","            ","            ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_             ","\\hspace*{6.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","             ","             ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_              ","\\hspace*{7.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","              ","              ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_               ","\\hspace*{7.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","               ","               ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                ","\\hspace*{8.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                ","                ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                 ","\\hspace*{8.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                 ","                 ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                  ","\\hspace*{9.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                  ","                  ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                   ","\\hspace*{9.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                   ","                   ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                    ","\\hspace*{10.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                    ","                    ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"]]},13816:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(23080));e.exports=r.default},56166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=void 0,t.defaultOptions={todoKeywords:["TODO","DONE"],emphasisRegexpComponents:{pre:"-\u2013\u2014\\s\\('\u2019\"\u201c\u201d\\{",post:"-\u2013\u2014\\s.,:!?;'\u2019\"\u201c\u201d\\)\\}\\[",border:"\\s",body:".",newline:1},linkTypes:["eww","rmail","mhe","irc","info","gnus","docview","bbdb","w3m","printindex","index","bibentry","Autocites","autocites","supercites","Textcites","textcites","Smartcites","smartcites","footcitetexts","footcites","Parencites","parencites","Cites","cites","fnotecite","Pnotecite","pnotecite","Notecite","notecite","footfullcite","fullcite","citeurl","citedate*","citedate","citetitle*","citetitle","Citeauthor*","Autocite*","autocite*","Autocite","autocite","supercite","parencite*","cite*","Smartcite","smartcite","Textcite","textcite","footcitetext","footcite","Parencite","parencite","Cite","Citeauthor","Citealp","Citealt","Citep","Citet","citeyearpar","citeyear*","citeyear","citeauthor*","citeauthor","citetext","citenum","citealp*","citealp","citealt*","citealt","citep*","citep","citet*","citet","nocite","cite","Cref","cref","autoref","eqref","nameref","pageref","ref","label","list-of-tables","list-of-figures","addbibresource","bibliographystyle","printbibliography","nobibliography","bibliography","Acp","acp","Ac","ac","acrfull","acrlong","acrshort","glslink","glsdesc","glssymbol","Glspl","Gls","glspl","gls","bibtex","roam","notmuch-tree","notmuch-search","notmuch","attachment","id","file+sys","file+emacs","shell","news","mailto","https","http","ftp","help","file","elisp","do"],matchSexpDepth:3}},82105:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=r(n(10939)),i=r(n(50914)),a=n(89859),s=n(23875),u=n(56166),c=n(24314);var l;!function(e){e[e.TopComment=0]="TopComment",e[e.Headline=1]="Headline",e[e.Planning=2]="Planning",e[e.PropertyDrawer=3]="PropertyDrawer",e[e.NodeProperty=4]="NodeProperty",e[e.ListItem=5]="ListItem",e[e.TableRow=6]="TableRow",e[e.Default=7]="Default"}(l||(l={})),t.parse=function(e,t){return new d(o.default(e),t).parse()};class d{constructor(e,t={}){this.r=new c.Reader(e),this.options=Object.assign(Object.assign({},u.defaultOptions),t),this.re=new s.OrgRegexUtils(this.options)}parse(){this.parseEmptyLines();const e=this.parseElements(l.TopComment);return i.default("org-data",{contentsBegin:0,contentsEnd:this.r.endOffset()},e)}parseElements(e,t){const n=[];let r=-1;for(;!this.r.eof();){const o=this.r.offset();if(o===r)throw console.log("elements:",n,"rest:",JSON.stringify(this.r.rest())),new Error("no progress (elements)");r=o;const i=this.parseElement(e,t),a=i.type,u=i.contentsBegin,c=i.contentsEnd;if(void 0===u||void 0===c);else if(s.greaterElements.has(a)){const n=i.structure;this.r.narrow(u,c),w(i,this.parseElements(d.nextMode(e,a,!0),null!==t&&void 0!==t?t:n)),this.r.widen(),n&&delete i.structure}else this.r.narrow(u,c),w(i,this.parseObjects(s.restrictionFor(i.type))),this.r.widen();n.push(i),e=d.nextMode(e,a,!1)}return n}static nextMode(e,t,n){if(n){if("section"===t)return l.Headline;if("inlinetask"===t)return l.Headline;if("plain-list"===t)return l.ListItem;if("property-drawer"===t)return l.NodeProperty;if("table"===t)return l.TableRow}else{if(e===l.TopComment&&"comment"===t)return l.PropertyDrawer;if(e===l.Headline)return l.Planning;if(e===l.Planning&&"planning"===t)return l.PropertyDrawer;if(e===l.ListItem)return l.ListItem;if(e===l.TableRow)return l.TableRow;if(e===l.NodeProperty)return l.NodeProperty}return l.Default}parseElement(e,t){var n,r;if(e===l.ListItem)return this.parseListItem(t);if(e===l.TableRow)return this.parseTableRow();if(e===l.NodeProperty)return this.parseNodeProperty();if(e===l.Headline)return this.parseHeadline();if(this.atHeading())return this.parseSection();const o=0===this.r.offset()||"\n"===this.r.substring(this.r.offset()-1,this.r.offset());if(o&&this.r.lookingAt(/^[ \t]*#(?: |$)/m))return this.parseComment();if(e===l.Planning&&this.r.lookingAt(/^[ \t]*(CLOSED:|DEADLINE:|SCHEDULED:)/))return this.parsePlanning();if((e===l.Planning||(e===l.PropertyDrawer||e===l.TopComment)&&!this.r.lookingAt(/\s*$/m))&&this.r.lookingAt(/^[ \t]*:PROPERTIES:[ \t]*\n(?:[ \t]*:\S+:(?: .*)?[ \t]*\n)*?[ \t]*:END:[ \t]*$/m))return this.parsePropertyDrawer();if(!o)return this.parseParagraph({});if(this.r.lookingAt(/^[ \t]*CLOCK:/))return this.parseClock();const i=this.parseAffiliatedKeywords();if(this.r.lookingAt(p))return this.parseLatexEnvironment(i);if(this.r.lookingAt(f))return this.parseDrawer(i);if(this.r.lookingAt(/[ \t]*:( |$)/m))return this.parseFixedWidth(i);{const e=this.r.offset();if(this.r.advance(this.r.lookingAt(/^[ \t]*#\+/))){const t=this.r.lookingAt(/^begin_(\S+)/i);if(t){this.r.resetOffset(e);switch(t[1].toLowerCase()){case"center":return this.parseBlock("center-block","center",i);case"comment":return this.parseCommentBlock(i);case"example":return this.parseExampleBlock(i);case"export":return this.parseExportBlock(i);case"quote":return this.parseBlock("quote-block","quote",i);case"src":return this.parseSrcBlock(i);case"verse":return this.parseBlock("verse-block","verse",i);default:return this.parseSpecialBlock(i)}}return this.r.lookingAt(/^\S+:/)?(this.r.resetOffset(e),this.parseKeyword(i)):(this.r.resetOffset(e),this.parseParagraph(i))}}if(this.r.lookingAt(_))return this.parseFootnoteDefinition(i);if(this.r.lookingAt(/^[ \t]*-{5,}[ \t]*$/m))return this.parseHorizontalRule(i);if(this.r.lookingAt(/^%%\(/))return this.parseDiarySexp(i);const a=/[ \t]*\+(-+\+)+[ \t]*$/m;if(this.r.lookingAt(/^[ \t]*\|/))return this.parseTable(i);if(this.r.lookingAt(a)){const e=this.r.offset();this.r.advance(this.r.line());const t=this.r.offset(),o=null!==(r=null===(n=this.r.match(/^[ \t]*($|[^|])/m))||void 0===n?void 0:n.index)&&void 0!==r?r:null;this.r.advance(o);const s=this.r.offset()>t&&this.r.lookingAt(a);if(this.r.resetOffset(e),s)return this.parseTable(i)}if(this.r.lookingAt(this.re.listItemRe())){if(void 0===t){const e=this.r.offset();t=this.parseListStructure(),this.r.resetOffset(e)}return this.parseList(t,i)}return this.parseParagraph(i)}parseObjects(e){const t=[];let n=this.r.offset();for(;!this.r.eof();){const r=this.r.offset(),o=this.parseObject(e);if(!o)break;if(this.r.offset()===r)throw new Error(`no progress (parseObject): ${JSON.stringify(o)}, text: ${JSON.stringify(this.r.rest())}, objects: ${JSON.stringify(t,null,2)}`);const[a,u]=o;if(a!==n){const e=this.r.substring(n,a);t.push(i.default("text",{value:e}))}const c=u.contentsBegin,l=u.contentsEnd;void 0!==c&&void 0!==l&&(this.r.narrow(c,l),w(u,this.parseObjects(s.restrictionFor(u.type))),this.r.widen()),t.push(u),n=this.r.offset()}this.r.resetOffset(n);const r=this.r.rest();return this.r.advance(r.length),r.trim().length&&t.push(i.default("text",{value:r})),t}parseObject(e){if(e.has("table-cell"))return[this.r.offset(),this.parseTableCell()];const t=this.re.objectRe();for(;!this.r.eof();){const n=this.r.match(t);if(!n)return null;this.r.advance(n.index);const r=this.r.offset(),o=this.tryParseObject(e);if(o){if(r===this.r.offset())throw new Error("no progress (tryParseObject)");return[r,o]}this.r.resetOffset(r),this.r.advance(1)}return null}tryParseObject(e){const t=this.r.peek(2);switch(t[0]){case"^":if(e.has("superscript"))return this.parseSuperscript();break;case"_":const n=this.r.offset(),r=e.has("subscript")&&this.parseSubscript();if(r)return r;if(this.r.resetOffset(n),e.has("underline"))return this.parseUnderline();break;case"*":if(e.has("bold"))return this.parseBold();break;case"/":if(e.has("italic"))return this.parseItalic();break;case"~":if(e.has("code"))return this.parseCode();break;case"=":if(e.has("verbatim"))return this.parseVerbatim();break;case"+":if(e.has("strike-through"))return this.parseStrikeThrough();break;case"$":if(e.has("latex-fragment"))return this.parseLatexFragment();break;case"<":if("<"===t[1]);else{const t=this.r.offset(),n=e.has("timestamp")&&this.parseTimestamp();if(n)return n;this.r.resetOffset(t);const r=e.has("link")&&this.parseLink();if(r)return r;this.r.resetOffset(t)}break;case"\\":if("\\"===t[1]);else{const t=this.r.offset(),n=e.has("entity")&&this.parseEntity();if(n)return n;this.r.resetOffset(t);const r=e.has("latex-fragment")&&this.parseLatexFragment();if(r)return r;this.r.resetOffset(t)}break;case"[":if("["===t[1]){if(e.has("link"))return this.parseLink()}else if("f"===t[1]){if(e.has("footnote-reference"))return this.parseFootnoteReference()}else{const t=this.r.offset(),n=e.has("timestamp")&&this.parseTimestamp();if(n)return n;this.r.resetOffset(t)}break;default:if(e.has("link"))return this.parseLink()}return null}parseSection(){const e=this.r.offset(),t=this.r.forceLookingAt(/^(\*+)[ \t]/m)[1].length;this.r.advance(this.r.line());const n=this.r.match(new RegExp(`^\\*{1,${t}}[ \\t]`,"m")),r=n?this.r.offset()+n.index:this.r.endOffset();return this.r.resetOffset(r),i.default("section",{contentsBegin:e,contentsEnd:r},[])}parseHeadline(){var e,t,n;const r=this.r.offset();this.r.advance(this.r.line()),this.r.narrow(r,this.r.offset());const o=this.r.advance(this.r.forceLookingAt(/^(\*+)[ \t]+/))[1].length,a=this.r.advance(this.r.lookingAt(new RegExp("^"+this.options.todoKeywords.join("|")))),s=null!==(e=null===a||void 0===a?void 0:a[0])&&void 0!==e?e:null;this.r.advance(this.r.lookingAt(/^[ \t]*/));const u=this.r.advance(this.r.lookingAt(/^\[#.\]/)),c=null!==(t=null===u||void 0===u?void 0:u[0][2])&&void 0!==t?t:null;this.r.advance(this.r.lookingAt(/^[ \t]*/));const l=!!this.r.advance(this.r.lookingAt(/^COMMENT/));this.r.advance(this.r.lookingAt(/^[ \t]*/));const d=this.r.offset(),f=this.r.lookingAt(/^(.*?)[ \t]+:([\w@#%:]+):[ \t]*$/m),p=null!==(n=null===f||void 0===f?void 0:f[2].split(":"))&&void 0!==n?n:[],h=f?d+f.index+f[1].length:d+this.r.forceLookingAt(/.*/)[0].length,m=this.r.substring(d,h),v=d,g=h;return this.r.widen(),this.parseEmptyLines(),i.default("headline",{level:o,todoKeyword:s,priority:c,commented:l,rawValue:m,tags:p,contentsBegin:v,contentsEnd:g},[])}parsePlanning(){this.r.narrow(this.r.offset(),this.r.offset()+this.r.line().length);let e=null,t=null,n=null;for(;;){const r=this.r.match(/\b(SCHEDULED:|DEADLINE:|CLOSED:) *[\[<]([^\]>]+)[\]>]/);if(!r)break;this.r.advance(r.index+r[1].length),this.r.advance(this.r.match(/^[ \t]*/));const o=r[1],i=this.parseTimestamp();"SCHEDULED:"===o&&(e=i),"DEADLINE:"===o&&(t=i),"CLOSED:"===o&&(n=i)}return this.r.widen(),this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("planning",{scheduled:e,deadline:t,closed:n})}parsePropertyDrawer(){this.r.advance(this.r.line());const e=this.r.offset(),t=this.r.forceMatch(/^[ \t]*:END:[ \t]*$/m);this.r.advance(t.index);const n=this.r.offset();return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("property-drawer",{contentsBegin:e,contentsEnd:n},[])}parseBlock(e,t,n){const r=this.r.match(new RegExp(`^[ \\t]*#\\+end_${t}[ \\t]*$`,"im"));if(!r)return this.parseParagraph(n);const o=this.r.offset(),a=o+this.r.line().length,s=o+r.index;this.r.resetOffset(s),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default(e,{affiliated:n,contentsBegin:a,contentsEnd:s},[])}parseComment(){let e=[];for(this.r.advance(this.r.forceLookingAt(/^[ \t]*# ?/)),e.push(this.r.advance(this.r.line()));;){if(!this.r.advance(this.r.lookingAt(/^[ \t]*#( |$)/m)))break;e.push(this.r.advance(this.r.line()))}let t=e.join("");return"\n"===t[t.length-1]&&(t=t.substring(0,t.length-1)),i.default("comment",{value:t})}parseFixedWidth(e){let t=[];for(;;){const e=this.r.lookingAt(/^[ \t]*: ?(.*)$/m);if(!e)break;this.r.advance(this.r.line()),t.push(e[1])}const n=t.join("\n");return i.default("fixed-width",{affiliated:e,value:n})}parseCommentBlock(e){const t=this.parseBlock("comment-block","comment",e);if("comment-block"!==t.type)return t;const n=this.r.substring(t.contentsBegin,t.contentsEnd);return i.default("comment-block",{affiliated:e,value:n})}parseSrcBlock(e){const t=this.r.match(/^[ \t]*#\+end_src[ \t]*$/im);if(!t)return this.parseParagraph(e);const n=this.r.forceMatch(/^[ \t]*#\+begin_src(?: +(?<language>\S+))?(?<switches>(?: +(?:-(?:l ".+"|[ikr])|[-+]n(?: *[0-9]+)?))+)?(?<parameters>.*)[ \t]*$/im),{language:r,switches:o,parameters:a}=n.groups,u=this.r.offset(),c=u+this.r.line().length,l=u+t.index,d=s.unescapeCodeInString(this.r.substring(c,l));this.r.resetOffset(l),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default("src-block",{affiliated:e,language:r,value:d})}parseExampleBlock(e){const t=this.parseBlock("example-block","example",e);if("example-block"!==t.type)return t;const n=this.r.substring(t.contentsBegin,t.contentsEnd);return i.default("example-block",{affiliated:e,value:n})}parseExportBlock(e){var t;const n=this.r.match(/^[ \t]*#\+end_export[ \t]*$/im);if(!n)return this.parseParagraph(e);const r=null!==(t=this.r.forceMatch(/^[ \t]*#\+begin_export(?:[ \t]+(\S+))?[ \t]*$/im)[1])&&void 0!==t?t:null,o=this.r.offset(),a=o+this.r.line().length,u=o+n.index,c=s.unescapeCodeInString(this.r.substring(a,u));this.r.resetOffset(u),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default("export-block",{affiliated:e,backend:r,value:c})}parseSpecialBlock(e){const t=this.r.forceLookingAt(/[ \t]*#\+begin_(\S+)/i)[1],n=this.r.match(new RegExp(`^[ \\t]*#\\+end_${s.escapeRegExp(t)}[ \\t]*$`,"im"));if(!n)return this.r.message("incomplete block",this.r.offset(),"uniorg"),this.parseParagraph(e);const r=this.r.offset(),o=r+this.r.line().length,a=r+n.index;this.r.resetOffset(a),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default("special-block",{affiliated:e,blockType:t,contentsBegin:o,contentsEnd:a},[])}parseAffiliatedKeywords(){var e,t,n,r;const o=this.r.offset(),i={};for(;!this.r.eof();){const o=this.r.lookingAt(b);if(!o)break;const a=(null!==(t=null!==(e=o.groups.dualKeyword)&&void 0!==e?e:o.groups.regularKeyword)&&void 0!==t?t:o.groups.attributeKeyword).toUpperCase(),u=null!==(n=y[a])&&void 0!==n?n:a,c=v.has(u);this.r.advance(o),this.r.narrow(this.r.offset(),this.r.offset()+this.r.line().length);const l=c?this.parseObjects(s.restrictionFor("keyword")):this.r.rest().trim();this.r.widen(),this.r.advance(this.r.line());const d=m.has(u)&&null!==(r=o.groups.dualValue)&&void 0!==r?r:null,f=null===d?l:[l,d];g.has(u)||u.match(/^ATTR_/)?(i[u]=i[u]||[],i[u].push(f)):i[u]=f}return this.r.lookingAt(/^[ \t]*$/m)?(this.r.resetOffset(o),{}):i}parseKeyword(e){const t=this.r.forceLookingAt(/[ \t]*#\+(\S+):(.*)/),n=t[1].toUpperCase(),r=t[2].trim();return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("keyword",{affiliated:e,key:n,value:r})}parseLatexEnvironment(e){const t=this.r.offset(),n=this.r.advance(this.r.forceLookingAt(p))[1],r=this.r.match(h(n));if(!r)return this.r.resetOffset(t),this.parseParagraph(e);this.r.advance(r);const o=this.r.offset();this.parseEmptyLines();const a=this.r.substring(t,o);return i.default("latex-environment",{affiliated:e,value:a})}parseDrawer(e){const t=this.r.match(/^[ \t]*:END:[ \t]*$/m);if(!t)return this.r.message("incomplete drawer",this.r.offset(),"uniorg"),this.parseParagraph(e);const n=this.r.offset()+t.index,r=this.r.forceLookingAt(f)[1];this.r.advance(this.r.line());const o=this.r.offset();return this.r.resetOffset(n),this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("drawer",{affiliated:e,name:r,contentsBegin:o,contentsEnd:n},[])}parseClock(){this.r.advance(this.r.forceMatch(/^[ \t]*CLOCK:[ \t]*/));const e=this.parseTimestamp();this.r.advance(this.r.match(/^[ \t]+=>[ \t]*/));const t=this.r.advance(this.r.lookingAt(/^(\S+)[ \t]*$/m)),n=t?t[1]:null,r=n?"closed":"running";return this.parseEmptyLines(),i.default("clock",{value:e,duration:n,status:r})}parseNodeProperty(){var e;const t=this.r.forceLookingAt(/^[ \t]*:(?<key>\S+):(?:(?<value1>$)|[ \t]+(?<value2>.*?))[ \t]*$/m),n=t.groups.key,r=null!==(e=t.groups.value1)&&void 0!==e?e:t.groups.value2;return this.r.advance(this.r.line()),i.default("node-property",{key:n,value:r})}parseParagraph(e){const t=this.r.offset();this.r.advance(this.r.line());let n=null;for(;n=this.r.match(this.re.paragraphSeparateRe());){this.r.advance(n.index);const e=this.r.lookingAt(/[ \t]*#\+begin_(\S+)/i);if(e){if(!this.r.match(new RegExp(`^[ \\t]*#\\+end_${e[1]}[ \\t]*$`,"im"))){this.r.advance(this.r.line());continue}break}if(this.r.lookingAt(f)){if(!this.r.match(/^[ \t]*:END:[ \t]*$/m)){this.r.advance(this.r.line());continue}break}const t=this.r.lookingAt(p);if(t){const e=t[1];if(!this.r.match(h(e))){this.r.advance(this.r.line());continue}break}const r=this.r.lookingAt(/[ \t]*#\+(\S+)\[.*\]:/);if(r){if(!m.has(r[1].toLowerCase())){this.r.advance(this.r.line());continue}break}break}const r=n?this.r.offset():this.r.endOffset();return this.r.resetOffset(r),this.parseEmptyLines(),i.default("paragraph",{affiliated:e,contentsBegin:t,contentsEnd:r},[])}parseFootnoteDefinition(e){var t;const n=this.r.forceLookingAt(_)[1],r=this.r.offset();this.r.advance(this.r.line());const o=this.r.match(T);this.r.advance(null===o||void 0===o?void 0:o.index);let a=o?this.r.offset():this.r.endOffset();if(o&&"["===o[0][0]){let e=this.r.substring(r,this.r.offset()).split("\n");for(e=e.slice(1,e.length-1);e.length;){const n=e.pop();if(0!==(null===(t=n.match(b))||void 0===t?void 0:t.index))break;this.r.advance(-n.length-1)}a=this.r.offset()}this.r.narrow(r,a),this.r.advance(this.r.forceMatch(/\][ \r\t\n]*/m));const s=this.r.offset();return this.r.widen(),this.r.resetOffset(a),this.parseEmptyLines(),i.default("footnote-definition",{affiliated:e,label:n,contentsBegin:s,contentsEnd:a},[])}parseHorizontalRule(e){return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("horizontal-rule",{affiliated:e})}parseDiarySexp(e){const t=this.r.forceLookingAt(/^(%%\(.*)[ \t]*$/m)[1];return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("diary-sexp",{affiliated:e,value:t})}parseTable(e){const t=this.r.offset(),n=this.r.lookingAt(/^[ \t]*\|/)?"org":"table.el",r=new RegExp(`^[ \\t]*($|[^| \\t${"org"===n?"":"+"}])`,"m"),o=this.r.match(r),a=o?t+o.index:this.r.endOffset();this.r.resetOffset(a);let s="";for(;;){const e=this.r.lookingAt(/^[ \t]*#\+TBLFM: +(.*?)[ \t]*$/m);if(!e)break;s+=e[1],this.r.advance(this.r.line())}return this.parseEmptyLines(),"org"===n?i.default("table",{tableType:n,tblfm:s,contentsBegin:t,contentsEnd:a},[]):i.default("table",{affiliated:e,tableType:n,tblfm:s,value:this.r.substring(t,a)})}parseTableRow(){const e=this.r.lookingAt(/^[ \t]*\|-/)?"rule":"standard";this.r.advance(this.r.forceMatch(/\|/));const t=this.r.offset();this.r.advance(this.r.forceMatch(/^.*?[ \t]*$/m));const n="rule"===e?t:this.r.offset();return this.r.advance(this.r.line()),i.default("table-row",{rowType:e,contentsBegin:t,contentsEnd:n},[])}parseTableCell(){this.r.advance(this.r.forceLookingAt(/^[ \t]*/));const e=this.r.offset(),t=e+this.r.advance(this.r.forceLookingAt(/(.*?)[ \t]*(?:\||$)/m))[1].length;return i.default("table-cell",{contentsBegin:e,contentsEnd:t},[])}parseList(e,t){const n=this.r.offset(),r=e.find((e=>e.begin===n));if(!r)throw new Error(`parseList: cannot find item. contentsBegin: ${n}, structure: ${JSON.stringify(e,null,2)}`);const o=r.indent,a=r.tag?"descriptive":"-+*".includes(r.bullet[0])?"unordered":"ordered";let s=r.end;for(;;){const t=e.find((e=>e.begin===s&&e.indent===o));if(!t)break;s=t.end}const u=s;return this.r.resetOffset(u),i.default("plain-list",{affiliated:t,indent:o,listType:a,contentsBegin:n,contentsEnd:u,structure:e},[])}parseListItem(e){var t,n;const r=this.r.offset(),o=this.r.advance(this.r.forceMatch(this.re.fullListItemRe())),a=o.groups.bullet,s=null!==(t=o.groups.counter)&&void 0!==t?t:null,u="[ ]"===o.groups.checkbox?"off":"[x]"===(null===(n=o.groups.checkbox)||void 0===n?void 0:n.toLowerCase())?"on":"[-]"===o.groups.checkbox?"trans":null,c=e.find((e=>e.begin===r)),l=this.r.offset(),d=c.end;return this.r.resetOffset(d),i.default("list-item",{indent:c.indent,bullet:a,counter:s,checkbox:u,contentsBegin:l,contentsEnd:d},c.tag?[c.tag]:[])}parseListStructure(){var e,t,n,r,o,a,u,c,l;const d=[],f=[];for(;!this.r.eof()&&0!==(null===(e=this.r.match(this.re.listEndRe()))||void 0===e?void 0:e.index);){const e=this.r.match(this.re.listItemRe());if(e){const p=e.groups.indent.length;for(;d.length&&d[d.length-1].indent>=p;){const e=d.pop();e.end=this.r.offset(),f.push(e)}const h=this.r.forceMatch(this.re.fullListItemRe()),{bullet:m,counter:v,checkbox:g}=h.groups;let y=null;if(void 0!==h.groups.tag){const e=this.r.offset()+(null!==(n=null===(t=h.groups.indent)||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=h.groups.bullet)||void 0===r?void 0:r.length)&&void 0!==o?o:0)+(null!==(u=null===(a=h.groups.counter_group)||void 0===a?void 0:a.length)&&void 0!==u?u:0)+(null!==(l=null===(c=h.groups.checkbox_group)||void 0===c?void 0:c.length)&&void 0!==l?l:0),d=e+h.groups.tag.length;this.r.narrow(e,d),y=i.default("list-item-tag",{},this.parseObjects(s.restrictionFor("list-item"))),this.r.widen()}const b={begin:this.r.offset(),indent:p,bullet:m,counter:null!==v&&void 0!==v?v:null,checkbox:null!==g&&void 0!==g?g:null,tag:y,end:this.r.offset()};d.push(b),this.r.advance(this.r.line())}else if(this.r.match(/^[ \t]*\n/))this.r.advance(this.r.line());else{const e=this.r.forceLookingAt(/^[ \t]*/)[0].length;for(;d.length&&d[d.length-1].indent>=e;){const e=d.pop();e.end=this.r.offset(),f.push(e)}if(!d.length)break;this.r.advance(this.r.line())}}this.parseEmptyLines();const p=this.r.offset();return d.forEach((e=>{e.end=p})),f.push(...d),f.sort(((e,t)=>e.begin-t.begin))}parseSuperscript(){this.r.backoff(1);const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(this.re.subsuperscriptRe()));if(!t)return null;const n=t.groups.inBraces||t.groups.inBrackets,r=e+t[1].length,o=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return i.default("superscript",{contentsBegin:o,contentsEnd:a,children:[]})}parseSubscript(){this.r.backoff(1);const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(this.re.subsuperscriptRe()));if(!t)return null;const n=t.groups.inBraces||t.groups.inBrackets,r=e+t[1].length,o=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return i.default("subscript",{contentsBegin:o,contentsEnd:a,children:[]})}parseUnderline(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("underline",{contentsBegin:t,contentsEnd:n},[])}parseBold(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("bold",{contentsBegin:t,contentsEnd:n},[])}parseItalic(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("italic",{contentsBegin:t,contentsEnd:n},[])}parseCode(){this.r.backoff(1);const e=this.r.lookingAt(this.re.verbatimRe());if(!e)return null;const t=e[4],n=this.r.offset()+e.index+e[1].length+e[3].length+e[4].length;return this.r.resetOffset(n+1),i.default("code",{value:t},[])}parseVerbatim(){this.r.backoff(1);const e=this.r.lookingAt(this.re.verbatimRe());if(!e)return null;const t=e[4],n=this.r.offset()+e.index+e[1].length+e[3].length+e[4].length;return this.r.resetOffset(n+1),i.default("verbatim",{value:t},[])}parseStrikeThrough(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("strike-through",{contentsBegin:t,contentsEnd:n},[])}parseEntity(){var e;const t=this.r.advance(this.r.lookingAt(/^\\(?:(?<value1>_ +)|(?<value2>there4|sup[123]|frac[13][24]|[a-zA-Z]+)(?<brackets>$|\{\}|\P{Letter}))/mu));if(!t)return null;const n="{}"===t.groups.brackets;n||this.r.backoff(t.groups.brackets.length);const r=a.getOrgEntity(null!==(e=t.groups.value1)&&void 0!==e?e:t.groups.value2);return r?i.default("entity",Object.assign({useBrackets:n},r)):null}parseLatexFragment(){var e;const t=this.r.offset(),n=this.r.peek(2);let r=null;if("$"!==n[0])switch(n[1]){case"(":this.r.advance(this.r.match(/\\\)/)),r=this.r.substring(t+2,this.r.offset()-2);break;case"[":this.r.advance(this.r.match(/\\\]/)),r=this.r.substring(t+2,this.r.offset()-2);break;default:{const e=this.r.advance(this.r.lookingAt(/^\\[a-zA-Z]+\*?((\[[^\]\[\n{}]*\])|(\{[^{}\n]*\}))*/));r=null===e||void 0===e?void 0:e[0]}}else if("$"===n[1]){const e=this.r.advance(this.r.match(/\$\$((?:.|\n)*?)\$\$/m));r=null===e||void 0===e?void 0:e[1]}else{if("$"===this.r.substring(this.r.offset()-1,this.r.offset())||" \t\n,.;".includes(n[1])||!(r=null===(e=this.r.advance(this.r.match(/\$((?:.|\n)*?)\$/m)))||void 0===e?void 0:e[1])||" \t\n,.".includes(this.r.substring(this.r.offset()-1,this.r.offset()))||!this.r.lookingAt(/^(\p{Punctuation}|\p{White_Space}|\p{Open_Punctuation}|\p{Close_Punctuation}|\\"|'|$)/mu))return null}const o=this.r.offset();if(t===o)return null;const a=this.r.substring(t,o);return i.default("latex-fragment",{value:a,contents:null!==r&&void 0!==r?r:a})}parseFootnoteReference(){var e;const t=this.r.offset(),n=this.r.match(E);if(!n)return null;const r=()=>{for(;;){const e=this.r.advance(this.r.match(/[\[\]]/));if(!e)return!1;if("["==e[0]){if(!r())return!1}return!0}};if(!r())return null;const o=this.r.offset(),a=t+n.index+n[0].length,s=o-1,u=n.groups.inline?"inline":"standard",c="inline"===u?null!==(e=n.groups.label_inline)&&void 0!==e?e:null:n.groups.label;return"inline"===u?i.default("footnote-reference",{label:c,footnoteType:u,contentsBegin:a,contentsEnd:s},[]):i.default("footnote-reference",{label:c,footnoteType:u},[])}parseLink(){const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(/\[\[(?<link>([^\[\]]|\\(\\\\)*[\[\]]|\\+[^\[\]])+)\](\[(?<text>[\s\S]+?)\])?\]/m));if(t){const n=t,r={};if(n.groups.text){const t=r.contentsBegin=e+2+n.groups.link.length+2;r.contentsEnd=t+n.groups.text.length}const o=n.groups.link.replace(/[ \t]*\n[ \t]*/m," ").replace(/(\\+)([\[\]])/g,((e,t)=>"\\".repeat(e.length/2)+t)),{linkType:a,path:s}=this.linkType(o);return i.default("link",Object.assign({format:"bracket",linkType:a,rawLink:o,path:s},r),[])}const n=new RegExp(`\\b${this.re.linkTypesRe()}([^\\][ \\t\\n()<>]+(?:([\\w0-9_]+)|([^\\p{Punctuation} \\t\\n]|/)))`,"u"),r=this.r.advance(this.r.lookingAt(n));if(r){const e=r;return i.default("link",{format:"plain",linkType:e[1],rawLink:e[0],path:e[2]},[])}const o=new RegExp(`<${this.re.linkTypesRe()}([^>\\n]*(?:\\n[ \\t]*[^> \\t\\n][^>\\n]*)*)>`),a=this.r.advance(this.r.lookingAt(o));if(a){const e=a,t=e[1],n=e[0].substring(1,e[0].length-1),r=e[2].replace(/[ \t]*\n[ \t]*/g,"");return i.default("link",{format:"angle",linkType:t,rawLink:n,path:r},[])}return null}linkType(e){if(e.startsWith("/")||e.match(/^\.\.?\//))return{linkType:"file",path:e};const t=e.match(new RegExp(this.re.linkTypesRe()));return t?{linkType:t[1],path:e.slice(t[0].length)}:e.startsWith("(")&&e.endsWith(")")?{linkType:"coderef",path:e.slice(1,e.length-1)}:e.startsWith("#")?{linkType:"custom-id",path:e.slice(1)}:{linkType:"fuzzy",path:e}}parseTimestamp(){const e=new RegExp(["[\\[<](\\d{4}-\\d{2}-\\d{2}(:? .*?)?)[\\]>]","(?:<[0-9]+-[0-9]+-[0-9]+[^>\\n]+?\\+[0-9]+[dwmy]>)","(?:<%%(?:([^>\\n]+))>)"].join("|"));if(!this.r.lookingAt(e))return null;const t="<"===this.r.substring(this.r.offset(),this.r.offset()+1),n=this.r.advance(this.r.match(/^([<[](%%)?.*?)[\]>](?:--([<[].*?[\]>]))?/));if(!n)return null;const r=n[0],o=n[1],a=n[3],s=!!n[2];let u=null;if(!s){const e=o.match(/[012]?[0-9]:[0-5][0-9](-([012]?[0-9]):([0-5][0-9]))/);e&&(u={hour:Number(e[2]),minute:Number(e[3])})}const c=s?"diary":t&&(a||u)?"active-range":t?"active":a||u?"inactive-range":"inactive",l=s?null:d.parseDate(o),f=l?a?d.parseDate(a):u?Object.assign(Object.assign({},l),u):null:null;return i.default("timestamp",{timestampType:c,rawValue:r,start:l,end:f})}static parseDate(e){const t=e.match(/(([0-9]{4})-([0-9]{2})-([0-9]{2})( +[^\]+0-9>\r\n -]+)?( +([0-9]{1,2}):([0-9]{2}))?)/);return t?{year:Number(t[2]),month:Number(t[3]),day:Number(t[4]),hour:t[7]?Number(t[7]):null,minute:t[8]?Number(t[8]):null}:null}parseEmptyLines(){return d.parseMulti((()=>{const e=this.r.line();return 0===e.trim().length?(this.r.advance(e.length),e):null}))}static parseMulti(e){const t=[];for(let n=e();n;n=e())t.push(n);return t}atHeading(){return null!==this.r.lookingAt(/^\*+[ \t]/)}}const f=/^[ \t]*:((?:\w|[-_])+):[ \t]*$/m,p=/^[ \t]*\\begin\{([A-Za-z0-9*]+)\}/i,h=e=>new RegExp(`\\\\end\\{${s.escapeRegExp(e)}\\}[ \\t]*$`,"mi"),m=new Set(["RESULTS","CAPTION"]),v=new Set(["CAPTION"]),g=new Set(["CAPTION","HEADER"]),y={DATA:"NAME",LABEL:"NAME",RESNAME:"NAME",SOURCE:"NAME",SRCNAME:"NAME",TBLNAME:"NAME",RESULT:"RESULTS",HEADERS:"HEADER"},b=new RegExp(["[ \\t]*#\\+(?:",[`(?<dualKeyword>${[...m].join("|")})(?:\\[(?<dualValue>.*)\\])?`,`(?<regularKeyword>${["CAPTION","DATA","HEADER","HEADERS","LABEL","NAME","PLOT","RESNAME","RESULT","RESULTS","SOURCE","SRCNAME","TBLNAME"].filter((e=>!m.has(e))).join("|")})`,"(?<attributeKeyword>ATTR_[-_A-Za-z0-9]+)"].join("|"),"):[ \\t]*"].join(""),"i"),E=/\[fn:(?:(?<label_inline>[-_\w]+)?(?<inline>:)|(?<label>[-_\w]+)\])/,_=/^\[fn:([-_\w]+)\]/,T=/^\*|^\[fn:([-_\w]+)\]|^([ \t]*\n){2,}/m;function w(e,t){var n;if("children"in e){const r=[...null!==(n=e.children)&&void 0!==n?n:[],...t];e.children=r}}},24314:function(e,t,n){"use strict";var r,o,i,a,s,u,c,l=this&&this.__classPrivateFieldSet||function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},d=this&&this.__classPrivateFieldGet||function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=void 0;const p=f(n(14787));t.Reader=class{constructor(e){r.set(this,void 0),o.set(this,void 0),i.set(this,void 0),a.set(this,0),s.set(this,void 0),u.set(this,void 0),c.set(this,[]),l(this,r,e.toString()),l(this,s,0),l(this,u,d(this,r).length),l(this,o,e),l(this,i,p.default(e))}message(e,t,n){const r=void 0!==t?d(this,i).toPoint(t):void 0;d(this,o).message(e,r,n)}advance(e){return e&&("number"===typeof e?l(this,a,d(this,a)+e):"string"===typeof e?this.rest().startsWith(e)&&l(this,a,d(this,a)+e.length):l(this,a,d(this,a)+(e.index+e[0].length))),e}backoff(e){l(this,a,Math.max(d(this,s),d(this,a)-e))}match(e){return e.exec(this.rest())}lookingAt(e){const t=this.match(e);return 0===(null===t||void 0===t?void 0:t.index)?t:null}forceMatch(e){const t=this.match(e);if(!t)throw new Error(`match error: ${e} against ${JSON.stringify(this.rest())}`);return t}forceLookingAt(e){const t=this.lookingAt(e);if(!t)throw new Error(`match (lookingAt) error: ${e} against ${JSON.stringify(this.rest())}`);return t}peek(e){return d(this,r).substring(d(this,a),d(this,a)+e)}line(){const e=this.rest(),t=e.indexOf("\n");return e.substring(0,-1===t?e.length:t+1)}rest(){return d(this,r).substring(d(this,a),d(this,u))}substring(e,t){return d(this,r).substring(e,t)}eof(){return d(this,a)>=d(this,u)}offset(){return d(this,a)}endOffset(){return d(this,u)}resetOffset(e){l(this,a,e)}narrow(e,t,n=!1){d(this,c).push({prevLeft:d(this,s),prevRight:d(this,u),prevOffset:d(this,a)}),l(this,s,e),l(this,u,t),n||l(this,a,e)}widen(e=!1){const t=d(this,c).pop();t&&(l(this,s,t.prevLeft),l(this,u,t.prevRight),e||l(this,a,t.prevOffset))}},r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,u=new WeakMap,c=new WeakMap},23080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(82105);t.default=function(){this.Parser=(e,t)=>r.parse(t)}},23875:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.unescapeCodeInString=t.greaterElements=t.restrictionFor=t.OrgRegexUtils=void 0;function n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}t.OrgRegexUtils=class{constructor(e){this.options=e}linkPlainRe(){return`${this.linkTypesRe()}([^\\]\\[ \t\\n()<>]+(?:\\([\\w0-9_]+\\)|([^\\W \t\\n]|/)))`}linkTypesRe(){return"("+this.options.linkTypes.map(n).join("|")+"):"}objectRe(){return new RegExp(["(?:[_^][-{(*+.,\\p{Letter}\\p{Number}])",`[*~=+_/][^${this.options.emphasisRegexpComponents.border}]`,this.linkPlainRe(),["\\[(?:","fn:","|","\\[","|","[0-9]{4}-[0-9]{2}-[0-9]{2}","|","[0-9]*(?:%|/[0-9]*)\\]",")"].join(""),"@@","\\{\\{\\{",`<(?:%%|<|[0-9]|${this.linkTypesRe()})`,"\\$","\\\\(?:[a-zA-Z\\[\\(]|\\\\[ \\t]*$|_ +)","(?:call|src)_"].join("|"),"mu")}listItemRe(){return new RegExp("^(?<indent> *)(\\*|-|\\+|\\d+\\.|\\d+\\)|\\w\\.|\\w\\))( |\\n)")}fullListItemRe(){return/^(?<indent>[ \t]*)(?<bullet>(?:[-+*]|(?:[0-9]+|[A-Za-z])[.)])(?:[ \t]+|$))(?<counter_group>\[@(?:start:)?(?<counter>[0-9]+|[A-Za-z])\][ \t]*)?(?<checkbox_group>(?<checkbox>\[[ X-]\])(?:[ \t]+|$))?(?:(?<tag>.*?)[ \t]+::(?:[ \t]+|$))?/im}listEndRe(){return/^[ \t]*\n[ \t]*\n/m}paragraphSeparateRe(){const e=`[${[")","."].join("")}]`;return new RegExp(["^(?:",["\\*+ ","\\[fn:[-_\\w]+\\]","%%\\(","[ \\t]*(?:"+["$","\\|","\\+(?:-+\\+)+[ \t]*$","#(?: |$|\\+(?:begin_\\S+|\\S+(?:\\[.*\\])?:[ \\t]*))",":(?: |$|[-_\\w]+:[ \\t]*$)","-{5,}[ \\t]*$","\\\\begin\\{([A-Za-z0-9*]+)\\}","CLOCK:",`(?:[-+*]|(?:[0-9]+|[A-Za-z])${e})(?:[ \\t]|$)`].join("|")+")"].join("|"),")"].join(""),"mi")}subsuperscriptRe(){return new RegExp(`(\\S)([_^])((?:${e("\\{","\\}",this.options.matchSexpDepth,"inBraces")})|(?:${e("\\(","\\)",this.options.matchSexpDepth,"inBrackets")})|(?:\\*|[+-]?[\\p{L}\\d.,\\\\]*(?:\\p{L}|\\d)))`,"u");function e(e,t,n,r=""){const o=`[^${e}${t}]*?`;let i=`(?:${o}${e}${o}${t})+${o}`,a=o;for(let s=1;s<n;s++)a=`${a}|${i}`,i=`(?:${o}${e}${i}${t})+${o}`;return`${e}(${r?`?<${r}>`:""}${a})${t}`}}emphRe(){return this.emphTemplate("*/_+")}verbatimRe(){return this.emphTemplate("=~")}emphTemplate(e){const{pre:t,post:n,border:r,newline:o,body:i}=this.options.emphasisRegexpComponents;return new RegExp([`([${t}]|^)`,`(([${e}])([^${r}]|[^${r}]${o<=0?i:`${i}*?(?:\\n${i}*?){0,${o}}`}[^${r}])\\3)`,`([${n}]|$)`].join(""))}},t.restrictionFor=function(e){const t=new Set(["bold","code","entity","export-snippet","footnote-reference","inline-babel-call","inline-src-block","italic","line-break","latex-fragment","link","macro","radio-target","statistics-cookie","strike-through","subscript","superscript","table-cell","target","timestamp","underline","verbatim"]),n=new Set(["bold","code","entity","italic","latex-fragment","strike-through","subscript","superscript","underline","verbatim"]),r=new Set(t);r.delete("table-cell");const o=new Set(r);o.delete("line-break");const i=new Set(r);return i.delete("footnote-reference"),{bold:r,"footnote-reference":r,headline:o,inlinetask:o,italic:r,"list-item":o,keyword:i,link:new Set(["export-snippet","inline-babel-call","inline-src-block","macro","statistics-cookie",...n]),paragraph:r,"radio-target":n,"strike-through":r,subscript:r,superscript:r,"table-cell":new Set(["export-snippet","footnote-reference","link","macro","radio-target","target","timestamp",...n]),"table-row":new Set(["table-cell"]),underline:r,"verse-block":r}[e]},t.greaterElements=new Set(["center-block","drawer","dynamic-block","footnote-definition","inlinetask","list-item","plain-list","property-drawer","quote-block","section","special-block","table"]),t.unescapeCodeInString=function(e){return e.replace(/^[ \t]*,(,*)(\*|#\+)/gm,"$1$2")},t.escapeRegExp=n},42728:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(10559));e.exports=r.default},65126:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.orgToHast=void 0;const o=r(n(50914)),i=r(n(31742)),a={imageFilenameExtensions:["png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm","pnm","svg"]},s=new Set(["article","aside","audio","canvas","details","figcaption","figure","footer","header","menu","meter","nav","output","progress","section","summary","video"]);function u(e,t,n,r){var o;const a=i.default(t,n||{},r||[]),s=null===(o=null===e||void 0===e?void 0:e.data)||void 0===o?void 0:o.hProperties;return s&&(a.properties=Object.assign({},a.properties,s)),a}t.orgToHast=function(e,t={}){const n=Object.assign(Object.assign({},a),t);return function e(t){var r;if(Array.isArray(t))return t.map(e).filter((e=>null!==e&&void 0!==e)).flatMap((e=>Array.isArray(e)?e:[e]));const i=t;switch(i.type){case"org-data":return{type:"root",children:e(i.children)};case"section":{const t=i.children[0];return t.commented||t.tags.includes("noexport")?null:e(i.children)}case"headline":{const t=(e,t)=>e.flatMap((e=>[t,e])).slice(1),n=i.todoKeyword?[u(i,"span",{className:["todo-keyword",i.todoKeyword]},i.todoKeyword)," "]:null,r=i.priority?[u(i,"span",{className:["priority",`priority-${i.priority}`]},`[${i.priority}]`)," "]:null,a=i.tags.length?[o.default("text",{value:"\xa0\xa0\xa0"}),u(i,"span.tags",{},t(i.tags.map((e=>u(i,"span.tag",{className:`tag-${e}`},e))),"\xa0"))]:null;return u(i,`h${i.level}`,{},[n,r,e(i.children),a].filter((e=>e)))}case"plain-list":return"unordered"===i.listType?u(i,"ul",{},e(i.children)):"ordered"===i.listType?u(i,"ol",{},e(i.children)):u(i,"dl",{},e(i.children));case"list-item":return"list-item-tag"===(null===(r=i.children[0])||void 0===r?void 0:r.type)?[u(i,"dt",{},e(i.children[0].children)),u(i,"dd",{},e(i.children.slice(1)))]:u(i,"li",{},e(i.children));case"quote-block":return u(i,"blockquote",{},e(i.children));case"src-block":return u(i,"pre.src-block",{},u(i,"code",{className:i.language?`language-${i.language}`:void 0},c(i.value)));case"verse-block":return u(i,"pre.verse",{},e(i.children));case"center-block":return u(i,"div.center",{},e(i.children));case"comment-block":return null;case"example-block":return u(i,"div.exampe",{},i.value);case"export-block":return"html"===i.backend?o.default("raw",i.value):null;case"special-block":return s.has(i.blockType)?u(i,i.blockType,e(i.children)):u(i,"div",{className:["special-block",`block-${i.blockType}`]},e(i.children));case"keyword":return"HTML"===i.key?o.default("raw",i.value):null;case"horizontal-rule":return u(i,"hr",{});case"diary-sexp":return null;case"footnote-reference":case"footnote-definition":return null;case"paragraph":return u(i,"p",{},e(i.children));case"bold":return u(i,"strong",{},e(i.children));case"italic":return u(i,"em",{},e(i.children));case"superscript":return u(i,"sup",{},e(i.children));case"subscript":return u(i,"sub",{},e(i.children));case"code":return u(i,"code.inline-code",{},i.value);case"verbatim":return u(i,"code.inline-verbatim",{},i.value);case"strike-through":return u(i,"del",{},e(i.children));case"underline":return u(i,"span.underline",{style:"text-decoration: underline;"},e(i.children));case"text":return i.value;case"link":{let t=i.rawLink;"file"===i.linkType&&(t=encodeURI(t));const r=new RegExp(`.(${n.imageFilenameExtensions.join("|")})$`);return t.match(r)?u(i,"img",{src:t}):u(i,"a",{href:t},i.children.length?e(i.children):i.rawLink)}case"timestamp":return u(i,"span.timestamp",{},i.rawValue);case"planning":case"property-drawer":case"drawer":case"comment":return null;case"fixed-width":return u(i,"pre.fixed-width",{},i.value);case"clock":return null;case"latex-environment":return u(i,"div.math.math-display",{},i.value);case"latex-fragment":return u(i,"span.math.math-inline",{},i.contents.trim());case"entity":return o.default("text",{value:i.utf8});case"table":{const t=u(i,"table",{},[]);let n=!1,r=[];return i.children.forEach((o=>{"rule"===o.rowType&&(n?t.children.push(u(i,"tbody",e(r))):(t.children.push(u(i,"thead",{},r.map((t=>u(t,"tr",{},t.children.map((t=>u(t,"th",e(t.children))))))))),n=!0),r=[]),r.push(o)})),r.length&&t.children.push(u(i,"tbody",e(r))),t}case"table-row":return"standard"===i.rowType?u(i,"tr",e(i.children)):null;case"table-cell":return u(i,"td",e(i.children));default:return i}}(e)};const c=e=>{const t=e.split(/\n/g),n=Math.min(...t.map((e=>{var t,n;return null!==(n=null===(t=e.match(/\S/))||void 0===t?void 0:t.index)&&void 0!==n?n:1/0}))),r=n===1/0?0:n;return t.map((e=>e.substring(r))).join("\n")}},10559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(65126);t.default=function(){return function(e){return r.orgToHast(e)}}},77890:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.uniorgSlug=void 0;const o=r(n(62854)),i=r(n(69671)),a=n(26786);t.uniorgSlug=(e={})=>function(e,t){const n=new i.default;o.default(e,"section",(e=>{var t;const r=e.children[0],o=r.data=r.data||{},i=o.hProperties=o.hProperties||{};if(!i.id){const o=null!==(t=function(e){var t;const n=e.children.find((e=>"property-drawer"===e.type)),r=null===(t=null===n||void 0===n?void 0:n.children)||void 0===t?void 0:t.find((e=>"node-property"===e.type&&"CUSTOM_ID"===e.key));return null===r||void 0===r?void 0:r.value}(e))&&void 0!==t?t:n.slug(a.toString(r));i.id=o}}))},t.default=t.uniorgSlug},26786:function(e,t){"use strict";function n(e,t={}){return r(e)}function r(e){return e?Array.isArray(e)?o(e):"string"===typeof e.value?e.value:"children"in e?o(e.children):"":""}function o(e){return e.map(r).join("")}Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0,t.toString=n,t.default=n},50914:function(e){"use strict";e.exports=function(e,t,n){var r;null!==n&&void 0!==n||"object"===typeof t&&!Array.isArray(t)||(n=t,t={});r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!==n&&void 0!==n&&(r.value=String(n));return r}},33262:function(e,t,n){"use strict";var r=n(48145);e.exports=function(e,t,n){var o,i,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");o=e.children,a=o.length,t&&t.type&&(t=o.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(i=o[t],s(i,t,e))return i;return null}},48145:function(e){"use strict";function t(e){if(null==e)return n;if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if("object"===typeof e)return"length"in e?function(e){var n=[],r=-1;for(;++r<e.length;)n[r]=t(e[r]);return o;function o(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(e):function(e){return t;function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(){return!0}e.exports=t},75432:function(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"===typeof e||(e={}),o(e.line)+":"+o(e.column)}function r(e){return e&&"object"===typeof e||(e={}),n(e.start)+"-"+n(e.end)}function o(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return r(e.position);if(t.call(e,"start")||t.call(e,"end"))return r(e);if(t.call(e,"line")||t.call(e,"column"))return n(e);return""}},66750:function(e){e.exports=function(e){return e}},99294:function(e,t,n){"use strict";e.exports=u;var r=n(48145),o=n(66750),i=!0,a="skip",s=!1;function u(e,t,n,u){var c,l;"function"===typeof t&&"function"!==typeof n&&(u=n,n=t,t=null),l=r(t),c=u?-1:1,function e(r,d,f){var p,h="object"===typeof r&&null!==r?r:{};"string"===typeof h.type&&(p="string"===typeof h.tagName?h.tagName:"string"===typeof h.name?h.name:void 0,m.displayName="node ("+o(h.type+(p?"<"+p+">":""))+")");return m;function m(){var o,p,h=f.concat(r),m=[];if((!t||l(r,d,f[f.length-1]||null))&&(m=function(e){if(null!==e&&"object"===typeof e&&"length"in e)return e;if("number"===typeof e)return[i,e];return[e]}(n(r,f)))[0]===s)return m;if(r.children&&m[0]!==a)for(p=(u?r.children.length:-1)+c;p>-1&&p<r.children.length;){if((o=e(r.children[p],p,h)())[0]===s)return o;p="number"===typeof o[1]?o[1]:p+c}return m}}(e,null,[])()}u.CONTINUE=true,u.SKIP=a,u.EXIT=s},62854:function(e,t,n){"use strict";e.exports=s;var r=n(99294),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function s(e,t,n,o){"function"===typeof t&&"function"!==typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=a},14787:function(e){"use strict";e.exports=function(e){var t=String(e),n=[],r=/\r?\n|\r/g;for(;r.exec(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:o,toPosition:o,toOffset:function(e){var t,r=e&&e.line,o=e&&e.column;isNaN(r)||isNaN(o)||!(r-1 in n)||(t=(n[r-2]||0)+o-1||0);return t>-1&&t<n[n.length-1]?t:-1}};function o(e){var t=-1;if(e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{}}}},80734:function(e,t,n){"use strict";var r=n(75432);function o(){}e.exports=a,o.prototype=Error.prototype,a.prototype=new o;var i=a.prototype;function a(e,t,n){var o,i,a;"string"===typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),i=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},10939:function(e,t,n){"use strict";e.exports=n(65905)},45442:function(e,t,n){"use strict";var r=n(28064),o=n(54228),i=n(70529);e.exports=u;var a={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function u(e){var t,n;if(e){if("string"===typeof e||i(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof u))return new u(e);for(this.data={},this.messages=[],this.history=[],this.cwd=o.cwd(),n=-1;++n<s.length;)t=s[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)s.indexOf(t)<0&&(this[t]=e[t])}function c(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}u.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(u.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(u.prototype,"dirname",{get:function(){return"string"===typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(u.prototype,"basename",{get:function(){return"string"===typeof this.path?r.basename(this.path):void 0},set:function(e){l(e,"basename"),c(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(u.prototype,"extname",{get:function(){return"string"===typeof this.path?r.extname(this.path):void 0},set:function(e){if(c(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(u.prototype,"stem",{get:function(){return"string"===typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),c(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},65905:function(e,t,n){"use strict";var r=n(80734),o=n(45442);e.exports=o,o.prototype.message=function(e,t,n){var o=new r(e,t,n);this.path&&(o.name=this.path+":"+o.name,o.file=this.path);return o.fatal=!1,this.messages.push(o),o},o.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},28064:function(e,t){"use strict";function n(e){var t,n;return r(e),t=47===e.charCodeAt(0),(n=function(e,t){var n,r,o="",i=0,a=-1,s=0,u=-1;for(;++u<=e.length;){if(u<e.length)n=e.charCodeAt(u);else{if(47===n)break;n=47}if(47===n){if(a===u-1||1===s);else if(a!==u-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=u,s=0;continue}}else if(o.length){o="",i=0,a=u,s=0;continue}t&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(a+1,u):o=e.slice(a+1,u),i=u-a-1;a=u,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t)).length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,o,i,a,s=0,u=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(i){s=n+1;break}}else u<0&&(i=!0,u=n+1);return u<0?"":e.slice(s,u)}if(t===e)return"";o=-1,a=t.length-1;for(;n--;)if(47===e.charCodeAt(n)){if(i){s=n+1;break}}else o<0&&(i=!0,o=n+1),a>-1&&(e.charCodeAt(n)===t.charCodeAt(a--)?a<0&&(u=n):(a=-1,u=o));s===u?u=o:u<0&&(u=e.length);return e.slice(s,u)},t.dirname=function(e){var t,n,o;if(r(e),!e.length)return".";t=-1,o=e.length;for(;--o;)if(47===e.charCodeAt(o)){if(n){t=o;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,o,i=-1,a=0,s=-1,u=0;r(e),o=e.length;for(;o--;)if(47!==(n=e.charCodeAt(o)))s<0&&(t=!0,s=o+1),46===n?i<0?i=o:1!==u&&(u=1):i>-1&&(u=-1);else if(t){a=o+1;break}if(i<0||s<0||0===u||1===u&&i===s-1&&i===a+1)return"";return e.slice(i,s)},t.join=function(){var e,t=-1;for(;++t<arguments.length;)r(arguments[t]),arguments[t]&&(e=void 0===e?arguments[t]:e+"/"+arguments[t]);return void 0===e?".":n(e)},t.sep="/"},54228:function(e,t){"use strict";t.cwd=function(){return"/"}},70529:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},54992:function(e){"use strict";e.exports=JSON.parse('{"html":"http://www.w3.org/1999/xhtml","mathml":"http://www.w3.org/1998/Math/MathML","svg":"http://www.w3.org/2000/svg","xlink":"http://www.w3.org/1999/xlink","xml":"http://www.w3.org/XML/1998/namespace","xmlns":"http://www.w3.org/2000/xmlns/"}')},22663:function(e){function t(e){return e}e.exports=function(e,n){if(null==e)return e;var r=(n=n||{}).width||50,o="string"===typeof n.indent?n.indent:"  ",i=n.newline||"\n"+o,a="function"===typeof n.escape?n.escape:t,s=".{1,"+r+"}";!0!==n.cut&&(s+="([\\s\u200b]+|$)|[^\\s\u200b]+?([\\s\u200b]+|$)");var u=new RegExp(s,"g"),c=o+(e.match(u)||[]).map((function(e){return"\n"===e.slice(-1)&&(e=e.slice(0,e.length-1)),a(e)})).join(i);return!0===n.trim&&(c=c.replace(/[ \t]*$/gm,"")),c}},47529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty}}]);
\ No newline at end of file
diff --git a/out/_next/static/chunks/750-c7323136e055e0306399.js b/out/_next/static/chunks/750-c7323136e055e0306399.js
deleted file mode 100644
index 4685eed..0000000
--- a/out/_next/static/chunks/750-c7323136e055e0306399.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[750],{50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},92137:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,c,"next",e)}function c(e){r(a,o,i,s,c,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return o}})},22122:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},81253:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19756);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},34699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(82961);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},87329:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(50676);var o=n(82961);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},56769:function(e,t,n){"use strict";n.d(t,{UQ:function(){return R},KF:function(){return H},XE:function(){return F},Qd:function(){return j},Hk:function(){return B}});var r=n(70058),o=n(90063),i=n(2326),a=n(55284),s=n(29676),c=n(89384),u=n(15267),l=n(84461),d=n(73808),f=n(80658),p=n(28500),h=n(67294),m=n(21888),v=n(77581),g=n(51034),y=n(94577),b=n(72947),E=n(27277),_=n(47248);function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var[k,x,O,C]=(0,m.n)();function A(e){var{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i}=e,a=w(e,["onChange","defaultIndex","index","allowMultiple","allowToggle"]);!function(e){var t=e.index||e.defaultIndex,n=!(0,d.o8)(t)&&!(0,d.kJ)(t)&&e.allowMultiple;(0,f.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,f.ZK)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);var s=O(),[c,u]=(0,h.useState)(-1);(0,v.z)((()=>{u(-1)}));var[l,p]=(0,g.T)({value:r,defaultValue:()=>o?null!=n?n:[]:null!=n?n:-1,onChange:t});return{index:l,setIndex:p,htmlProps:a,getAccordionItemProps:e=>{var t=!1;null!==e&&(t=(0,d.kJ)(l)?l.includes(e):l===e);return{isOpen:t,onChange:t=>{if(null!==e)if(o&&(0,d.kJ)(l)){var n=t?(0,E.jX)(l,e):(0,E.cl)(l,e);p(n)}else t?p(e):i&&p(-1)}}},focusedIndex:c,setFocusedIndex:u,descendants:s}}var[S,M]=(0,p.k)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in `<Accordion />`"});function I(e){var{isDisabled:t,isFocusable:n,id:r}=e,o=w(e,["isDisabled","isFocusable","id"]),{getAccordionItemProps:i,setFocusedIndex:a}=M(),s=(0,h.useRef)(null),[c,u]=(0,y.ZS)(r,"accordion-button","accordion-panel");!function(e){(0,f.ZK)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n    "})}(e);var{register:d,index:p,descendants:m}=C({disabled:t&&!n}),{isOpen:v,onChange:g}=i(-1===p?null:p);!function(e){(0,f.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:v,isDisabled:t});var E=(0,h.useCallback)((()=>{null==g||g(!v),a(p)}),[p,a,v,g]),k=(0,h.useCallback)((e=>{var t={ArrowDown:()=>{var e=m.nextEnabled(p);e&&(0,_.T)(e.node)},ArrowUp:()=>{var e=m.prevEnabled(p);e&&(0,_.T)(e.node)},Home:()=>{var e=m.firstEnabled();e&&(0,_.T)(e.node)},End:()=>{var e=m.lastEnabled();e&&(0,_.T)(e.node)}}[(0,l.uh)(e)];t&&(e.preventDefault(),t(e))}),[m,p]),x=(0,h.useCallback)((()=>{a(p)}),[a,p]),O=(0,h.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),T({},e,{type:"button",ref:(0,b.l)(d,s,n),id:c,disabled:!!t,"aria-expanded":!!v,"aria-controls":u,onClick:(0,f.v0)(e.onClick,E),onFocus:(0,f.v0)(e.onFocus,x),onKeyDown:(0,f.v0)(e.onKeyDown,k)})}),[c,t,v,E,x,k,u,d]),A=(0,h.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),T({},e,{ref:t,role:"region",id:u,"aria-labelledby":c,hidden:!v})}),[c,v,u]);return{isOpen:v,isDisabled:t,isFocusable:n,onOpen:()=>{null==g||g(!0)},onClose:()=>{null==g||g(!1)},getButtonProps:O,getPanelProps:A,htmlProps:o}}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var R=(0,o.G)(((e,t)=>{var{children:n,reduceMotion:r}=e,o=N(e,["children","reduceMotion"]),u=(0,i.j)("Accordion",o),d=A((0,a.Lr)(o)),{htmlProps:f,descendants:p}=d,m=N(d,["htmlProps","descendants"]),v=h.useMemo((()=>P({},m,{reduceMotion:!!r})),[m,r]);return h.createElement(k,{value:p},h.createElement(S,{value:v},h.createElement(s.Fo,{value:u},h.createElement(c.m$.div,P({ref:t},f,{className:(0,l.cx)("chakra-accordion",o.className)}),n))))}));d.Ts&&(R.displayName="Accordion");var[L,D]=(0,p.k)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `<AccordionItem />` "}),j=(0,o.G)(((e,t)=>{var{children:n,className:r}=e,o=I(e),{htmlProps:i}=o,a=N(o,["htmlProps"]),u=P({},(0,s.yK)().container,{overflowAnchor:"none"}),d=h.useMemo((()=>a),[a]);return h.createElement(L,{value:d},h.createElement(c.m$.div,P({ref:t},i,{className:(0,l.cx)("chakra-accordion__item",r),__css:u}),(0,f.Pu)(n,{isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled})))}));d.Ts&&(j.displayName="AccordionItem");var H=(0,o.G)(((e,t)=>{var{getButtonProps:n}=D(),r=n(e,t),o=P({display:"flex",alignItems:"center",width:"100%",outline:0},(0,s.yK)().button);return h.createElement(c.m$.button,P({},r,{className:(0,l.cx)("chakra-accordion__button",e.className),__css:o}))}));d.Ts&&(H.displayName="AccordionButton");var B=(0,o.G)(((e,t)=>{var{reduceMotion:n}=M(),{getPanelProps:r,isOpen:o}=D(),i=r(e,t),a=(0,l.cx)("chakra-accordion__panel",e.className),d=(0,s.yK)();n||delete i.hidden;var f=h.createElement(c.m$.div,P({},i,{__css:d.panel,className:a}));return n?f:h.createElement(u.U,{in:o},f)}));d.Ts&&(B.displayName="AccordionPanel");var F=e=>{var{isOpen:t,isDisabled:n}=D(),{reduceMotion:o}=M(),i=(0,l.cx)("chakra-accordion__icon",e.className),a=P({opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:o?void 0:"transform 0.2s",transformOrigin:"center"},(0,s.yK)().icon);return h.createElement(r.J,P({viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a},e),h.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};d.Ts&&(F.displayName="AccordionIcon")},40419:function(e,t,n){"use strict";t.__esModule=!0,t.ButtonGroup=t.useButtonGroup=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,i.createContext)({strict:!1,name:"ButtonGroupContext"}),l=u[0],d=u[1];t.useButtonGroup=d;var f=(0,r.forwardRef)((function(e,t){var n=e.size,i=e.colorScheme,s=e.variant,u=e.className,d=e.spacing,f=void 0===d?"0.5rem":d,p=e.isAttached,h=e.isDisabled,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),v=(0,o.cx)("chakra-button__group",u),g=a.useMemo((function(){return{size:n,colorScheme:i,variant:s,isDisabled:h}}),[n,i,s,h]),y={display:"inline-flex"};return y=c({},y,p?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:f}}),a.createElement(l,{value:g},a.createElement(r.chakra.div,c({ref:t,role:"group",__css:y,className:v},m)))}));t.ButtonGroup=f,o.__DEV__&&(f.displayName="ButtonGroup")},24686:function(e,t,n){"use strict";t.__esModule=!0,t.Button=void 0;var r=n(19277),o=n(90716),i=n(48121),a=n(66751),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),c=n(40419);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=(0,i.forwardRef)((function(e,t){var n,o=(0,c.useButtonGroup)(),u=(0,i.useStyleConfig)("Button",d({},o,e)),f=(0,i.omitThemingProps)(e),m=f.isDisabled,v=void 0===m?null==o?void 0:o.isDisabled:m,g=f.isLoading,y=f.isActive,b=f.isFullWidth,E=f.children,_=f.leftIcon,T=f.rightIcon,w=f.loadingText,k=f.iconSpacing,x=void 0===k?"0.5rem":k,O=f.type,C=f.spinner,A=f.spinnerPlacement,S=void 0===A?"start":A,M=f.className,I=f.as,P=l(f,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),N=(0,a.mergeWith)({},null!=(n=null==u?void 0:u._focus)?n:{},{zIndex:1}),R=d({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:b?"100%":"auto"},u,!!o&&{_focus:N}),L=function(e){var t=s.useState(!e),n=t[0],r=t[1],o=s.useCallback((function(e){e&&r("BUTTON"===e.tagName)}),[]),i=n?"button":void 0;return{ref:o,type:i}}(I),D=L.ref,j=L.type;return s.createElement(i.chakra.button,d({disabled:v||g,ref:(0,r.mergeRefs)(t,D),as:I,type:null!=O?O:j,"data-active":(0,a.dataAttr)(y),"data-loading":(0,a.dataAttr)(g),__css:R,className:(0,a.cx)("chakra-button",M)},P),_&&!g&&s.createElement(p,{marginEnd:x},_),g&&"start"===S&&s.createElement(h,{className:"chakra-button__spinner--start",label:w,placement:"start"},C),g?w||s.createElement(i.chakra.span,{opacity:0},E):E,g&&"end"===S&&s.createElement(h,{className:"chakra-button__spinner--end",label:w,placement:"end"},C),T&&!g&&s.createElement(p,{marginStart:x},T))}));t.Button=f,a.__DEV__&&(f.displayName="Button");var p=function(e){var t=e.children,n=e.className,r=l(e,["children","className"]),o=s.isValidElement(t)?s.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,c=(0,a.cx)("chakra-button__icon",n);return s.createElement(i.chakra.span,d({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:c}),o)};a.__DEV__&&(p.displayName="ButtonIcon");var h=function(e){var t,n=e.label,r=e.placement,c=(e.spacing,e.children),u=void 0===c?s.createElement(o.Spinner,{color:"currentColor",width:"1em",height:"1em"}):c,f=e.className,p=e.__css,h=l(e,["label","placement","spacing","children","className","__css"]),m=(0,a.cx)("chakra-button__spinner",f),v=d(((t={display:"flex",alignItems:"center",position:n?"relative":"absolute"})["start"===r?"marginEnd":"marginStart"]=n?"0.5rem":0,t.fontSize="1em",t.lineHeight="normal",t),p);return s.createElement(i.chakra.div,d({className:m},h,{__css:v}),u)};a.__DEV__&&(h.displayName="ButtonSpinner")},84175:function(e,t,n){"use strict";t.__esModule=!0,t.IconButton=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(24686);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=e.icon,r=e.children,o=e.isRound,s=e["aria-label"],u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["icon","children","isRound","aria-label"]),l=n||r,d=i.isValidElement(l)?i.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return i.createElement(a.Button,c({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s},u),d)}));t.IconButton=u,o.__DEV__&&(u.displayName="IconButton")},46017:function(e,t,n){"use strict";t.__esModule=!0;var r=n(24686);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(40419);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(84175);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},40155:function(e,t,n){"use strict";n.d(t,{z:function(){return x}});var r=n(72947),o=n(70917),i=n(90063),a=n(2326),s=n(55284),c=n(89384),u=n(84461),l=n(73808),d=n(65415),f=n(67294);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=(0,o.keyframes)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),m=(0,i.G)(((e,t)=>{var n=(0,a.m)("Spinner",e),r=(0,s.Lr)(e),{label:o="Loading...",thickness:i="2px",speed:l="0.45s",emptyColor:m="transparent",className:v}=r,g=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["label","thickness","speed","emptyColor","className"]),y=(0,u.cx)("chakra-spinner",v),b=p({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:m,borderLeftColor:m,animation:h+" "+l+" linear infinite"},n);return f.createElement(c.m$.div,p({ref:t,__css:b,className:y},g),o&&f.createElement(d.TX,null,o))}));l.Ts&&(m.displayName="Spinner");var v=n(38554),g=n.n(v),y=n(28500);function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[E,_]=(0,y.k)({strict:!1,name:"ButtonGroupContext"}),T=(0,i.G)(((e,t)=>{var{size:n,colorScheme:r,variant:o,className:i,spacing:a="0.5rem",isAttached:s,isDisabled:l}=e,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),p=(0,u.cx)("chakra-button__group",i),h=f.useMemo((()=>({size:n,colorScheme:r,variant:o,isDisabled:l})),[n,r,o,l]),m={display:"inline-flex"};return m=b({},m,s?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:a}}),f.createElement(E,{value:h},f.createElement(c.m$.div,b({ref:t,role:"group",__css:m,className:p},d)))}));function w(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}l.Ts&&(T.displayName="ButtonGroup");var x=(0,i.G)(((e,t)=>{var n,o=_(),i=(0,a.m)("Button",k({},o,e)),l=(0,s.Lr)(e),{isDisabled:d=(null==o?void 0:o.isDisabled),isLoading:p,isActive:h,isFullWidth:m,children:v,leftIcon:y,rightIcon:b,loadingText:E,iconSpacing:T="0.5rem",type:x,spinner:A,spinnerPlacement:S="start",className:M,as:I}=l,P=w(l,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),N=g()({},null!=(n=null==i?void 0:i._focus)?n:{},{zIndex:1}),R=k({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:m?"100%":"auto"},i,!!o&&{_focus:N}),{ref:L,type:D}=function(e){var[t,n]=f.useState(!e),r=f.useCallback((e=>{e&&n("BUTTON"===e.tagName)}),[]),o=t?"button":void 0;return{ref:r,type:o}}(I);return f.createElement(c.m$.button,k({disabled:d||p,ref:(0,r.l)(t,L),as:I,type:null!=x?x:D,"data-active":(0,u.PB)(h),"data-loading":(0,u.PB)(p),__css:R,className:(0,u.cx)("chakra-button",M)},P),y&&!p&&f.createElement(O,{marginEnd:T},y),p&&"start"===S&&f.createElement(C,{className:"chakra-button__spinner--start",label:E,placement:"start"},A),p?E||f.createElement(c.m$.span,{opacity:0},v):v,p&&"end"===S&&f.createElement(C,{className:"chakra-button__spinner--end",label:E,placement:"end"},A),b&&!p&&f.createElement(O,{marginStart:T},b))}));l.Ts&&(x.displayName="Button");var O=e=>{var{children:t,className:n}=e,r=w(e,["children","className"]),o=f.isValidElement(t)?f.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=(0,u.cx)("chakra-button__icon",n);return f.createElement(c.m$.span,k({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:i}),o)};l.Ts&&(O.displayName="ButtonIcon");var C=e=>{var{label:t,placement:n,children:r=f.createElement(m,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:i}=e,a=w(e,["label","placement","spacing","children","className","__css"]),s=(0,u.cx)("chakra-button__spinner",o),l=k({display:"flex",alignItems:"center",position:t?"relative":"absolute",["start"===n?"marginEnd":"marginStart"]:t?"0.5rem":0,fontSize:"1em",lineHeight:"normal"},i);return f.createElement(c.m$.div,k({className:s},a,{__css:l}),r)};l.Ts&&(C.displayName="ButtonSpinner")},48420:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var r=n(90063),o=n(73808),i=n(67294),a=n(40155);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.G)(((e,t)=>{var{icon:n,children:r,isRound:o,"aria-label":c}=e,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["icon","children","isRound","aria-label"]),l=n||r,d=i.isValidElement(l)?i.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return i.createElement(a.z,s({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":c},u),d)}));o.Ts&&(c.displayName="IconButton")},45771:function(e,t,n){"use strict";t.__esModule=!0,t.ColorModeProvider=d,t.useColorModeValue=function(e,t){return"dark"===l().colorMode?t:e},t.LightMode=t.DarkMode=t.useColorMode=t.ColorModeContext=void 0;var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(77570),a=n(68346);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=o.createContext({});t.ColorModeContext=u,r.__DEV__&&(u.displayName="ColorModeContext");var l=function(){var e=o.useContext(u);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function d(e){var t=e.value,n=e.children,s=e.options,c=s.useSystemColorMode,l=s.initialColorMode,d=e.colorModeManager,f=void 0===d?a.localStorageManager:d,p=o.useState("cookie"===f.type?f.get(l):l),h=p[0],m=p[1];o.useEffect((function(){if(r.isBrowser&&"localStorage"===f.type){var e=c?(0,i.getColorScheme)(l):i.root.get()||f.get();e&&m(e)}}),[f,c,l]),o.useEffect((function(){var e="dark"===h;(0,i.syncBodyClassName)(e),i.root.set(e?"dark":"light")}),[h]);var v=o.useCallback((function(e){f.set(e),m(e)}),[f]),g=o.useCallback((function(){v("light"===h?"dark":"light")}),[h,v]);o.useEffect((function(){var e;return c&&(e=(0,i.addListener)(v)),function(){e&&c&&e()}}),[v,c]);var y=o.useMemo((function(){return{colorMode:null!=t?t:h,toggleColorMode:t?r.noop:g,setColorMode:t?r.noop:v}}),[h,v,g,t]);return o.createElement(u.Provider,{value:y},n)}t.useColorMode=l,r.__DEV__&&(d.displayName="ColorModeProvider");var f=function(e){return o.createElement(u.Provider,c({value:{colorMode:"dark",toggleColorMode:r.noop,setColorMode:r.noop}},e))};t.DarkMode=f,r.__DEV__&&(f.displayName="DarkMode");var p=function(e){return o.createElement(u.Provider,c({value:{colorMode:"light",toggleColorMode:r.noop,setColorMode:r.noop}},e))};t.LightMode=p,r.__DEV__&&(p.displayName="LightMode")},79002:function(e,t,n){"use strict";t.__esModule=!0,t.ColorModeScript=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){var t,n,r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";try{t=localStorage.getItem("chakra-ui-color-mode")}catch(o){console.log("Chakra UI: localStorage is not available. Color mode persistence might not work as expected")}(n="string"===typeof t?t:"system"===e?r:e)&&document.documentElement.style.setProperty("--chakra-ui-color-mode",n)}t.ColorModeScript=function(e){var t=e.initialColorMode,n=void 0===t?"light":t,o="("+String(i)+")('"+n+"')";return r.createElement("script",{nonce:e.nonce,dangerouslySetInnerHTML:{__html:o}})}},77570:function(e,t,n){"use strict";t.__esModule=!0,t.syncBodyClassName=function(e){var t=r.isBrowser?document.body:a;t.classList.add(e?i:o),t.classList.remove(e?o:i)},t.getColorScheme=function(e){var t;return(null!=(t=function(e){var t=null==window.matchMedia?void 0:window.matchMedia(e);if(!t)return;return!!t.media===t.matches}(s.dark))?t:"dark"===e)?"dark":"light"},t.addListener=function(e){if(!("matchMedia"in window))return r.noop;var t=window.matchMedia(s.dark),n=function(){e(t.matches?"dark":"light")};return n(),t.addListener(n),function(){t.removeListener(n)}},t.root=t.darkQuery=t.lightQuery=t.queries=void 0;var r=n(66751),o="chakra-ui-light",i="chakra-ui-dark",a={classList:{add:r.noop,remove:r.noop}};var s={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"};t.queries=s;var c=s.light;t.lightQuery=c;var u=s.dark;t.darkQuery=u;var l={get:function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")},set:function(e){r.isBrowser&&document.documentElement.style.setProperty("--chakra-ui-color-mode",e)}};t.root=l},12094:function(e,t,n){"use strict";t.__esModule=!0;var r=n(45771);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(68346);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(79002);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},68346:function(e,t,n){"use strict";t.__esModule=!0,t.cookieStorageManager=t.localStorageManager=t.storageKey=void 0;var r=n(66751),o=function(){return"undefined"!==typeof Storage},i="chakra-ui-color-mode";t.storageKey=i;var a={get:function(e){if(!o())return e;try{var t=localStorage.getItem(i);return null!=t?t:e}catch(n){return r.__DEV__&&console.log(n),e}},set:function(e){if(o())try{localStorage.setItem(i,e)}catch(t){r.__DEV__&&console.log(t)}},type:"localStorage"};t.localStorageManager=a;t.cookieStorageManager=function(e){return void 0===e&&(e=""),{get:function(t){var n=e.match(new RegExp("(^| )"+i+"=([^;]+)"));return n?n[2]:t},set:function(e){document.cookie=i+"="+e+"; max-age=31536000; path=/"},type:"cookie"}}},62300:function(e,t,n){"use strict";var r=n(89384),o=n(73808),i=n(67294);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=e=>{var{type:t="checkbox",_hover:n,_invalid:o,_disabled:s,_focus:c,_checked:u,_child:l={opacity:0},_checkedAndChild:d={opacity:1},_checkedAndDisabled:f,_checkedAndFocus:p,_checkedAndHover:h,children:m}=e,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["type","_hover","_invalid","_disabled","_focus","_checked","_child","_checkedAndChild","_checkedAndDisabled","_checkedAndFocus","_checkedAndHover","children"]),g="input[type="+t+"]:checked:disabled + &",y="input[type="+t+"]:checked:hover:not(:disabled) + &",b="input[type="+t+"]:checked:focus + &",E="input[type="+t+"]:disabled + &",_="input[type="+t+"]:focus + &",T="input[type="+t+"]:hover:not(:disabled):not(:checked) + &",w="input[type="+t+"]:checked + &, input[type="+t+"][aria-checked=mixed] + &",k="input[type="+t+"][aria-invalid=true] + &",x="& > *";return i.createElement(r.m$.div,a({},v,{"aria-hidden":!0,__css:{display:"inline-flex",alignItems:"center",justifyContent:"center",transitionProperty:"common",transitionDuration:"fast",flexShrink:0,[_]:c,[T]:n,[E]:s,[k]:o,[g]:f,[b]:p,[y]:h,[x]:l,[w]:a({},u,{[x]:d})}}),m)};o.Ts&&(s.displayName="ControlBox")},21888:function(e,t,n){"use strict";n.d(t,{n:function(){return m}});var r=n(28500),o=n(72947),i=n(67294);function a(e){return e.sort(((e,t)=>{var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function s(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function c(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}var u="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(){var e=this;d(this,"descendants",new Map),d(this,"register",(e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),d(this,"unregister",(e=>{this.descendants.delete(e);var t=a(Array.from(this.descendants.keys()));this.assignIndex(t)})),d(this,"destroy",(()=>{this.descendants.clear()})),d(this,"assignIndex",(e=>{this.descendants.forEach((t=>{var n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),d(this,"count",(()=>this.descendants.size)),d(this,"enabledCount",(()=>this.enabledValues().length)),d(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),d(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),d(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),d(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),d(this,"first",(()=>this.item(0))),d(this,"firstEnabled",(()=>this.enabledItem(0))),d(this,"last",(()=>this.item(this.descendants.size-1))),d(this,"lastEnabled",(()=>{var e=this.enabledValues().length-1;return this.enabledItem(e)})),d(this,"indexOf",(e=>{var t,n;return e&&null!=(t=null==(n=this.descendants.get(e))?void 0:n.index)?t:-1})),d(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),d(this,"next",(function(t,n){void 0===n&&(n=!0);var r=s(t,e.count(),n);return e.item(r)})),d(this,"nextEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}})),d(this,"prev",(function(t,n){void 0===n&&(n=!0);var r=c(t,e.count()-1,n);return e.item(r)})),d(this,"prevEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=c(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}})),d(this,"registerNode",((e,t)=>{if(e&&!this.descendants.has(e)){var n=a(Array.from(this.descendants.keys()).concat(e));null!=t&&t.disabled&&(t.disabled=!!t.disabled);var r=l({node:e,index:-1},t);this.descendants.set(e,r),this.assignIndex(n)}}))}}var[p,h]=(0,r.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function m(){return[p,()=>h(),()=>function(){var[e]=(0,i.useState)((()=>new f));return u((()=>()=>e.destroy())),e}(),e=>function(e){var t=h(),[n,r]=(0,i.useState)(-1),a=(0,i.useRef)(null);u((()=>()=>{a.current&&t.unregister(a.current)}),[]),u((()=>{if(a.current){var e=Number(a.current.dataset.index);n==e||Number.isNaN(e)||r(e)}}));var s=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(a.current),register:(0,o.l)(s,a)}}(e)]}},71312:function(e,t,n){"use strict";t.__esModule=!0,t.FormHelperText=t.FormControl=t.useFormControlContext=void 0;var r=n(81959),o=n(48121),i=n(66751),a=n(19277),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var d=(0,a.createContext)({strict:!1,name:"FormControlContext"}),f=d[0],p=d[1];t.useFormControlContext=p;var h=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("Form",e),c=function(e){var t=e.id,n=e.isRequired,o=e.isInvalid,c=e.isDisabled,d=e.isReadOnly,f=l(e,["id","isRequired","isInvalid","isDisabled","isReadOnly"]),p=(0,r.useId)(),h=t||"field-"+p,m=h+"-label",v=h+"-feedback",g=h+"-helptext",y=s.useState(!1),b=y[0],E=y[1],_=s.useState(!1),T=_[0],w=_[1],k=(0,r.useBoolean)(),x=k[0],O=k[1],C=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({id:g},e,{ref:(0,a.mergeRefs)(t,(function(e){e&&w(!0)}))})}),[g]),A=s.useCallback((function(e,t){var n,r;return void 0===e&&(e={}),void 0===t&&(t=null),u({},e,{ref:t,"data-focus":(0,i.dataAttr)(x),"data-disabled":(0,i.dataAttr)(c),"data-invalid":(0,i.dataAttr)(o),"data-readonly":(0,i.dataAttr)(d),id:null!=(n=e.id)?n:m,htmlFor:null!=(r=e.htmlFor)?r:h})}),[h,c,x,o,d,m]),S=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({id:v},e,{ref:(0,a.mergeRefs)(t,(function(e){e&&E(!0)})),"aria-live":"polite"})}),[v]),M=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({},e,f,{ref:t,role:"group"})}),[f]),I=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),u({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]),P=s.useCallback((function(){(0,i.scheduleMicrotask)(O.on)}),[O]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!d,isDisabled:!!c,isFocused:!!x,onFocus:P,onBlur:O.off,hasFeedbackText:b,setHasFeedbackText:E,hasHelpText:T,setHasHelpText:w,id:h,labelId:m,feedbackId:v,helpTextId:g,htmlProps:f,getHelpTextProps:C,getErrorMessageProps:S,getRootProps:M,getLabelProps:A,getRequiredIndicatorProps:I}}((0,o.omitThemingProps)(e)),d=c.getRootProps,p=(c.htmlProps,l(c,["getRootProps","htmlProps"])),h=(0,i.cx)("chakra-form-control",e.className),m=s.useMemo((function(){return p}),[p]);return s.createElement(f,{value:m},s.createElement(o.StylesProvider,{value:n},s.createElement(o.chakra.div,u({},d({},t),{className:h,__css:{width:"100%",position:"relative"}}))))}));t.FormControl=h,i.__DEV__&&(h.displayName="FormControl");var m=(0,o.forwardRef)((function(e,t){var n=p(),r=(0,o.useStyles)(),a=(0,i.cx)("chakra-form__helper-text",e.className);return s.createElement(o.chakra.div,u({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));t.FormHelperText=m,i.__DEV__&&(m.displayName="FormHelperText")},7609:function(e,t,n){"use strict";t.__esModule=!0,t.FormErrorIcon=t.FormErrorMessage=void 0;var r,o=(r=n(29559))&&r.__esModule?r:{default:r},i=n(48121),a=n(66751),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),c=n(71312);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=(0,i.forwardRef)((function(e,t){var n=(0,i.useMultiStyleConfig)("FormError",e),r=(0,i.omitThemingProps)(e),o=(0,c.useFormControlContext)();return null!=o&&o.isInvalid?s.createElement(i.StylesProvider,{value:n},s.createElement(i.chakra.div,l({},null==o?void 0:o.getErrorMessageProps(r,t),{className:(0,a.cx)("chakra-form__error-message",e.className),__css:l({display:"flex",alignItems:"center"},n.text)}))):null}));t.FormErrorMessage=d,a.__DEV__&&(d.displayName="FormErrorMessage");var f=(0,i.forwardRef)((function(e,t){var n=(0,i.useStyles)(),r=(0,c.useFormControlContext)();if(null==r||!r.isInvalid)return null;var u=(0,a.cx)("chakra-form__error-icon",e.className);return s.createElement(o.default,l({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:u}),s.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));t.FormErrorIcon=f,a.__DEV__&&(f.displayName="FormErrorIcon")},22786:function(e,t,n){"use strict";t.__esModule=!0,t.RequiredIndicator=t.FormLabel=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(71312);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n,s=(0,r.useStyleConfig)("FormLabel",e),u=(0,r.omitThemingProps)(e),d=(u.className,u.children),f=u.requiredIndicator,p=void 0===f?i.createElement(l,null):f,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(u,["className","children","requiredIndicator"]),m=(0,a.useFormControlContext)(),v=null!=(n=null==m?void 0:m.getLabelProps(h,t))?n:c({ref:t},h);return i.createElement(r.chakra.label,c({},v,{className:(0,o.cx)("chakra-form__label",u.className),__css:c({display:"block",textAlign:"start"},s)}),d,null!=m&&m.isRequired?p:null)}));t.FormLabel=u,o.__DEV__&&(u.displayName="FormLabel");var l=(0,r.forwardRef)((function(e,t){var n=(0,a.useFormControlContext)(),s=(0,r.useStyles)();if(null==n||!n.isRequired)return null;var u=(0,o.cx)("chakra-form__required-indicator",e.className);return i.createElement(r.chakra.span,c({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:s.requiredIndicator,className:u}))}));t.RequiredIndicator=l,o.__DEV__&&(l.displayName="RequiredIndicator")},88323:function(e,t,n){"use strict";t.__esModule=!0;var r=n(71312);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(436);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(7609);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(22786);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},436:function(e,t,n){"use strict";t.__esModule=!0,t.useFormControl=function(e){var t=s(e),n=t.isDisabled,o=t.isInvalid,c=t.isReadOnly,u=t.isRequired;return i({},a(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:c,required:u,"aria-invalid":(0,r.ariaAttr)(o),"aria-required":(0,r.ariaAttr)(u),"aria-readonly":(0,r.ariaAttr)(c)})},t.useFormControlProps=s;var r=n(66751),o=n(71312);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function s(e){var t,n,s,c=(0,o.useFormControlContext)(),u=e.id,l=e.disabled,d=e.readOnly,f=e.required,p=e.isRequired,h=e.isInvalid,m=e.isReadOnly,v=e.isDisabled,g=e.onFocus,y=e.onBlur,b=a(e,["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"]),E=[];return null!=c&&c.hasFeedbackText&&null!=c&&c.isInvalid&&E.push(c.feedbackId),null!=c&&c.hasHelpText&&E.push(c.helpTextId),i({},b,{"aria-describedby":E.join(" ")||void 0,id:null!=u?u:null==c?void 0:c.id,isDisabled:null!=(t=null!=l?l:v)?t:null==c?void 0:c.isDisabled,isReadOnly:null!=(n=null!=d?d:m)?n:null==c?void 0:c.isReadOnly,isRequired:null!=(s=null!=f?f:p)?s:null==c?void 0:c.isRequired,isInvalid:null!=h?h:null==c?void 0:c.isInvalid,onFocus:(0,r.callAllHandlers)(null==c?void 0:c.onFocus,g),onBlur:(0,r.callAllHandlers)(null==c?void 0:c.onBlur,y)})}},81959:function(e,t,n){"use strict";t.__esModule=!0;var r=n(59627);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(69038);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(26872);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(46903);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(6993);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c=n(75624);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var u=n(33243);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var l=n(97649);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(31948);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(33131);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(53498);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(19867);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(59457);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(92695);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(34281);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(8042);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(19679);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(24754);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var _=n(12166);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}));var T=n(89395);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var w=n(3267);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var k=n(26465);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[e]))}));var x=n(30474);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var O=n(129);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||(t[e]=O[e]))}));var C=n(70709);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||(t[e]=C[e]))}));var A=n(19197);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||(t[e]=A[e]))}));var S=n(43670);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||(t[e]=S[e]))}));var M=n(42093);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||(t[e]=M[e]))}));var I=n(52594);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||(t[e]=I[e]))}));var P=n(70005);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||(t[e]=P[e]))}))},59627:function(e,t,n){"use strict";t.__esModule=!0,t.useBoolean=function(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],o=t[1],i=(0,r.useCallback)((function(){o(!0)}),[]),a=(0,r.useCallback)((function(){o(!1)}),[]),s=(0,r.useCallback)((function(){o((function(e){return!e}))}),[]);return[n,{on:i,off:a,toggle:s}]};var r=n(67294)},69038:function(e,t,n){"use strict";t.__esModule=!0,t.useCallbackRef=function(e,t){void 0===t&&(t=[]);var n=r.useRef(e);return(0,o.useSafeLayoutEffect)((function(){n.current=e})),r.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)}),t)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(70709);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},26872:function(e,t,n){"use strict";t.__esModule=!0,t.useClipboard=function(e,t){void 0===t&&(t={});var n=(0,o.useState)(!1),r=n[0],a=n[1],s="number"===typeof t?{timeout:t}:t,c=s.timeout,u=void 0===c?1500:c,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,["timeout"]),d=(0,o.useCallback)((function(){var t=(0,i.default)(e,l);a(t)}),[e,l]);return(0,o.useEffect)((function(){var e=null;return r&&(e=window.setTimeout((function(){a(!1)}),u)),function(){e&&window.clearTimeout(e)}}),[u,r]),{value:e,onCopy:d,hasCopied:r}};var r,o=n(67294),i=(r=n(20640))&&r.__esModule?r:{default:r}},46903:function(e,t,n){"use strict";t.__esModule=!0,t.useConst=function(e){var t=(0,r.useRef)(null);null===t.current&&(t.current="function"===typeof e?e():e);return t.current};var r=n(67294)},6993:function(e,t,n){"use strict";t.__esModule=!0,t.useControllableProp=function(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]},t.useControllableState=function(e){var t=e.value,n=e.defaultValue,a=e.onChange,s=e.shouldUpdate,c=void 0===s?function(e,t){return e!==t}:s,u=(0,i.useCallbackRef)(a),l=(0,i.useCallbackRef)(c),d=o.useState(n),f=d[0],p=d[1],h=void 0!==t,m=h?t:f,v=o.useCallback((function(e){var t=(0,r.runIfFn)(e,m);l(m,t)&&(h||p(t),u(t))}),[h,u,m,l]);return[m,v]};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(69038);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},75624:function(e,t,n){"use strict";t.__esModule=!0,t.useDimensions=function(e,t){var n=r.useState(null),a=n[0],s=n[1],c=r.useRef();return(0,i.useSafeLayoutEffect)((function(){if(e.current){var n=e.current;return r(),t&&(window.addEventListener("resize",r),window.addEventListener("scroll",r)),function(){t&&(window.removeEventListener("resize",r),window.removeEventListener("scroll",r)),c.current&&cancelAnimationFrame(c.current)}}function r(){c.current=requestAnimationFrame((function(){var e=(0,o.getBox)(n);s(e)}))}}),[t]),a};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(66751),i=n(70709);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},33243:function(e,t,n){"use strict";t.__esModule=!0,t.useDisclosure=function(e){void 0===e&&(e={});var t=e,n=t.onClose,s=t.onOpen,u=t.isOpen,l=t.id,d=o.useState(e.defaultIsOpen||!1),f=d[0],p=d[1],h=(0,i.useControllableProp)(u,f),m=h[0],v=h[1],g=(0,a.useId)(l,"disclosure"),y=o.useCallback((function(){m||p(!1),null==n||n()}),[m,n]),b=o.useCallback((function(){m||p(!0),null==s||s()}),[m,s]),E=o.useCallback((function(){(v?y:b)()}),[v,b,y]);return{isOpen:!!v,onOpen:b,onClose:y,onToggle:E,isControlled:m,getButtonProps:function(e){return void 0===e&&(e={}),c({},e,{"aria-expanded":"true","aria-controls":g,onClick:(0,r.callAllHandlers)(e.onClick,E)})},getDisclosureProps:function(e){return void 0===e&&(e={}),c({},e,{hidden:!v,id:g})}}};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(6993),a=n(8042);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},97649:function(e,t,n){"use strict";t.__esModule=!0,t.useEventCallback=function(e){var t=r.useRef(e);return(0,o.useSafeLayoutEffect)((function(){t.current=e})),r.useCallback((function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.current.apply(t,[e].concat(r))}),[])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(70709);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},33131:function(e,t,n){"use strict";t.__esModule=!0,t.useEventListenerMap=function(){var e=o.useRef(new Map),t=e.current,n=o.useCallback((function(t,n,o,i){var a=(0,r.wrapPointerEventHandler)(o,"pointerdown"===n);e.current.set(o,{__listener:a,type:(0,r.getPointerEventName)(n),el:t,options:i}),t.addEventListener(n,a,i)}),[]),i=o.useCallback((function(t,n,r,o){var i=e.current.get(r).__listener;t.removeEventListener(n,i,o),e.current.delete(i)}),[]);return o.useEffect((function(){return function(){t.forEach((function(e,t){i(e.el,e.type,t,e.options)}))}}),[i,t]),{add:n,remove:i}};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},31948:function(e,t,n){"use strict";t.__esModule=!0,t.useEventListener=function(e,t,n,a){var s=(0,i.useCallbackRef)(t);return o.useEffect((function(){var t,o=null!=(t=(0,r.runIfFn)(n))?t:document;return o.addEventListener(e,s,a),function(){o.removeEventListener(e,s,a)}}),[e,n,a,s]),function(){var t;(null!=(t=(0,r.runIfFn)(n))?t:document).removeEventListener(e,s,a)}};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(69038);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},53498:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusEffect=function(e,t){var n=t.shouldFocus,i=t.preventScroll;(0,o.useUpdateEffect)((function(){var t=e.current;t&&n&&((0,r.hasFocusWithin)(t)||(0,r.focus)(t,{preventScroll:i,nextTick:!0}))}),[n,e,i])};var r=n(66751),o=n(52594)},19867:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnHide=function(e,t){var n=t.shouldFocus,i=t.visible,a=t.focusRef,s=n&&!i;(0,o.useUpdateEffect)((function(){if(s&&!function(e){var t=e.current;if(!t)return!1;var n=(0,r.getActiveElement)(t);return!!n&&(!(0,r.contains)(t,n)&&!!(0,r.isTabbable)(n))}(e)){var t=(null==a?void 0:a.current)||e.current;t&&(0,r.focus)(t,{nextTick:!0})}}),[s,e,a])};var r=n(66751),o=n(52594)},59457:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnPointerDown=function(e){var t=e.ref,n=e.elements,i=e.enabled,a=(0,r.detectBrowser)("Safari");(0,o.usePointerEvent)((function(){return(0,r.getOwnerDocument)(t.current)}),"pointerdown",(function(e){if(a&&i){var o=e.target,s=(null!=n?n:[t]).some((function(e){var t=(0,r.isRefObject)(e)?e.current:e;return(0,r.contains)(t,o)}));!(0,r.isActiveElement)(o)&&s&&(e.preventDefault(),(0,r.focus)(o))}}))};var r=n(66751),o=n(30474)},92695:function(e,t,n){"use strict";t.__esModule=!0,t.useFocusOnShow=function(e,t){void 0===t&&(t=s);var n=t,c=n.focusRef,u=n.preventScroll,l=n.shouldFocus,d=n.visible,f=(0,r.isRefObject)(e)?e.current:e,p=l&&d,h=(0,o.useCallback)((function(){if(f&&p&&!(0,r.contains)(f,document.activeElement))if(null!=c&&c.current)(0,r.focus)(c.current,{preventScroll:u,nextTick:!0});else{var e=(0,r.getAllFocusable)(f);e.length>0&&(0,r.focus)(e[0],{preventScroll:u,nextTick:!0})}}),[p,u,f,c]);(0,a.useUpdateEffect)((function(){h()}),[h]),(0,i.useEventListener)("transitionend",h,f)};var r=n(66751),o=n(67294),i=n(31948),a=n(52594),s={preventScroll:!0,shouldFocus:!1}},34281:function(e,t,n){"use strict";t.__esModule=!0,t.useForceUpdate=function(){var e=r.useRef(!1),t=r.useState(0),n=t[0],i=t[1];return(0,o.useUnmountEffect)((function(){e.current=!0})),r.useCallback((function(){e.current||i(n+1)}),[n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(42093);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},8042:function(e,t,n){"use strict";t.__esModule=!0,t.useId=c,t.useIds=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=c(e);return r.useMemo((function(){return n.map((function(e){return e+"-"+i}))}),[i,n])},t.useOptionalPart=function(e){var t=r.useState(null),n=t[0],o=t[1];return{ref:r.useCallback((function(t){o(t?e:null)}),[e]),id:n,isRendered:Boolean(n)}},t.IdProvider=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var i={prefix:Math.round(1e10*Math.random()),current:0},a=r.createContext(i),s=r.memo((function(e){var t=e.children,n=r.useContext(a),o=n===i,s=r.useMemo((function(){return{prefix:o?0:++n.prefix,current:0}}),[o,n]);return r.createElement(a.Provider,{value:s},t)}));function c(e,t){var n=r.useContext(a);return r.useMemo((function(){return e||[t,n.prefix,++n.current].filter(Boolean).join("-")}),[e,t])}t.IdProvider=s},19679:function(e,t,n){"use strict";t.__esModule=!0,t.useInterval=function(e,t){var n=(0,o.useCallbackRef)(e);r.useEffect((function(){var e=null;return null!==t&&(e=window.setInterval((function(){return n()}),t)),function(){e&&window.clearInterval(e)}}),[t,n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(69038);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},24754:function(e,t,n){"use strict";t.__esModule=!0,t.useLatestRef=function(e){var t=r.useRef(null);return t.current=e,t};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},12166:function(e,t,n){"use strict";t.__esModule=!0,t.assignRef=i,t.useMergeRefs=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){t&&i(t,e)}))}}),t)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}},89395:function(e,t,n){"use strict";t.__esModule=!0,t.useMouseDownRef=function(e){void 0===e&&(e=!0);var t=o.default.useRef();return(0,i.useEventListener)("mousedown",(function(n){e&&(t.current=n.target)})),t};var r,o=(r=n(67294))&&r.__esModule?r:{default:r},i=n(31948)},3267:function(e,t,n){"use strict";t.__esModule=!0,t.useOutsideClick=function(e){var t=e.ref,n=e.handler,s=(0,i.useCallbackRef)(n),c=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,o.useEffect)((function(){var e=function(e){a(e,t)&&(c.isPointerDown=!0)},o=function(e){c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&n&&a(e,t)&&(c.isPointerDown=!1,s(e))},i=function(e){c.ignoreEmulatedMouseEvents=!0,n&&c.isPointerDown&&a(e,t)&&(c.isPointerDown=!1,s(e))},u=(0,r.getOwnerDocument)(t.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",o,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",i,!0),function(){u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",o,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",i,!0)}}),[n,t,s,c])};var r=n(66751),o=n(67294),i=n(69038);function a(e,t){var n,o=e.target;if(e.button>0)return!1;if(o&&!(0,r.getOwnerDocument)(o).body.contains(o))return!1;return!(null!=(n=t.current)&&n.contains(o))}},26465:function(e,t,n){"use strict";t.__esModule=!0,t.usePanGesture=function(e,t){var n=t.onPan,s=t.onPanStart,c=t.onPanEnd,u=t.onPanSessionStart,l=t.onPanSessionEnd,d=Boolean(n||s||c||u||l),f=(0,o.useRef)(null),p={onSessionStart:u,onSessionEnd:l,onStart:s,onMove:n,onEnd:function(e,t){f.current=null,null==c||c(e,t)}};(0,o.useEffect)((function(){var e;null==(e=f.current)||e.updateHandlers(p)})),(0,i.usePointerEvent)((function(){return e.current}),"pointerdown",d?function(e){f.current=new r.PanSession(e,p)}:r.noop),(0,a.useUnmountEffect)((function(){var e;null==(e=f.current)||e.end(),f.current=null}))};var r=n(66751),o=n(67294),i=n(30474),a=n(42093)},30474:function(e,t,n){"use strict";t.__esModule=!0,t.usePointerEvent=function(e,t,n,i){return(0,o.useEventListener)((0,r.getPointerEventName)(t),(0,r.wrapPointerEventHandler)(n,"pointerdown"===t),e,i)};var r=n(66751),o=n(31948)},129:function(e,t,n){"use strict";t.__esModule=!0,t.usePrevious=function(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e}),[e]),t.current};var r=n(67294)},70709:function(e,t,n){"use strict";t.__esModule=!0,t.useSafeLayoutEffect=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var i=n(66751).isBrowser?r.useLayoutEffect:r.useEffect;t.useSafeLayoutEffect=i},19197:function(e,t,n){"use strict";t.__esModule=!0,t.useShortcut=function(e){void 0===e&&(e={});var t=e,n=t.timeout,o=void 0===n?300:n,i=t.preventDefault,a=void 0===i?function(){return!0}:i,s=r.useState([]),c=s[0],u=s[1],l=r.useRef(),d=function(){l.current&&(clearTimeout(l.current),l.current=null)},f=function(){d(),l.current=setTimeout((function(){u([]),l.current=null}),o)};return r.useEffect((function(){return d}),[]),function(e){return function(t){if("Backspace"===t.key){var n=[].concat(c);return n.pop(),void u(n)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var r=c.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),u(r),e(r.join("")),f()}}}};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},43670:function(e,t,n){"use strict";t.__esModule=!0,t.useTimeout=function(e,t){var n=(0,o.useCallbackRef)(e);r.useEffect((function(){if(null!=t){var e;return e=window.setTimeout((function(){n()}),t),function(){e&&window.clearTimeout(e)}}}),[t,n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(69038);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},42093:function(e,t,n){"use strict";t.__esModule=!0,t.useUnmountEffect=function(e,t){void 0===t&&(t=[]);return r.useEffect((function(){return function(){return e()}}),t)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},52594:function(e,t,n){"use strict";t.__esModule=!0,t.useUpdateEffect=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}t.useUpdateEffect=function(e,t){var n=r.useRef(!1);return r.useEffect((function(){if(n.current)return e();n.current=!0}),t),n.current}},70005:function(e,t,n){"use strict";t.__esModule=!0,t.useWhyDidYouUpdate=function(e,t){var n=r.useRef();r.useEffect((function(){if(n.current){var r=Object.keys(i({},n.current,t)),o={};r.forEach((function(e){n.current[e]!==t[e]&&(o[e]={from:n.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}n.current=t}))};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},90639:function(e,t,n){"use strict";n.d(t,{k:function(){return o}});var r=n(67294);function o(e){void 0===e&&(e=!1);var[t,n]=(0,r.useState)(e);return[t,{on:(0,r.useCallback)((()=>{n(!0)}),[]),off:(0,r.useCallback)((()=>{n(!1)}),[]),toggle:(0,r.useCallback)((()=>{n((e=>!e))}),[])}]}},10762:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(67294),o=n(68327);function i(e,t){void 0===t&&(t=[]);var n=r.useRef(e);return(0,o.G)((()=>{n.current=e})),r.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),t)}},51034:function(e,t,n){"use strict";n.d(t,{p:function(){return a},T:function(){return s}});var r=n(80658),o=n(67294),i=n(10762);function a(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]}function s(e){var{value:t,defaultValue:n,onChange:a,shouldUpdate:s=((e,t)=>e!==t)}=e,c=(0,i.W)(a),u=(0,i.W)(s),[l,d]=o.useState(n),f=void 0!==t,p=f?t:l,h=o.useCallback((e=>{var t=(0,r.Pu)(e,p);u(p,t)&&(f||d(t),c(t))}),[f,c,p,u]);return[p,h]}},74860:function(e,t,n){"use strict";n.d(t,{q:function(){return c}});var r=n(80658),o=n(67294),i=n(51034),a=n(94577);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){void 0===e&&(e={});var{onClose:t,onOpen:n,isOpen:c,id:u}=e,[l,d]=o.useState(e.defaultIsOpen||!1),[f,p]=(0,i.p)(c,l),h=(0,a.Me)(u,"disclosure"),m=o.useCallback((()=>{f||d(!1),null==t||t()}),[f,t]),v=o.useCallback((()=>{f||d(!0),null==n||n()}),[f,n]),g=o.useCallback((()=>{(p?m:v)()}),[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:g,isControlled:f,getButtonProps:function(e){return void 0===e&&(e={}),s({},e,{"aria-expanded":"true","aria-controls":h,onClick:(0,r.v0)(e.onClick,g)})},getDisclosureProps:function(e){return void 0===e&&(e={}),s({},e,{hidden:!p,id:h})}}}},34941:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(80658),o=n(67294),i=n(10762);function a(e,t,n,a){var s=(0,i.W)(t);return o.useEffect((()=>{var t,o=null!=(t=(0,r.Pu)(n))?t:document;return o.addEventListener(e,s,a),()=>{o.removeEventListener(e,s,a)}}),[e,n,a,s]),()=>{var t;(null!=(t=(0,r.Pu)(n))?t:document).removeEventListener(e,s,a)}}},68327:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(67294),o=n(84461).jU?r.useLayoutEffect:r.useEffect},77581:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(67294);function o(e,t){return void 0===t&&(t=[]),r.useEffect((()=>()=>e()),t)}},22653:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67294),o=(e,t)=>{var n=r.useRef(!1);return r.useEffect((()=>{if(n.current)return e();n.current=!0}),t),n.current}},87474:function(e,t,n){"use strict";t.__esModule=!0,t.createIcon=function(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,s=e.d,u=e.path,l=e.displayName,d=e.defaultProps,f=void 0===d?{}:d,p=(0,r.forwardRef)((function(e,t){return i.createElement(a.Icon,c({ref:t,viewBox:n},f,e),null!=u?u:i.createElement("path",{fill:"currentColor",d:s}))}));o.__DEV__&&(p.displayName=l);return p};var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(41120);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},41120:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.Icon=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={path:i.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},i.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),i.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),i.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},u=(0,r.forwardRef)((function(e,t){var n=e.as,a=e.viewBox,u=e.color,l=void 0===u?"currentColor":u,d=e.focusable,f=void 0!==d&&d,p=e.children,h=e.className,m=e.__css,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["as","viewBox","color","focusable","children","className","__css"]),g={ref:t,focusable:f,className:(0,o.cx)("chakra-icon",h),__css:s({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l},m)},y=null!=a?a:c.viewBox;if(n&&"string"!==typeof n)return i.createElement(r.chakra.svg,s({as:n},g,v));var b=null!=p?p:c.path;return i.createElement(r.chakra.svg,s({verticalAlign:"middle",viewBox:y},g,v),b)}));t.Icon=u,o.__DEV__&&(u.displayName="Icon");var l=u;t.default=l},29559:function(e,t,n){"use strict";t.__esModule=!0;var r={};t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(41120));t.default=o.default,Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(87474);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}))},89867:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(90063),o=n(73808),i=n(67294),a=n(70058);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){var{viewBox:t="0 0 24 24",d:n,path:c,displayName:u,defaultProps:l={}}=e,d=(0,r.G)(((e,r)=>i.createElement(a.J,s({ref:r,viewBox:t},l,e),null!=c?c:i.createElement("path",{fill:"currentColor",d:n}))));return o.Ts&&(d.displayName=u),d}},70058:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(90063),o=n(89384),i=n(84461),a=n(73808),s=n(67294);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u={path:s.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},s.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),s.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),s.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},l=(0,r.G)(((e,t)=>{var{as:n,viewBox:r,color:a="currentColor",focusable:l=!1,children:d,className:f,__css:p}=e,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["as","viewBox","color","focusable","children","className","__css"]),m={ref:t,focusable:l,className:(0,i.cx)("chakra-icon",f),__css:c({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},p)},v=null!=r?r:u.viewBox;if(n&&"string"!==typeof n)return s.createElement(o.m$.svg,c({as:n},m,h));var g=null!=d?d:u.path;return s.createElement(o.m$.svg,c({verticalAlign:"middle",viewBox:v},m,h),g)}));a.Ts&&(l.displayName="Icon")},79095:function(e,t,n){"use strict";t.__esModule=!0,t.AddIcon=void 0;var r=(0,n(29559).createIcon)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});t.AddIcon=r},41725:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowBackIcon=void 0;var r=(0,n(29559).createIcon)({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});t.ArrowBackIcon=r},16748:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowDownIcon=void 0;var r=(0,n(29559).createIcon)({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});t.ArrowDownIcon=r},75616:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowForwardIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});t.ArrowForwardIcon=r},30820:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowLeftIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ArrowLeftIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),o.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))});t.ArrowLeftIcon=a},57243:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowRightIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ArrowRightIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),o.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))});t.ArrowRightIcon=a},38677:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});t.ArrowUpIcon=r},94707:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowUpDownIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});t.ArrowUpDownIcon=r},64551:function(e,t,n){"use strict";t.__esModule=!0,t.AtSignIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});t.AtSignIcon=r},78281:function(e,t,n){"use strict";t.__esModule=!0,t.AttachmentIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});t.AttachmentIcon=r},94688:function(e,t,n){"use strict";t.__esModule=!0,t.BellIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});t.BellIcon=r},51713:function(e,t,n){"use strict";t.__esModule=!0,t.CalendarIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});t.CalendarIcon=r},92547:function(e,t,n){"use strict";t.__esModule=!0,t.ChatIcon=void 0;var r=(0,n(29559).createIcon)({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});t.ChatIcon=r},26324:function(e,t,n){"use strict";t.__esModule=!0,t.CheckIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({viewBox:"0 0 14 14",path:o.createElement("g",{fill:"currentColor"},o.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))});t.CheckIcon=a},91204:function(e,t,n){"use strict";t.__esModule=!0,t.CheckCircleIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});t.CheckCircleIcon=r},62628:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronDownIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});t.ChevronDownIcon=r},65128:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronLeftIcon=void 0;var r=(0,n(29559).createIcon)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});t.ChevronLeftIcon=r},7659:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronRightIcon=void 0;var r=(0,n(29559).createIcon)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});t.ChevronRightIcon=r},48959:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});t.ChevronUpIcon=r},34066:function(e,t,n){"use strict";t.__esModule=!0,t.CloseIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});t.CloseIcon=r},68789:function(e,t,n){"use strict";t.__esModule=!0,t.CopyIcon=void 0;var r=(0,n(29559).createIcon)({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});t.CopyIcon=r},60915:function(e,t,n){"use strict";t.__esModule=!0,t.DeleteIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"DeleteIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))});t.DeleteIcon=a},5013:function(e,t,n){"use strict";t.__esModule=!0,t.DownloadIcon=void 0;var r=(0,n(29559).createIcon)({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});t.DownloadIcon=r},54411:function(e,t,n){"use strict";t.__esModule=!0,t.DragHandleIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});t.DragHandleIcon=r},27915:function(e,t,n){"use strict";t.__esModule=!0,t.EditIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"EditIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))});t.EditIcon=a},9079:function(e,t,n){"use strict";t.__esModule=!0,t.EmailIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"EmailIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),o.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))});t.EmailIcon=a},59096:function(e,t,n){"use strict";t.__esModule=!0,t.ExternalLinkIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ExternalLinkIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("path",{d:"M15 3h6v6"}),o.createElement("path",{d:"M10 14L21 3"}))});t.ExternalLinkIcon=a},14122:function(e,t,n){"use strict";t.__esModule=!0,t.HamburgerIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});t.HamburgerIcon=r},49537:function(e,t,n){"use strict";t.__esModule=!0,t.InfoIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});t.InfoIcon=r},20883:function(e,t,n){"use strict";t.__esModule=!0,t.InfoOutlineIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"InfoOutlineIcon",path:o.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},o.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),o.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),o.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))});t.InfoOutlineIcon=a},25929:function(e,t,n){"use strict";t.__esModule=!0,t.LinkIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"LinkIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),o.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))});t.LinkIcon=a},81971:function(e,t,n){"use strict";t.__esModule=!0,t.LockIcon=void 0;var r=(0,n(29559).createIcon)({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});t.LockIcon=r},49888:function(e,t,n){"use strict";t.__esModule=!0,t.MinusIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"MinusIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});t.MinusIcon=a},38054:function(e,t,n){"use strict";t.__esModule=!0,t.MoonIcon=void 0;var r=(0,n(29559).createIcon)({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});t.MoonIcon=r},7846:function(e,t,n){"use strict";t.__esModule=!0,t.NotAllowedIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});t.NotAllowedIcon=r},98271:function(e,t,n){"use strict";t.__esModule=!0,t.PhoneIcon=void 0;var r=(0,n(29559).createIcon)({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});t.PhoneIcon=r},12779:function(e,t,n){"use strict";t.__esModule=!0,t.PlusSquareIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"PlusSquareIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),o.createElement("path",{d:"M12 8v8"}),o.createElement("path",{d:"M8 12h8"}))});t.PlusSquareIcon=a},93942:function(e,t,n){"use strict";t.__esModule=!0,t.QuestionIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});t.QuestionIcon=r},43370:function(e,t,n){"use strict";t.__esModule=!0,t.QuestionOutlineIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"QuestionOutlineIcon",path:o.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},o.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),o.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),o.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))});t.QuestionOutlineIcon=a},46889:function(e,t,n){"use strict";t.__esModule=!0,t.RepeatIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"RepeatIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),o.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))});t.RepeatIcon=a},46364:function(e,t,n){"use strict";t.__esModule=!0,t.RepeatClockIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"RepeatClockIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),o.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))});t.RepeatClockIcon=a},43761:function(e,t,n){"use strict";t.__esModule=!0,t.SearchIcon=void 0;var r=(0,n(29559).createIcon)({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});t.SearchIcon=r},66264:function(e,t,n){"use strict";t.__esModule=!0,t.Search2Icon=void 0;var r=(0,n(29559).createIcon)({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});t.Search2Icon=r},11375:function(e,t,n){"use strict";t.__esModule=!0,t.SettingsIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});t.SettingsIcon=r},23961:function(e,t,n){"use strict";t.__esModule=!0,t.SmallAddIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:o.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});t.SmallAddIcon=a},2746:function(e,t,n){"use strict";t.__esModule=!0,t.SmallCloseIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:o.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});t.SmallCloseIcon=a},28317:function(e,t,n){"use strict";t.__esModule=!0,t.SpinnerIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SpinnerIcon",path:o.createElement(o.Fragment,null,o.createElement("defs",null,o.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},o.createElement("stop",{stopColor:"currentColor",offset:"0%"}),o.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),o.createElement("g",{transform:"translate(2)",fill:"none"},o.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),o.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),o.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))});t.SpinnerIcon=a},82190:function(e,t,n){"use strict";t.__esModule=!0,t.StarIcon=void 0;var r=(0,n(29559).createIcon)({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});t.StarIcon=r},71033:function(e,t,n){"use strict";t.__esModule=!0,t.SunIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SunIcon",path:o.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},o.createElement("circle",{cx:"12",cy:"12",r:"5"}),o.createElement("path",{d:"M12 1v2"}),o.createElement("path",{d:"M12 21v2"}),o.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),o.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),o.createElement("path",{d:"M1 12h2"}),o.createElement("path",{d:"M21 12h2"}),o.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),o.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});t.SunIcon=a},40430:function(e,t,n){"use strict";t.__esModule=!0,t.TimeIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"TimeIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),o.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))});t.TimeIcon=a},33670:function(e,t,n){"use strict";t.__esModule=!0,t.TriangleDownIcon=void 0;var r=(0,n(29559).createIcon)({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});t.TriangleDownIcon=r},27258:function(e,t,n){"use strict";t.__esModule=!0,t.TriangleUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});t.TriangleUpIcon=r},82125:function(e,t,n){"use strict";t.__esModule=!0,t.UnlockIcon=void 0;var r=(0,n(29559).createIcon)({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});t.UnlockIcon=r},48690:function(e,t,n){"use strict";t.__esModule=!0,t.UpDownIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});t.UpDownIcon=r},74624:function(e,t,n){"use strict";t.__esModule=!0,t.ViewIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ViewIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),o.createElement("circle",{cx:"12",cy:"12",r:"2"}))});t.ViewIcon=a},25766:function(e,t,n){"use strict";t.__esModule=!0,t.ViewOffIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ViewOffIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),o.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});t.ViewOffIcon=a},7265:function(e,t,n){"use strict";t.__esModule=!0,t.WarningIcon=void 0;var r=(0,n(29559).createIcon)({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});t.WarningIcon=r},34237:function(e,t,n){"use strict";t.__esModule=!0,t.WarningTwoIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});t.WarningTwoIcon=r},71018:function(e,t,n){"use strict";t.__esModule=!0;var r=n(68789);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(43761);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(66264);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(38054);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(71033);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c=n(79095);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var u=n(23961);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var l=n(11375);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(91204);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(81971);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(82125);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(74624);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(25766);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(5013);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(60915);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(46889);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(46364);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(27915);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var _=n(65128);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}));var T=n(7659);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var w=n(62628);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var k=n(48959);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[e]))}));var x=n(41725);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var O=n(75616);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||(t[e]=O[e]))}));var C=n(38677);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||(t[e]=C[e]))}));var A=n(94707);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||(t[e]=A[e]))}));var S=n(16748);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||(t[e]=S[e]))}));var M=n(59096);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||(t[e]=M[e]))}));var I=n(25929);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||(t[e]=I[e]))}));var P=n(12779);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||(t[e]=P[e]))}));var N=n(51713);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||(t[e]=N[e]))}));var R=n(92547);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||(t[e]=R[e]))}));var L=n(40430);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||(t[e]=L[e]))}));var D=n(57243);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||(t[e]=D[e]))}));var j=n(30820);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||(t[e]=j[e]))}));var H=n(64551);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||(t[e]=H[e]))}));var B=n(78281);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||(t[e]=B[e]))}));var F=n(48690);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||(t[e]=F[e]))}));var U=n(82190);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||(t[e]=U[e]))}));var z=n(9079);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||(t[e]=z[e]))}));var V=n(98271);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||(t[e]=V[e]))}));var G=n(54411);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||(t[e]=G[e]))}));var W=n(28317);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||(t[e]=W[e]))}));var K=n(34066);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||(t[e]=K[e]))}));var q=n(2746);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||(t[e]=q[e]))}));var Y=n(7846);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||(t[e]=Y[e]))}));var Z=n(33670);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||(t[e]=Z[e]))}));var $=n(27258);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||(t[e]=$[e]))}));var X=n(20883);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||(t[e]=X[e]))}));var Q=n(94688);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||(t[e]=Q[e]))}));var J=n(49537);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||(t[e]=J[e]))}));var ee=n(93942);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||(t[e]=ee[e]))}));var te=n(43370);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||(t[e]=te[e]))}));var ne=n(7265);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||(t[e]=ne[e]))}));var re=n(34237);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||(t[e]=re[e]))}));var oe=n(26324);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||(t[e]=oe[e]))}));var ie=n(49888);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||(t[e]=ie[e]))}));var ae=n(14122);Object.keys(ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||(t[e]=ae[e]))}));var se=n(29559);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||(t[e]=se[e]))}))},50862:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r=(0,n(89867).I)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"})},93441:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ArrowRightIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),o.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))})},6569:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=(0,n(89867).I)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},35255:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=(0,n(89867).I)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"})},56884:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var r=(0,n(89867).I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},48931:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r=(0,n(89867).I)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},2827:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"DeleteIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))})},46617:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"EditIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))})},68928:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ExternalLinkIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("path",{d:"M15 3h6v6"}),o.createElement("path",{d:"M10 14L21 3"}))})},24189:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"InfoOutlineIcon",path:o.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},o.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),o.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),o.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))})},94030:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"PlusSquareIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),o.createElement("path",{d:"M12 8v8"}),o.createElement("path",{d:"M8 12h8"}))})},67546:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"RepeatIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),o.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))})},83986:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"RepeatClockIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),o.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))})},93924:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var r=(0,n(89867).I)({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"})},55830:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ViewIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),o.createElement("circle",{cx:"12",cy:"12",r:"2"}))})},87409:function(e,t,n){"use strict";t.__esModule=!0;var r=n(35236);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(8471);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(89216);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(52832);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},8471:function(e,t,n){"use strict";t.__esModule=!0,t.InputRightAddon=t.InputLeftAddon=t.InputAddon=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},u=(0,r.chakra)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),l=(0,r.forwardRef)((function(e,t){var n,o=e.placement,a=void 0===o?"left":o,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["placement"]),d=null!=(n=c[a])?n:{},f=(0,r.useStyles)();return i.createElement(u,s({ref:t},l,{__css:s({},f.addon,d)}))}));t.InputAddon=l,o.__DEV__&&(l.displayName="InputAddon");var d=(0,r.forwardRef)((function(e,t){return i.createElement(l,s({ref:t,placement:"left"},e,{className:(0,o.cx)("chakra-input__left-addon",e.className)}))}));t.InputLeftAddon=d,o.__DEV__&&(d.displayName="InputLeftAddon"),d.id="InputLeftAddon";var f=(0,r.forwardRef)((function(e,t){return i.createElement(l,s({ref:t,placement:"right"},e,{className:(0,o.cx)("chakra-input__right-addon",e.className)}))}));t.InputRightAddon=f,o.__DEV__&&(f.displayName="InputRightAddon"),f.id="InputRightAddon"},52832:function(e,t,n){"use strict";t.__esModule=!0,t.InputRightElement=t.InputLeftElement=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var u=(0,r.chakra)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),l=(0,r.forwardRef)((function(e,t){var n,o,a,l=e.placement,d=void 0===l?"left":l,f=c(e,["placement"]),p=(0,r.useStyles)().field,h=((a={})["left"===d?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==p?void 0:p.height)?n:null==p?void 0:p.h,a.height=null!=(o=null==p?void 0:p.height)?o:null==p?void 0:p.h,a.fontSize=null==p?void 0:p.fontSize,a);return i.createElement(u,s({ref:t,__css:h},f))}));l.id="InputElement",o.__DEV__&&(l.displayName="InputElement");var d=(0,r.forwardRef)((function(e,t){var n=e.className,r=c(e,["className"]),a=(0,o.cx)("chakra-input__left-element",n);return i.createElement(l,s({ref:t,placement:"left",className:a},r))}));t.InputLeftElement=d,d.id="InputLeftElement",o.__DEV__&&(d.displayName="InputLeftElement");var f=(0,r.forwardRef)((function(e,t){var n=e.className,r=c(e,["className"]),a=(0,o.cx)("chakra-input__right-element",n);return i.createElement(l,s({ref:t,placement:"right",className:a},r))}));t.InputRightElement=f,f.id="InputRightElement",o.__DEV__&&(f.displayName="InputRightElement")},89216:function(e,t,n){"use strict";t.__esModule=!0,t.InputGroup=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useMultiStyleConfig)("Input",e),s=(0,r.omitThemingProps)(e),u=s.children,l=s.className,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,["children","className"]),f=(0,o.cx)("chakra-input__group",l),p={},h=(0,i.getValidChildren)(u),m=n.field;h.forEach((function(e){if(n){var t,r;if(m&&"InputLeftElement"===e.type.id)p.paddingStart=null!=(t=m.height)?t:m.h;if(m&&"InputRightElement"===e.type.id)p.paddingEnd=null!=(r=m.height)?r:m.h;"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0)}}));var v=h.map((function(t){var n,r,o={size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant};return"Input"!==t.type.id?a.cloneElement(t,o):a.cloneElement(t,Object.assign(o,p,t.props))}));return a.createElement(r.chakra.div,c({className:f,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},d),a.createElement(r.StylesProvider,{value:n},v))}));t.InputGroup=u,o.__DEV__&&(u.displayName="InputGroup")},35236:function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var r=n(88323),o=n(48121),i=n(66751),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("Input",e),s=(0,o.omitThemingProps)(e),u=(0,r.useFormControl)(s),l=(0,i.cx)("chakra-input",e.className);return a.createElement(o.chakra.input,c({},u,{__css:n.field,ref:t,className:l}))}));t.Input=u,i.__DEV__&&(u.displayName="Input"),u.id="Input"},74770:function(e,t,n){"use strict";t.__esModule=!0,t.AspectRatio=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=e.ratio,a=void 0===n?4/3:n,c=e.children,u=e.className,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["ratio","children","className"]),d=i.Children.only(c),f=(0,o.cx)("chakra-aspect-ratio",u);return i.createElement(r.chakra.div,s({ref:t,position:"relative",className:f,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.mapResponsive)(a,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},l),d)}));t.AspectRatio=c,o.__DEV__&&(c.displayName="AspectRatio")},63061:function(e,t,n){"use strict";t.__esModule=!0,t.Badge=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Badge",e),a=(0,r.omitThemingProps)(e),c=(a.className,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.span,s({ref:t,className:(0,o.cx)("chakra-badge",e.className)},c,{__css:s({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));t.Badge=c,o.__DEV__&&(c.displayName="Badge")},26932:function(e,t,n){"use strict";t.__esModule=!0,t.Circle=t.Square=t.Box=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var u=(0,r.chakra)("div");t.Box=u,o.__DEV__&&(u.displayName="Box");var l=(0,r.forwardRef)((function(e,t){var n=e.size,r=e.centerContent,o=void 0===r||r,a=c(e,["size","centerContent"]),l=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return i.createElement(u,s({ref:t,boxSize:n,__css:s({},l,{flexShrink:0,flexGrow:0})},a))}));t.Square=l,o.__DEV__&&(l.displayName="Square");var d=(0,r.forwardRef)((function(e,t){var n=e.size,r=c(e,["size"]);return i.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));t.Circle=d,o.__DEV__&&(d.displayName="Circle")},21184:function(e,t,n){"use strict";t.__esModule=!0,t.AbsoluteCenter=t.Center=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.chakra)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});t.Center=c,o.__DEV__&&(c.displayName="Center");var u={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},l=(0,r.forwardRef)((function(e,t){var n=e.axis,o=void 0===n?"both":n,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["axis"]);return i.createElement(r.chakra.div,s({ref:t,__css:u[o]},a,{position:"absolute"}))}));t.AbsoluteCenter=l},9754:function(e,t,n){"use strict";t.__esModule=!0,t.Code=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Code",e),a=(0,r.omitThemingProps)(e),c=(a.className,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.code,s({ref:t,className:(0,o.cx)("chakra-code",e.className)},c,{__css:s({display:"inline-block"},n)}))}));t.Code=c,o.__DEV__&&(c.displayName="Code")},28210:function(e,t,n){"use strict";t.__esModule=!0,t.Container=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.omitThemingProps)(e),a=n.className,c=n.centerContent,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["className","centerContent"]),l=(0,r.useStyleConfig)("Container",e);return i.createElement(r.chakra.div,s({ref:t,className:(0,o.cx)("chakra-container",a)},u,{__css:s({},l,c&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));t.Container=c,o.__DEV__&&(c.displayName="Container")},43698:function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var u=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Divider",e),a=n.borderLeftWidth,u=n.borderBottomWidth,l=n.borderTopWidth,d=n.borderRightWidth,f=n.borderWidth,p=n.borderStyle,h=n.borderColor,m=c(n,["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"]),v=(0,r.omitThemingProps)(e),g=v.className,y=v.orientation,b=void 0===y?"horizontal":y,E=v.__css,_=c(v,["className","orientation","__css"]),T={vertical:{borderLeftWidth:a||d||f||"1px",height:"100%"},horizontal:{borderBottomWidth:u||l||f||"1px",width:"100%"}};return i.createElement(r.chakra.hr,s({ref:t,"aria-orientation":b},_,{__css:s({},m,{border:"0",borderColor:h,borderStyle:p},T[b],E),className:(0,o.cx)("chakra-divider",g)}))}));t.Divider=u,o.__DEV__&&(u.displayName="Divider")},87481:function(e,t,n){"use strict";t.__esModule=!0,t.Flex=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=e.direction,o=e.align,a=e.justify,c=e.wrap,u=e.basis,l=e.grow,d=e.shrink,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:o,justifyContent:a,flexWrap:c,flexBasis:u,flexGrow:l,flexShrink:d};return i.createElement(r.chakra.div,s({ref:t,__css:p},f))}));t.Flex=c,o.__DEV__&&(c.displayName="Flex")},51870:function(e,t,n){"use strict";t.__esModule=!0,t.GridItem=t.Grid=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var u=(0,r.forwardRef)((function(e,t){var n=e.area,o=e.templateAreas,a=e.gap,u=e.rowGap,l=e.columnGap,d=e.column,f=e.row,p=e.autoFlow,h=e.autoRows,m=e.templateRows,v=e.autoColumns,g=e.templateColumns,y=c(e,["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"]),b={display:"grid",gridArea:n,gridTemplateAreas:o,gridGap:a,gridRowGap:u,gridColumnGap:l,gridAutoColumns:v,gridColumn:d,gridRow:f,gridAutoFlow:p,gridAutoRows:h,gridTemplateRows:m,gridTemplateColumns:g};return i.createElement(r.chakra.div,s({ref:t,__css:b},y))}));function l(e){return(0,o.mapResponsive)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}t.Grid=u,o.__DEV__&&(u.displayName="Grid");var d=(0,r.forwardRef)((function(e,t){var n=e.colSpan,a=e.colStart,u=e.colEnd,d=e.rowEnd,f=e.rowSpan,p=e.rowStart,h=c(e,["colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"]),m=(0,o.filterUndefined)({gridColumn:l(n),gridRow:l(f),gridColumnStart:a,gridColumnEnd:u,gridRowStart:p,gridRowEnd:d});return i.createElement(r.chakra.div,s({ref:t,__css:m},h))}));t.GridItem=d},6813:function(e,t,n){"use strict";t.__esModule=!0,t.Heading=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Heading",e),a=(0,r.omitThemingProps)(e),c=(a.className,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.h2,s({ref:t,className:(0,o.cx)("chakra-heading",e.className)},c,{__css:n}))}));t.Heading=c,o.__DEV__&&(c.displayName="Heading")},11487:function(e,t,n){"use strict";t.__esModule=!0;var r=n(74770);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(63061);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(26932);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(21184);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(9754);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c=n(28210);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var u=n(43698);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var l=n(87481);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(51870);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(6813);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(12947);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(6976);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(72755);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(6293);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(7133);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(96030);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(80434);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(88189);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var _=n(41525);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}))},12947:function(e,t,n){"use strict";t.__esModule=!0,t.Kbd=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Kbd",e),a=(0,r.omitThemingProps)(e),c=a.className,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className"]);return i.createElement(r.chakra.kbd,s({ref:t,className:(0,o.cx)("chakra-kbd",c)},u,{__css:s({fontFamily:"mono"},n)}))}));t.Kbd=c,o.__DEV__&&(c.displayName="Kbd")},41525:function(e,t,n){"use strict";t.__esModule=!0,t.LinkBox=t.LinkOverlay=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var u=(0,r.forwardRef)((function(e,t){var n=e.isExternal,a=e.target,u=e.rel,l=e.className,d=c(e,["isExternal","target","rel","className"]);return i.createElement(r.chakra.a,s({},d,{ref:t,className:(0,o.cx)("chakra-linkbox__overlay",l),rel:n?"noopener noreferrer":u,target:n?"_blank":a,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}}))}));t.LinkOverlay=u;var l=(0,r.forwardRef)((function(e,t){var n=e.className,a=c(e,["className"]);return i.createElement(r.chakra.div,s({ref:t,position:"relative"},a,{className:(0,o.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}}))}));t.LinkBox=l},6976:function(e,t,n){"use strict";t.__esModule=!0,t.Link=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Link",e),a=(0,r.omitThemingProps)(e),c=a.className,u=a.isExternal,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className","isExternal"]);return i.createElement(r.chakra.a,s({target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,ref:t,className:(0,o.cx)("chakra-link",c)},l,{__css:n}))}));t.Link=c,o.__DEV__&&(c.displayName="Link")},72755:function(e,t,n){"use strict";t.__esModule=!0,t.ListIcon=t.ListItem=t.UnorderedList=t.OrderedList=t.List=void 0;var r=n(29559),o=n(48121),i=n(66751),a=n(19277),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var d=(0,o.forwardRef)((function(e,t){var n,r=(0,o.useMultiStyleConfig)("List",e),i=(0,o.omitThemingProps)(e),c=i.children,d=i.styleType,f=void 0===d?"none":d,p=i.stylePosition,h=i.spacing,m=l(i,["children","styleType","stylePosition","spacing"]),v=(0,a.getValidChildren)(c),g=h?((n={})["& > *:not(style) ~ *:not(style)"]={mt:h},n):{};return s.createElement(o.StylesProvider,{value:r},s.createElement(o.chakra.ul,u({ref:t,listStyleType:f,listStylePosition:p,role:"list",__css:u({},r.container,g)},m),v))}));t.List=d,i.__DEV__&&(d.displayName="List");var f=(0,o.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(d,u({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));t.OrderedList=f,i.__DEV__&&(f.displayName="OrderedList");var p=(0,o.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(d,u({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));t.UnorderedList=p,i.__DEV__&&(p.displayName="UnorderedList");var h=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return s.createElement(o.chakra.li,u({ref:t},e,{__css:n.item}))}));t.ListItem=h,i.__DEV__&&(h.displayName="ListItem");var m=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return s.createElement(r.Icon,u({ref:t,role:"presentation"},e,{__css:n.icon}))}));t.ListIcon=m,i.__DEV__&&(m.displayName="ListIcon")},6293:function(e,t,n){"use strict";t.__esModule=!0,t.SimpleGrid=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(51870);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.forwardRef)((function(e,t){var n,r,s=e.columns,u=e.spacingX,l=e.spacingY,d=e.spacing,f=e.minChildWidth,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["columns","spacingX","spacingY","spacing","minChildWidth"]),h=f?(r=f,(0,o.mapResponsive)(r,(function(e){return(0,o.isNull)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,o.isNumber)(t)?t+"px":t)+", 1fr))");var t}))):(n=s,(0,o.mapResponsive)(n,(function(e){return(0,o.isNull)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return i.createElement(a.Grid,c({ref:t,gap:d,columnGap:u,rowGap:l,templateColumns:h},p))}));t.SimpleGrid=u,o.__DEV__&&(u.displayName="SimpleGrid")},7133:function(e,t,n){"use strict";t.__esModule=!0,t.Spacer=void 0;var r=n(48121),o=n(66751),i=(0,r.chakra)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.Spacer=i,o.__DEV__&&(i.displayName="Spacer")},96030:function(e,t,n){"use strict";t.__esModule=!0,t.VStack=t.HStack=t.Stack=t.StackItem=t.StackDivider=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),s=n(2552);function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.StackDivider=function(e){return a.createElement(r.chakra.div,u({className:"chakra-stack__divider"},e,{__css:u({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})}))};var l=function(e){return a.createElement(r.chakra.div,u({className:"chakra-stack__item"},e,{__css:u({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))};t.StackItem=l;var d=(0,r.forwardRef)((function(e,t){var n,c=e.isInline,d=e.direction,f=e.align,p=e.justify,h=e.spacing,m=void 0===h?"0.5rem":h,v=e.wrap,g=e.children,y=e.divider,b=e.className,E=e.shouldWrapChildren,_=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),T=c?"row":null!=d?d:"column",w=a.useMemo((function(){return(0,s.getStackStyles)({direction:T,spacing:m})}),[T,m]),k=a.useMemo((function(){return(0,s.getDividerStyles)({spacing:m,direction:T})}),[m,T]),x=!!y,O=!E&&!x,C=(0,i.getValidChildren)(g),A=O?C:C.map((function(e,t){var n=t+1===C.length,r=E?a.createElement(l,{key:t},e):e;if(!x)return r;var o=n?null:a.cloneElement(y,{__css:k});return a.createElement(a.Fragment,{key:t},r,o)})),S=(0,o.cx)("chakra-stack",b);return a.createElement(r.chakra.div,u({ref:t,display:"flex",alignItems:f,justifyContent:p,flexDirection:w.flexDirection,flexWrap:v,className:S,__css:x?{}:(n={},n[s.selector]=w[s.selector],n)},_),A)}));t.Stack=d,o.__DEV__&&(d.displayName="Stack");var f=(0,r.forwardRef)((function(e,t){return a.createElement(d,u({align:"center"},e,{direction:"row",ref:t}))}));t.HStack=f,o.__DEV__&&(f.displayName="HStack");var p=(0,r.forwardRef)((function(e,t){return a.createElement(d,u({align:"center"},e,{direction:"column",ref:t}))}));t.VStack=p,o.__DEV__&&(p.displayName="VStack")},2552:function(e,t,n){"use strict";t.__esModule=!0,t.getStackStyles=function(e){var t,n=e.spacing,i=e.direction,a={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:i})[o]=(0,r.mapResponsive)(i,(function(e){return a[e]})),t},t.getDividerStyles=function(e){var t=e.spacing,n=e.direction,o={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,r.mapResponsive)(n,(function(e){return o[e]}))}},t.selector=void 0;var r=n(66751),o="& > *:not(style) ~ *:not(style)";t.selector=o},80434:function(e,t,n){"use strict";t.__esModule=!0,t.Text=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Text",e),a=(0,r.omitThemingProps)(e),c=(a.className,a.align,a.decoration,a.casing,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["className","align","decoration","casing"])),u=(0,o.filterUndefined)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return i.createElement(r.chakra.p,s({ref:t,className:(0,o.cx)("chakra-text",e.className)},u,c,{__css:n}))}));t.Text=c,o.__DEV__&&(c.displayName="Text")},88189:function(e,t,n){"use strict";t.__esModule=!0,t.WrapItem=t.Wrap=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var u=(0,r.forwardRef)((function(e,t){var n=e.spacing,a=void 0===n?"0.5rem":n,u=e.children,d=e.justify,f=e.direction,p=e.align,h=e.className,m=e.shouldWrapChildren,v=c(e,["spacing","children","justify","direction","align","className","shouldWrapChildren"]),g=i.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,o.mapResponsive)(a,(function(t){return(0,r.tokenToCSSVar)("space",t)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:p,flexDirection:f,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[a,d,p,f]),y=m?i.Children.map(u,(function(e,t){return i.createElement(l,{key:t},e)})):u;return i.createElement(r.chakra.div,s({ref:t,className:(0,o.cx)("chakra-wrap",h)},v),i.createElement(r.chakra.ul,{className:"chakra-wrap__list",__css:g},y))}));t.Wrap=u,o.__DEV__&&(u.displayName="Wrap");var l=(0,r.forwardRef)((function(e,t){var n=e.className,a=c(e,["className"]);return i.createElement(r.chakra.li,s({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,o.cx)("chakra-wrap__listitem",n)},a))}));t.WrapItem=l,o.__DEV__&&(l.displayName="WrapItem")},48017:function(e,t,n){"use strict";n.d(t,{xu:function(){return u}});var r=n(89384),o=n(90063),i=n(73808),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var u=(0,r.m$)("div");i.Ts&&(u.displayName="Box");var l=(0,o.G)(((e,t)=>{var{size:n,centerContent:r=!0}=e,o=c(e,["size","centerContent"]),i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(u,s({ref:t,boxSize:n,__css:s({},i,{flexShrink:0,flexGrow:0})},o))}));i.Ts&&(l.displayName="Square");var d=(0,o.G)(((e,t)=>{var{size:n}=e,r=c(e,["size"]);return a.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));i.Ts&&(d.displayName="Circle")},94096:function(e,t,n){"use strict";n.d(t,{k:function(){return c}});var r=n(90063),o=n(89384),i=n(73808),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=(0,r.G)(((e,t)=>{var{direction:n,align:r,justify:i,wrap:c,basis:u,grow:l,shrink:d}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:r,justifyContent:i,flexWrap:c,flexBasis:u,flexGrow:l,flexShrink:d};return a.createElement(o.m$.div,s({ref:t,__css:p},f))}));i.Ts&&(c.displayName="Flex")},336:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var r=n(90063),o=n(2326),i=n(55284),a=n(89384),s=n(84461),c=n(73808),u=n(67294);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=(0,r.G)(((e,t)=>{var n=(0,o.m)("Heading",e),r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}((0,i.Lr)(e),["className"]);return u.createElement(a.m$.h2,l({ref:t,className:(0,s.cx)("chakra-heading",e.className)},r,{__css:n}))}));c.Ts&&(d.displayName="Heading")},72026:function(e,t,n){"use strict";n.d(t,{cX:function(){return p},gC:function(){return g}});var r=n(89384),o=n(90063),i=n(84461),a=n(73808),s=n(24255),c=n(67294),u=n(4651);Object.freeze(["base","sm","md","lg","xl","2xl"]);function l(e,t){return(0,a.kJ)(e)?e.map((e=>null===e?null:t(e))):(0,a.Kn)(e)?(0,u.Yd)(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}):null!=e?t(e):null}var d="& > *:not(style) ~ *:not(style)";function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=e=>c.createElement(r.m$.div,f({className:"chakra-stack__divider"},e,{__css:f({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})})),h=e=>c.createElement(r.m$.div,f({className:"chakra-stack__item"},e,{__css:f({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)})),m=(0,o.G)(((e,t)=>{var{isInline:n,direction:o,align:a,justify:u,spacing:p="0.5rem",wrap:m,children:v,divider:g,className:y,shouldWrapChildren:b}=e,E=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),_=n?"row":null!=o?o:"column",T=c.useMemo((()=>function(e){var{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[d]:l(n,(e=>r[e]))}}({direction:_,spacing:p})),[_,p]),w=c.useMemo((()=>function(e){var{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":l(n,(e=>r[e]))}}({spacing:p,direction:_})),[p,_]),k=!!g,x=!b&&!k,O=(0,s.W)(v),C=x?O:O.map(((e,t)=>{var n=t+1===O.length,r=b?c.createElement(h,{key:t},e):e;if(!k)return r;var o=n?null:c.cloneElement(g,{__css:w});return c.createElement(c.Fragment,{key:t},r,o)})),A=(0,i.cx)("chakra-stack",y);return c.createElement(r.m$.div,f({ref:t,display:"flex",alignItems:a,justifyContent:u,flexDirection:T.flexDirection,flexWrap:m,className:A,__css:k?{}:{[d]:T[d]}},E),C)}));a.Ts&&(m.displayName="Stack");var v=(0,o.G)(((e,t)=>c.createElement(m,f({align:"center"},e,{direction:"row",ref:t}))));a.Ts&&(v.displayName="HStack");var g=(0,o.G)(((e,t)=>c.createElement(m,f({align:"center"},e,{direction:"column",ref:t}))));a.Ts&&(g.displayName="VStack")},64115:function(e,t,n){"use strict";n.d(t,{x:function(){return f}});var r=n(90063),o=n(2326),i=n(55284),a=n(89384),s=n(4651),c=n(84461),u=n(73808),l=n(67294);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=(0,r.G)(((e,t)=>{var n=(0,o.m)("Text",e),r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}((0,i.Lr)(e),["className","align","decoration","casing"]),u=(0,s.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return l.createElement(a.m$.p,d({ref:t,className:(0,c.cx)("chakra-text",e.className)},u,r,{__css:n}))}));u.Ts&&(f.displayName="Text")},48235:function(e,t,n){"use strict";n.d(t,{v2:function(){return K},j2:function(){return Y},R:function(){return ae},sN:function(){return J},ii:function(){return te},qy:function(){return X},__:function(){return ne}});var r=n(2326),o=n(55284),i=n(29676),a=n(90063),s=n(89384),c=n(80658),u=n(73808),l=n(84461),d=n(39629),f=n(67294),p=n(72947);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e){var t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function v(e){void 0===e&&(e={});var{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:a,onMouseUp:s,onClick:c,onKeyDown:u,onKeyUp:d,tabIndex:v,onMouseOver:g,onMouseLeave:y}=e,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"]),[E,_]=f.useState(!0),[T,w]=f.useState(!1),k=function(){var e=f.useRef(new Map),t=e.current,n=f.useCallback(((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)}),[]),r=f.useCallback(((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)}),[]);return f.useEffect((()=>()=>{t.forEach(((e,t)=>{r(e.el,e.type,t,e.options)}))}),[r,t]),{add:n,remove:r}}(),x=E?v:v||0,O=n&&!r,C=f.useCallback((e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==c||c(e)}),[n,c]),A=f.useCallback((e=>{T&&m(e)&&(e.preventDefault(),e.stopPropagation(),w(!1),k.remove(document,"keyup",A,!1))}),[T,k]),S=f.useCallback((e=>{if(null==u||u(e),!(n||e.defaultPrevented||e.metaKey)&&m(e.nativeEvent)&&!E){var t=o&&"Enter"===e.key;if(i&&" "===e.key&&(e.preventDefault(),w(!0)),t)e.preventDefault(),e.currentTarget.click();k.add(document,"keyup",A,!1)}}),[n,E,u,o,i,k,A]),M=f.useCallback((e=>{(null==d||d(e),n||e.defaultPrevented||e.metaKey)||m(e.nativeEvent)&&!E&&i&&" "===e.key&&(e.preventDefault(),w(!1),e.currentTarget.click())}),[i,E,n,d]),I=f.useCallback((e=>{0===e.button&&(w(!1),k.remove(document,"mouseup",I,!1))}),[k]),P=f.useCallback((e=>{if(!(0,l.dO)(e)){if(n)return e.stopPropagation(),void e.preventDefault();E||w(!0),e.currentTarget.focus({preventScroll:!0}),k.add(document,"mouseup",I,!1),null==a||a(e)}}),[n,E,a,k,I]),N=f.useCallback((e=>{(0,l.dO)(e)||(E||w(!1),null==s||s(e))}),[s,E]),R=f.useCallback((e=>{n?e.preventDefault():null==g||g(e)}),[n,g]),L=f.useCallback((e=>{T&&(e.preventDefault(),w(!1)),null==y||y(e)}),[T,y]),D=(0,p.l)(t,(e=>{e&&"BUTTON"!==e.tagName&&_(!1)}));return h({},b,E?{ref:D,type:"button","aria-disabled":O?void 0:n,disabled:O,onClick:C,onMouseDown:a,onMouseUp:s,onKeyUp:d,onKeyDown:u,onMouseOver:g,onMouseLeave:y}:{ref:D,role:"button","data-active":(0,l.PB)(T),"aria-disabled":n?"true":void 0,tabIndex:O?void 0:x,onClick:C,onMouseDown:P,onMouseUp:N,onKeyUp:M,onKeyDown:S,onMouseOver:R,onMouseLeave:L})}var g=n(21888),y=n(74860),b=n(10762);function E(e,t){var n,r=e.target;if(e.button>0)return!1;if(r&&!(0,l.lZ)(r).body.contains(r))return!1;return!(null!=(n=t.current)&&n.contains(r))}var _=n(22653),T=n(17768),w=n(47248);function k(e,t){var{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;(0,_.r)((()=>{if(i&&!function(e){var t=e.current;if(!t)return!1;var n=(0,l.vY)(t);return!!n&&!(0,l.r3)(t,n)&&!!(0,T.Wq)(n)}(e)){var t=(null==o?void 0:o.current)||e.current;t&&(0,w.T)(t,{nextTick:!0})}}),[i,e,o])}var x=n(94577),O=n(77581);function C(e){void 0===e&&(e={});var{timeout:t=300,preventDefault:n=(()=>!0)}=e,[r,o]=f.useState([]),i=f.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return f.useEffect((()=>a),[]),function(e){return s=>{if("Backspace"===s.key){var c=[...r];return c.pop(),void o(c)}if(function(e){var{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(s)){var u=r.concat(s.key);n(s)&&(s.preventDefault(),s.stopPropagation()),o(u),e(u.join("")),a(),i.current=setTimeout((()=>{o([]),i.current=null}),t)}}}}var A=n(51034),S=n(8931),M=n(28500),I=n(24255),P=n(27277);function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var[L,D,j,H]=(0,g.n)(),[B,F]=(0,M.k)({strict:!1,name:"MenuContext"});function U(e){void 0===e&&(e={});var{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:i,isOpen:a,defaultIsOpen:s,onClose:c,onOpen:u,placement:d="bottom-start",lazyBehavior:p="unmount",computePositionOnMount:h}=e,m=R(e,["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","computePositionOnMount"]),{isOpen:v,onOpen:g,onClose:T,onToggle:C}=(0,y.q)({isOpen:a,defaultIsOpen:s,onClose:c,onOpen:u}),A=f.useRef(null),M=f.useRef(null);!function(e){var{ref:t,handler:n}=e,r=(0,b.W)(n),o=(0,f.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,f.useEffect)((()=>{var e=e=>{E(e,t)&&(o.isPointerDown=!0)},i=e=>{o.ignoreEmulatedMouseEvents?o.ignoreEmulatedMouseEvents=!1:o.isPointerDown&&n&&E(e,t)&&(o.isPointerDown=!1,r(e))},a=e=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&E(e,t)&&(o.isPointerDown=!1,r(e))},s=(0,l.lZ)(t.current);return s.addEventListener("mousedown",e,!0),s.addEventListener("mouseup",i,!0),s.addEventListener("touchstart",e,!0),s.addEventListener("touchend",a,!0),()=>{s.removeEventListener("mousedown",e,!0),s.removeEventListener("mouseup",i,!0),s.removeEventListener("touchstart",e,!0),s.removeEventListener("touchend",a,!0)}}),[n,t,r,o])}({ref:A,handler:e=>{var t;!v||!r||null!=(t=M.current)&&t.contains(e.target)||T()}});var I=(0,S.D)(N({},m,{enabled:v||h,placement:d})),[P,L]=f.useState(-1),D=j();(0,_.r)((()=>{v||L(-1)}),[v]),k(A,{focusRef:M,visible:v,shouldFocus:!0});var[H,B]=(0,x.ZS)(t,"menu-button","menu-list"),F=f.useCallback((()=>{g(),(0,w.T)(A.current,{nextTick:!0,selectTextIfInput:!1})}),[g,A]),U=f.useRef(new Set([]));return(0,O.z)((()=>{U.current.forEach((e=>clearTimeout(e))),U.current.clear()})),{openAndFocusMenu:F,openAndFocusFirstItem:f.useCallback((()=>{g();var e=setTimeout((()=>{var e=D.firstEnabled();e&&L(e.index)}));U.current.add(e)}),[g,L,D]),openAndFocusLastItem:f.useCallback((()=>{g();var e=setTimeout((()=>{var e=D.lastEnabled();e&&L(e.index)}));U.current.add(e)}),[g,L,D]),onTransitionEnd:f.useCallback((()=>{var e,t,n=(0,l.lZ)(A.current),r=null==(e=A.current)?void 0:e.contains(n.activeElement);if(v&&!r){var o=null==(t=D.item(P))?void 0:t.node;o&&(0,w.T)(o,{selectTextIfInput:!1})}}),[v,P,D]),descendants:D,popper:I,buttonId:H,menuId:B,forceUpdate:I.forceUpdate,orientation:"vertical",isOpen:v,onToggle:C,onOpen:g,onClose:T,menuRef:A,buttonRef:M,focusedIndex:P,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:L,isLazy:i,lazyBehavior:p}}function z(e){var t;return e instanceof HTMLElement&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function V(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:i,isDisabled:a,isFocusable:s,closeOnSelect:c}=e,u=R(e,["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect"]),l=F(),{setFocusedIndex:d,focusedIndex:h,closeOnSelect:m,onClose:g,menuRef:y,isOpen:b,menuId:E}=l,k=f.useRef(null),O=E+"-menuitem-"+(0,x.Me)(),{index:C,register:A}=H({disabled:a&&!s}),S=f.useCallback((e=>{null==n||n(e),a||d(C)}),[d,C,a,n]),M=f.useCallback((e=>{null==r||r(e),k.current&&!(0,T.H9)(k.current)&&S(e)}),[S,r]),I=f.useCallback((e=>{null==o||o(e),a||d(-1)}),[d,a,o]),P=f.useCallback((e=>{null==i||i(e),z(e.currentTarget)&&(null!=c?c:m)&&g()}),[g,i,m,c]),L=C===h,D=a&&!s;return(0,_.r)((()=>{b&&(L&&!D&&k.current?(0,w.T)(k.current,{nextTick:!0,selectTextIfInput:!1}):y.current&&!(0,T.H9)(y.current)&&(0,w.T)(y.current))}),[L,D,y,b]),N({},u,v({onClick:P,onMouseEnter:S,onMouseMove:M,onMouseLeave:I,ref:(0,p.l)(A,k,t),isDisabled:a,isFocusable:s}),{id:O,role:"menuitem",tabIndex:L?0:-1})}function G(){return(G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function W(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var K=e=>{var{children:t}=e,n=(0,r.j)("Menu",e),a=U((0,o.Lr)(e)),{descendants:s}=a,u=W(a,["descendants"]),l=f.useMemo((()=>u),[u]),{isOpen:d,onClose:p,forceUpdate:h}=l;return f.createElement(L,{value:s},f.createElement(B,{value:l},f.createElement(i.Fo,{value:n},(0,c.Pu)(t,{isOpen:d,onClose:p,forceUpdate:h}))))};u.Ts&&(K.displayName="Menu");var q=(0,a.G)(((e,t)=>{var n=(0,i.yK)();return f.createElement(s.m$.button,G({ref:t},e,{__css:G({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))})),Y=(0,a.G)(((e,t)=>{var{as:n}=e,r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=F(),{isOpen:r,onClose:o,autoSelect:i,popper:a,openAndFocusFirstItem:s,openAndFocusLastItem:u,openAndFocusMenu:d}=n,h=f.useCallback((()=>{r?o():(i?s:d)()}),[i,r,o,s,d]),m=f.useCallback((e=>{var t=(0,l.uh)(e),n={Enter:s,ArrowDown:s,ArrowUp:u}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))}),[s,u]);return N({},e,{ref:(0,p.l)(n.buttonRef,t,a.referenceRef),id:n.buttonId,"data-active":(0,l.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,c.v0)(e.onClick,h),onKeyDown:(0,c.v0)(e.onKeyDown,m)})}(W(e,["children","as"]),t),o=n||q;return f.createElement(o,G({},r,{className:(0,l.cx)("chakra-menu__menu-button",e.className)}),f.createElement(s.m$.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))}));u.Ts&&(Y.displayName="MenuButton");var Z={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},$="custom"in d.E?d.E.custom(s.m$.div):(0,d.E)(s.m$.div),X=(0,a.G)(((e,t)=>{var n,r,{rootProps:o}=e,a=W(e,["rootProps"]),{isOpen:u,onTransitionEnd:d}=F(),h=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=F();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var{focusedIndex:r,setFocusedIndex:o,menuRef:i,isOpen:a,onClose:s,menuId:u,isLazy:d,lazyBehavior:h}=n,m=D(),v=C({preventDefault:e=>" "!==e.key&&z(e.target)}),g=f.useCallback((e=>{var t=(0,l.uh)(e),n={Tab:e=>e.preventDefault(),Escape:s,ArrowDown:()=>{var e=m.nextEnabled(r);e&&o(e.index)},ArrowUp:()=>{var e=m.prevEnabled(r);e&&o(e.index)}}[t];if(n)return e.preventDefault(),void n(e);var i=v((e=>{var t=(0,P.LP)(m.values(),e,(e=>{var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""}),m.item(r));if(t){var n=m.indexOf(t.node);o(n)}}));z(e.target)&&i(e)}),[m,r,v,s,o]),y=f.useRef(!1);a&&(y.current=!0);var b=function(e){var{hasBeenSelected:t,isLazy:n,isSelected:r,lazyBehavior:o="unmount"}=e;return!n||!!r||!("keepMounted"!==o||!t)}({hasBeenSelected:y.current,isLazy:d,lazyBehavior:h,isSelected:a});return N({},e,{ref:(0,p.l)(i,t),children:b?e.children:null,tabIndex:-1,role:"menu",id:u,style:N({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:(0,c.v0)(e.onKeyDown,g)})}(a,t),m=function(e){void 0===e&&(e={});var{popper:t,isOpen:n}=F();return t.getPopperProps(N({},e,{style:N({visibility:n?"visible":"hidden"},e.style)}))}(o),v=(0,i.yK)();return f.createElement(s.m$.div,G({},m,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=v.list)?void 0:r.zIndex}}),f.createElement($,G({},h,{onUpdate:d,className:(0,l.cx)("chakra-menu__menu-list",h.className),variants:Z,initial:!1,animate:u?"enter":"exit",__css:G({outline:0},v.list)})))}));u.Ts&&(X.displayName="MenuList");var Q=(0,a.G)(((e,t)=>{var{type:n}=e,r=W(e,["type"]),o=(0,i.yK)(),a=r.as?null!=n?n:void 0:"button",c=G({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item);return f.createElement(s.m$.button,G({ref:t,type:a},r,{__css:c}))})),J=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:i="0.75rem",children:a}=e,s=V(W(e,["icon","iconSpacing","command","commandSpacing","children"]),t),c=n||o?f.createElement("span",{style:{pointerEvents:"none",flex:1}},a):a;return f.createElement(Q,G({},s,{className:(0,l.cx)("chakra-menu__menuitem",s.className)}),n&&f.createElement(ie,{fontSize:"0.8em",marginEnd:r},n),c,o&&f.createElement(oe,{marginStart:i},o))}));u.Ts&&(J.displayName="MenuItem");var ee=e=>f.createElement("svg",G({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),f.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})),te=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem"}=e,o=W(e,["icon","iconSpacing"]),i=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{type:n="radio",isChecked:r}=e;return N({},V(R(e,["type","isChecked"]),t),{role:"menuitem"+n,"aria-checked":r})}(o,t);return f.createElement(Q,G({},i,{className:(0,l.cx)("chakra-menu__menuitem-option",o.className)}),f.createElement(ie,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||f.createElement(ee,null)),f.createElement("span",{style:{flex:1}},i.children))}));te.id="MenuItemOption",u.Ts&&(te.displayName="MenuItemOption");var ne=e=>{var{className:t,title:n}=e,r=function(e){void 0===e&&(e={});var{children:t,type:n="radio",value:r,defaultValue:o,onChange:i}=e,a=R(e,["children","type","value","defaultValue","onChange"]),s="radio"===n?"":[],[c,l]=(0,A.T)({defaultValue:null!=o?o:s,value:r,onChange:i}),d=f.useCallback((e=>{if("radio"===n&&(0,u.HD)(c)&&l(e),"checkbox"===n&&(0,u.kJ)(c)){var t=c.includes(e)?(0,P.cl)(c,e):(0,P.jX)(c,e);l(t)}}),[c,l,n]);return N({},a,{children:(0,I.W)(t).map((e=>{if("MenuItemOption"!==e.type.id)return e;var t="radio"===n?e.props.value===c:c.includes(e.props.value);return f.cloneElement(e,{type:n,onClick:t=>{d(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})}))})}(W(e,["className","title"]));return f.createElement(re,G({title:n,className:(0,l.cx)("chakra-menu__option-group",t)},r))};u.Ts&&(ne.displayName="MenuOptionGroup");var re=(0,a.G)(((e,t)=>{var{title:n,children:r,className:o}=e,a=W(e,["title","children","className"]),c=(0,l.cx)("chakra-menu__group__title",o),u=(0,i.yK)();return f.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&f.createElement(s.m$.p,G({className:c},a,{__css:u.groupTitle}),n),r)}));u.Ts&&(re.displayName="MenuGroup");var oe=(0,a.G)(((e,t)=>{var n=(0,i.yK)();return f.createElement(s.m$.span,G({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))}));u.Ts&&(oe.displayName="MenuCommand");var ie=e=>{var{className:t,children:n}=e,r=W(e,["className","children"]),o=f.Children.only(n),i=f.isValidElement(o)?f.cloneElement(o,{focusable:"false","aria-hidden":!0,className:(0,l.cx)("chakra-menu__icon",o.props.className)}):null,a=(0,l.cx)("chakra-menu__icon-wrapper",t);return f.createElement(s.m$.span,G({className:a},r,{__css:{flexShrink:0}}),i)};u.Ts&&(ie.displayName="MenuIcon");var ae=e=>{var{className:t}=e,n=W(e,["className"]),r=(0,i.yK)();return f.createElement(s.m$.hr,G({role:"separator","aria-orientation":"horizontal",className:(0,l.cx)("chakra-menu__divider",t)},n,{__css:r.divider}))};u.Ts&&(ae.displayName="MenuDivider")},30410:function(e,t,n){"use strict";n.d(t,{u_:function(){return Zt},fe:function(){return tn},ol:function(){return rn},hz:function(){return Xt},mz:function(){return nn},xB:function(){return en},ZA:function(){return Jt}});var r=n(70058),o=n(90063),i=n(2326),a=n(55284),s=n(89384),c=n(73808),u=n(67294);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var d=e=>u.createElement(r.J,l({focusable:"false","aria-hidden":!0},e),u.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})),f=(0,o.G)(((e,t)=>{var n=(0,i.m)("CloseButton",e),r=(0,a.Lr)(e),{children:o,isDisabled:c,__css:f}=r,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["children","isDisabled","__css"]);return u.createElement(s.m$.button,l({type:"button","aria-label":"Close",ref:t,disabled:c,__css:l({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,f)},p),o||u.createElement(d,{width:"1em",height:"1em"}))}));c.Ts&&(f.displayName="CloseButton");var p=n(19756),h=n(22122),m=(n(45697),"data-focus-lock"),v="data-focus-lock-disabled";function g(e,t){return function(e,t){var n=(0,u.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var y={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},b=function(e){var t=e.children;return u.createElement(u.Fragment,null,u.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:y}),t,t&&u.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:y}))};b.propTypes={},b.defaultProps={children:null};var E=n(70655);function _(e){return e}function T(e,t){void 0===t&&(t=_);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function w(e,t){return void 0===t&&(t=_),T(e,t)}function k(e){void 0===e&&(e={});var t=T(null);return t.options=E.pi({async:!0,ssr:!1},e),t}var x=w({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),O=w(),C=w(),A=k({async:!0}),S=[],M=u.forwardRef((function(e,t){var n,r=u.useState(),o=r[0],i=r[1],a=u.useRef(),s=u.useRef(!1),c=u.useRef(null),l=e.children,d=e.disabled,f=e.noFocusGuards,p=e.persistentFocus,b=e.crossFrame,E=e.autoFocus,_=(e.allowTextSelection,e.group),T=e.className,w=e.whiteList,k=e.shards,C=void 0===k?S:k,M=e.as,I=void 0===M?"div":M,P=e.lockProps,N=void 0===P?{}:P,R=e.sideCar,L=e.returnFocus,D=e.onActivation,j=e.onDeactivation,H=u.useState({})[0],B=u.useCallback((function(){c.current=c.current||document&&document.activeElement,a.current&&D&&D(a.current),s.current=!0}),[D]),F=u.useCallback((function(){s.current=!1,j&&j(a.current)}),[j]),U=u.useCallback((function(e){var t=c.current;if(Boolean(L)&&t&&t.focus){var n="object"===typeof L?L:void 0;c.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[L]),z=u.useCallback((function(e){s.current&&x.useMedium(e)}),[]),V=O.useMedium,G=u.useCallback((function(e){a.current!==e&&(a.current=e,i(e))}),[]);var W=(0,h.Z)(((n={})[v]=d&&"disabled",n[m]=_,n),N),K=!0!==f,q=K&&"tail"!==f,Y=g([t,G]);return u.createElement(u.Fragment,null,K&&[u.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:y}),u.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:y})],!d&&u.createElement(R,{id:H,sideCar:A,observed:o,disabled:d,persistentFocus:p,crossFrame:b,autoFocus:E,whiteList:w,shards:C,onActivation:B,onDeactivation:F,returnFocus:U}),u.createElement(I,(0,h.Z)({ref:Y},W,{className:T,onBlur:V,onFocus:z}),l),q&&u.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:y}))}));M.propTypes={},M.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var I=M;function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=function(e,t){return function(n){var r,o=[];function i(){r=e(o.map((function(e){return e.props}))),t(r)}var a,s,c,l=function(e){var t,a;function s(){return e.apply(this,arguments)||this}a=e,(t=s).prototype=Object.create(a.prototype),t.prototype.constructor=t,P(t,a),s.peek=function(){return r};var c=s.prototype;return c.componentDidMount=function(){o.push(this),i()},c.componentDidUpdate=function(){i()},c.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},c.render=function(){return u.createElement(n,this.props)},s}(u.PureComponent);return a=l,s="displayName",c="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",s in a?Object.defineProperty(a,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[s]=c,l}},R=function(e){return"INPUT"===e.tagName&&"radio"===e.type},L=function(e,t){return R(e)&&e.name?function(e,t){return t.filter(R).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},D=function(e){return e[0]&&e.length>1?L(e[0],e):e[0]},j=function(e,t){return e.length>1?e.indexOf(L(e[t],e)):t},H=function(e){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(e,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&H(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode);var t},B=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},F=function(e){return!B(e)},U=function(e){return Boolean(e)},z="NEW_FOCUS",V=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=B(n);if(!(e.indexOf(n)>=0)){var c=t.indexOf(n),u=r?t.indexOf(r):c,l=r?e.indexOf(r):-1,d=c-u,f=t.indexOf(i),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(L(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=h.indexOf(n)-(r?h.indexOf(r):c),v=j(e,0),g=j(e,o-1);return-1===c||-1===l?z:!d&&l>=0?l:c<=f&&s&&Math.abs(d)>1?g:c>=p&&s&&Math.abs(d)>1?v:d&&Math.abs(m)>1?l:c<=f?g:c>p?v:d?Math.abs(d)>1?l:(o+l+d)%o:void 0}},G=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},W=function(e){return Array.isArray(e)?e:[e]},K=function(e){return e.parentNode?K(e.parentNode):e},q=function(e){return W(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(m);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(G(K(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+v+'="disabled"])'))):[t]),e}),[])},Y=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},Z=function(e,t,n){return G(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(Y)},$=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),X=$+", [data-focus-guard]",Q=function(e,t){return e.reduce((function(e,n){return e.concat(G(n.querySelectorAll(t?X:$)),n.parentNode?G(n.parentNode.querySelectorAll($)).filter((function(e){return e===n})):[])}),[])},J=function(e){return G(e).filter((function(e){return H(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},ee=function(e,t){return Z(J(Q(e,t)),!0,t)},te=function(e){return Z(J(Q(e)),!1)},ne=function(e){return J(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return G(t).map((function(e){return Q([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e))},re=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&re(e.parentNode,t),t},oe=function(e,t){for(var n=re(e),r=re(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},ie=function(e,t,n){var r=W(e),o=W(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=oe(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=oe(i,e);t&&(a=!a||t.contains(a)?t:oe(t,a))}))})),a},ae=function(e,t){var n=document&&document.activeElement,r=q(e).filter(F),o=ie(n||e,e,r),i=te(r),a=ee(r).filter((function(e){var t=e.node;return F(t)}));if(a[0]||(a=i)[0]){var s,c=te([o]).map((function(e){return e.node})),u=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(U)}(c,a),l=u.map((function(e){return e.node})),d=V(l,c,n,t);if(d===z){var f=i.map((function(e){return e.node})).filter((s=function(e){return e.reduce((function(e,t){return e.concat(ne(t))}),[])}(r),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||s.indexOf(e)>=0}));return{node:f&&f.length?D(f):D(l)}}return void 0===d?d:u[d]}},se=0,ce=!1,ue=function(e,t){var n,r=ae(e,t);if(!ce&&r){if(se>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ce=!0,void setTimeout((function(){ce=!1}),1);se++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),se--}},le=function(e){return Boolean(G(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},de=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&q(e).reduce((function(e,n){return e||n.contains(t)||le(n)}),!1)};function fe(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var pe=function(){return document&&document.activeElement===document.body||document&&G(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},he=null,me=null,ve=null,ge=!1,ye=function(){return!0};function be(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var Ee=function(e){return e&&"current"in e?e.current:e},_e=function(){var e,t=!1;if(he){var n=he,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,c=r||ve&&ve.portaledElement,u=document&&document.activeElement;if(c){var l=[c].concat(a.map(Ee).filter(Boolean));if(u&&!function(e){return(he.whiteList||ye)(e)}(u)||(o||(s?Boolean(ge):"meanwhile"===ge)||!pe()||!me&&i)&&(!c||de(l)||(e=u,ve&&ve.portaledElement===e)||(document&&!me&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(t=ue(l,me),ve={})),ge=!1,me=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var t=q(e).filter(F),n=ie(e,e,t),r=ee([n],!0),o=ee(t).filter((function(e){var t=e.node;return F(t)})).map((function(e){return e.node}));return r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:B(t)}}))}(l),p=f.map((function(e){return e.node})).indexOf(d);p>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),be(p,f.length,1,f),be(p,-1,-1,f))}}}return t},Te=function(e){_e()&&e&&(e.stopPropagation(),e.preventDefault())},we=function(){return fe(_e)},ke=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ve={observerNode:n,portaledElement:t})},xe=function(){ge="just",setTimeout((function(){ge="meanwhile"}),0)};x.assignSyncMedium(ke),O.assignMedium(we),C.assignMedium((function(e){return e({moveFocusInside:ue,focusInside:de})}));var Oe=N((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!he&&(document.addEventListener("focusin",Te,!0),document.addEventListener("focusout",we),window.addEventListener("blur",xe));var n=he,r=n&&t&&t.id===n.id;he=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(me=null,r&&n.observed===t.observed||t.onActivation(),_e(),fe(_e)):(document.removeEventListener("focusin",Te,!0),document.removeEventListener("focusout",we),window.removeEventListener("blur",xe),me=null)}))((function(){return null})),Ce=u.forwardRef((function(e,t){return u.createElement(I,(0,h.Z)({sideCar:Oe,ref:t},e))})),Ae=I.propTypes||{};Ae.sideCar,(0,p.Z)(Ae,["sideCar"]);Ce.propTypes={};var Se=Ce,Me=n(17768),Ie=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function Pe(e){var t=Array.from(e.querySelectorAll(Ie));return t.unshift(e),t.filter(Me.EB).filter((e=>"none"!==window.getComputedStyle(e).display))}var Ne=n(47248),Re=e=>{var{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:c,lockFocusAcrossFrames:l}=e,d=u.useCallback((()=>{if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===Pe(r.current).length&&(0,Ne.T)(r.current,{nextTick:!0})}}),[t,r]),f=u.useCallback((()=>{var e;null==n||null==(e=n.current)||e.focus()}),[n]),p=o&&!n;return u.createElement(Se,{crossFrame:l,persistentFocus:c,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p},i)};c.Ts&&(Re.displayName="FocusLock");var Le=n(67273),De=n(29676),je=n(84461),He=n(53869),Be=n(39629),Fe=n(24722);function Ue(){return(Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ze={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,{transition:n,transitionEnd:r,delay:o}=void 0===e?{}:e;return{opacity:1,transition:null!=(t=null==n?void 0:n.enter)?t:Fe.p$.enter(Fe.R.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,{transition:n,transitionEnd:r,delay:o}=void 0===e?{}:e;return{opacity:0,transition:null!=(t=null==n?void 0:n.exit)?t:Fe.p$.exit(Fe.R.exit,o),transitionEnd:null==r?void 0:r.exit}}}},Ve=u.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,className:o,transition:i,transitionEnd:a,delay:s}=e,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","className","transition","transitionEnd","delay"]),l=r||n?"enter":"exit",d=!n||r&&n,f={transition:i,transitionEnd:a,delay:s};return u.createElement(He.M,{custom:f},d&&u.createElement(Be.E.div,Ue({ref:t,className:(0,je.cx)("chakra-fade",o),custom:f},ze,{animate:l},c)))}));c.Ts&&(Ve.displayName="Fade");var Ge=n(80658),We=n(28500),Ke=n(69283),qe="right-scroll-bar-position",Ye="width-before-scroll-bar",Ze=k(),$e=function(){},Xe=u.forwardRef((function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:$e,onWheelCapture:$e,onTouchMoveCapture:$e}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,_=E._T(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),T=p,w=g([n,t]),k=E.pi({},_,o);return u.createElement(u.Fragment,null,d&&u.createElement(T,{sideCar:Ze,removeScrollBar:l,shards:f,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?u.cloneElement(u.Children.only(s),E.pi({},k,{ref:w})):u.createElement(b,E.pi({},k,{className:c,ref:w}),s))}));Xe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Xe.classNames={fullWidth:Ye,zeroRight:qe};var Qe,Je=function(e){var t=e.sideCar,n=E._T(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,E.pi({},n))};Je.isSideCarExport=!0;function et(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qe||n.nc;return t&&e.setAttribute("nonce",t),e}var tt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=et())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nt=function(){var e=function(){var e=tt();return function(t){u.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},rt={left:0,top:0,right:0,gap:0},ot=function(e){return parseInt(e||"",10)||0},it=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return rt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ot(n),ot(r),ot(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},at=nt(),st=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .with-scroll-bars-hidden {\n   overflow: hidden "+r+";\n   padding-right: "+s+"px "+r+";\n  }\n  body {\n    overflow: hidden "+r+";\n    "+[t&&"position: relative "+r+";","margin"===n&&"\n    padding-left: "+o+"px;\n    padding-top: "+i+"px;\n    padding-right: "+a+"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: "+s+"px "+r+";\n    ","padding"===n&&"padding-right: "+s+"px "+r+";"].filter(Boolean).join("")+"\n  }\n  \n  ."+qe+" {\n    right: "+s+"px "+r+";\n  }\n  \n  ."+Ye+" {\n    margin-right: "+s+"px "+r+";\n  }\n  \n  ."+qe+" ."+qe+" {\n    right: 0 "+r+";\n  }\n  \n  ."+Ye+" ."+Ye+" {\n    margin-right: 0 "+r+";\n  }\n  \n  body {\n    --removed-body-scroll-bar-size: "+s+"px;\n  }\n"},ct=function(e){var t=u.useState(it(e.gapMode)),n=t[0],r=t[1];u.useEffect((function(){r(it(e.gapMode))}),[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,s=void 0===a?"margin":a;return u.createElement(at,{styles:st(n,!o,s,i?"":"!important")})},ut=function(e,t){var n=t;do{if(lt(e,n)){var r=dt(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},lt=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},dt=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},ft=!1;if("undefined"!==typeof window)try{var pt=Object.defineProperty({},"passive",{get:function(){return ft=!0,!0}});window.addEventListener("test",pt,pt),window.removeEventListener("test",pt,pt)}catch(on){ft=!1}var ht=!!ft&&{passive:!1},mt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vt=function(e){return[e.deltaX,e.deltaY]},gt=function(e){return e&&"current"in e?e.current:e},yt=function(e){return"\n  .block-interactivity-"+e+" {pointer-events: none;}\n  .allow-interactivity-"+e+" {pointer-events: all;}\n"},bt=0,Et=[];var _t,Tt=(_t=function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(bt++)[0],i=u.useState((function(){return nt()}))[0],a=u.useRef(e);u.useEffect((function(){a.current=e}),[e]),u.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(gt)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=u.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=mt(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],l=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v",f=ut(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ut(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(c||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,s=t.contains(a),c=!1,u=i>0,l=0,d=0;do{var f=dt(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&&lt(e,a)&&(l+=h,d+=p),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(u&&(o&&0===l||!o&&i>l)||!u&&(o&&0===d||!o&&-i>d))&&(c=!0),c}(p,t,e,"h"===p?c:u,!0)}),[]),c=u.useCallback((function(e){var n=e;if(Et.length&&Et[Et.length-1]===i){var r="deltaY"in n?vt(n):mt(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var c=(a.current.shards||[]).map(gt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?s(n,c[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),l=u.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=u.useCallback((function(e){n.current=mt(e),r.current=void 0}),[]),f=u.useCallback((function(t){l(t.type,vt(t),t.target,s(t,e.lockRef.current))}),[]),p=u.useCallback((function(t){l(t.type,mt(t),t.target,s(t,e.lockRef.current))}),[]);u.useEffect((function(){return Et.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ht),document.addEventListener("touchmove",c,ht),document.addEventListener("touchstart",d,ht),function(){Et=Et.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,ht),document.removeEventListener("touchmove",c,ht),document.removeEventListener("touchstart",d,ht)}}),[]);var h=e.removeScrollBar,m=e.inert;return u.createElement(u.Fragment,null,m?u.createElement(i,{styles:yt(o)}):null,h?u.createElement(ct,{gapMode:"margin"}):null)},Ze.useMedium(_t),Je),wt=u.forwardRef((function(e,t){return u.createElement(Xe,E.pi({},e,{ref:t,sideCar:Tt}))}));wt.classNames=Xe.classNames;var kt=wt;function xt(){return(xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ot={initial:"initial",animate:"enter",exit:"exit",variants:{initial:e=>{var t,{offsetX:n,offsetY:r,transition:o,transitionEnd:i,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:Fe.p$.exit(Fe.R.exit,a),transitionEnd:null==i?void 0:i.exit}},enter:e=>{var t,{transition:n,transitionEnd:r,delay:o}=e;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:Fe.p$.enter(Fe.R.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t,{offsetY:n,offsetX:r,transition:o,transitionEnd:i,reverse:a,delay:s}=e,c={x:r,y:n};return xt({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:Fe.p$.exit(Fe.R.exit,s)},a?xt({},c,{transitionEnd:null==i?void 0:i.exit}):{transitionEnd:xt({},c,null==i?void 0:i.exit)})}}},Ct=u.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:o=!0,className:i,offsetX:a=0,offsetY:s=8,transition:c,transitionEnd:l,delay:d}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"]),p=!n||r&&n,h=r||n?"enter":"exit",m={offsetX:a,offsetY:s,reverse:o,transition:c,transitionEnd:l,delay:d};return u.createElement(He.M,{custom:m},p&&u.createElement(Be.E.div,xt({ref:t,className:(0,je.cx)("chakra-offset-slide",i),custom:m},Ot,{animate:h},f)))}));function At(){return(At=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}c.Ts&&(Ct.displayName="SlideFade");var St={initial:"exit",animate:"enter",exit:"exit",variants:{exit:e=>{var t,{reverse:n,initialScale:r,transition:o,transitionEnd:i,delay:a}=e;return At({opacity:0},n?{scale:r,transitionEnd:null==i?void 0:i.exit}:{transitionEnd:At({scale:r},null==i?void 0:i.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:Fe.p$.exit(Fe.R.exit,a)})},enter:e=>{var t,{transitionEnd:n,transition:r,delay:o}=e;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:Fe.p$.enter(Fe.R.enter,o),transitionEnd:null==n?void 0:n.enter}}}},Mt=u.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:o=!0,initialScale:i=.95,className:a,transition:s,transitionEnd:c,delay:l}=e,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"]),f=!n||r&&n,p=r||n?"enter":"exit",h={initialScale:i,reverse:o,transition:s,transitionEnd:c,delay:l};return u.createElement(He.M,{custom:h},f&&u.createElement(Be.E.div,At({ref:t,className:(0,je.cx)("chakra-offset-slide",a)},St,{animate:p,custom:h},d)))}));function It(){return(It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}c.Ts&&(Mt.displayName="ScaleFade");var Pt={slideInBottom:It({},Ot,{custom:{offsetY:16,reverse:!0}}),slideInRight:It({},Ot,{custom:{offsetX:16,reverse:!0}}),scale:It({},St,{custom:{initialScale:.95,reverse:!0}}),none:{}},Nt=(0,s.m$)(Be.E.section),Rt=u.forwardRef(((e,t)=>{var{preset:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["preset"]),o=Pt[n];return u.createElement(Nt,It({ref:t},o,r))})),Lt=n(94577),Dt=n(72947),jt=new WeakMap,Ht=new WeakMap,Bt={},Ft=0,Ut=function(e,t,n){void 0===t&&(t=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];Bt[n]||(Bt[n]=new WeakMap);var o=Bt[n],i=[],a=new Set,s=function(e){e&&!a.has(e)&&(a.add(e),s(e.parentNode))};r.forEach(s);var c=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))c(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,s=(jt.get(e)||0)+1,u=(o.get(e)||0)+1;jt.set(e,s),o.set(e,u),i.push(e),1===s&&r&&Ht.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return c(t),a.clear(),Ft++,function(){i.forEach((function(e){var t=jt.get(e)-1,r=o.get(e)-1;jt.set(e,t),o.set(e,r),t||(Ht.has(e)||e.removeAttribute("aria-hidden"),Ht.delete(e)),r||e.removeAttribute(n)})),--Ft||(jt=new WeakMap,jt=new WeakMap,Ht=new WeakMap,Bt={})}};var zt=new class{constructor(){var e,t,n;n=void 0,(t="modals")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter((t=>t!==e))}isTopModal(e){return this.modals[this.modals.length-1]===e}};function Vt(){return(Vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gt(e){var t,n,{isOpen:r,onClose:o,id:i,closeOnOverlayClick:a=!0,closeOnEsc:s=!0,useInert:c=!0,onOverlayClick:l,onEsc:d}=e,f=(0,u.useRef)(null),p=(0,u.useRef)(null),[h,m,v]=(0,Lt.ZS)(i,"chakra-modal","chakra-modal--header","chakra-modal--body");t=f,n=r&&c,(0,u.useEffect)((()=>{if(t.current){var e=null;return n&&t.current&&(e=Ut(t.current)),()=>{n&&(null==e||e())}}}),[n,t]),function(e,t){(0,u.useEffect)((()=>(t&&zt.add(e),()=>{zt.remove(e)})),[t,e])}(f,r);var g=(0,u.useRef)(null),y=(0,u.useCallback)((e=>{g.current=e.target}),[]),b=(0,u.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),s&&(null==o||o()),null==d||d())}),[s,o,d]),[E,_]=(0,u.useState)(!1),[T,w]=(0,u.useState)(!1),k=(0,u.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Vt({role:"dialog"},e,{ref:(0,Dt.l)(t,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":T?v:void 0,onClick:(0,Ge.v0)(e.onClick,(e=>e.stopPropagation()))})}),[v,T,h,m,E]),x=(0,u.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&zt.isTopModal(f)&&(a&&(null==o||o()),null==l||l())}),[o,a,l]),O=(0,u.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Vt({},e,{ref:(0,Dt.l)(t,p),onClick:(0,Ge.v0)(e.onClick,x),onKeyDown:(0,Ge.v0)(e.onKeyDown,b),onMouseDown:(0,Ge.v0)(e.onMouseDown,y)})}),[b,y,x]);return{isOpen:r,onClose:o,headerId:m,bodyId:v,setBodyMounted:w,setHeaderMounted:_,dialogRef:f,overlayRef:p,getDialogProps:k,getDialogContainerProps:O}}function Wt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Kt(){return(Kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[qt,Yt]=(0,We.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Zt=e=>{var{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h}=e,m=(0,i.j)("Modal",e),v=Kt({},Gt(e),{autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h});return u.createElement(qt,{value:v},u.createElement(De.Fo,{value:m},u.createElement(He.M,null,v.isOpen&&u.createElement(Le.h,t,n))))};Zt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},c.Ts&&(Zt.displayName="Modal");var $t=(0,s.m$)(Be.E.div),Xt=(0,o.G)(((e,t)=>{var{className:n,children:r,containerProps:o}=e,i=Wt(e,["className","children","containerProps"]),{getDialogProps:a,getDialogContainerProps:c}=Yt(),l=a(i,t),d=c(o),f=(0,je.cx)("chakra-modal__content",n),p=(0,De.yK)(),h=Kt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},p.dialog),m=Kt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},p.dialogContainer),{motionPreset:v}=Yt();return u.createElement(Qt,null,u.createElement(s.m$.div,Kt({},d,{className:"chakra-modal__content-container",__css:m}),u.createElement(Rt,Kt({preset:v,className:f},l,{__css:h}),r)))}));function Qt(e){var{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:c,preserveScrollBarGap:l,lockFocusAcrossFrames:d}=Yt(),[f,p]=(0,Ke.oO)();return u.useEffect((()=>{!f&&p&&setTimeout(p)}),[f,p]),u.createElement(Re,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d},u.createElement(kt,{removeScrollBar:!l,allowPinchZoom:a,enabled:i,forwardProps:!0},e.children))}c.Ts&&(Xt.displayName="ModalContent");var Jt=(0,o.G)(((e,t)=>{var{className:n}=e,r=Wt(e,["className","transition"]),o=(0,je.cx)("chakra-modal__overlay",n),i=Kt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,De.yK)().overlay),{motionPreset:a}=Yt(),s="none"===a?{}:ze;return u.createElement($t,Kt({},s,{__css:i,ref:t,className:o},r))}));c.Ts&&(Jt.displayName="ModalOverlay");var en=(0,o.G)(((e,t)=>{var{className:n}=e,r=Wt(e,["className"]),{headerId:o,setHeaderMounted:i}=Yt();u.useEffect((()=>(i(!0),()=>i(!1))),[i]);var a=(0,je.cx)("chakra-modal__header",n),c=Kt({flex:0},(0,De.yK)().header);return u.createElement(s.m$.header,Kt({ref:t,className:a,id:o},r,{__css:c}))}));c.Ts&&(en.displayName="ModalHeader");var tn=(0,o.G)(((e,t)=>{var{className:n}=e,r=Wt(e,["className"]),{bodyId:o,setBodyMounted:i}=Yt();u.useEffect((()=>(i(!0),()=>i(!1))),[i]);var a=(0,je.cx)("chakra-modal__body",n),c=(0,De.yK)();return u.createElement(s.m$.div,Kt({ref:t,className:a,id:o},r,{__css:c.body}))}));c.Ts&&(tn.displayName="ModalBody");var nn=(0,o.G)(((e,t)=>{var{className:n}=e,r=Wt(e,["className"]),o=(0,je.cx)("chakra-modal__footer",n),i=Kt({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,De.yK)().footer);return u.createElement(s.m$.footer,Kt({ref:t},r,{__css:i,className:o}))}));c.Ts&&(nn.displayName="ModalFooter");var rn=(0,o.G)(((e,t)=>{var{onClick:n,className:r}=e,o=Wt(e,["onClick","className"]),{onClose:i}=Yt(),a=(0,je.cx)("chakra-modal__close-btn",r),s=(0,De.yK)();return u.createElement(f,Kt({ref:t,__css:s.closeButton,className:a,onClick:(0,Ge.v0)(n,(e=>{e.stopPropagation(),i()}))},o))}));c.Ts&&(rn.displayName="ModalCloseButton")},8931:function(e,t,n){"use strict";n.d(t,{D:function(){return be}});var r=n(72947);function o(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function i(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function a(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function s(e){return e instanceof i(e).Element||e instanceof Element}function c(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function u(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return(s(e)?e.ownerDocument:e.document).documentElement}function d(e){return o(l(e)).left+a(e).scrollLeft}function f(e){return i(e).getComputedStyle(e)}function p(e){var t=f(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function h(e,t,n){void 0===n&&(n=!1);var r=l(t),s=o(e),f=c(t),h={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(f||!f&&!n)&&(("body"!==u(t)||p(r))&&(h=function(e){return e!==i(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:a(e);var t}(t)),c(t)?((m=o(t)).x+=t.clientLeft,m.y+=t.clientTop):r&&(m.x=d(r))),{x:s.left+h.scrollLeft-m.x,y:s.top+h.scrollTop-m.y,width:s.width,height:s.height}}function m(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function v(e){return"html"===u(e)?e:e.assignedSlot||e.parentNode||e.host||l(e)}function g(e){return["html","body","#document"].indexOf(u(e))>=0?e.ownerDocument.body:c(e)&&p(e)?e:g(v(e))}function y(e,t){void 0===t&&(t=[]);var n=g(e),r="body"===u(n),o=i(n),a=r?[o].concat(o.visualViewport||[],p(n)?n:[]):n,s=t.concat(a);return r?s:s.concat(y(v(a)))}function b(e){return["table","td","th"].indexOf(u(e))>=0}function E(e){if(!c(e)||"fixed"===f(e).position)return null;var t=e.offsetParent;if(t){var n=l(t);if("body"===u(t)&&"static"===f(t).position&&"static"!==f(n).position)return n}return t}function _(e){for(var t=i(e),n=E(e);n&&b(n)&&"static"===f(n).position;)n=E(n);return n&&"body"===u(n)&&"static"===f(n).position?t:n||function(e){for(var t=v(e);c(t)&&["html","body"].indexOf(u(t))<0;){var n=f(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var T="top",w="bottom",k="right",x="left",O="auto",C=[T,w,k,x],A="start",S="end",M="viewport",I="popper",P=C.reduce((function(e,t){return e.concat([t+"-"+A,t+"-"+S])}),[]),N=[].concat(C,[O]).reduce((function(e,t){return e.concat([t,t+"-"+A,t+"-"+S])}),[]),R=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function L(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function D(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var j={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function B(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?j:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},j),i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],c=!1,u={state:o,setOptions:function(n){l(),o.options=Object.assign(Object.assign(Object.assign({},i),o.options),n),o.scrollParents={reference:s(e)?y(e):e.contextElement?y(e.contextElement):[],popper:y(t)};var c=function(e){var t=L(e);return R.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=c.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:u,options:r}),c=function(){};a.push(s||c)}})),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,n=e.popper;if(H(t,n)){o.rects={reference:h(t,_(n),"fixed"===o.options.strategy),popper:m(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,l=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,r=-1}}},update:D((function(){return new Promise((function(e){u.forceUpdate(),e(o)}))})),destroy:function(){l(),c=!0}};if(!H(e,t))return u;function l(){a.forEach((function(e){return e()})),a=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var F={passive:!0};function U(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function V(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function G(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?U(o):null,a=o?z(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case T:t={x:s,y:n.y-r.height};break;case w:t={x:s,y:n.y+n.height};break;case k:t={x:n.x+n.width,y:c};break;case x:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?V(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case A:t[u]=Math.floor(t[u])-Math.floor(n[l]/2-r[l]/2);break;case S:t[u]=Math.floor(t[u])+Math.ceil(n[l]/2-r[l]/2)}}return t}var W={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,d=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(a),f=d.x,p=d.y,h=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),v=x,g=T,y=window;if(u){var b=_(n);b===i(n)&&(b=l(n)),o===T&&(g=w,p-=b.clientHeight-r.height,p*=c?1:-1),o===x&&(v=k,f-=b.clientWidth-r.width,f*=c?1:-1)}var E,O=Object.assign({position:s},u&&W);return c?Object.assign(Object.assign({},O),{},((E={})[g]=m?"0":"",E[v]=h?"0":"",E.transform=(y.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",E)):Object.assign(Object.assign({},O),{},((t={})[g]=m?p+"px":"",t[v]=h?f+"px":"",t.transform="",t))}var q={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(e){return e.replace(/left|right|bottom|top/g,(function(e){return q[e]}))}var Z={start:"end",end:"start"};function $(e){return e.replace(/start|end/g,(function(e){return Z[e]}))}function X(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Q(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J(e,t){return t===M?Q(function(e){var t=i(e),n=l(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,c=r.offsetTop)),{width:o,height:a,x:s+d(e),y:c}}(e)):c(t)?function(e){var t=o(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Q(function(e){var t=l(e),n=a(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+d(e),c=-n.scrollTop;return"rtl"===f(r||t).direction&&(s+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:s,y:c}}(l(e)))}function ee(e,t,n){var r="clippingParents"===t?function(e){var t=y(v(e)),n=["absolute","fixed"].indexOf(f(e).position)>=0&&c(e)?_(e):e;return s(n)?t.filter((function(e){return s(e)&&X(e,n)&&"body"!==u(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=J(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),J(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function te(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function ne(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function re(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.boundary,c=void 0===a?"clippingParents":a,u=n.rootBoundary,d=void 0===u?M:u,f=n.elementContext,p=void 0===f?I:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,g=void 0===v?0:v,y=te("number"!==typeof g?g:ne(g,C)),b=p===I?"reference":I,E=e.elements.reference,_=e.rects.popper,x=e.elements[m?b:p],O=ee(s(x)?x:x.contextElement||l(e.elements.popper),c,d),A=o(E),S=G({reference:A,element:_,strategy:"absolute",placement:i}),P=Q(Object.assign(Object.assign({},_),S)),N=p===I?P:A,R={top:O.top-N.top+y.top,bottom:N.bottom-O.bottom+y.bottom,left:O.left-N.left+y.left,right:N.right-O.right+y.right},L=e.modifiersData.offset;if(p===I&&L){var D=L[i];Object.keys(R).forEach((function(e){var t=[k,w].indexOf(e)>=0?1:-1,n=[T,w].indexOf(e)>=0?"y":"x";R[e]+=D[n]*t}))}return R}function oe(e,t,n){return Math.max(e,Math.min(t,n))}function ie(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ae(e){return[T,k,w,x].some((function(t){return e[t]>=0}))}var se=B({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,c=void 0===s||s,u=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,F)})),c&&u.addEventListener("resize",n.update,F),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,F)})),c&&u.removeEventListener("resize",n.update,F)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=G({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s={placement:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),K(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),K(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&u(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&u(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=N.reduce((function(e,n){return e[n]=function(e,t,n){var r=U(e),o=[x,T].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[x,k].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=U(v),y=c||(g===v||!h?[Y(v)]:function(e){if(U(e)===O)return[];var t=Y(e);return[$(e),t,$(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(U(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?N:c,l=z(r),d=l?s?P:P.filter((function(e){return z(e)===l})):C,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=re(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[U(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),E=t.rects.reference,_=t.rects.popper,S=new Map,M=!0,I=b[0],R=0;R<b.length;R++){var L=b[R],D=U(L),j=z(L)===A,H=[T,w].indexOf(D)>=0,B=H?"width":"height",F=re(t,{placement:L,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),V=H?j?k:x:j?w:T;E[B]>_[B]&&(V=Y(V));var G=Y(V),W=[];if(i&&W.push(F[D]<=0),s&&W.push(F[V]<=0,F[G]<=0),W.every((function(e){return e}))){I=L,M=!1;break}S.set(L,W)}if(M)for(var K=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return I=t,"break"},q=h?3:1;q>0;q--){if("break"===K(q))break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,v=void 0===h?0:h,g=re(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),y=U(t.placement),b=z(t.placement),E=!b,O=V(y),C="x"===O?"y":"x",S=t.modifiersData.popperOffsets,M=t.rects.reference,I=t.rects.popper,P="function"===typeof v?v(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):v,N={x:0,y:0};if(S){if(i){var R="y"===O?T:x,L="y"===O?w:k,D="y"===O?"height":"width",j=S[O],H=S[O]+g[R],B=S[O]-g[L],F=p?-I[D]/2:0,G=b===A?M[D]:I[D],W=b===A?-I[D]:-M[D],K=t.elements.arrow,q=p&&K?m(K):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=Y[R],$=Y[L],X=oe(0,M[D],q[D]),Q=E?M[D]/2-F-X-Z-P:G-X-Z-P,J=E?-M[D]/2+F+X+$+P:W+X+$+P,ee=t.elements.arrow&&_(t.elements.arrow),te=ee?"y"===O?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,ie=S[O]+Q-ne-te,ae=S[O]+J-ne,se=oe(p?Math.min(H,ie):H,j,p?Math.max(B,ae):B);S[O]=se,N[O]=se-j}if(s){var ce="x"===O?T:x,ue="x"===O?w:k,le=S[C],de=oe(le+g[ce],le,le-g[ue]);S[C]=de,N[C]=de-le}t.modifiersData[r]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=U(n.placement),s=V(a),c=[x,k].indexOf(a)>=0?"height":"width";if(o&&i){var u=n.modifiersData[r+"#persistent"].padding,l=m(o),d="y"===s?T:x,f="y"===s?w:k,p=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],h=i[s]-n.rects.reference[s],v=_(o),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=p/2-h/2,b=u[d],E=g-l[c]-u[f],O=g/2-l[c]/2+y,C=oe(b,O,E),A=s;n.modifiersData[r]=((t={})[A]=C,t.centerOffset=C-O,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,a=n.padding,s=void 0===a?0:a;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i)))&&X(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:te("number"!==typeof s?s:ne(s,C))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=re(t,{elementContext:"reference"}),s=re(t,{altBoundary:!0}),c=ie(a,r),u=ie(s,o,i),l=ae(c),d=ae(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),ce=n(67294),ue=n(23459),le={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{var{state:t}=e;t.styles.popper.width=t.rects.reference.width+"px"},effect:e=>{var{state:t}=e;return()=>{var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},de={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{var{state:t}=e;fe(t)},effect:e=>{var{state:t}=e;return()=>{fe(t)}}},fe=e=>{e.elements.popper.style.setProperty(ue.Dq.transformOrigin.var,(0,ue.mv)(e.placement))},pe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{var{state:t}=e;he(t)}},he=e=>{var t;if(e.placement){var n=me(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ue.Dq.arrowSize.varRef,height:ue.Dq.arrowSize.varRef,zIndex:-1});var r={[ue.Dq.arrowSizeHalf.var]:"calc("+ue.Dq.arrowSize.varRef+" / 2)",[ue.Dq.arrowOffset.var]:"calc("+ue.Dq.arrowSizeHalf.varRef+" * -1)"};for(var o in r)e.elements.arrow.style.setProperty(o,r[o])}}},me=e=>e.startsWith("top")?{property:"bottom",value:ue.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ue.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ue.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ue.Dq.arrowOffset.varRef}:void 0,ve={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{var{state:t}=e;ge(t)},effect:e=>{var{state:t}=e;return()=>{ge(t)}}},ge=e=>{if(e.elements.arrow){var t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");t&&Object.assign(t.style,{transform:"rotate(45deg)",background:ue.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(0,ue.Ke)(e.placement)})}};function ye(){return(ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function be(e){void 0===e&&(e={});var{enabled:t=!0,modifiers:n=[],placement:o="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:s=!0,offset:c,gutter:u=8,flip:l=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p}=e,h=(0,ce.useRef)(null),m=(0,ce.useRef)(null),v=(0,ce.useRef)(null),g=(0,ce.useRef)((()=>{})),y=(0,ce.useCallback)((()=>{t&&h.current&&m.current&&(null==g.current||g.current(),v.current=se(h.current,m.current,{placement:o,modifiers:[ve,pe,de,ye({},le,{enabled:!!p}),ye({name:"eventListeners"},(0,ue.$B)(s)),{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=c?c:[0,u]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n],strategy:i}),v.current.forceUpdate(),g.current=v.current.destroy)}),[t,o,n,p,s,a,c,u,l,f,d,i]);(0,ce.useEffect)((()=>()=>{var e;h.current||m.current||(null==(e=v.current)||e.destroy(),v.current=null)}),[]);var b=(0,ce.useCallback)((e=>{h.current=e,y()}),[y]),E=(0,ce.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:(0,r.l)(b,t)})}),[b]),_=(0,ce.useCallback)((e=>{m.current=e,y()}),[y]),T=(0,ce.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:(0,r.l)(_,t),style:ye({},e.style,{position:i,minWidth:"max-content",inset:"0 auto auto 0"})})}),[i,_]),w=(0,ce.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["size","shadowColor","bg","style"]),{ref:t,"data-popper-arrow":"",style:Ee(e)})}),[]),k=(0,ce.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update(){var e;null==(e=v.current)||e.update()},forceUpdate(){var e;null==(e=v.current)||e.forceUpdate()},transformOrigin:ue.Dq.transformOrigin.varRef,referenceRef:b,popperRef:_,getPopperProps:T,getArrowProps:w,getArrowInnerProps:k,getReferenceProps:E}}function Ee(e){var{size:t,shadowColor:n,bg:r,style:o}=e,i=ye({},o,{position:"absolute"});return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}},23459:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Dq:function(){return i},Ke:function(){return a},mv:function(){return c},$B:function(){return l}});var o=(e,t)=>({var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}),i={arrowShadowColor:o("--popper-arrow-shadow-color"),arrowSize:o("--popper-arrow-size","8px"),arrowSizeHalf:o("--popper-arrow-size-half"),arrowBg:o("--popper-arrow-bg"),transformOrigin:o("--popper-transform-origin"),arrowOffset:o("--popper-arrow-offset")};function a(e){return e.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0}var s={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},c=e=>s[e],u={scroll:!0,resize:!0};function l(e){return"object"===typeof e?{enabled:!0,options:r({},u,e)}:{enabled:e,options:u}}},67273:function(e,t,n){"use strict";n.d(t,{h:function(){return b}});var r=n(67294),o=n(77581);function i(){var e=r.useRef(!1),[t,n]=r.useState(0);return(0,o.z)((()=>{e.current=!0})),r.useCallback((()=>{e.current||n(t+1)}),[t])}var a=n(68327),s=n(84461),c=n(73808),u=n(28500),l=n(73935),d=n(34288);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[p,h]=(0,u.k)({strict:!1,name:"PortalContext"}),m="chakra-portal",v=e=>r.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children),g=e=>{var{appendToParentPortal:t,children:n}=e,o=r.useRef(null),s=r.useRef(null),c=i(),u=h(),f=(0,d.L)();(0,a.G)((()=>{if(o.current){var e=o.current.ownerDocument,n=t&&null!=u?u:e.body;if(n){s.current=e.createElement("div"),s.current.className=m,n.appendChild(s.current),c();var r=s.current;return()=>{n.contains(r)&&n.removeChild(r)}}}}),[]);var g=null!=f&&f.zIndex?r.createElement(v,{zIndex:null==f?void 0:f.zIndex},n):n;return s.current?(0,l.createPortal)(r.createElement(p,{value:s.current},g),s.current):r.createElement("span",{ref:o})},y=e=>{var{children:t,containerRef:n,appendToParentPortal:o}=e,c=n.current,u=null!=c?c:s.jU?document.body:void 0,d=r.useMemo((()=>{var e=null==c?void 0:c.ownerDocument.createElement("div");return e&&(e.className=m),e}),[c]),f=i();return(0,a.G)((()=>{f()}),[]),(0,a.G)((()=>{if(d&&u)return u.appendChild(d),()=>{u.removeChild(d)}}),[d,u]),u&&d?(0,l.createPortal)(r.createElement(p,{value:o?d:null},t),d):null};function b(e){var{containerRef:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["containerRef"]);return t?r.createElement(y,f({containerRef:t},n)):r.createElement(g,n)}b.defaultProps={appendToParentPortal:!0},b.className=m,b.selector=".chakra-portal",c.Ts&&(b.displayName="Portal")},60418:function(e,t,n){"use strict";t.__esModule=!0,t.getValidChildren=function(e){return r.Children.toArray(e).filter((function(e){return r.isValidElement(e)}))};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},40805:function(e,t,n){"use strict";t.__esModule=!0,t.createContext=function(e){void 0===e&&(e={});var t=e,n=t.strict,o=void 0===n||n,i=t.errorMessage,a=void 0===i?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":i,s=t.name,c=r.createContext(void 0);return c.displayName=s,[c.Provider,function e(){var t=r.useContext(c);if(!t&&o){var n=new Error(a);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},c]};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},19277:function(e,t,n){"use strict";t.__esModule=!0;var r=n(73702);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(40805);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(47412);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(60418);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},73702:function(e,t,n){"use strict";t.__esModule=!0,t.assignRef=o,t.mergeRefs=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){return o(t,e)}))}};var r=n(66751);function o(e,t){if(null!=e)if((0,r.isFunction)(e))e(t);else try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}},47412:function(){},24255:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(67294);function o(e){return r.Children.toArray(e).filter((e=>r.isValidElement(e)))}},72947:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(73808);function o(e,t){if(null!=e)if((0,r.mf)(e))e(t);else try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>o(t,e)))}}},40980:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return o.useTheme}});n(62300);var r=n(84806);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var o=n(11180)},46049:function(e,t,n){"use strict";n.d(t,{Ph:function(){return P}});var r=n(84461),o=n(80658),i=n(94577),a=n(90639),s=n(90063),c=n(2326),u=n(55284),l=n(29676),d=n(89384),f=n(73808),p=n(28500),h=n(72947),m=n(67294);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var[y,b]=(0,p.k)({strict:!1,name:"FormControlContext"});var E=(0,s.G)(((e,t)=>{var n=(0,c.j)("Form",e),s=function(e){var{id:t,isRequired:n,isInvalid:s,isDisabled:c,isReadOnly:u}=e,l=g(e,["id","isRequired","isInvalid","isDisabled","isReadOnly"]),d=(0,i.Me)(),f=t||"field-"+d,p=f+"-label",y=f+"-feedback",b=f+"-helptext",[E,_]=m.useState(!1),[T,w]=m.useState(!1),[k,x]=(0,a.k)(),O=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({id:b},e,{ref:(0,h.l)(t,(e=>{e&&w(!0)}))})}),[b]),C=m.useCallback((function(e,t){var n,o;return void 0===e&&(e={}),void 0===t&&(t=null),v({},e,{ref:t,"data-focus":(0,r.PB)(k),"data-disabled":(0,r.PB)(c),"data-invalid":(0,r.PB)(s),"data-readonly":(0,r.PB)(u),id:null!=(n=e.id)?n:p,htmlFor:null!=(o=e.htmlFor)?o:f})}),[f,c,k,s,u,p]),A=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({id:y},e,{ref:(0,h.l)(t,(e=>{e&&_(!0)})),"aria-live":"polite"})}),[y]),S=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({},e,l,{ref:t,role:"group"})}),[l]),M=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),v({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]),I=m.useCallback((()=>{(0,o.A4)(x.on)}),[x]);return{isRequired:!!n,isInvalid:!!s,isReadOnly:!!u,isDisabled:!!c,isFocused:!!k,onFocus:I,onBlur:x.off,hasFeedbackText:E,setHasFeedbackText:_,hasHelpText:T,setHasHelpText:w,id:f,labelId:p,feedbackId:y,helpTextId:b,htmlProps:l,getHelpTextProps:O,getErrorMessageProps:A,getRootProps:S,getLabelProps:C,getRequiredIndicatorProps:M}}((0,u.Lr)(e)),{getRootProps:f}=s,p=g(s,["getRootProps","htmlProps"]),b=(0,r.cx)("chakra-form-control",e.className),E=m.useMemo((()=>p),[p]);return m.createElement(y,{value:E},m.createElement(l.Fo,{value:n},m.createElement(d.m$.div,v({},f({},t),{className:b,__css:{width:"100%",position:"relative"}}))))}));f.Ts&&(E.displayName="FormControl");var _=(0,s.G)(((e,t)=>{var n=b(),o=(0,l.yK)(),i=(0,r.cx)("chakra-form__helper-text",e.className);return m.createElement(d.m$.div,v({},null==n?void 0:n.getHelpTextProps(e,t),{__css:o.helperText,className:i}))}));function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function k(e){var t=function(e){var t,n,r,i=b(),{id:a,disabled:s,readOnly:c,required:u,isRequired:l,isInvalid:d,isReadOnly:f,isDisabled:p,onFocus:h,onBlur:m}=e,v=w(e,["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"]),g=[];null!=i&&i.hasFeedbackText&&null!=i&&i.isInvalid&&g.push(i.feedbackId);null!=i&&i.hasHelpText&&g.push(i.helpTextId);return T({},v,{"aria-describedby":g.join(" ")||void 0,id:null!=a?a:null==i?void 0:i.id,isDisabled:null!=(t=null!=s?s:p)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=c?c:f)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(r=null!=u?u:l)?r:null==i?void 0:i.isRequired,isInvalid:null!=d?d:null==i?void 0:i.isInvalid,onFocus:(0,o.v0)(null==i?void 0:i.onFocus,h),onBlur:(0,o.v0)(null==i?void 0:i.onBlur,m)})}(e),{isDisabled:n,isInvalid:i,isReadOnly:a,isRequired:s}=t;return T({},w(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:a,required:s,"aria-invalid":(0,r.Qm)(i),"aria-required":(0,r.Qm)(s),"aria-readonly":(0,r.Qm)(a)})}f.Ts&&(_.displayName="FormHelperText");var x=n(9421),O=n(4651),C=n(38554),A=n.n(C);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function M(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var I=(0,s.G)(((e,t)=>{var{children:n,placeholder:o,className:i}=e,a=k(M(e,["children","placeholder","className"]));return m.createElement(d.m$.select,S({},a,{ref:t,className:(0,r.cx)("chakra-select",i)}),o&&m.createElement("option",{value:""},o),n)}));f.Ts&&(I.displayName="SelectField");var P=(0,s.G)(((e,t)=>{var n=(0,c.j)("Select",e),r=(0,u.Lr)(e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:f,minH:p,minHeight:h,iconColor:v,iconSize:g}=r,y=M(r,["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize","isFullWidth"]),[b,E]=(0,O.Vl)(y,x.layoutPropNames),_={width:"100%",height:"fit-content",position:"relative",color:s},T=A()({},n.field,{paddingEnd:"2rem",_focus:{zIndex:"unset"}});return m.createElement(d.m$.div,S({className:"chakra-select__wrapper",__css:_},b,o),m.createElement(I,S({ref:t,height:null!=f?f:l,minH:null!=p?p:h,placeholder:i},E,{__css:T}),e.children),m.createElement(L,S({"data-disabled":e.isDisabled},(v||s)&&{color:v||s},{__css:n.icon},g&&{fontSize:g}),a))}));f.Ts&&(P.displayName="Select");var N=e=>m.createElement("svg",S({viewBox:"0 0 24 24"},e),m.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),R=(0,d.m$)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),L=e=>{var{children:t=m.createElement(N,null)}=e,n=M(e,["children"]),r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return m.createElement(R,S({},n,{className:"chakra-select__icon-wrapper"}),m.isValidElement(t)?r:null)};f.Ts&&(L.displayName="SelectIcon")},95818:function(e,t,n){"use strict";n.d(t,{iR:function(){return ne},Ms:function(){return ie},gs:function(){return re},Uj:function(){return oe}});var r=n(90063),o=n(2326),i=n(55284),a=n(29676),s=n(89384),c=n(73808),u=n(84461),l=n(28500),d=n(67294),f=n(10762),p=n(51034),h=n(90639);var m=n(94577),v=n(78244),g=n(68327);var y=n(22653),b=n(9839);function E(e){return!!e.touches}var _={pageX:0,pageY:0};function T(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||_;return{x:n[t+"X"],y:n[t+"Y"]}}function w(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function k(e,t){return void 0===t&&(t="page"),{point:E(e)?T(e,t):w(e,t)}}var x=function(e,t){void 0===t&&(t=!1);var n,r=t=>e(t,k(t));return t?(n=r,e=>{var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},O={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},C={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function A(e){return u.jU&&null===window.onpointerdown?e:u.jU&&null===window.ontouchstart?C[e]:u.jU&&null===window.onmousedown?O[e]:e}function S(e,t,n,r){return(0,u.EV)(e,A(t),x(n,"pointerdown"===t),r)}var M=n(80658);function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class N{constructor(e,t,n){if(P(this,"history",[]),P(this,"startEvent",null),P(this,"lastEvent",null),P(this,"lastEventInfo",null),P(this,"handlers",{}),P(this,"removeListeners",M.ZT),P(this,"threshold",3),P(this,"updatePoint",(()=>{if(this.lastEvent&&this.lastEventInfo){var e=j(this.lastEventInfo,this.history),t=null!==this.startEvent,n=(0,M.TE)(e.offset,{x:0,y:0})>=this.threshold;if(t||n){var{timestamp:r}=(0,b.$B)();this.history.push(I({},e.point,{timestamp:r}));var{onStart:o,onMove:i}=this.handlers;t||(null==o||o(this.lastEvent,e),this.startEvent=this.lastEvent),null==i||i(this.lastEvent,e)}}})),P(this,"onPointerMove",((e,t)=>{this.lastEvent=e,this.lastEventInfo=t,function(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(e)&&0===e.buttons?this.onPointerUp(e,t):b.ZP.update(this.updatePoint,!0)})),P(this,"onPointerUp",((e,t)=>{var n=j(t,this.history),{onEnd:r,onSessionEnd:o}=this.handlers;null==o||o(e,n),this.end(),r&&this.startEvent&&(null==r||r(e,n))})),!(E(r=e)&&r.touches.length>1)){var r;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var o=k(e),{timestamp:i}=(0,b.$B)();this.history=[I({},o.point,{timestamp:i})];var{onSessionStart:a}=t;null==a||a(e,j(o,this.history)),this.removeListeners=(0,M.zG)(S(window,"pointermove",this.onPointerMove),S(window,"pointerup",this.onPointerUp),S(window,"pointercancel",this.onPointerUp))}}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),b.qY.update(this.updatePoint)}}function R(e,t){return{x:e.x-t.x,y:e.y-t.y}}function L(e){return e[0]}function D(e){return e[e.length-1]}function j(e,t){return{point:e.point,delta:R(e.point,D(t)),offset:R(e.point,L(t)),velocity:H(t,.1)}}function H(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var B=n(34941);var F=n(77581);function U(e,t){var n,r,o,i,{onPan:a,onPanStart:s,onPanEnd:c,onPanSessionStart:u,onPanSessionEnd:l}=t,f=Boolean(a||s||c||u||l),p=(0,d.useRef)(null),h={onSessionStart:u,onSessionEnd:l,onStart:s,onMove:a,onEnd(e,t){p.current=null,null==c||c(e,t)}};(0,d.useEffect)((()=>{var e;null==(e=p.current)||e.updateHandlers(h)})),n=()=>e.current,r="pointerdown",o=f?function(e){p.current=new N(e,h)}:M.ZT,(0,B.O)(A(r),x(o,"pointerdown"===r),n,i),(0,F.z)((()=>{var e;null==(e=p.current)||e.end(),p.current=null}))}var z=n(72947);Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;function V(e,t){var n=function(e){var t=parseFloat(e);return(0,c.iy)(t)?0:t}(e),r=10**(null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function G(e,t,n){return 100*(e-t)/(n-t)}function W(e,t,n){return V(Math.round((e-t)/n)*n+t,function(e){if(!Number.isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(n))}function K(e,t,n){return null==e?e:((0,M.ZK)({condition:n<t,message:"clamp: max cannot be less than min"}),Math.min(Math.max(e,t),n))}var q=n(47248);function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Z(e){var{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}function $(){return($=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function X(e){var t,{min:n=0,max:r=100,onChange:o,value:i,defaultValue:a,isReversed:s,orientation:c="horizontal",id:l,isDisabled:b,isReadOnly:E,onChangeStart:_,onChangeEnd:T,step:w=1,getAriaValueText:k,"aria-valuetext":x,"aria-label":O,"aria-labelledby":C,name:A,focusThumbOnChange:S=!0}=e,I=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["min","max","onChange","value","defaultValue","isReversed","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"]),P=(0,f.W)(_),N=(0,f.W)(T),R=(0,f.W)(k),[L,D]=(0,p.T)({value:i,defaultValue:null!=a?a:Q(n,r),onChange:o}),[j,H]=(0,h.k)(),B=function(e){var t=(0,d.useRef)();return(0,d.useEffect)((()=>{t.current=e}),[e]),t.current}(j),[F,V]=(0,h.k)(),X=(0,d.useRef)(null),J=!(b||E),ee=K(L,n,r),te=function(e){var t=d.useRef(null);return t.current=e,t}(ee),ne=(0,d.useRef)(te.current),re=G(s?r-ee+n:ee,n,r),oe="vertical"===c,ie=(0,d.useRef)(null),ae=(0,d.useRef)(null),se=(0,d.useRef)(null),[ce,ue]=(0,m.ZS)(l,"slider-thumb","slider-track"),le=(0,d.useCallback)((e=>{var t,o;if(ie.current){X.current="pointer";var i=(0,v.getBox)(ie.current).borderBox,{clientX:a,clientY:c}=null!=(t=null==(o=e.touches)?void 0:o[0])?t:e,u=(oe?i.bottom-c:a-i.left)/(oe?i.height:i.width);s&&(u=1-u);var l=function(e,t,n){return(n-t)*e+t}(u,n,r);return w&&(l=parseFloat(W(l,n,w))),l=K(l,n,r)}}),[oe,s,r,n,w]),de=(r-n)/10,fe=w||(r-n)/100,pe=(0,d.useCallback)((e=>{J&&(e=K(e=parseFloat(W(e,n,fe)),n,r),D(e))}),[fe,r,n,D,J]),he=(0,d.useMemo)((()=>({stepUp:function(e){void 0===e&&(e=fe),pe(s?ee-e:ee+e)},stepDown:function(e){void 0===e&&(e=fe),pe(s?ee+e:ee-e)},reset:()=>pe(a||0),stepTo:e=>pe(e)})),[pe,s,ee,fe,a]),me=(0,d.useCallback)((e=>{var t={ArrowRight:()=>he.stepUp(),ArrowUp:()=>he.stepUp(),ArrowLeft:()=>he.stepDown(),ArrowDown:()=>he.stepDown(),PageUp:()=>he.stepUp(de),PageDown:()=>he.stepDown(de),Home:()=>pe(n),End:()=>pe(r)}[(0,u.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),X.current="keyboard")}),[he,pe,r,n,de]),ve=null!=(t=null==R?void 0:R(ee))?t:x,ge=function(e,t){var[n,r]=d.useState(null),o=d.useRef();return(0,g.G)((()=>{if(e.current){var n=e.current;return i(),t&&(window.addEventListener("resize",i),window.addEventListener("scroll",i)),()=>{t&&(window.removeEventListener("resize",i),window.removeEventListener("scroll",i)),o.current&&cancelAnimationFrame(o.current)}}function i(){o.current=requestAnimationFrame((()=>{var e=(0,v.getBox)(n);r(e)}))}}),[t]),n}(ae),{thumbStyle:ye,rootStyle:be,trackStyle:Ee,innerTrackStyle:_e}=(0,d.useMemo)((()=>{var e,t=null!=(e=null==ge?void 0:ge.borderBox)?e:{width:0,height:0};return function(e){var{orientation:t,trackPercent:n,thumbRect:r,isReversed:o}=e,i=Y({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none"},Z({orientation:t,vertical:{bottom:"calc("+n+"% - "+r.height/2+"px)"},horizontal:{left:"calc("+n+"% - "+r.width/2+"px)"}})),a=Y({position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},Z({orientation:t,vertical:{paddingLeft:r.width/2,paddingRight:r.width/2},horizontal:{paddingTop:r.height/2,paddingBottom:r.height/2}})),s=Y({position:"absolute"},Z({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}}));return{trackStyle:s,innerTrackStyle:Y({},s,Z({orientation:t,vertical:o?{height:100-n+"%",top:0}:{height:n+"%",bottom:0},horizontal:o?{width:100-n+"%",right:0}:{width:n+"%",left:0}})),rootStyle:a,thumbStyle:i}}({isReversed:s,orientation:c,thumbRect:t,trackPercent:re})}),[s,c,null==ge?void 0:ge.borderBox,re]),Te=(0,d.useCallback)((()=>{ae.current&&S&&setTimeout((()=>(0,q.T)(ae.current)))}),[S]);(0,y.r)((()=>{Te(),"keyboard"===X.current&&(null==T||T(te.current))}),[ee,T]);var we=e=>{var t=le(e);null!=t&&t!==te.current&&D(t)};U(se,{onPanSessionStart(e){J&&we(e)},onPanSessionEnd(){J&&(B||ne.current===te.current||(null==N||N(te.current),ne.current=te.current))},onPanStart(){J&&(H.on(),null==P||P(te.current))},onPan(e){J&&we(e)},onPanEnd(){J&&(H.off(),null==N||N(te.current))}});var ke=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),$({},e,I,{ref:(0,z.l)(t,se),tabIndex:-1,"aria-disabled":(0,u.Qm)(b),"data-focused":(0,u.PB)(F),style:$({},e.style,be)})}),[I,b,F,be]),xe=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),$({},e,{ref:(0,z.l)(t,ie),id:ue,"data-disabled":(0,u.PB)(b),style:$({},e.style,Ee)})}),[b,ue,Ee]),Oe=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),$({},e,{ref:t,style:$({},e.style,_e)})}),[_e]),Ce=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),$({},e,{ref:(0,z.l)(t,ae),role:"slider",tabIndex:J?0:void 0,id:ce,"data-active":(0,u.PB)(j),"aria-valuetext":ve,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":ee,"aria-orientation":c,"aria-disabled":(0,u.Qm)(b),"aria-readonly":(0,u.Qm)(E),"aria-label":O,"aria-labelledby":O?void 0:C,style:$({},e.style,ye),onKeyDown:(0,M.v0)(e.onKeyDown,me),onFocus:(0,M.v0)(e.onFocus,V.on),onBlur:(0,M.v0)(e.onBlur,V.off)})}),[O,C,b,j,E,J,r,n,me,c,V.off,V.on,ce,ye,ee,ve]),Ae=(0,d.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var o=!(e.value<n||e.value>r),i=ee>=e.value,a=G(e.value,n,r),l=$({position:"absolute",pointerEvents:"none"},function(e){var{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}({orientation:c,vertical:{bottom:s?100-a+"%":a+"%"},horizontal:{left:s?100-a+"%":a+"%"}}));return $({},e,{ref:t,role:"presentation","aria-hidden":!0,"data-disabled":(0,u.PB)(b),"data-invalid":(0,u.PB)(!o),"data-highlighted":(0,u.PB)(i),style:$({},e.style,l)})}),[b,s,r,n,c,ee]),Se=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),$({},e,{ref:t,type:"hidden",value:ee,name:A})}),[A,ee]);return{state:{value:ee,isFocused:F,isDragging:j},actions:he,getRootProps:ke,getTrackProps:xe,getInnerTrackProps:Oe,getThumbProps:Ce,getMarkerProps:Ae,getInputProps:Se}}function Q(e,t){return t<e?e:e+(t-e)/2}function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var[ee,te]=(0,l.k)({name:"SliderContext",errorMessage:"useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <Slider />"}),ne=(0,r.G)(((e,t)=>{var n=(0,o.j)("Slider",e),r=X((0,i.Lr)(e)),{getInputProps:c,getRootProps:u}=r,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["getInputProps","getRootProps"]),f=u(),p=c({},t),h=J({display:"inline-block",position:"relative",cursor:"pointer"},n.container);return d.createElement(ee,{value:l},d.createElement(a.Fo,{value:n},d.createElement(s.m$.div,J({},f,{className:"chakra-slider",__css:h}),e.children,d.createElement("input",p))))}));ne.defaultProps={orientation:"horizontal"},c.Ts&&(ne.displayName="Slider");var re=(0,r.G)(((e,t)=>{var{getThumbProps:n}=te(),r=J({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0},(0,a.yK)().thumb),o=n(e,t);return d.createElement(s.m$.div,J({},o,{className:(0,u.cx)("chakra-slider__thumb",e.className),__css:r}))}));c.Ts&&(re.displayName="SliderThumb");var oe=(0,r.G)(((e,t)=>{var{getTrackProps:n}=te(),r=J({overflow:"hidden"},(0,a.yK)().track),o=n(e,t);return d.createElement(s.m$.div,J({},o,{className:(0,u.cx)("chakra-slider__track",e.className),__css:r}))}));c.Ts&&(oe.displayName="SliderTrack");var ie=(0,r.G)(((e,t)=>{var{getInnerTrackProps:n}=te(),r=J({width:"inherit",height:"inherit"},(0,a.yK)().filledTrack),o=n(e,t);return d.createElement(s.m$.div,J({},o,{className:"chakra-slider__filled-track",__css:r}))}));c.Ts&&(ie.displayName="SliderFilledTrack");var ae=(0,r.G)(((e,t)=>{var{getMarkerProps:n}=te(),r=n(e,t);return d.createElement(s.m$.div,J({},r,{className:(0,u.cx)("chakra-slider__marker",e.className)}))}));c.Ts&&(ae.displayName="SliderMark")},90716:function(e,t,n){"use strict";t.__esModule=!0;var r=n(55478);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},55478:function(e,t,n){"use strict";t.__esModule=!0,t.Spinner=void 0;var r=n(48121),o=n(66751),i=n(22944),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,r.keyframes)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),l=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Spinner",e),s=(0,r.omitThemingProps)(e),l=s.label,d=void 0===l?"Loading...":l,f=s.thickness,p=void 0===f?"2px":f,h=s.speed,m=void 0===h?"0.45s":h,v=s.emptyColor,g=void 0===v?"transparent":v,y=s.className,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(s,["label","thickness","speed","emptyColor","className"]),E=(0,o.cx)("chakra-spinner",y),_=c({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:p,borderBottomColor:g,borderLeftColor:g,animation:u+" "+m+" linear infinite"},n);return a.createElement(r.chakra.div,c({ref:t,__css:_,className:E},b),d&&a.createElement(i.VisuallyHidden,null,d))}));t.Spinner=l,o.__DEV__&&(l.displayName="Spinner")},56693:function(e,t,n){"use strict";t.__esModule=!0,t.background=void 0;var r=n(77050),o={background:r.t.colors("background"),backgroundColor:r.t.colors("backgroundColor"),backgroundImage:r.t.propT("backgroundImage",r.transforms.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:r.transforms.bgClip},bgSize:r.t.prop("backgroundSize"),bgPosition:r.t.prop("backgroundPosition"),bg:r.t.colors("background"),bgColor:r.t.colors("backgroundColor"),bgPos:r.t.prop("backgroundPosition"),bgRepeat:r.t.prop("backgroundRepeat"),bgAttachment:r.t.prop("backgroundAttachment"),bgGradient:r.t.propT("backgroundImage",r.transforms.gradient),bgClip:{transform:r.transforms.bgClip}};t.background=o,Object.assign(o,{bgImage:o.backgroundImage,bgImg:o.backgroundImage})},24689:function(e,t,n){"use strict";t.__esModule=!0,t.border=void 0;var r=n(77050),o={border:r.t.borders("border"),borderWidth:r.t.borderWidths("borderWidth"),borderStyle:r.t.borderStyles("borderStyle"),borderColor:r.t.colors("borderColor"),borderRadius:r.t.radii("borderRadius"),borderTop:r.t.borders("borderTop"),borderBlockStart:r.t.borders("borderBlockStart"),borderTopLeftRadius:r.t.radii("borderTopLeftRadius"),borderStartStartRadius:r.t.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:r.t.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:r.t.radii("borderTopRightRadius"),borderStartEndRadius:r.t.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:r.t.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:r.t.borders("borderRight"),borderInlineEnd:r.t.borders("borderInlineEnd"),borderBottom:r.t.borders("borderBottom"),borderBlockEnd:r.t.borders("borderBlockEnd"),borderBottomLeftRadius:r.t.radii("borderBottomLeftRadius"),borderBottomRightRadius:r.t.radii("borderBottomRightRadius"),borderLeft:r.t.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:r.t.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:r.t.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:r.t.borders(["borderLeft","borderRight"]),borderInline:r.t.borders("borderInline"),borderY:r.t.borders(["borderTop","borderBottom"]),borderBlock:r.t.borders("borderBlock"),borderTopWidth:r.t.borderWidths("borderTopWidth"),borderBlockStartWidth:r.t.borderWidths("borderBlockStartWidth"),borderTopColor:r.t.colors("borderTopColor"),borderBlockStartColor:r.t.colors("borderBlockStartColor"),borderTopStyle:r.t.borderStyles("borderTopStyle"),borderBlockStartStyle:r.t.borderStyles("borderBlockStartStyle"),borderBottomWidth:r.t.borderWidths("borderBottomWidth"),borderBlockEndWidth:r.t.borderWidths("borderBlockEndWidth"),borderBottomColor:r.t.colors("borderBottomColor"),borderBlockEndColor:r.t.colors("borderBlockEndColor"),borderBottomStyle:r.t.borderStyles("borderBottomStyle"),borderBlockEndStyle:r.t.borderStyles("borderBlockEndStyle"),borderLeftWidth:r.t.borderWidths("borderLeftWidth"),borderInlineStartWidth:r.t.borderWidths("borderInlineStartWidth"),borderLeftColor:r.t.colors("borderLeftColor"),borderInlineStartColor:r.t.colors("borderInlineStartColor"),borderLeftStyle:r.t.borderStyles("borderLeftStyle"),borderInlineStartStyle:r.t.borderStyles("borderInlineStartStyle"),borderRightWidth:r.t.borderWidths("borderRightWidth"),borderInlineEndWidth:r.t.borderWidths("borderInlineEndWidth"),borderRightColor:r.t.colors("borderRightColor"),borderInlineEndColor:r.t.colors("borderInlineEndColor"),borderRightStyle:r.t.borderStyles("borderRightStyle"),borderInlineEndStyle:r.t.borderStyles("borderInlineEndStyle"),borderTopRadius:r.t.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:r.t.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:r.t.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:r.t.radii(["borderTopRightRadius","borderBottomRightRadius"])};t.border=o,Object.assign(o,{rounded:o.borderRadius,roundedTop:o.borderTopRadius,roundedTopLeft:o.borderTopLeftRadius,roundedTopRight:o.borderTopRightRadius,roundedTopStart:o.borderStartStartRadius,roundedTopEnd:o.borderStartEndRadius,roundedBottom:o.borderBottomRadius,roundedBottomLeft:o.borderBottomLeftRadius,roundedBottomRight:o.borderBottomRightRadius,roundedBottomStart:o.borderEndStartRadius,roundedBottomEnd:o.borderEndEndRadius,roundedLeft:o.borderLeftRadius,roundedRight:o.borderRightRadius,roundedStart:o.borderInlineStartRadius,roundedEnd:o.borderInlineEndRadius,borderStart:o.borderInlineStart,borderEnd:o.borderInlineEnd,borderTopStartRadius:o.borderStartStartRadius,borderTopEndRadius:o.borderStartEndRadius,borderBottomStartRadius:o.borderEndStartRadius,borderBottomEndRadius:o.borderEndEndRadius,borderStartRadius:o.borderInlineStartRadius,borderEndRadius:o.borderInlineEndRadius,borderStartWidth:o.borderInlineStartWidth,borderEndWidth:o.borderInlineEndWidth,borderStartColor:o.borderInlineStartColor,borderEndColor:o.borderInlineEndColor,borderStartStyle:o.borderInlineStartStyle,borderEndStyle:o.borderInlineEndStyle})},4561:function(e,t,n){"use strict";t.__esModule=!0,t.color=void 0;var r=n(77050),o={color:r.t.colors("color"),textColor:r.t.colors("color"),fill:r.t.colors("fill"),stroke:r.t.colors("stroke")};t.color=o},93103:function(e,t,n){"use strict";t.__esModule=!0,t.effect=void 0;var r=n(77050),o={boxShadow:r.t.shadows("boxShadow"),mixBlendMode:!0,blendMode:r.t.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:r.t.prop("backgroundBlendMode"),opacity:!0};t.effect=o,Object.assign(o,{shadow:o.boxShadow})},94015:function(e,t,n){"use strict";t.__esModule=!0,t.filter=void 0;var r=n(77050),o={filter:{transform:r.transforms.filter},blur:r.t.blur("--chakra-blur"),brightness:r.t.propT("--chakra-brightness",r.transforms.brightness),contrast:r.t.propT("--chakra-contrast",r.transforms.contrast),hueRotate:r.t.degreeT("--chakra-hue-rotate"),invert:r.t.propT("--chakra-invert",r.transforms.invert),saturate:r.t.propT("--chakra-saturate",r.transforms.saturate),dropShadow:r.t.propT("--chakra-drop-shadow",r.transforms.dropShadow),backdropFilter:{transform:r.transforms.backdropFilter},backdropBlur:r.t.blur("--chakra-backdrop-blur"),backdropBrightness:r.t.propT("--chakra-backdrop-brightness",r.transforms.brightness),backdropContrast:r.t.propT("--chakra-backdrop-contrast",r.transforms.contrast),backdropHueRotate:r.t.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:r.t.propT("--chakra-backdrop-invert",r.transforms.invert),backdropSaturate:r.t.propT("--chakra-backdrop-saturate",r.transforms.saturate)};t.filter=o},17608:function(e,t,n){"use strict";t.__esModule=!0,t.flexbox=void 0;var r=n(77050),o=n(41629),i=n(23744),a={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:r.transforms.flexDirection},experimental_spaceX:{static:i.spaceXTemplate,transform:(0,o.createTransform)({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:i.spaceYTemplate,transform:(0,o.createTransform)({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:r.t.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};t.flexbox=a,Object.assign(a,{flexDir:a.flexDirection})},41474:function(e,t,n){"use strict";t.__esModule=!0,t.grid=void 0;var r=n(77050),o={gridGap:r.t.space("gridGap"),gridColumnGap:r.t.space("gridColumnGap"),gridRowGap:r.t.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};t.grid=o},10147:function(e,t,n){"use strict";t.__esModule=!0;var r=n(56693);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(24689);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(4561);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(93103);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(94015);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c=n(17608);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var u=n(41474);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var l=n(54497);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(24569);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(59472);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(51237);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(90130);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(39650);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(19309);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(86705);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(75438);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(63646);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(58275);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}))},54497:function(e,t,n){"use strict";t.__esModule=!0,t.interactivity=void 0;var r=n(77050),o={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:r.transforms.outline},outlineOffset:!0,outlineColor:r.t.colors("outlineColor")};t.interactivity=o},24569:function(e,t,n){"use strict";t.__esModule=!0,t.layout=void 0;var r=n(77050),o={width:r.t.sizesT("width"),inlineSize:r.t.sizesT("inlineSize"),height:r.t.sizes("height"),blockSize:r.t.sizes("blockSize"),boxSize:r.t.sizes(["width","height"]),minWidth:r.t.sizes("minWidth"),minInlineSize:r.t.sizes("minInlineSize"),minHeight:r.t.sizes("minHeight"),minBlockSize:r.t.sizes("minBlockSize"),maxWidth:r.t.sizes("maxWidth"),maxInlineSize:r.t.sizes("maxInlineSize"),maxHeight:r.t.sizes("maxHeight"),maxBlockSize:r.t.sizes("maxBlockSize"),d:r.t.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:r.t.propT("float",r.transforms.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};t.layout=o,Object.assign(o,{w:o.width,h:o.height,minW:o.minWidth,maxW:o.maxWidth,minH:o.minHeight,maxH:o.maxHeight,overscroll:o.overscrollBehavior,overscrollX:o.overscrollBehaviorX,overscrollY:o.overscrollBehaviorY})},59472:function(e,t,n){"use strict";t.__esModule=!0,t.list=void 0;var r=n(77050),o={listStyleType:!0,listStylePosition:!0,listStylePos:r.t.prop("listStylePosition"),listStyleImage:!0,listStyleImg:r.t.prop("listStyleImage")};t.list=o},51237:function(e,t,n){"use strict";t.__esModule=!0,t.others=void 0;var r=n(66751),o={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},i={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},a=function(e,t,n){var o={},i=(0,r.memoizedGet)(e,t,{});for(var a in i){a in n&&null!=n[a]||(o[a]=i[a])}return o},s={srOnly:{transform:function(e){return!0===e?o:"focusable"===e?i:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return a(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return a(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return a(t,e,n)}}};t.others=s},90130:function(e,t,n){"use strict";t.__esModule=!0,t.position=void 0;var r=n(77050),o={position:!0,pos:r.t.prop("position"),zIndex:r.t.prop("zIndex","zIndices"),inset:r.t.spaceT(["top","right","bottom","left"]),insetX:r.t.spaceT(["left","right"]),insetInline:r.t.spaceT("insetInline"),insetY:r.t.spaceT(["top","bottom"]),insetBlock:r.t.spaceT("insetBlock"),top:r.t.spaceT("top"),insetBlockStart:r.t.spaceT("insetBlockStart"),bottom:r.t.spaceT("bottom"),insetBlockEnd:r.t.spaceT("insetBlockEnd"),left:r.t.spaceT("left"),insetInlineStart:r.t.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:r.t.spaceT("right"),insetInlineEnd:r.t.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};t.position=o,Object.assign(o,{insetStart:o.insetInlineStart,insetEnd:o.insetInlineEnd})},39650:function(e,t,n){"use strict";t.__esModule=!0,t.ring=void 0;var r=n(77050),o={ring:{transform:r.transforms.ring},ringColor:r.t.colors("--chakra-ring-color"),ringOffset:r.t.prop("--chakra-ring-offset-width"),ringOffsetColor:r.t.colors("--chakra-ring-offset-color"),ringInset:r.t.prop("--chakra-ring-inset")};t.ring=o},19309:function(e,t,n){"use strict";t.__esModule=!0,t.space=void 0;var r=n(77050),o={margin:r.t.spaceT("margin"),marginTop:r.t.spaceT("marginTop"),marginBlockStart:r.t.spaceT("marginBlockStart"),marginRight:r.t.spaceT("marginRight"),marginInlineEnd:r.t.spaceT("marginInlineEnd"),marginBottom:r.t.spaceT("marginBottom"),marginBlockEnd:r.t.spaceT("marginBlockEnd"),marginLeft:r.t.spaceT("marginLeft"),marginInlineStart:r.t.spaceT("marginInlineStart"),marginX:r.t.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:r.t.spaceT("marginInline"),marginY:r.t.spaceT(["marginTop","marginBottom"]),marginBlock:r.t.spaceT("marginBlock"),padding:r.t.space("padding"),paddingTop:r.t.space("paddingTop"),paddingBlockStart:r.t.space("paddingBlockStart"),paddingRight:r.t.space("paddingRight"),paddingBottom:r.t.space("paddingBottom"),paddingBlockEnd:r.t.space("paddingBlockEnd"),paddingLeft:r.t.space("paddingLeft"),paddingInlineStart:r.t.space("paddingInlineStart"),paddingInlineEnd:r.t.space("paddingInlineEnd"),paddingX:r.t.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:r.t.space("paddingInline"),paddingY:r.t.space(["paddingTop","paddingBottom"]),paddingBlock:r.t.space("paddingBlock")};t.space=o,Object.assign(o,{m:o.margin,mt:o.marginTop,mr:o.marginRight,me:o.marginInlineEnd,marginEnd:o.marginInlineEnd,mb:o.marginBottom,ml:o.marginLeft,ms:o.marginInlineStart,marginStart:o.marginInlineStart,mx:o.marginX,my:o.marginY,p:o.padding,pt:o.paddingTop,py:o.paddingY,px:o.paddingX,pb:o.paddingBottom,pl:o.paddingLeft,ps:o.paddingInlineStart,paddingStart:o.paddingInlineStart,pr:o.paddingRight,pe:o.paddingInlineEnd,paddingEnd:o.paddingInlineEnd})},86705:function(e,t,n){"use strict";t.__esModule=!0,t.textDecoration=void 0;var r=n(77050),o={textDecorationColor:r.t.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:r.t.shadows("textShadow")};t.textDecoration=o},75438:function(e,t,n){"use strict";t.__esModule=!0,t.transform=void 0;var r=n(77050),o={clipPath:!0,transform:r.t.propT("transform",r.transforms.transform),transformOrigin:!0,translateX:r.t.spaceT("--chakra-translate-x"),translateY:r.t.spaceT("--chakra-translate-y"),skewX:r.t.degreeT("--chakra-skew-x"),skewY:r.t.degreeT("--chakra-skew-y"),scaleX:r.t.prop("--chakra-scale-x"),scaleY:r.t.prop("--chakra-scale-y"),scale:r.t.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:r.t.degreeT("--chakra-rotate")};t.transform=o},63646:function(e,t,n){"use strict";t.__esModule=!0,t.transition=void 0;var r=n(77050),o={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:r.t.prop("transitionDuration","transition.duration"),transitionProperty:r.t.prop("transitionProperty","transition.property"),transitionTimingFunction:r.t.prop("transitionTimingFunction","transition.easing")};t.transition=o},58275:function(e,t,n){"use strict";t.__esModule=!0,t.typography=void 0;var r=n(77050),o={fontFamily:r.t.prop("fontFamily","fonts"),fontSize:r.t.prop("fontSize","fontSizes",r.transforms.px),fontWeight:r.t.prop("fontWeight","fontWeights"),lineHeight:r.t.prop("lineHeight","lineHeights"),letterSpacing:r.t.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}};t.typography=o},38986:function(e,t,n){"use strict";t.__esModule=!0,t.calc=void 0;var r=n(66751);function o(e){return(0,r.isObject)(e)&&e.reference?e.reference:String(e)}var i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(o).join(" "+e+" ").replace(/calc/g,"")},a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["+"].concat(t))+")"},s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["-"].concat(t))+")"},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["*"].concat(t))+")"},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+i.apply(void 0,["/"].concat(t))+")"},l=function(e){var t=o(e);return null==t||Number.isNaN(parseFloat(t))?c(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},d=Object.assign((function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(a.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(s.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(c.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(u.apply(void 0,[e].concat(n)))},negate:function(){return d(l(e))},toString:function(){return e.toString()}}}),{add:a,subtract:s,multiply:c,divide:u,negate:l});t.calc=d},98179:function(e,t,n){"use strict";t.__esModule=!0,t.createThemeVars=function(e,t){var n={cssMap:{},cssVars:{}};return(0,r.walkObject)(e,(function(e,r){var o,i=r[0],a=(null!=(o=s[i])?o:s.defaultHandler)(r,e,t),c=a.cssVars,u=a.cssMap;Object.assign(n.cssVars,c),Object.assign(n.cssMap,u)})),n};var r=n(66751),o=n(38986),i=n(21541);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s={space:function(e,t,n){var r,c=s.defaultHandler(e,t,n),u=e[0]+".-"+e.slice(1).join("."),l=e.join("-"),d=(0,i.cssVar)(l,void 0,n.cssVarPrefix),f=d.variable,p=d.reference,h=o.calc.negate(t),m=o.calc.negate(p);return{cssVars:c.cssVars,cssMap:a({},c.cssMap,(r={},r[u]={value:""+h,var:""+f,varRef:m},r))}},defaultHandler:function(e,t,n){var r,o,a=e.join("."),s=e.join("-"),c=(0,i.cssVar)(s,void 0,n.cssVarPrefix),u=c.variable,l=c.reference;return{cssVars:(r={},r[u]=t,r),cssMap:(o={},o[a]={value:t,var:u,varRef:l},o)}}}},21541:function(e,t){"use strict";function n(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?t.replace(".","\\."):e}function r(e,t){return void 0===t&&(t=""),[t,n(e)].filter(Boolean).join("-")}function o(e,t){return"var("+n(e)+(t?", "+t:"")+")"}function i(e,t){return void 0===t&&(t=""),"--"+r(e,t)}t.__esModule=!0,t.addPrefix=r,t.toVarReference=o,t.toVarDefinition=i,t.cssVar=function(e,t,n){var r=i(e,n);return{variable:r,reference:o(r,t)}}},13991:function(e,t,n){"use strict";t.__esModule=!0;var r=n(38986);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(21541);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(51898);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},88708:function(e,t,n){"use strict";t.__esModule=!0,t.extractTokens=function(e){var t=o;return(0,r.pick)(e,t)},t.omitVars=function(e){e.__cssMap,e.__cssVars,e.__breakpoints;return function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["__cssMap","__cssVars","__breakpoints"])};var r=n(66751);var o=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"]},51898:function(e,t,n){"use strict";t.__esModule=!0,t.toCSSVar=function(e){var t,n=(0,i.omitVars)(e),s=(0,i.extractTokens)(n),c=null==(t=n.config)?void 0:t.cssVarPrefix,u=(0,o.createThemeVars)(s,{cssVarPrefix:c}),l=u.cssMap,d=u.cssVars;return Object.assign(n,{__cssVars:a({},{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},d),__cssMap:l,__breakpoints:(0,r.analyzeBreakpoints)(n.breakpoints)}),n};var r=n(66751),o=n(98179),i=n(88708);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},49423:function(e,t,n){"use strict";t.__esModule=!0,t.getCss=d,t.css=void 0;var r=n(66751),o=n(61527),i=n(19113),a=n(41329);function s(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e,t){return e.startsWith("--")&&(0,r.isString)(t)&&!(0,r.isCssVar)(t)},l=function(e,t){var n,r;if(null==t)return t;var o=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},i=function(e){var t;return null!=(t=o(e))?t:e},a=t.split(",").map((function(e){return e.trim()})),s=a[0],c=a[1];return t=null!=(n=null!=(r=o(s))?r:i(c))?n:i(t)};function d(e){var t=e.configs,n=void 0===t?{}:t,o=e.pseudos,i=void 0===o?{}:o,c=e.theme;return function e(t,o){void 0===o&&(o=!1);var d=(0,r.runIfFn)(t,c),f=(0,a.expandResponsive)(d)(c),p={};for(var h in f){var m,v,g,y,b,E=f[h],_=(0,r.runIfFn)(E,c);h in i&&(h=i[h]),u(h,_)&&(_=l(c,_));var T=n[h];if(!0===T&&(T={property:h}),(0,r.isObject)(_)){var w;p[h]=null!=(w=p[h])?w:{},p[h]=(0,r.mergeWith)({},p[h],e(_,!0))}else{var k=null!=(m=null==(v=T)||null==v.transform?void 0:v.transform(_,c,d))?m:_;k=null!=(g=T)&&g.processResult?e(k,!0):k;var x=(0,r.runIfFn)(null==(y=T)?void 0:y.property,c);if(!o&&null!=(b=T)&&b.static){var O=(0,r.runIfFn)(T.static,c);p=(0,r.mergeWith)({},p,O)}if(x&&Array.isArray(x))for(var C,A=s(x);!(C=A()).done;){p[C.value]=k}else x?"&"===x&&(0,r.isObject)(k)?p=(0,r.mergeWith)({},p,k):p[x]=k:(0,r.isObject)(k)?p=(0,r.mergeWith)({},p,k):p[h]=k}}return p}}t.css=function(e){return function(t){return d({theme:t,pseudos:o.pseudoSelectors,configs:i.systemProps})(e)}}},39907:function(e,t,n){"use strict";t.__esModule=!0;var r={tokenToCSSVar:!0};t.tokenToCSSVar=void 0;var o=n(10147);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(49423);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(83306);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(21644);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c=n(19113);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var u=n(13991);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var l=n(41629);t.tokenToCSSVar=l.tokenToCSSVar},61527:function(e,t,n){"use strict";t.__esModule=!0,t.pseudoPropNames=t.pseudoSelectors=void 0;var r=n(66751),o=function(e){return e+":focus &, "+e+"[data-focus] &"},i=function(e){return e+":active &, "+e+"[data-active] &"},a=function(e){return e+":disabled &, "+e+"[data-disabled] &"},s=function(e){return e+":invalid &, "+e+"[data-invalid] &"},c=function(e){return e+":checked &, "+e+"[data-checked] &"},u=function(e){return l(e,"[role=group]","[data-group]",".group")},l=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},d={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:u((function(e){return e+":hover &, "+e+"[data-hover] &"})),_groupFocus:u(o),_groupActive:u(i),_groupDisabled:u(a),_groupInvalid:u(s),_groupChecked:u(c),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"};t.pseudoSelectors=d;var f=(0,r.objectKeys)(d);t.pseudoPropNames=f},19113:function(e,t,n){"use strict";t.__esModule=!0,t.isStyleProp=t.propNames=t.layoutPropNames=t.systemProps=void 0;var r=n(66751),o=n(10147),i=n(61527);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=(0,r.mergeWith)({},o.background,o.border,o.color,o.flexbox,o.layout,o.filter,o.ring,o.interactivity,o.grid,o.others,o.position,o.effect,o.space,o.typography,o.textDecoration,o.transform,o.list,o.transition);t.systemProps=s;var c=Object.assign({},o.space,o.layout,o.flexbox,o.grid,o.position),u=(0,r.objectKeys)(c);t.layoutPropNames=u;var l=[].concat((0,r.objectKeys)(s),i.pseudoPropNames);t.propNames=l;var d=a({},s,i.pseudoSelectors);t.isStyleProp=function(e){return e in d}},83306:function(){},21644:function(){},41629:function(e,t,n){"use strict";t.__esModule=!0,t.createTransform=function(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,i){var a,s=o(t,e)(i),c=null!=(a=null==n?void 0:n(s,i))?a:s;return r&&(c=r(c,i)),c}},t.tokenToCSSVar=void 0;var r=n(66751),o=function(e,t){return function(n){var o=String(t),i=e?e+"."+o:o;return(0,r.isObject)(n.__cssMap)&&i in n.__cssMap?n.__cssMap[i].varRef:t}};t.tokenToCSSVar=o},41329:function(e,t,n){"use strict";t.__esModule=!0,t.expandResponsive=void 0;var r=n(66751);t.expandResponsive=function(e){return function(t){if(!t.__breakpoints)return e;var n=t.__breakpoints,o=n.isResponsive,i=n.toArrayValue,a=n.media,s={};for(var c in e){var u=(0,r.runIfFn)(e[c],t);if(null!=u)if(u=(0,r.isObject)(u)&&o(u)?i(u):u,Array.isArray(u))for(var l=u.slice(0,a.length).length,d=0;d<l;d+=1){var f=null==a?void 0:a[d];f?(s[f]=s[f]||{},null!=u[d]&&(s[f][c]=u[d])):s[c]=u[d]}else s[c]=u}return s}}},77050:function(e,t,n){"use strict";t.__esModule=!0;var r={t:!0,transforms:!0};t.t=void 0;var o=n(41629),i=n(36282),a=n(69131);t.transforms=a.transformFunctions;var s=n(86925);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u={borderWidths:(0,i.toConfig)("borderWidths"),borderStyles:(0,i.toConfig)("borderStyles"),colors:(0,i.toConfig)("colors"),borders:(0,i.toConfig)("borders"),radii:(0,i.toConfig)("radii",a.transformFunctions.px),space:(0,i.toConfig)("space",a.transformFunctions.px),spaceT:(0,i.toConfig)("space",a.transformFunctions.px),degreeT:function(e){return{property:e,transform:a.transformFunctions.degree}},prop:function(e,t,n){return c({property:e,scale:t},t&&{transform:(0,o.createTransform)({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:(0,i.toConfig)("sizes",a.transformFunctions.px),sizesT:(0,i.toConfig)("sizes",a.transformFunctions.fraction),shadows:(0,i.toConfig)("shadows"),logical:i.logical,blur:(0,i.toConfig)("blur",a.transformFunctions.blur)};t.t=u},21612:function(e,t){"use strict";function n(e,t){n=function(e,t){return new c(e,void 0,t)};var i=o(RegExp),a=RegExp.prototype,s=new WeakMap;function c(e,t,n){var r=i.call(this,e,t);return s.set(r,n||s.get(e)),r}function u(e,t){var n=s.get(t);return Object.keys(n).reduce((function(t,r){return t[r]=e[n[r]],t}),Object.create(null))}return r(c,i),c.prototype.exec=function(e){var t=a.exec.call(this,e);return t&&(t.groups=u(t,this)),t},c.prototype[Symbol.replace]=function(e,t){if("string"===typeof t){var n=s.get(this);return a[Symbol.replace].call(this,e,t.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+n[t]})))}if("function"===typeof t){var r=this;return a[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==typeof e[e.length-1]&&e.push(u(e,r)),t.apply(this,e)}))}return a[Symbol.replace].call(this,e,t)},n.apply(this,arguments)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function o(e){var t="function"===typeof Map?new Map:void 0;return(o=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function i(e,t,n){return(i=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.__esModule=!0,t.parseGradient=p,t.gradientTransform=t.globalSet=void 0;var u={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},l=new Set(Object.values(u)),d=new Set(["none","-moz-initial","inherit","initial","revert","unset"]);t.globalSet=d;var f=function(e){return e.trim()};function p(e,t){var r,o;if(null==e||d.has(e))return e;var i=null!=(r=null==(o=n(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:o.groups)?r:{},a=i.type,s=i.values;if(!a||!s)return e;var c=a.includes("-gradient")?a:a+"-gradient",p=s.split(",").map(f).filter(Boolean),h=p[0],m=p.slice(1);if(0===(null==m?void 0:m.length))return e;var v=h in u?u[h]:h;return m.unshift(v),c+"("+m.map((function(e){if(l.has(e))return e;var n=e.split(" "),r=n[0],o=n[1],i="colors."+r,a=i in t.__cssMap?t.__cssMap[i].varRef:r;return o?[a,o].join(" "):a})).join(", ")+")"}t.gradientTransform=function(e,t){return p(e,null!=t?t:{})}},36282:function(e,t,n){"use strict";t.__esModule=!0,t.toConfig=function(e,t){return function(n){var o={property:n,scale:e};return o.transform=(0,r.createTransform)({scale:e,transform:t}),o}},t.logical=function(e){var t=e.property,n=e.scale,i=e.transform;return{scale:n,property:o(t),transform:n?(0,r.createTransform)({scale:n,compose:i}):i}};var r=n(41629);var o=function(e){var t=e.rtl,n=e.ltr;return function(e){return"rtl"===e.direction?t:n}}},23744:function(e,t){"use strict";var n,r;t.__esModule=!0,t.getTransformTemplate=function(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(o).join(" ")},t.getTransformGpuTemplate=function(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(o).join(" ")},t.getRingTemplate=function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}},t.spaceYTemplate=t.spaceXTemplate=t.flexDirectionTemplate=t.backdropFilterTemplate=t.filterTemplate=void 0;var o=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var i={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")};t.filterTemplate=i;var a={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};t.backdropFilterTemplate=a;t.flexDirectionTemplate={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}};var s="& > :not(style) ~ :not(style)",c=((n={})[s]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},n);t.spaceXTemplate=c;var u=((r={})[s]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},r);t.spaceYTemplate=u},69131:function(e,t,n){"use strict";t.__esModule=!0,t.transformFunctions=void 0;var r=n(66751),o=n(23744),i=n(21612),a=function(e){return function(t){return e+"("+t+")"}},s={filter:function(e){return"auto"!==e?e:o.filterTemplate},backdropFilter:function(e){return"auto"!==e?e:o.backdropFilterTemplate},ring:function(e){return(0,o.getRingTemplate)(s.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?(0,o.getTransformTemplate)():"auto-gpu"===e?(0,o.getTransformGpuTemplate)():e},px:function(e){return null==e?e:function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e).unitless||(0,r.isNumber)(e)?e+"px":e},fraction:function(e){return!(0,r.isNumber)(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,r.isCssVar)(e)||null==e)return e;var t=(0,r.isString)(e)&&!e.endsWith("deg");return(0,r.isNumber)(e)||t?e+"deg":e},gradient:i.gradientTransform,blur:a("blur"),opacity:a("opacity"),brightness:a("brightness"),contrast:a("contrast"),dropShadow:a("drop-shadow"),grayscale:a("grayscale"),hueRotate:a("hue-rotate"),invert:a("invert"),saturate:a("saturate"),sepia:a("sepia"),bgImage:function(e){return null==e||c(e)||i.globalSet.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=o.flexDirectionTemplate[e])?t:{},r=n.space,i=n.divide,a={flexDirection:e};return r&&(a[r]=1),i&&(a[i]=1),a}};t.transformFunctions=s;var c=function(e){return(0,r.isString)(e)&&e.includes("(")&&e.includes(")")}},86925:function(){},88134:function(e,t,n){"use strict";n.d(t,{r:function(){return T}});var r=n(10762),o=n(90639),i=n(51034),a=n(68327),s=n(72947),c=n(80658),u=n(84461),l=n(47248),d=n(65415),f=n(67294);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e){void 0===e&&(e={});var{defaultIsChecked:t,defaultChecked:n=t,isChecked:h,isFocusable:v,isDisabled:g,isReadOnly:y,isRequired:b,onChange:E,isIndeterminate:_,isInvalid:T,name:w,value:k,id:x,onBlur:O,onFocus:C,"aria-label":A,"aria-labelledby":S,"aria-invalid":M,"aria-describedby":I}=e,P=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["defaultIsChecked","defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isIndeterminate","isInvalid","name","value","id","onBlur","onFocus","aria-label","aria-labelledby","aria-invalid","aria-describedby"]),N=(0,r.W)(E),R=(0,r.W)(O),L=(0,r.W)(C),[D,j]=(0,o.k)(),[H,B]=(0,o.k)(),[F,U]=(0,o.k)(),z=(0,f.useRef)(null),[V,G]=(0,f.useState)(!0),[W,K]=(0,f.useState)(!!n),[q,Y]=(0,i.p)(h,W);(0,c.ZK)({condition:!!t,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var Z=(0,f.useCallback)((e=>{y||g?e.preventDefault():(q||K(Y?e.target.checked:!!_||e.target.checked),null==N||N(e))}),[y,g,Y,q,_,N]);(0,a.G)((()=>{z.current&&(z.current.indeterminate=Boolean(_))}),[_]);var $=g&&!v,X=(0,f.useCallback)((e=>{" "===e.key&&U.on()}),[U]),Q=(0,f.useCallback)((e=>{" "===e.key&&U.off()}),[U]);(0,a.G)((()=>{z.current&&(z.current.checked!==Y&&K(z.current.checked))}),[z.current]);var J=(0,f.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return p({},e,{ref:t,"data-active":(0,u.PB)(F),"data-hover":(0,u.PB)(H),"data-checked":(0,u.PB)(Y),"data-focus":(0,u.PB)(D),"data-indeterminate":(0,u.PB)(_),"data-disabled":(0,u.PB)(g),"data-invalid":(0,u.PB)(T),"data-readonly":(0,u.PB)(y),"aria-hidden":!0,onMouseDown:(0,c.v0)(e.onMouseDown,(e=>{e.preventDefault(),U.on()})),onMouseUp:(0,c.v0)(e.onMouseUp,U.off),onMouseEnter:(0,c.v0)(e.onMouseEnter,B.on),onMouseLeave:(0,c.v0)(e.onMouseLeave,B.off)})}),[F,Y,g,D,H,_,T,y,U,B.off,B.on]),ee=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},P,e,{ref:(0,s.l)(t,(e=>{e&&G("LABEL"===e.tagName)})),onClick:(0,c.v0)(e.onClick,(()=>{var e;V||(null==(e=z.current)||e.click(),(0,l.T)(z.current,{nextTick:!0}))})),"data-disabled":(0,u.PB)(g)})}),[P,g,V]),te=(0,f.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return p({},e,{ref:(0,s.l)(z,t),type:"checkbox",name:w,value:k,id:x,onChange:(0,c.v0)(e.onChange,Z),onBlur:(0,c.v0)(e.onBlur,R,j.off),onFocus:(0,c.v0)(e.onFocus,L,(()=>{(0,c.A4)(j.on)})),onKeyDown:(0,c.v0)(e.onKeyDown,X),onKeyUp:(0,c.v0)(e.onKeyUp,Q),required:b,checked:Y,disabled:$,readOnly:y,"aria-label":A,"aria-labelledby":S,"aria-invalid":M?Boolean(M):T,"aria-describedby":I,"aria-disabled":g,style:d.NL})}),[w,k,x,Z,j.off,j.on,R,L,X,Q,b,Y,$,y,A,S,M,T,I,g]),ne=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:t,onMouseDown:(0,c.v0)(e.onMouseDown,m),onTouchStart:(0,c.v0)(e.onTouchStart,m),"data-disabled":(0,u.PB)(g),"data-checked":(0,u.PB)(Y),"data-invalid":(0,u.PB)(T)})}),[Y,g,T]);return{state:{isInvalid:T,isFocused:D,isChecked:Y,isActive:F,isHovered:H,isIndeterminate:_,isDisabled:g,isReadOnly:y,isRequired:b},getRootProps:ee,getCheckboxProps:J,getInputProps:te,getLabelProps:ne,htmlProps:P}}function m(e){e.preventDefault(),e.stopPropagation()}var v=n(90063),g=n(2326),y=n(55284),b=n(89384),E=n(73808);function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var T=(0,v.G)(((e,t)=>{var n=(0,g.j)("Switch",e),r=(0,y.Lr)(e),{spacing:o="0.5rem",children:i}=r,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["spacing","children"]),{state:s,getInputProps:c,getCheckboxProps:l,getRootProps:d,getLabelProps:p}=h(a),m=f.useMemo((()=>_({display:"inline-block",verticalAlign:"middle",lineHeight:"normal"},n.container)),[n.container]),v=f.useMemo((()=>_({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)),[n.track]),E=f.useMemo((()=>_({userSelect:"none",marginStart:o},n.label)),[o,n.label]);return f.createElement(b.m$.label,_({},d(),{className:(0,u.cx)("chakra-switch",e.className),__css:m}),f.createElement("input",_({className:"chakra-switch__input"},c({},t))),f.createElement(b.m$.span,_({},l(),{className:"chakra-switch__track",__css:v}),f.createElement(b.m$.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":(0,u.PB)(s.isChecked),"data-hover":(0,u.PB)(s.isHovered)})),i&&f.createElement(b.m$.span,_({className:"chakra-switch__label"},p(),{__css:E}),i))}));E.Ts&&(T.displayName="Switch")},15867:function(e,t,n){"use strict";t.__esModule=!0,t.forwardRef=function(e){return r.forwardRef(e)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},46063:function(e,t,n){"use strict";t.__esModule=!0,t.useChakra=d,t.useToken=function(e,t,n){var r=(0,c.useTheme)();if(Array.isArray(t)){var o=[];return n&&(o=Array.isArray(n)?n:[n]),t.map((function(t,n){var a,s=e+"."+t;return(0,i.memoizedGet)(r,s,null!=(a=o[n])?a:t)}))}var a=e+"."+t;return(0,i.memoizedGet)(r,a,null!=n?n:t)},t.useProps=function(e,t){var n,r,o=d(),c=o.theme,f=o.colorMode,p=t.styleConfig||(null==(n=c.components)?void 0:n[e]),h=l({},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,i.filterUndefined)(t)),m=(0,a.useRef)({}),v=(0,i.mergeWith)({},h,{theme:c,colorMode:f});return{styles:(0,a.useMemo)((function(){if(p){var e,t,n,r,o,a=(0,i.runIfFn)(null!=(e=p.baseStyle)?e:{},v),c=(0,i.runIfFn)(null!=(t=null==(n=p.variants)?void 0:n[v.variant])?t:{},v),u=(0,i.runIfFn)(null!=(r=null==(o=p.sizes)?void 0:o[v.size])?r:{},v),l=(0,i.mergeWith)(a,u,c);p.parts&&p.parts.forEach((function(e){var t;l[e]=null!=(t=l[e])?t:{}})),(0,s.default)(m.current,l)||(m.current=l)}return m.current}),[p,v]),props:(0,u.omitThemingProps)(h)}};var r,o=n(12094),i=n(66751),a=n(67294),s=(r=n(69590))&&r.__esModule?r:{default:r},c=n(4867),u=n(93138);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(){return l({},(0,o.useColorMode)(),{theme:(0,c.useTheme)()})}},48121:function(e,t,n){"use strict";t.__esModule=!0;var r={keyframes:!0,omitThemingProps:!0,shouldForwardProp:!0};t.shouldForwardProp=t.omitThemingProps=t.keyframes=void 0;var o=n(12094);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(39907);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(70917);t.keyframes=a.keyframes;var s=n(46063);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c=n(39824);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var u=n(4867);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var l=n(93138);t.omitThemingProps=l.omitThemingProps;var d=n(40065);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(15867);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(80011);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(99214);t.shouldForwardProp=h.shouldForwardProp},4867:function(e,t,n){"use strict";t.__esModule=!0,t.useTheme=function(){var e=c.useContext(s.ThemeContext);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e},t.GlobalStyle=t.useStyles=t.StylesProvider=t.ThemeProvider=void 0;var r=n(12094),o=n(39907),i=n(66751),a=n(19277),s=n(70917),c=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}t.ThemeProvider=function(e){var t=e.cssVarsRoot,n=void 0===t?":host, :root":t,r=e.theme,i=e.children,a=c.useMemo((function(){return(0,o.toCSSVar)(r)}),[r]);return c.createElement(s.ThemeProvider,{theme:a},c.createElement(s.Global,{styles:function(e){var t;return(t={})[n]=e.__cssVars,t}}),i)};var l=(0,a.createContext)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),d=l[0],f=l[1];t.useStyles=f,t.StylesProvider=d;t.GlobalStyle=function(){var e=(0,r.useColorMode)().colorMode;return c.createElement(s.Global,{styles:function(t){var n=(0,i.memoizedGet)(t,"styles.global"),r=(0,i.runIfFn)(n,{theme:t,colorMode:e});if(r){var a=(0,o.css)(r)(t);return a}}})}},99214:function(e,t,n){"use strict";t.__esModule=!0,t.shouldForwardProp=void 0;var r=n(39907),o=new Set([].concat(r.propNames,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),i=new Set(["htmlWidth","htmlHeight","htmlSize"]);t.shouldForwardProp=function(e){return i.has(e)||!o.has(e)}},40065:function(e,t,n){"use strict";t.__esModule=!0,t.styled=d,t.chakra=t.toCSSObject=void 0;var r,o=n(39907),i=n(66751),a=(r=n(48981))&&r.__esModule?r:{default:r},s=n(99214),c=n(93138);function u(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var l=function(e){var t=e.baseStyle;return function(e){e.theme;var n=e.css,r=e.__css,a=e.sx,s=u(e,["theme","css","__css","sx"]),c=(0,i.objectFilter)(s,(function(e,t){return(0,o.isStyleProp)(t)})),l=(0,i.runIfFn)(t,e),d=Object.assign({},r,l,(0,i.filterUndefined)(c),a),f=(0,o.css)(d)(e.theme);return n?[f,n]:f}};function d(e,t){var n=null!=t?t:{},r=n.baseStyle,o=u(n,["baseStyle"]);o.shouldForwardProp||(o.shouldForwardProp=s.shouldForwardProp);var i=l({baseStyle:r});return(0,a.default)(e,o)(i)}t.toCSSObject=l;var f=d;t.chakra=f,c.domElements.forEach((function(e){f[e]=f(e)}))},39824:function(){},93138:function(e,t,n){"use strict";t.__esModule=!0,t.omitThemingProps=function(e){return(0,r.omit)(e,["styleConfig","size","variant","colorScheme"])},t.default=o,t.getDisplayName=function(e){return o(e)?"chakra."+e:function(e){return!!r.__DEV__&&((0,r.isString)(e)&&e)||!(0,r.isString)(e)&&e.displayName||!(0,r.isString)(e)&&e.name||"ChakraComponent"}(e)},t.domElements=void 0;var r=n(66751);function o(e){return(0,r.isString)(e)&&(!r.__DEV__||e.charAt(0)===e.charAt(0).toLowerCase())}t.domElements=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"]},80011:function(e,t,n){"use strict";t.__esModule=!0,t.useStyleConfig=c,t.useMultiStyleConfig=function(e,t){return c(e,t,{isMultiPart:!0})};var r,o=n(66751),i=n(67294),a=(r=n(69590))&&r.__esModule?r:{default:r},s=n(46063);function c(e,t,n){var r,c;void 0===t&&(t={}),void 0===n&&(n={});var u=t,l=u.styleConfig,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(u,["styleConfig"]),f=(0,s.useChakra)(),p=f.theme,h=f.colorMode,m=(0,o.memoizedGet)(p,"components."+e),v=l||m,g=(0,o.mergeWith)({theme:p,colorMode:h},null!=(r=null==v?void 0:v.defaultProps)?r:{},(0,o.filterUndefined)((0,o.omit)(d,["children"]))),y=(0,i.useRef)({});return(0,i.useMemo)((function(){if(v){var e,t,r,i,s,c,u=(0,o.runIfFn)(null!=(e=v.baseStyle)?e:{},g),l=(0,o.runIfFn)(null!=(t=null==(r=v.variants)?void 0:r[g.variant])?t:{},g),d=(0,o.runIfFn)(null!=(i=null==(s=v.sizes)?void 0:s[g.size])?i:{},g),f=(0,o.mergeWith)({},u,d,l);null!=(c=n)&&c.isMultiPart&&v.parts&&v.parts.forEach((function(e){var t;f[e]=null!=(t=f[e])?t:{}})),(0,a.default)(y.current,f)||(y.current=f)}return y.current}),[v,g,null==(c=n)?void 0:c.isMultiPart])}},90063:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(67294);function o(e){return r.forwardRef(e)}},11180:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return i.Fg}});var r=n(9421);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var o=n(5070);n.o(o,"useTheme")&&n.d(t,{useTheme:function(){return o.useTheme}});var i=n(29676)},89384:function(e,t,n){"use strict";n.d(t,{m$:function(){return f}});var r=n(9421),o=n(4651),i=n(80658),a=n(48981),s=new Set([...r.propNames,"textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),c=new Set(["htmlWidth","htmlHeight","htmlSize"]),u=e=>c.has(e)||!s.has(e),l=n(55284);function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var f=function(e,t){var n=null!=t?t:{},{baseStyle:s}=n,c=d(n,["baseStyle"]);c.shouldForwardProp||(c.shouldForwardProp=u);var l=(e=>{var{baseStyle:t}=e;return e=>{var{css:n,__css:a,sx:s}=e,c=d(e,["theme","css","__css","sx"]),u=(0,o.lw)(c,((e,t)=>(0,r.isStyleProp)(t))),l=(0,i.Pu)(t,e),f=Object.assign({},a,l,(0,o.YU)(u),s),p=(0,r.iv)(f)(e.theme);return n?[p,n]:p}})({baseStyle:s});return(0,a.default)(e,c)(l)};l.t6.forEach((e=>{f[e]=f(e)}))},5070:function(){},55284:function(e,t,n){"use strict";n.d(t,{t6:function(){return o},Lr:function(){return i}});var r=n(4651),o=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"];function i(e){return(0,r.CE)(e,["styleConfig","size","variant","colorScheme"])}},2326:function(e,t,n){"use strict";n.d(t,{j:function(){return m},m:function(){return h}});var r=n(4651),o=n(38554),i=n.n(o),a=n(80658),s=n(67294),c=n(69590),u=n.n(c),l=n(24738),d=n(29676);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(){return f({},(0,l.If)(),{theme:(0,d.Fg)()})}function h(e,t,n){var o,c;void 0===t&&(t={}),void 0===n&&(n={});var{styleConfig:l}=t,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["styleConfig"]),{theme:f,colorMode:h}=p(),m=(0,r.Wf)(f,"components."+e),v=l||m,g=i()({theme:f,colorMode:h},null!=(o=null==v?void 0:v.defaultProps)?o:{},(0,r.YU)((0,r.CE)(d,["children"]))),y=(0,s.useRef)({});return(0,s.useMemo)((()=>{if(v){var e,t,r,o,s,c,l=(0,a.Pu)(null!=(e=v.baseStyle)?e:{},g),d=(0,a.Pu)(null!=(t=null==(r=v.variants)?void 0:r[g.variant])?t:{},g),f=(0,a.Pu)(null!=(o=null==(s=v.sizes)?void 0:s[g.size])?o:{},g),p=i()({},l,f,d);null!=(c=n)&&c.isMultiPart&&v.parts&&v.parts.forEach((e=>{var t;p[e]=null!=(t=p[e])?t:{}})),u()(y.current,p)||(y.current=p)}return y.current}),[v,g,null==(c=n)?void 0:c.isMultiPart])}function m(e,t){return h(e,t,{isMultiPart:!0})}},81820:function(e,t,n){"use strict";t.__esModule=!0;var r=n(45093);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},45093:function(e,t,n){"use strict";t.__esModule=!0,t.TagCloseButton=t.TagRightIcon=t.TagLeftIcon=t.TagLabel=t.Tag=void 0;var r=n(29559),o=n(48121),i=n(66751),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("Tag",e),r=(0,o.omitThemingProps)(e),i=c({display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%"},n.container);return a.createElement(o.StylesProvider,{value:n},a.createElement(o.chakra.span,c({ref:t},r,{__css:i})))}));t.Tag=u,i.__DEV__&&(u.displayName="Tag");var l=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return a.createElement(o.chakra.span,c({ref:t,isTruncated:!0},e,{__css:n.label}))}));t.TagLabel=l,i.__DEV__&&(l.displayName="TagLabel");var d=(0,o.forwardRef)((function(e,t){return a.createElement(r.Icon,c({ref:t,verticalAlign:"top",marginEnd:"0.5rem"},e))}));t.TagLeftIcon=d,i.__DEV__&&(d.displayName="TagLeftIcon");var f=(0,o.forwardRef)((function(e,t){return a.createElement(r.Icon,c({ref:t,verticalAlign:"top",marginStart:"0.5rem"},e))}));t.TagRightIcon=f,i.__DEV__&&(f.displayName="TagRightIcon");var p=function(e){return a.createElement(r.Icon,c({verticalAlign:"inherit",viewBox:"0 0 512 512"},e),a.createElement("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}))};i.__DEV__&&(p.displayName="TagCloseIcon");var h=function(e){var t=e.isDisabled,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["isDisabled","children"]),i=c({display:"flex",alignItems:"center",justifyContent:"center",outline:"0"},(0,o.useStyles)().closeButton);return a.createElement(o.chakra.button,c({},r,{type:"button","aria-label":"close",disabled:t,__css:i}),n||a.createElement(p,null))};t.TagCloseButton=h,i.__DEV__&&(h.displayName="TagCloseButton")},96699:function(e,t,n){"use strict";n.d(t,{u:function(){return A}});var r=n(23459),o=n(67273),i=n(89384),a=n(90063),s=n(2326),c=n(55284),u=n(29676),l=n(4651),d=n(73808),f=n(65415),p=n(39629),h=n(53869),m=n(67294),v={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},g=n(74860),y=n(94577),b=n(34941),E=n(8931),_=n(80658),T=n(88456),w=n(72947);function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e){void 0===e&&(e={});var{openDelay:t=0,closeDelay:n=0,closeOnClick:o=!0,closeOnMouseDown:i,onOpen:a,onClose:s,placement:c,id:u,isOpen:l,defaultIsOpen:d,arrowSize:f=10,arrowShadowColor:p,arrowPadding:h,modifiers:v,isDisabled:x,gutter:O,offset:C}=e,A=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset"]),{isOpen:S,onOpen:M,onClose:I}=(0,g.q)({isOpen:l,defaultIsOpen:d,onOpen:a,onClose:s}),{referenceRef:P,getPopperProps:N,getArrowInnerProps:R,getArrowProps:L}=(0,E.D)({enabled:S,placement:c,arrowPadding:h,modifiers:v,gutter:O,offset:C}),D=(0,y.Me)(u,"tooltip"),j=m.useRef(null),H=m.useRef(),B=m.useRef(),F=m.useCallback((()=>{x||(H.current=window.setTimeout(M,t))}),[x,M,t]),U=m.useCallback((()=>{H.current&&clearTimeout(H.current),B.current=window.setTimeout(I,n)}),[n,I]),z=m.useCallback((()=>{o&&U()}),[o,U]),V=m.useCallback((()=>{i&&U()}),[i,U]);(0,b.O)("keydown",(e=>{S&&"Escape"===e.key&&U()})),m.useEffect((()=>()=>{clearTimeout(H.current),clearTimeout(B.current)}),[]),(0,b.O)("mouseleave",U,j.current);var G=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),k({},e,{ref:(0,w.l)(j,t,P),onMouseEnter:(0,_.v0)(e.onMouseEnter,F),onClick:(0,_.v0)(e.onClick,z),onMouseDown:(0,_.v0)(e.onMouseDown,V),onFocus:(0,_.v0)(e.onFocus,F),onBlur:(0,_.v0)(e.onBlur,U),"aria-describedby":S?D:void 0})}),[F,U,V,S,D,z,P]),W=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),N(k({},e,{style:k({},e.style,{[r.Dq.arrowSize.var]:f?(0,T.px)(f):void 0,[r.Dq.arrowShadowColor.var]:p})}),t)}),[N,f,p]),K=m.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),k({ref:t},A,e,{id:D,role:"tooltip",style:k({},e.style,{position:"relative",transformOrigin:r.Dq.transformOrigin.varRef})})}),[A,D]);return{isOpen:S,show:F,hide:U,getTriggerProps:G,getTooltipProps:K,getTooltipPositionerProps:W,getArrowProps:L,getArrowInnerProps:R}}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var C=(0,i.m$)(p.E.div),A=(0,a.G)(((e,t)=>{var n=(0,s.m)("Tooltip",e),a=(0,c.Lr)(e),p=(0,u.Fg)(),{children:g,label:y,shouldWrapChildren:b,"aria-label":E,hasArrow:_,bg:T,portalProps:w}=a,k=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(a,["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps"]);T&&(n.bg=T,n[r.Dq.arrowBg.var]=(0,l.K1)(p,"colors",T));var A,S=x(k);if((0,d.HD)(g)||b)A=m.createElement(i.m$.span,O({tabIndex:0},S.getTriggerProps()),g);else{var M=m.Children.only(g);A=m.cloneElement(M,S.getTriggerProps(M.props,M.ref))}var I=!!E,P=S.getTooltipProps({},t),N=I?(0,l.CE)(P,["role","id"]):P,R=(0,l.ei)(P,["role","id"]);return y?m.createElement(m.Fragment,null,A,m.createElement(h.M,null,S.isOpen&&m.createElement(o.h,w,m.createElement(i.m$.div,O({},S.getTooltipPositionerProps(),{__css:{zIndex:n.zIndex,pointerEvents:"none"}}),m.createElement(C,O({variants:v},N,{initial:"exit",animate:"enter",exit:"exit",__css:n}),y,I&&m.createElement(f.TX,R,E),_&&m.createElement(i.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},m.createElement(i.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))))))):m.createElement(m.Fragment,null,g)}));d.Ts&&(A.displayName="Tooltip")},15267:function(e,t,n){"use strict";n.d(t,{U:function(){return m}});var r=n(80658),o=n(38554),i=n.n(o),a=n(84461),s=n(73808),c=n(53869),u=n(39629),l=n(67294),d=n(24722);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p={exit:{height:{duration:.2,ease:d.YI.ease},opacity:{duration:.3,ease:d.YI.ease}},enter:{height:{duration:.3,ease:d.YI.ease},opacity:{duration:.4,ease:d.YI.ease}}},h={exit:e=>{var t,n,{animateOpacity:r,startingHeight:o,transition:i,transitionEnd:a,delay:s}=e;return f({},r&&{opacity:(n=o,null!=n&&parseInt(n.toString(),10)>0?1:0)},{overflow:"hidden",height:o,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==i?void 0:i.exit)?t:d.p$.exit(p.exit,s)})},enter:e=>{var t,{animateOpacity:n,endingHeight:r,transition:o,transitionEnd:i,delay:a}=e;return f({},n&&{opacity:1},{height:r,transitionEnd:null==i?void 0:i.enter,transition:null!=(t=null==o?void 0:o.enter)?t:d.p$.enter(p.enter,a)})}},m=l.forwardRef(((e,t)=>{var{in:n,unmountOnExit:o,animateOpacity:s=!0,startingHeight:d=0,endingHeight:p="auto",style:m,className:v,transition:g,transitionEnd:y}=e,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"]),[E,_]=l.useState(!1);l.useEffect((()=>{var e=setTimeout((()=>{_(!0)}));return()=>clearTimeout(e)}),[]),(0,r.ZK)({condition:Boolean(d>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var T=parseFloat(d.toString())>0,w={startingHeight:d,endingHeight:p,animateOpacity:s,transition:E?g:{enter:{duration:0}},transitionEnd:i()(y,{enter:{overflow:"initial"},exit:o?void 0:{display:T?"block":"none"}})},k=!o||n,x=n||o?"enter":"exit";return l.createElement(c.M,{initial:!1,custom:w},k&&l.createElement(u.E.div,f({ref:t},b,{className:(0,a.cx)("chakra-collapse",v),style:f({overflow:"hidden",display:"block"},m),custom:w,variants:h,initial:!!o&&"exit",animate:x,exit:"exit"})))}));s.Ts&&(m.displayName="Collapse")},25715:function(e,t,n){"use strict";n.d(t,{M:function(){return f}});var r=n(84461),o=n(73808),i=n(53869),a=n(39629),s=n(67294),c=n(24722);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l={exit:{duration:.15,ease:c.YI.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},d={exit:e=>{var t,{direction:n,transition:r,transitionEnd:o,delay:i}=e,{exit:a}=(0,c.HB)({direction:n});return u({},a,{transition:null!=(t=null==r?void 0:r.exit)?t:c.p$.exit(l.exit,i),transitionEnd:null==o?void 0:o.exit})},enter:e=>{var t,{direction:n,transitionEnd:r,transition:o,delay:i}=e,{enter:a}=(0,c.HB)({direction:n});return u({},a,{transition:null!=(t=null==o?void 0:o.enter)?t:c.p$.enter(l.enter,i),transitionEnd:null==r?void 0:r.enter})}},f=s.forwardRef(((e,t)=>{var{direction:n="right",style:o,unmountOnExit:l,in:f,className:p,transition:h,transitionEnd:m,delay:v}=e,g=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"]),y=(0,c.HB)({direction:n}),b=Object.assign({position:"fixed"},y.position,o),E=!l||f&&l,_=f||l?"enter":"exit",T={transitionEnd:m,transition:h,direction:n,delay:v};return s.createElement(i.M,{custom:T},E&&s.createElement(a.E.div,u({ref:t,initial:"exit",className:(0,r.cx)("chakra-slide",p),animate:_,exit:"exit",custom:T,variants:d,style:b},g)))}));o.Ts&&(f.displayName="Slide")},24722:function(e,t,n){"use strict";n.d(t,{YI:function(){return i},HB:function(){return l},R:function(){return d},p$:function(){return f}});var r=n(73808);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},a={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0},exit:{x:"-100%"}},s={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0},exit:{x:"100%"}},c={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{y:0},exit:{y:"-100%"}},u={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{y:0},exit:{y:"100%"}};function l(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":return s;case"left":return a;case"bottom":return u;case"top":return c;default:return s}}var d={enter:{duration:.2,ease:i.easeOut},exit:{duration:.1,ease:i.easeIn}},f={enter:(e,t)=>o({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter}),exit:(e,t)=>o({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.exit})}},4706:function(e,t){"use strict";function n(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=!0);var o=t-1;if(-1===e)return n>0?0:o;var i=e+n;return i<0?r?o:0:i>=t?r?0:e>t?t:e:i}function r(e,t,r){return void 0===r&&(r=!0),n(e,t,-1,r)}t.__esModule=!0,t.getFirstItem=function(e){return null!=e&&e.length?e[0]:void 0},t.getLastItem=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},t.getPrevItem=function(e,t,n){void 0===n&&(n=!0);var o=r(e,t.length,n);return t[o]},t.getNextItem=function(e,t,r){void 0===r&&(r=!0);var o=n(e,t.length,1,r);return t[o]},t.removeIndex=function(e,t){return e.filter((function(e,n){return n!==t}))},t.addItem=function(e,t){return[].concat(e,[t])},t.removeItem=function(e,t){return e.filter((function(e){return e!==t}))},t.getNextIndex=n,t.getPrevIndex=r,t.chunk=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])},t.getNextItemFromSearch=function(e,t,n,r){if(null==t)return r;if(!r){return e.find((function(e){return n(e).toLowerCase().startsWith(t.toLowerCase())}))}var o=e.filter((function(e){return n(e).toLowerCase().startsWith(t.toLowerCase())}));if(o.length>0){var i;if(o.includes(r)){var a=o.indexOf(r);return(i=a+1)===o.length&&(i=0),o[i]}return i=e.indexOf(o[0]),e[i]}return r}},22229:function(e,t){"use strict";function n(e){return Array.isArray(e)}function r(e){return n(e)&&0===e.length}function o(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!n(e)}function i(e){return o(e)&&0===Object.keys(e).length}t.__esModule=!0,t.isNumber=function(e){return"number"===typeof e},t.isNotNumber=function(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)},t.isNumeric=function(e){return null!=e&&e-parseFloat(e)+1>=0},t.isArray=n,t.isEmptyArray=r,t.isFunction=function(e){return"function"===typeof e},t.isDefined=function(e){return"undefined"!==typeof e&&void 0!==e},t.isUndefined=function(e){return"undefined"===typeof e||void 0===e},t.isObject=o,t.isEmptyObject=i,t.isNotEmptyObject=function(e){return e&&!i(e)},t.isNull=function(e){return null==e},t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isCssVar=function(e){return/^var\(--.+\)$/.test(e)},t.isEmpty=function(e){return n(e)?r(e):o(e)?i(e):null==e||""===e},t.isRefObject=function(e){return"current"in e},t.isInputEvent=function(e){return e&&o(e)&&o(e.target)},t.__TEST__=t.__DEV__=void 0;t.__DEV__=!1;t.__TEST__=!1},42402:function(e,t,n){"use strict";t.__esModule=!0,t.px=a,t.analyzeBreakpoints=function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";var n=u(e),i=Object.entries(e).sort(s).map((function(e,t,n){var r,i=e[0],s=e[1],c=(null!=(r=n[t+1])?r:[])[1];return{breakpoint:i,minW:s,maxW:c=parseFloat(c)>0?function(e){var t;if(!e)return e;var n=(e=null!=(t=a(e))?t:e).endsWith("px")?-1:-.0635;return(0,o.isNumber)(e)?""+(e+n):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+n)}))}(c):void 0,maxWQuery:l(null,c),minWQuery:l(s),minMaxQuery:l(s,c)}})),d=function(e){var t=Object.keys(c(e));return new Set(t)}(e),f=Array.from(d.values());return{keys:d,normalized:n,isResponsive:function(e){var t=Object.keys(e);return t.length>0&&t.every((function(e){return d.has(e)}))},asObject:c(e),asArray:u(e),details:i,media:[null].concat(n.map((function(e){return l(e)})).slice(1)),toArrayValue:function(e){if(!(0,o.isObject)(e))throw new Error("toArrayValue: value must be an object");for(var t=f.map((function(t){var n;return null!=(n=e[t])?n:null}));null===(0,r.getLastItem)(t);)t.pop();return t},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,t,n){var r=f[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}};var r=n(4706),o=n(22229),i=n(95963);function a(e){return null==e?e:function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e).unitless||(0,o.isNumber)(e)?e+"px":e}var s=function(e,t){return parseInt(e[1],10)>parseInt(t[1],10)?1:-1},c=function(e){return(0,i.fromEntries)(Object.entries(e).sort(s))};function u(e){var t=c(e);return Object.assign(Object.values(t),t)}function l(e,t){var n=[];return e&&n.push("@media screen and (min-width: "+a(e)+")"),n.length>0&&t&&n.push("and"),t&&n.push("@media screen and (max-width: "+a(t)+")"),n.join(" ")}},33211:function(e,t,n){"use strict";t.__esModule=!0,t.getAllFocusable=i,t.getFirstFocusable=function(e){var t=i(e);return t.length?t[0]:null},t.getAllTabbable=a,t.getFirstTabbableIn=function(e,t){return a(e,t)[0]||null},t.getLastTabbableIn=function(e,t){var n=a(e,t);return n[n.length-1]||null},t.getNextTabbable=s,t.getPreviousTabbable=c,t.focusNextTabbable=function(e,t){var n=s(e,t);n&&(0,r.isHTMLElement)(n)&&n.focus()},t.focusPreviousTabbable=function(e,t){var n=c(e,t);n&&(0,r.isHTMLElement)(n)&&n.focus()},t.closest=function(e,t){if("closest"in e)return e.closest(t);do{if(u(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};var r=n(99162),o=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function i(e){var t=Array.from(e.querySelectorAll(o));return t.unshift(e),t.filter(r.isFocusable).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function a(e,t){var n=Array.from(e.querySelectorAll(o)),i=n.filter(r.isTabbable);return(0,r.isTabbable)(e)&&i.unshift(e),!i.length&&t?n:i}function s(e,t){var n=i(e),o=n.indexOf(document.activeElement),a=n.slice(o+1);return a.find(r.isTabbable)||n.find(r.isTabbable)||(t?a[0]:null)}function c(e,t){var n=i(e).reverse(),o=n.indexOf(document.activeElement),a=n.slice(o+1);return a.find(r.isTabbable)||n.find(r.isTabbable)||(t?a[0]:null)}function u(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}},14576:function(e,t){"use strict";function n(e){var t;return e instanceof Element&&null!=(t=e.ownerDocument)?t:document}function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}t.__esModule=!0,t.getOwnerWindow=function(e){var t,r;return e instanceof Element&&null!=(t=null==(r=n(e))?void 0:r.defaultView)?t:window},t.getOwnerDocument=n,t.canUseDOM=r,t.getActiveElement=i,t.contains=function(e,t){return!!e&&(e===t||e.contains(t))},t.addDomEvent=function(e,t,n,r){return e.addEventListener(t,n,r),function(){e.removeEventListener(t,n,r)}},t.normalizeEventKey=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t},t.getRelatedTarget=function(e){var t,n,r,o=i(null!=(t=e.target)?t:e.currentTarget),a=e.nativeEvent.explicitOriginalTarget;return null!=(n=null!=(r=e.relatedTarget)?r:a)?n:o},t.isRightClick=function(e){return 0!==e.button},t.cx=t.ariaAttr=t.dataAttr=t.isBrowser=void 0;var o=r();t.isBrowser=o;t.dataAttr=function(e){return e?"":void 0};t.ariaAttr=function(e){return!!e||void 0};function i(e){var t=n(e);return null==t?void 0:t.activeElement}t.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}},86770:function(e,t,n){"use strict";t.__esModule=!0,t.focus=function(e,t){void 0===t&&(t={});var n=t,c=n.isActive,u=void 0===c?i.isActiveElement:c,l=n.nextTick,d=n.preventScroll,f=void 0===d||d,p=n.selectTextIfInput,h=void 0===p||p;if(!e||u(e))return-1;function m(){if(e){if(function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}())e.focus({preventScroll:f});else if(e.focus(),f)!function(e){for(var t,n=function(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(t=n()).done;){var r=t.value,o=r.element,i=r.scrollTop,s=r.scrollLeft;o.scrollTop=i,o.scrollLeft=s}}(function(e){var t=(0,r.getOwnerDocument)(e),n=e.parentNode,o=[],i=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==i;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;i instanceof HTMLElement&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft});return o}(e));(0,i.isInputElement)(e)&&h&&e.select()}else(0,o.warn)({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}if(l)return requestAnimationFrame(m);return m(),-1};var r=n(14576),o=n(25981),i=n(99162);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=null},25981:function(e,t,n){"use strict";t.__esModule=!0,t.runIfFn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return(0,r.isFunction)(e)?e.apply(void 0,n):e},t.callAllHandlers=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.some((function(t){return null==t||t(e),null==e?void 0:e.defaultPrevented}))}},t.callAll=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){null==t||t(e)}))}},t.once=o,t.distance=function(e,t){if((0,r.isNumber)(e)&&(0,r.isNumber)(t))return c(e,t);if(u(e)&&u(t)){var n=c(e.x,t.x),o=c(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}return 0},t.pipe=t.scheduleMicrotask=t.error=t.warn=t.noop=t.compose=void 0;var r=n(22229);function o(e){var t;return function(){if(e){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t=e.apply(this,r),e=null}return t}}t.compose=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}),e)};t.noop=function(){};var i=o((function(e){return function(){var t=e.condition,n=e.message;t&&r.__DEV__&&console.warn(n)}}));t.warn=i;var a=o((function(e){return function(){var t=e.condition,n=e.message;t&&r.__DEV__&&console.error(n)}}));t.error=a;var s=r.__TEST__?function(e){return e()}:"function"===typeof queueMicrotask?queueMicrotask:function(e){Promise.resolve().then(e)};t.scheduleMicrotask=s;t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}};var c=function(e,t){return Math.abs(e-t)},u=function(e){return"x"in e&&"y"in e}},66751:function(e,t,n){"use strict";t.__esModule=!0;var r=n(78244);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(4706);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(22229);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(42402);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(14576);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var c=n(33211);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var u=n(86770);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var l=n(25981);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(65636);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(39407);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(95963);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(52952);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var m=n(91373);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var v=n(4535);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var g=n(99162);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(27489);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(58594);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var E=n(38140);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}))},65636:function(e,t){"use strict";t.__esModule=!0,t.determineLazyBehavior=function(e){var t=e.hasBeenSelected,n=e.isLazy,r=e.isSelected,o=e.lazyBehavior,i=void 0===o?"unmount":o;return!n||(!!r||!("keepMounted"!==i||!t))}},39407:function(e,t,n){"use strict";t.__esModule=!0,t.toPrecision=s,t.countDecimalPlaces=c,t.valueToPercent=function(e,t,n){return 100*(e-t)/(n-t)},t.percentToValue=function(e,t,n){return(n-t)*e+t},t.roundValueToStep=function(e,t,n){var r=Math.round((e-t)/n)*n+t,o=c(n);return s(r,o)},t.clampValue=function(e,t,n){return null==e?e:((0,o.warn)({condition:n<t,message:"clamp: max cannot be less than min"}),Math.min(Math.max(e,t),n))},t.maxSafeInteger=t.minSafeInteger=void 0;var r=n(22229),o=n(25981),i=Number.MIN_SAFE_INTEGER||-9007199254740991;t.minSafeInteger=i;var a=Number.MAX_SAFE_INTEGER||9007199254740991;function s(e,t){var n=function(e){var t=parseFloat(e);return(0,r.isNotNumber)(t)?0:t}(e),o=Math.pow(10,null!=t?t:10);return n=Math.round(n*o)/o,t?n.toFixed(t):n.toString()}function c(e){if(!Number.isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}t.maxSafeInteger=a},95963:function(e,t,n){"use strict";t.__esModule=!0,t.omit=function(e,t){var n={};return Object.keys(e).forEach((function(r){t.includes(r)||(n[r]=e[r])})),n},t.pick=function(e,t){var n={};return t.forEach((function(t){t in e&&(n[t]=e[t])})),n},t.split=function(e,t){var n={},r={};return Object.keys(e).forEach((function(o){t.includes(o)?n[o]=e[o]:r[o]=e[o]})),[n,r]},t.get=i,t.getWithDefault=function(e,t){return s(t,e,e)},t.objectFilter=c,t.getCSSVar=t.fromEntries=t.objectKeys=t.filterUndefined=t.memoizedGet=t.memoize=t.mergeWith=void 0;var r,o=(r=n(38554))&&r.__esModule?r:{default:r};function i(e,t,n,r){var o="string"===typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}t.mergeWith=o.default;var a=function(e){var t=new WeakMap;return function(n,r,o,i){if("undefined"===typeof n)return e(n,r,o);t.has(n)||t.set(n,new Map);var a=t.get(n);if(a.has(r))return a.get(r);var s=e(n,r,o,i);return a.set(r,s),s}};t.memoize=a;var s=a(i);function c(e,t){var n={};return Object.keys(e).forEach((function(r){var o=e[r];t(o,r,e)&&(n[r]=o)})),n}t.memoizedGet=s;t.filterUndefined=function(e){return c(e,(function(e){return null!==e&&void 0!==e}))};t.objectKeys=function(e){return Object.keys(e)};t.fromEntries=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})};t.getCSSVar=function(e,t,n){var r,o;return null!=(r=null==(o=e.__cssMap[t+"."+n])?void 0:o.varRef)?r:n}},52952:function(e,t,n){"use strict";t.__esModule=!0,t.PanSession=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(84839)),o=n(91373),i=n(25981);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function e(e,t,n){var a=this;if(c(this,"history",[]),c(this,"startEvent",null),c(this,"lastEvent",null),c(this,"lastEventInfo",null),c(this,"handlers",{}),c(this,"removeListeners",i.noop),c(this,"threshold",3),c(this,"updatePoint",(function(){if(a.lastEvent&&a.lastEventInfo){var e=p(a.lastEventInfo,a.history),t=null!==a.startEvent,n=(0,i.distance)(e.offset,{x:0,y:0})>=a.threshold;if(t||n){var o=(0,r.getFrameData)().timestamp;a.history.push(s({},e.point,{timestamp:o}));var c=a.handlers,u=c.onStart,l=c.onMove;t||(null==u||u(a.lastEvent,e),a.startEvent=a.lastEvent),null==l||l(a.lastEvent,e)}}})),c(this,"onPointerMove",(function(e,t){a.lastEvent=e,a.lastEventInfo=t,(0,o.isMouseEvent)(e)&&0===e.buttons?a.onPointerUp(e,t):r.default.update(a.updatePoint,!0)})),c(this,"onPointerUp",(function(e,t){var n=p(t,a.history),r=a.handlers,o=r.onEnd,i=r.onSessionEnd;null==i||i(e,n),a.end(),o&&a.startEvent&&(null==o||o(e,n))})),!(0,o.isMultiTouchEvent)(e)){this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var u=(0,o.extractEventInfo)(e),l=(0,r.getFrameData)().timestamp;this.history=[s({},u.point,{timestamp:l})];var d=t.onSessionStart;null==d||d(e,p(u,this.history)),this.removeListeners=(0,i.pipe)((0,o.addPointerEvent)(window,"pointermove",this.onPointerMove),(0,o.addPointerEvent)(window,"pointerup",this.onPointerUp),(0,o.addPointerEvent)(window,"pointercancel",this.onPointerUp))}}var t=e.prototype;return t.updateHandlers=function(e){this.handlers=e},t.end=function(){var e;null==(e=this.removeListeners)||e.call(this),r.cancelSync.update(this.updatePoint)},e}();function l(e,t){return{x:e.x-t.x,y:e.y-t.y}}function d(e){return e[0]}function f(e){return e[e.length-1]}function p(e,t){return{point:e.point,delta:l(e.point,f(t)),offset:l(e.point,d(t)),velocity:h(t,.1)}}t.PanSession=u;function h(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}},91373:function(e,t,n){"use strict";t.__esModule=!0,t.isMouseEvent=function(e){if("undefined"!==typeof PointerEvent&&e instanceof PointerEvent)return!("mouse"!==e.pointerType);return e instanceof MouseEvent},t.isTouchEvent=o,t.extractEventInfo=c,t.getViewportPointFromEvent=function(e){return c(e,"client")},t.getPointerEventName=f,t.addPointerEvent=function(e,t,n,o){return(0,r.addDomEvent)(e,f(t),u(n,"pointerdown"===t),o)},t.isMultiTouchEvent=function(e){return o(e)&&e.touches.length>1},t.wrapPointerEventHandler=void 0;var r=n(14576);function o(e){return!!e.touches}var i={pageX:0,pageY:0};function a(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||i;return{x:n[t+"X"],y:n[t+"Y"]}}function s(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function c(e,t){return void 0===t&&(t="page"),{point:o(e)?a(e,t):s(e,t)}}var u=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,c(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r};t.wrapPointerEventHandler=u;var l={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},d={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function f(e){return r.isBrowser&&null===window.onpointerdown?e:r.isBrowser&&null===window.ontouchstart?d[e]:r.isBrowser&&null===window.onmousedown?l[e]:e}},4535:function(e,t,n){"use strict";t.__esModule=!0,t.mapResponsive=function(e,t){if((0,o.isArray)(e))return e.map((function(e){return null===e?null:t(e)}));if((0,o.isObject)(e))return(0,i.objectKeys)(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{});if(null!=e)return t(e);return null},t.objectToArrayNotation=function(e,t){void 0===t&&(t=a);var n=t.map((function(t){var n;return null!=(n=e[t])?n:null}));for(;null===(0,r.getLastItem)(n);)n.pop();return n},t.arrayToObjectNotation=function(e,t){void 0===t&&(t=a);var n={};return e.forEach((function(e,r){var o=t[r];null!=e&&(n[o]=e)})),n},t.isResponsiveObjectLike=function(e,t){void 0===t&&(t=a);var n=Object.keys(e);return n.length>0&&n.every((function(e){return t.includes(e)}))},t.isCustomBreakpoint=t.breakpoints=void 0;var r=n(4706),o=n(22229),i=n(95963),a=Object.freeze(["base","sm","md","lg","xl","2xl"]);t.breakpoints=a;t.isCustomBreakpoint=function(e){return Number.isNaN(Number(e))}},99162:function(e,t,n){"use strict";t.__esModule=!0,t.isDisabled=a,t.isInputElement=function(e){return s(e)&&"input"===e.tagName.toLowerCase()&&"select"in e},t.isActiveElement=function(e){return(e instanceof HTMLElement?(0,r.getOwnerDocument)(e):document).activeElement===e},t.hasFocusWithin=function(e){return!!document.activeElement&&e.contains(document.activeElement)},t.isHTMLElement=s,t.isHidden=c,t.isContentEditable=u,t.isFocusable=l,t.isTabbable=function(e){return!!e&&(s(e)&&l(e)&&!i(e))},t.hasNegativeTabIndex=t.hasTabIndex=t.hasDisplayNone=void 0;var r=n(14576);t.hasDisplayNone=function(e){return"none"===window.getComputedStyle(e).display};var o=function(e){return e.hasAttribute("tabindex")};t.hasTabIndex=o;var i=function(e){return o(e)&&-1===e.tabIndex};function a(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}function s(e){return e instanceof HTMLElement}function c(e){return!(!e.parentElement||!c(e.parentElement))||e.hidden}function u(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}function l(e){if(!s(e)||c(e)||a(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in n?n[t]():!!u(e)||o(e)}t.hasNegativeTabIndex=i},27489:function(){},58594:function(e,t,n){"use strict";t.__esModule=!0,t.detectDeviceType=function(e){var t=e.userAgent;return/(tablet)|(iPad)|(Nexus 9)/i.test(t)?"tablet":/(mobi)/i.test(t)?"phone":"desktop"},t.detectOS=function(e){return!!r.isBrowser&&function(e){var t=e.userAgent,n=e.platform;switch(!0){case/Android/.test(t):return"Android";case/iPhone|iPad|iPod/.test(n):return"iOS";case/Win/.test(n):return"Windows";case/Mac/.test(n):return"Mac";case/CrOS/.test(t):return"Chrome OS";case/Firefox/.test(t):return"Firefox OS";default:return null}}(window.navigator)===e},t.detectBrowser=function(e){return!!r.isBrowser&&function(e){var t=e.userAgent,n=e.vendor,r=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case r&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(n):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case r:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===e},t.detectTouch=function(){return!!r.isBrowser&&(null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend)};var r=n(14576)},38140:function(e,t,n){"use strict";t.__esModule=!0,t.walkObject=function(e,t){return function e(n,o){return void 0===o&&(o=[]),(0,r.isArray)(n)?n.map((function(t,n){return e(t,[].concat(o,[String(n)]))})):(0,r.isObject)(n)?Object.fromEntries(Object.entries(n).map((function(t){var n=t[0];return[n,e(t[1],[].concat(o,[n]))]}))):t(n,o)}(e)};var r=n(22229)},47248:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(84461),o=n(80658),i=n(17768);function a(e,t){void 0===t&&(t={});var{isActive:n=i.H9,nextTick:a,preventScroll:c=!0,selectTextIfInput:u=!0}=t;if(!e||n(e))return-1;function l(){if(e){if(function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}())e.focus({preventScroll:c});else if(e.focus(),c)!function(e){for(var{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(function(e){var t=(0,r.lZ)(e),n=e.parentNode,o=[],i=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==i;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&o.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;i instanceof HTMLElement&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft});return o}(e));(0,i.cK)(e)&&u&&e.select()}else(0,o.ZK)({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}return a?requestAnimationFrame(l):(l(),-1)}var s=null},17768:function(e,t,n){"use strict";n.d(t,{cK:function(){return i},H9:function(){return a},EB:function(){return u},Wq:function(){return l}});var r=n(84461),o=e=>e.hasAttribute("tabindex");function i(e){return s(e)&&"input"===e.tagName.toLowerCase()&&"select"in e}function a(e){return(e instanceof HTMLElement?(0,r.lZ)(e):document).activeElement===e}function s(e){return e instanceof HTMLElement}function c(e){return!(!e.parentElement||!c(e.parentElement))||e.hidden}function u(e){if(!s(e)||c(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||o(e)}function l(e){return!!e&&(s(e)&&u(e)&&!(e=>o(e)&&-1===e.tabIndex)(e))}},22944:function(e,t,n){"use strict";t.__esModule=!0;var r={};t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(13267));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}t.default=o.default,Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}))},13267:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.VisuallyHiddenInput=t.VisuallyHidden=t.visuallyHiddenStyle=void 0;var r=n(48121),o=n(66751),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};t.visuallyHiddenStyle=i;var a=(0,r.chakra)("span",{baseStyle:i});t.VisuallyHidden=a,o.__DEV__&&(a.displayName="VisuallyHidden");var s=(0,r.chakra)("input",{baseStyle:i});t.VisuallyHiddenInput=s,o.__DEV__&&(s.displayName="VisuallyHiddenInput");var c=a;t.default=c},65415:function(e,t,n){"use strict";n.d(t,{NL:function(){return i},TX:function(){return a}});var r=n(89384),o=n(73808),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},a=(0,r.m$)("span",{baseStyle:i});o.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:i});o.Ts&&(s.displayName="VisuallyHiddenInput")},48981:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(67294);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=n(67866),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),c=n(65199),u=n(70444),l=n(94199),d=s,f=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:f},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=h(t,n,s),m=f||p(d),v=!m("as");return function(){var g=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==g[0]||void 0===g[0].raw)y.push.apply(y,g);else{0,y.push(g[0][0]);for(var b=g.length,E=1;E<b;E++)y.push(g[E],g[0][E])}var _=(0,c.w)((function(e,t,n){var o=v&&e.as||d,i="",s=[],h=e;if(null==e.theme){for(var g in h={},e)h[g]=e[g];h.theme=(0,r.useContext)(c.T)}"string"===typeof e.className?i=(0,u.f)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var b=(0,l.O)(y.concat(s),t.registered,h);(0,u.M)(t,b,"string"===typeof o);i+=t.key+"-"+b.name,void 0!==a&&(i+=" "+a);var E=v&&void 0===f?p(o):m,_={};for(var T in e)v&&"as"===T||E(T)&&(_[T]=e[T]);return _.className=i,_.ref=n,(0,r.createElement)(o,_)}));return _.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=d,_.__emotion_styles=y,_.__emotion_forwardProp=f,Object.defineProperty(_,"toString",{value:function(){return"."+a}}),_.withComponent=function(t,r){return e(t,o({},n,r,{shouldForwardProp:h(_,r,!0)})).apply(void 0,y)},_}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){m[e]=m(e)}));var v=m},32351:function(e,t,n){"use strict";n.d(t,{_7:function(){return m}});var r=n(67294);var o=function(e){(0,r.useEffect)((function(){e()}),[])};var i=function(e,t){var n=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var a=function(e){var t=(0,r.useRef)(e);t.current=e,(0,r.useEffect)((function(){return function(){t.current()}}),[])};"undefined"!==typeof window&&"undefined"!==typeof document?r.useLayoutEffect:r.useEffect;var s=n(34699),c=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t};function u(e,t){for(var n=0;n<e.length&&n<t.length;n++)if(!c(t[n],e[n]))return!1;return!0}var l=function(e){var t=(0,r.useRef)(e);return t.current=e,t};var d=function(e){var t=l(e),n=(0,r.useRef)();return void 0===n.current&&(n.current=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(this,n)}),n.current};function f(e){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var o,i=!1,s=!0;"number"===typeof n?o=n:"object"===f(n)&&n&&("wait"in n&&(o=+n.wait),"leading"in n&&(i=!!n.leading),"trailing"in n&&(s=!!n.trailing));var c=(0,r.useRef)(),u=(0,r.useRef)(),l=(0,r.useRef)(),p=(0,r.useRef)(),h=(0,r.useRef)(),m=(0,r.useRef)(),v=d((function(){var n=Date.now(),r=n-h.current,i=n-m.current;if(p.current&&clearTimeout(p.current),r>=o||e&&i>=o)p.current=void 0,h.current=void 0,s&&u.current&&(m.current=n,l.current=t.apply(c.current,u.current));else{var a=o-r,d=o-i,f=e?Math.min(a,d):a;p.current=setTimeout(v,f)}})),g=d((function(){var e=Date.now(),n=h.current;c.current=this;for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return u.current=a,h.current=e,(void 0===n||e-n>=o)&&void 0===p.current&&(m.current=e,p.current=setTimeout(v,o),i&&(l.current=t.apply(c.current,u.current))),l.current})),y=(0,r.useCallback)((function(){void 0!==p.current&&(clearTimeout(p.current),p.current=void 0),c.current=void 0,u.current=void 0,h.current=void 0,m.current=void 0}),[]),b=d((function(){return void 0!==p.current&&u.current&&(l.current=t.apply(c.current,u.current),y()),l.current}));return a(y),[g,{flush:b,cancel:y}]}};var h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p(e);return function(e,n){var o=l(e),a=(0,r.useState)(e),u=(0,s.Z)(a,2),f=u[0],p=u[1],h=(0,r.useRef)(f);function m(e){c(h.current,e)||(h.current=e,p(e))}var v=t(m,n),g=(0,s.Z)(v,2),y=g[0],b=g[1].cancel,E=d((function(e){b(),m(arguments.length>0?e:o.current)}));return i((function(){y(e)}),[e]),[f,{flush:E,cancel:b}]}};h(!1),h(!0),p(!1),p(!0);"undefined"!==typeof window&&window.requestIdleCallback&&window.cancelIdleCallback&&(window.requestIdleCallback,window.cancelIdleCallback);var m=function(e,t){var n,o;"number"===typeof t?n=t:"object"===f(t)&&null!==t&&("duration"in t&&(n=+t.duration),"function"===typeof t.algorithm&&(o=t.algorithm));var i=(0,r.useRef)(),s=(0,r.useRef)(),c=d(e),u=d((function(e){void 0===s.current&&(s.current=e);var t=e-s.current,r=n>0?t/n:1;r<0&&(r=0),r>1&&(r=1),r<1&&(i.current=requestAnimationFrame(u)),c(o?o(r):r)})),l=(0,r.useCallback)((function(){void 0!==i.current&&(cancelAnimationFrame(i.current),i.current=void 0),s.current=void 0}),[]),p=d((function(){l(),i.current=requestAnimationFrame(u)}));return a(l),[p,l]};var v=function(){var e=(0,r.useRef)(!1);return o((function(){e.current=!0})),e};var g=function(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(e);return n.current=t.current,t.current=e,n};var y=function(e,t,n,o){var i,a,s;"boolean"===typeof o?i=o:"object"===f(o)&&null!==o&&("capture"in o&&(i=!!o.capture),"once"in o&&(a=!!o.once),"passive"in o&&(s=!!o.passive));var c=d(n);(0,r.useEffect)((function(){if(e&&e.addEventListener&&e.removeEventListener)return e.addEventListener(t,c,{capture:i,once:a,passive:s}),function(){e.removeEventListener(t,c,{capture:i})}}),[e,t,c,i,a,s])};"undefined"!==typeof window&&"undefined"!==typeof window.navigator&&window.navigator.onLine;var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=v(),o=g(t),i=(0,r.useRef)();return n.current&&u(o.current,t)||(i.current=e()),i.current},E={ico:"image/x-icon",png:"image/png",gif:"image/gif"};"undefined"!==typeof window&&window.matchMedia;n(36808);function _(e,t){var n=(0,r.useRef)(),o=(0,r.useState)(t),a=(0,s.Z)(o,2),c=a[0],u=a[1],l=d((function(e){n.current=e,u(e)})),f=d((function(){u(t)}));return i((function(){n.current=void 0,u(t)}),[e]),i((function(){void 0===n.current&&u(t)}),[t]),[c,{set:l,remove:f}]}var T=function(e){return e?function(t,n,o){var a=o&&o.serialize?o.serialize:JSON.stringify,c=o&&o.deserialize?o.deserialize:JSON.parse,u=d((function(){try{var r=e.getItem(t);return null!==r?c(r):n}catch(o){return n}})),l=d((function(n){try{e.setItem(t,a(n))}catch(r){}})),p=d((function(){e.removeItem(t)})),h=(0,r.useState)(u()),m=(0,s.Z)(h,2),v=m[0],g=m[1],y=d((function(e){l(e),g(e)})),b=d((function(){p(),g(u())}));return i((function(){g(u())}),[t]),i((function(){null===e.getItem(t)&&g(n)}),[n]),(0,r.useEffect)((function(){function n(n){n.storageArea===e&&n.key===t&&g(u())}if(void 0!==("undefined"===typeof window?"undefined":f(window)))return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}}),[t]),[v,{set:y,remove:b}]}:_};T("undefined"!==typeof localStorage?localStorage:null),T("undefined"!==typeof sessionStorage?sessionStorage:null)},90478:function(e,t,n){"use strict";var r=n(50791),o=Object.prototype.hasOwnProperty,i={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function a(e){var t;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(t in i)o.call(i,t)&&void 0!==e.properties[t]&&(s(e,i[t],e.properties[t]),delete e.properties[t])}function s(e,t,n){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var o=r+t+": "+n+";";e.properties.style=o}e.exports=function(e){return r(e,"element",a),e}},93790:function(e){"use strict";function t(e){if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if(null===e||void 0===e)return o;if("object"===typeof e)return("length"in e?r:n)(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function r(e){var n=function(e){for(var n=[],r=e.length,o=-1;++o<r;)n[o]=t(e[o]);return n}(e),r=n.length;return function(){var e=-1;for(;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}function o(){return!0}e.exports=t},11150:function(e,t,n){"use strict";e.exports=a;var r=n(93790),o="skip",i=!1;function a(e,t,n,a){var c;function u(e,r,l){var d,f=[];return(t&&!c(e,r,l[l.length-1]||null)||(f=s(n(e,l)))[0]!==i)&&e.children&&f[0]!==o&&(d=s(function(e,t){var n,r=-1,o=a?-1:1,s=(a?e.length:r)+o;for(;s>r&&s<e.length;){if((n=u(e[s],s,t))[0]===i)return n;s="number"===typeof n[1]?n[1]:s+o}}(e.children,l.concat(e))))[0]===i?d:f}"function"===typeof t&&"function"!==typeof n&&(a=n,n=t,t=null),c=r(t),u(e,null,[])}function s(e){return null!==e&&"object"===typeof e&&"length"in e?e:"number"===typeof e?[true,e]:[e]}a.CONTINUE=true,a.SKIP=o,a.EXIT=i},50791:function(e,t,n){"use strict";e.exports=s;var r=n(11150),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function s(e,t,n,o){"function"===typeof t&&"function"!==typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=a},54309:function(e,t,n){"use strict";n.d(t,{iP:function(){return d}});var r=n(67294);var o=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t};const i=(e,t=100,n=!1)=>{const i=o(e),a=r.useRef(),s=[t,n,i];function c(){a.current&&clearTimeout(a.current),a.current=void 0}function u(){a.current=void 0}return r.useEffect((()=>c),s),r.useCallback((function(){const e=arguments,{current:r}=a;if(void 0===r&&n)return a.current=setTimeout(u,t),i.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout((()=>{a.current=void 0,i.current.apply(null,e)}),t)}),s)};var a=r["undefined"!==typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];var s=function(e,t,n,o){const i=r.useRef(n),s=r.useRef(o);a((()=>{i.current=n,s.current=o})),a((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;let r=0;function o(...e){r||i.current.apply(this,e)}n.addEventListener(t,o);const a=s.current;return()=>{r=1,n.removeEventListener(t,o),a&&a()}}),[e,t])};const c={},u="undefined"===typeof window?null:window,l=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],d=(e=c)=>{const{wait:t,leading:n,initialWidth:o=0,initialHeight:a=0}=e,[d,f]=((e,t,n)=>{const o=r.useState(e);return[o[0],i(o[1],t,n)]})("undefined"===typeof document?[o,a]:l,t,n),p=()=>f(l);return s(u,"resize",p),s(u,"orientationchange",p),d}},36194:function(e,t,n){"use strict";n.d(t,{oY:function(){return o}});var r=n(34155),o={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-o.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*o.Bounce.In(2*e):.5*o.Bounce.Out(2*e-1)+.5}}},i="undefined"===typeof self&&"undefined"!==typeof r&&r.hrtime?function(){var e=r.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!==typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},a=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map((function(t){return e._tweens[t]}))},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=i()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var o=this._tweens[n[r]],a=!t;o&&!1===o.update(e,a)&&!t&&delete this._tweens[n[r]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),s={Linear:function(e,t){var n=e.length-1,r=n*t,o=Math.floor(r),i=s.Utils.Linear;return t<0?i(e[0],e[1],r):t>1?i(e[n],e[n-1],n-r):i(e[o],e[o+1>n?n:o+1],r-o)},Bezier:function(e,t){for(var n=0,r=e.length-1,o=Math.pow,i=s.Utils.Bernstein,a=0;a<=r;a++)n+=o(1-t,r-a)*o(t,a)*e[a]*i(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,o=Math.floor(r),i=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(o=Math.floor(r=n*(1+t))),i(e[(o-1+n)%n],e[o],e[(o+1)%n],e[(o+2)%n],r-o)):t<0?e[0]-(i(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(i(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):i(e[o?o-1:0],e[o],e[n<o+1?n:o+1],e[n<o+2?n:o+2],r-o)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=s.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:function(){var e=[1];return function(t){var n=1;if(e[t])return e[t];for(var r=t;r>1;r--)n*=r;return e[t]=n,n}}(),CatmullRom:function(e,t,n,r,o){var i=.5*(n-e),a=.5*(r-t),s=o*o;return(2*t-2*n+i+a)*(o*s)+(-3*t+3*n-2*i-a)*s+i*o+t}}},c=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),u=new a,l=function(){function e(e,t){void 0===t&&(t=u),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=o.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=c.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){return this._valuesEnd=Object.create(e),void 0!==t&&(this._duration=t),this},e.prototype.duration=function(e){return this._duration=e,this},e.prototype.start=function(e){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var t in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==e?"string"===typeof e?i()+parseFloat(e):e:i(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(e,t,n,r){for(var o in n){var i=e[o],a=Array.isArray(i),s=a?"array":typeof i,c=!a&&Array.isArray(n[o]);if("undefined"!==s&&"function"!==s){if(c){var u=n[o];if(0===u.length)continue;u=u.map(this._handleRelativeValue.bind(this,i)),n[o]=[i].concat(u)}if("object"!==s&&!a||!i||c)"undefined"===typeof t[o]&&(t[o]=i),a||(t[o]*=1),r[o]=c?n[o].slice().reverse():t[o]||0;else{for(var l in t[o]=a?[]:{},i)t[o][l]=i[l];r[o]=a?[]:{},this._setupProperties(i,t[o],n[o],r[o])}}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(e){return void 0===e&&(e=i()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=e,this._group&&this._group.remove(this)),this},e.prototype.resume=function(e){return void 0===e&&(e=i()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},e.prototype.stopChainedTweens=function(){for(var e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this},e.prototype.group=function(e){return this._group=e,this},e.prototype.delay=function(e){return this._delayTime=e,this},e.prototype.repeat=function(e){return this._initialRepeat=e,this._repeat=e,this},e.prototype.repeatDelay=function(e){return this._repeatDelayTime=e,this},e.prototype.yoyo=function(e){return this._yoyo=e,this},e.prototype.easing=function(e){return this._easingFunction=e,this},e.prototype.interpolation=function(e){return this._interpolationFunction=e,this},e.prototype.chain=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._chainedTweens=e,this},e.prototype.onStart=function(e){return this._onStartCallback=e,this},e.prototype.onUpdate=function(e){return this._onUpdateCallback=e,this},e.prototype.onRepeat=function(e){return this._onRepeatCallback=e,this},e.prototype.onComplete=function(e){return this._onCompleteCallback=e,this},e.prototype.onStop=function(e){return this._onStopCallback=e,this},e.prototype.update=function(e,t){if(void 0===e&&(e=i()),void 0===t&&(t=!0),this._isPaused)return!0;var n,r,o=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(e>o)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),r=(e-this._startTime)/this._duration,r=0===this._duration||r>1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!==typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,c=this._chainedTweens.length;s<c;s++)this._chainedTweens[s].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(e,t,n,r){for(var o in n)if(void 0!==t[o]){var i=t[o]||0,a=n[o],s=Array.isArray(e[o]),c=Array.isArray(a);!s&&c?e[o]=this._interpolationFunction(a,r):"object"===typeof a&&a?this._updateProperties(e[o],i,a,r):"number"===typeof(a=this._handleRelativeValue(i,a))&&(e[o]=i+(a-i)*r)}},e.prototype._handleRelativeValue=function(e,t){return"string"!==typeof t?t:"+"===t.charAt(0)||"-"===t.charAt(0)?e+parseFloat(t):parseFloat(t)},e.prototype._swapEndStartRepeatValues=function(e){var t=this._valuesStartRepeat[e],n=this._valuesEnd[e];this._valuesStartRepeat[e]="string"===typeof n?this._valuesStartRepeat[e]+parseFloat(n):this._valuesEnd[e],this._valuesEnd[e]=t},e}(),d=c.nextId,f=u,p=f.getAll.bind(f),h=f.removeAll.bind(f),m=f.add.bind(f),v=f.remove.bind(f),g=f.update.bind(f),y={Easing:o,Group:a,Interpolation:s,now:i,Sequence:c,nextId:d,Tween:l,VERSION:"18.6.4",getAll:p,removeAll:h,add:m,remove:v,update:g};t.ZP=y},92539:function(e,t,n){"use strict";n.r(t);t.default=function(e){return e instanceof Function?e:"string"===typeof e?function(t){return t[e]}:function(t){return e}}},93379:function(e){var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,n){return"number"!==typeof n||t[e]?n:n+"px"}},60401:function(e,t,n){n(52406),n(29874),n(59236),n(82578),n(36699)},20203:function(e){e.exports=THREE.ColladaLoader=function(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager},THREE.ColladaLoader.prototype={constructor:THREE.ColladaLoader,crossOrigin:"anonymous",load:function(e,t,n,r){var o=this,i=void 0===o.path?THREE.LoaderUtils.extractUrlBase(e):o.path,a=new THREE.FileLoader(o.manager);a.setPath(o.path),a.load(e,(function(e){t(o.parse(e,i))}),n,r)},setPath:function(e){return this.path=e,this},setResourcePath:function(e){return this.resourcePath=e,this},options:{set convertUpAxis(e){console.warn("THREE.ColladaLoader: options.convertUpAxis() has been removed. Up axis is converted automatically.")}},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(e,t){function n(e,t){for(var n=[],r=e.childNodes,o=0,i=r.length;o<i;o++){var a=r[o];a.nodeName===t&&n.push(a)}return n}function r(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=t[r];return n}function o(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=parseFloat(t[r]);return n}function i(e){if(0===e.length)return[];for(var t=e.trim().split(/\s+/),n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=parseInt(t[r]);return n}function a(e){return e.substring(1)}function s(e){return 0===Object.keys(e).length}function c(e){return void 0!==e&&!0===e.hasAttribute("meter")?parseFloat(e.getAttribute("meter")):1}function u(e){return void 0!==e?e.textContent:"Y_UP"}function l(e,t,r,o){var i=n(e,t)[0];if(void 0!==i)for(var a=n(i,r),s=0;s<a.length;s++)o(a[s])}function d(e,t){for(var n in e){e[n].build=t(e[n])}}function f(e,t){return void 0!==e.build||(e.build=t(e)),e.build}function p(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var i=a(o.getAttribute("source")),s=o.getAttribute("semantic");t.inputs[s]=i}}return t}function h(e){var t={},n=e.getAttribute("target").split("/"),r=n.shift(),o=n.shift(),i=-1!==o.indexOf("("),s=-1!==o.indexOf(".");if(s)n=o.split("."),o=n.shift(),t.member=n.shift();else if(i){var c=o.split("(");o=c.shift();for(var u=0;u<c.length;u++)c[u]=parseInt(c[u].replace(/\)/,""));t.indices=c}return t.id=r,t.sid=o,t.arraySyntax=i,t.memberSyntax=s,t.sampler=a(e.getAttribute("source")),t}function m(e){var t=[],n=e.channels,r=e.samplers,o=e.sources;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i],s=r[a.sampler],c=s.inputs.INPUT,u=s.inputs.OUTPUT;_(g(a,o[c],o[u]),t)}return t}function v(e){return f(Ke.animations[e],m)}function g(e,t,n){var r,o,i,a,s,c,u=Ke.nodes[e.id],l=Le(u.id),d=u.transforms[e.sid],f=u.matrix.clone().transpose(),p={};switch(d){case"matrix":for(i=0,a=t.array.length;i<a;i++)if(r=t.array[i],o=i*n.stride,void 0===p[r]&&(p[r]={}),!0===e.arraySyntax){var h=n.array[o],m=e.indices[0]+4*e.indices[1];p[r][m]=h}else for(s=0,c=n.stride;s<c;s++)p[r][s]=n.array[o+s];break;case"translate":case"rotate":case"scale":console.warn('THREE.ColladaLoader: Animation transform type "%s" not yet implemented.',d)}var v=function(e,t){var n=[];for(var r in e)n.push({time:parseFloat(r),value:e[r]});n.sort(i);for(var o=0;o<16;o++)T(n,o,t.elements[o]);return n;function i(e,t){return e.time-t.time}}(p,f);return{name:l.uuid,keyframes:v}}var y=new THREE.Vector3,b=new THREE.Vector3,E=new THREE.Quaternion;function _(e,t){for(var n=e.keyframes,r=e.name,o=[],i=[],a=[],s=[],c=0,u=n.length;c<u;c++){var l=n[c],d=l.time,f=l.value;ke.fromArray(f).transpose(),ke.decompose(y,E,b),o.push(d),i.push(y.x,y.y,y.z),a.push(E.x,E.y,E.z,E.w),s.push(b.x,b.y,b.z)}return i.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".position",o,i)),a.length>0&&t.push(new THREE.QuaternionKeyframeTrack(r+".quaternion",o,a)),s.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".scale",o,s)),t}function T(e,t,n){var r,o,i,a=!0;for(o=0,i=e.length;o<i;o++)void 0===(r=e[o]).value[t]?r.value[t]=null:a=!1;if(!0===a)for(o=0,i=e.length;o<i;o++)(r=e[o]).value[t]=n;else!function(e,t){for(var n,r,o=0,i=e.length;o<i;o++){var a=e[o];if(null===a.value[t]){if(n=w(e,o,t),r=k(e,o,t),null===n){a.value[t]=r.value[t];continue}if(null===r){a.value[t]=n.value[t];continue}x(a,n,r,t)}}}(e,t)}function w(e,t,n){for(;t>=0;){var r=e[t];if(null!==r.value[n])return r;t--}return null}function k(e,t,n){for(;t<e.length;){var r=e[t];if(null!==r.value[n])return r;t++}return null}function x(e,t,n,r){n.time-t.time!==0?e.value[r]=(e.time-t.time)*(n.value[r]-t.value[r])/(n.time-t.time)+t.value[r]:e.value[r]=t.value[r]}function O(e){for(var t=[],n=e.name,r=e.end-e.start||-1,o=e.animations,i=0,a=o.length;i<a;i++)for(var s=v(o[i]),c=0,u=s.length;c<u;c++)t.push(s[c]);return new THREE.AnimationClip(n,r,t)}function C(e){return f(Ke.clips[e],O)}function A(e){for(var t={sources:{}},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"bind_shape_matrix":t.bindShapeMatrix=o(i.textContent);break;case"source":var a=i.getAttribute("id");t.sources[a]=oe(i);break;case"joints":t.joints=S(i);break;case"vertex_weights":t.vertexWeights=M(i)}}return t}function S(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var i=o.getAttribute("semantic"),s=a(o.getAttribute("source"));t.inputs[i]=s}}return t}function M(e){for(var t={inputs:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var s=o.getAttribute("semantic"),c=a(o.getAttribute("source")),u=parseInt(o.getAttribute("offset"));t.inputs[s]={id:c,offset:u};break;case"vcount":t.vcount=i(o.textContent);break;case"v":t.v=i(o.textContent)}}return t}function I(e){var t={id:e.id},n=Ke.geometries[t.id];return void 0!==e.skin&&(t.skin=function(e){var t,n,r,o=4,i={joints:[],indices:{array:[],stride:o},weights:{array:[],stride:o}},a=e.sources,s=e.vertexWeights,c=s.vcount,u=s.v,l=s.inputs.JOINT.offset,d=s.inputs.WEIGHT.offset,f=e.sources[e.joints.inputs.JOINT],p=e.sources[e.joints.inputs.INV_BIND_MATRIX],h=a[s.inputs.WEIGHT.id].array,m=0;for(t=0,r=c.length;t<r;t++){var v=c[t],g=[];for(n=0;n<v;n++){var y=u[m+l],b=h[u[m+d]];g.push({index:y,weight:b}),m+=2}for(g.sort(w),n=0;n<o;n++){var E=g[n];void 0!==E?(i.indices.array.push(E.index),i.weights.array.push(E.weight)):(i.indices.array.push(0),i.weights.array.push(0))}}e.bindShapeMatrix?i.bindMatrix=(new THREE.Matrix4).fromArray(e.bindShapeMatrix).transpose():i.bindMatrix=(new THREE.Matrix4).identity();for(t=0,r=f.array.length;t<r;t++){var _=f.array[t],T=(new THREE.Matrix4).fromArray(p.array,t*p.stride).transpose();i.joints.push({name:_,boneInverse:T})}return i;function w(e,t){return t.weight-e.weight}}(e.skin),n.sources.skinIndices=t.skin.indices,n.sources.skinWeights=t.skin.weights),t}function P(e){return void 0!==e.build?e.build:e.init_from}function N(e){var t=Ke.images[e];return void 0!==t?f(t,P):(console.warn("THREE.ColladaLoader: Couldn't find image with ID:",e),null)}function R(e){for(var t={surfaces:{},samplers:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"newparam":L(o,t);break;case"technique":t.technique=H(o);break;case"extra":t.extra=G(o)}}return t}function L(e,t){for(var n=e.getAttribute("sid"),r=0,o=e.childNodes.length;r<o;r++){var i=e.childNodes[r];if(1===i.nodeType)switch(i.nodeName){case"surface":t.surfaces[n]=D(i);break;case"sampler2D":t.samplers[n]=j(i)}}}function D(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"init_from":t.init_from=o.textContent}}return t}function j(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"source":t.source=o.textContent}}return t}function H(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"constant":case"lambert":case"blinn":case"phong":t.type=o.nodeName,t.parameters=B(o)}}return t}function B(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"emission":case"diffuse":case"specular":case"bump":case"ambient":case"shininess":case"transparency":t[o.nodeName]=F(o);break;case"transparent":t[o.nodeName]={opaque:o.getAttribute("opaque"),data:F(o)}}}return t}function F(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"color":t[i.nodeName]=o(i.textContent);break;case"float":t[i.nodeName]=parseFloat(i.textContent);break;case"texture":t[i.nodeName]={id:i.getAttribute("texture"),extra:U(i)}}}return t}function U(e){for(var t={technique:{}},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"extra":z(o,t)}}return t}function z(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"technique":V(o,t)}}}function V(e,t){for(var n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"repeatU":case"repeatV":case"offsetU":case"offsetV":t.technique[o.nodeName]=parseFloat(o.textContent);break;case"wrapU":case"wrapV":"TRUE"===o.textContent.toUpperCase()?t.technique[o.nodeName]=1:"FALSE"===o.textContent.toUpperCase()?t.technique[o.nodeName]=0:t.technique[o.nodeName]=parseInt(o.textContent)}}}function G(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"technique":t.technique=W(o)}}return t}function W(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"double_sided":t[o.nodeName]=parseInt(o.textContent)}}return t}function K(e){return e}function q(e){var t,n,r=(t=e.url,f(Ke.effects[t],K)),o=r.profile.technique,i=r.profile.extra;switch(o.type){case"phong":case"blinn":n=new THREE.MeshPhongMaterial;break;case"lambert":n=new THREE.MeshLambertMaterial;break;default:n=new THREE.MeshBasicMaterial}function a(e){var t=r.profile.samplers[e.id],n=null;void 0!==t?n=N(r.profile.surfaces[t.source].init_from):(console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."),n=N(e.id));if(null!==n){var o=function(e){var t,n=e.slice(2+(e.lastIndexOf(".")-1>>>0));switch(n=n.toLowerCase()){case"tga":t=Fe;break;default:t=ze}return t}(n);if(void 0!==o){var i=o.load(n),a=e.extra;if(void 0!==a&&void 0!==a.technique&&!1===s(a.technique)){var c=a.technique;i.wrapS=c.wrapU?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,i.wrapT=c.wrapV?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,i.offset.set(c.offsetU||0,c.offsetV||0),i.repeat.set(c.repeatU||1,c.repeatV||1)}else i.wrapS=THREE.RepeatWrapping,i.wrapT=THREE.RepeatWrapping;return i}return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",n),null}return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",e.id),null}n.name=e.name;var c=o.parameters;for(var u in c){var l=c[u];switch(u){case"diffuse":l.color&&n.color.fromArray(l.color),l.texture&&(n.map=a(l.texture));break;case"specular":l.color&&n.specular&&n.specular.fromArray(l.color),l.texture&&(n.specularMap=a(l.texture));break;case"bump":l.texture&&(n.normalMap=a(l.texture));break;case"ambient":l.texture&&(n.lightMap=a(l.texture));break;case"shininess":l.float&&n.shininess&&(n.shininess=l.float);break;case"emission":l.color&&n.emissive&&n.emissive.fromArray(l.color),l.texture&&(n.emissiveMap=a(l.texture))}}var d=c.transparent,p=c.transparency;if(void 0===p&&d&&(p={float:1}),void 0===d&&p&&(d={opaque:"A_ONE",data:{color:[1,1,1,1]}}),d&&p)if(d.data.texture)n.transparent=!0;else{var h=d.data.color;switch(d.opaque){case"A_ONE":n.opacity=h[3]*p.float;break;case"RGB_ZERO":n.opacity=1-h[0]*p.float;break;case"A_ZERO":n.opacity=1-h[3]*p.float;break;case"RGB_ONE":n.opacity=h[0]*p.float;break;default:console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',d.opaque)}n.opacity<1&&(n.transparent=!0)}return void 0!==i&&void 0!==i.technique&&1===i.technique.double_sided&&(n.side=THREE.DoubleSide),n}function Y(e){return f(Ke.materials[e],q)}function Z(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];switch(n.nodeName){case"technique_common":return $(n)}}return{}}function $(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"perspective":case"orthographic":t.technique=r.nodeName,t.parameters=X(r)}}return t}function X(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"xfov":case"yfov":case"xmag":case"ymag":case"znear":case"zfar":case"aspect_ratio":t[r.nodeName]=parseFloat(r.textContent)}}return t}function Q(e){var t;switch(e.optics.technique){case"perspective":t=new THREE.PerspectiveCamera(e.optics.parameters.yfov,e.optics.parameters.aspect_ratio,e.optics.parameters.znear,e.optics.parameters.zfar);break;case"orthographic":var n=e.optics.parameters.ymag,r=e.optics.parameters.xmag,o=e.optics.parameters.aspect_ratio;r=void 0===r?n*o:r,n=void 0===n?r/o:n,r*=.5,n*=.5,t=new THREE.OrthographicCamera(-r,r,n,-n,e.optics.parameters.znear,e.optics.parameters.zfar);break;default:t=new THREE.PerspectiveCamera}return t.name=e.name,t}function J(e){var t=Ke.cameras[e];return void 0!==t?f(t,Q):(console.warn("THREE.ColladaLoader: Couldn't find camera with ID:",e),null)}function ee(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"directional":case"point":case"spot":case"ambient":t.technique=o.nodeName,t.parameters=te(o)}}return t}function te(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"color":var a=o(i.textContent);t.color=(new THREE.Color).fromArray(a);break;case"falloff_angle":t.falloffAngle=parseFloat(i.textContent);break;case"quadratic_attenuation":var s=parseFloat(i.textContent);t.distance=s?Math.sqrt(1/s):0}}return t}function ne(e){var t;switch(e.technique){case"directional":t=new THREE.DirectionalLight;break;case"point":t=new THREE.PointLight;break;case"spot":t=new THREE.SpotLight;break;case"ambient":t=new THREE.AmbientLight}return e.parameters.color&&t.color.copy(e.parameters.color),e.parameters.distance&&(t.distance=e.parameters.distance),t}function re(e){var t=Ke.lights[e];return void 0!==t?f(t,ne):(console.warn("THREE.ColladaLoader: Couldn't find light with ID:",e),null)}function oe(e){for(var t={array:[],stride:3},i=0;i<e.childNodes.length;i++){var a=e.childNodes[i];if(1===a.nodeType)switch(a.nodeName){case"float_array":t.array=o(a.textContent);break;case"Name_array":t.array=r(a.textContent);break;case"technique_common":var s=n(a,"accessor")[0];void 0!==s&&(t.stride=parseInt(s.getAttribute("stride")))}}return t}function ie(e){for(var t={},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];1===r.nodeType&&(t[r.getAttribute("semantic")]=a(r.getAttribute("source")))}return t}function ae(e){for(var t={type:e.nodeName,material:e.getAttribute("material"),count:parseInt(e.getAttribute("count")),inputs:{},stride:0,hasUV:!1},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"input":var s=a(o.getAttribute("source")),c=o.getAttribute("semantic"),u=parseInt(o.getAttribute("offset")),l=parseInt(o.getAttribute("set")),d=l>0?c+l:c;t.inputs[d]={id:s,offset:u},t.stride=Math.max(t.stride,u+1),"TEXCOORD"===c&&(t.hasUV=!0);break;case"vcount":t.vcount=i(o.textContent);break;case"p":t.p=i(o.textContent)}}return t}function se(e){for(var t=0,n=0,r=e.length;n<r;n++){!0===e[n].hasUV&&t++}t>0&&t<e.length&&(e.uvsNeedsFix=!0)}function ce(e){var t={},n=e.sources,r=e.vertices,o=e.primitives;if(0===o.length)return{};var i=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];void 0===t[r.type]&&(t[r.type]=[]),t[r.type].push(r)}return t}(o);for(var a in i){var s=i[a];se(s),t[a]=ue(s,n,r)}return t}function ue(e,t,n){for(var r={},o={array:[],stride:0},i={array:[],stride:0},a={array:[],stride:0},s={array:[],stride:0},c={array:[],stride:0},u=[],l=4,d=[],f=4,p=new THREE.BufferGeometry,h=[],m=0,v=0;v<e.length;v++){var g=e[v],y=g.inputs,b=0;switch(g.type){case"lines":case"linestrips":b=2*g.count;break;case"triangles":b=3*g.count;break;case"polylist":for(var E=0;E<g.count;E++){var _=g.vcount[E];switch(_){case 3:b+=3;break;case 4:b+=6;break;default:b+=3*(_-2)}}break;default:console.warn("THREE.ColladaLoader: Unknow primitive type:",g.type)}for(var T in p.addGroup(m,b,v),m+=b,g.material&&h.push(g.material),y){var w=y[T];switch(T){case"VERTEX":for(var k in n){var x=n[k];switch(k){case"POSITION":var O=o.array.length;if(le(g,t[x],w.offset,o.array),o.stride=t[x].stride,t.skinWeights&&t.skinIndices&&(le(g,t.skinIndices,w.offset,u),le(g,t.skinWeights,w.offset,d)),!1===g.hasUV&&!0===e.uvsNeedsFix){b=(o.array.length-O)/o.stride;for(var C=0;C<b;C++)a.array.push(0,0)}break;case"NORMAL":le(g,t[x],w.offset,i.array),i.stride=t[x].stride;break;case"COLOR":le(g,t[x],w.offset,c.array),c.stride=t[x].stride;break;case"TEXCOORD":le(g,t[x],w.offset,a.array),a.stride=t[x].stride;break;case"TEXCOORD1":le(g,t[x],w.offset,s.array),a.stride=t[x].stride;break;default:console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',k)}}break;case"NORMAL":le(g,t[w.id],w.offset,i.array),i.stride=t[w.id].stride;break;case"COLOR":le(g,t[w.id],w.offset,c.array),c.stride=t[w.id].stride;break;case"TEXCOORD":le(g,t[w.id],w.offset,a.array),a.stride=t[w.id].stride;break;case"TEXCOORD1":le(g,t[w.id],w.offset,s.array),s.stride=t[w.id].stride}}}return o.array.length>0&&p.addAttribute("position",new THREE.Float32BufferAttribute(o.array,o.stride)),i.array.length>0&&p.addAttribute("normal",new THREE.Float32BufferAttribute(i.array,i.stride)),c.array.length>0&&p.addAttribute("color",new THREE.Float32BufferAttribute(c.array,c.stride)),a.array.length>0&&p.addAttribute("uv",new THREE.Float32BufferAttribute(a.array,a.stride)),s.array.length>0&&p.addAttribute("uv2",new THREE.Float32BufferAttribute(s.array,s.stride)),u.length>0&&p.addAttribute("skinIndex",new THREE.Float32BufferAttribute(u,l)),d.length>0&&p.addAttribute("skinWeight",new THREE.Float32BufferAttribute(d,f)),r.data=p,r.type=e[0].type,r.materialKeys=h,r}function le(e,t,n,r){var o=e.p,i=e.stride,a=e.vcount;function s(e){for(var t=o[e+n]*u,i=t+u;t<i;t++)r.push(c[t])}var c=t.array,u=t.stride;if(void 0!==e.vcount)for(var l=0,d=0,f=a.length;d<f;d++){var p=a[d];if(4===p){var h=l+1*i,m=l+2*i,v=l+3*i;s(l+0*i),s(h),s(v),s(h),s(m),s(v)}else if(3===p){h=l+1*i,m=l+2*i;s(l+0*i),s(h),s(m)}else if(p>4)for(var g=1,y=p-2;g<=y;g++){h=l+i*g,m=l+i*(g+1);s(l+0*i),s(h),s(m)}l+=i*p}else for(d=0,f=o.length;d<f;d+=i)s(d)}function de(e){return f(Ke.geometries[e],ce)}function fe(e){return void 0!==e.build?e.build:e}function pe(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"joint":t.joints[r.getAttribute("sid")]=he(r);break;case"link":t.links.push(ve(r))}}}function he(e){for(var t,n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"prismatic":case"revolute":t=me(r)}}return t}function me(e,t){t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",axis:new THREE.Vector3,limits:{min:0,max:0},type:e.nodeName,static:!1,zeroPosition:0,middlePosition:0};for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"axis":var i=o(r.textContent);t.axis.fromArray(i);break;case"limits":var a=r.getElementsByTagName("max")[0],s=r.getElementsByTagName("min")[0];t.limits.max=parseFloat(a.textContent),t.limits.min=parseFloat(s.textContent)}}return t.limits.min>=t.limits.max&&(t.static=!0),t.middlePosition=(t.limits.min+t.limits.max)/2,t}function ve(e){for(var t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",attachments:[],transforms:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"attachment_full":t.attachments.push(ge(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ge(e){for(var t={joint:e.getAttribute("joint").split("/").pop(),transforms:[],links:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"link":t.links.push(ve(r));break;case"matrix":case"translate":case"rotate":t.transforms.push(ye(r))}}return t}function ye(e){var t={type:e.nodeName},n=o(e.textContent);switch(t.type){case"matrix":t.obj=new THREE.Matrix4,t.obj.fromArray(n).transpose();break;case"translate":t.obj=new THREE.Vector3,t.obj.fromArray(n);break;case"rotate":t.obj=new THREE.Vector3,t.obj.fromArray(n),t.angle=THREE.Math.degToRad(n[3])}return t}function be(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"technique_common":Ee(r,t)}}}function Ee(e,t){for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"inertia":t.inertia=o(r.textContent);break;case"mass":t.mass=o(r.textContent)[0]}}}function _e(e){for(var t={target:e.getAttribute("target").split("/").pop()},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"axis":var o=r.getElementsByTagName("param")[0];t.axis=o.textContent;var i=t.axis.split("inst_").pop().split("axis")[0];t.jointIndex=i.substr(0,i.length-1)}}return t}function Te(e){return void 0!==e.build?e.build:e}function we(e){for(var t=[],n=He.querySelector('[id="'+e.id+'"]'),r=0;r<n.childNodes.length;r++){var i=n.childNodes[r];if(1===i.nodeType)switch(i.nodeName){case"matrix":var a=o(i.textContent),s=(new THREE.Matrix4).fromArray(a).transpose();t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:s});break;case"translate":case"scale":a=o(i.textContent);var c=(new THREE.Vector3).fromArray(a);t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:c});break;case"rotate":a=o(i.textContent),c=(new THREE.Vector3).fromArray(a);var u=THREE.Math.degToRad(a[3]);t.push({sid:i.getAttribute("sid"),type:i.nodeName,obj:c,angle:u})}}return t}var ke=new THREE.Matrix4,xe=new THREE.Vector3;function Oe(e){for(var t={name:e.getAttribute("name")||"",type:e.getAttribute("type"),id:e.getAttribute("id"),sid:e.getAttribute("sid"),matrix:new THREE.Matrix4,nodes:[],instanceCameras:[],instanceControllers:[],instanceLights:[],instanceGeometries:[],instanceNodes:[],transforms:{}},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"node":t.nodes.push(r.getAttribute("id")),Oe(r);break;case"instance_camera":t.instanceCameras.push(a(r.getAttribute("url")));break;case"instance_controller":t.instanceControllers.push(Ce(r));break;case"instance_light":t.instanceLights.push(a(r.getAttribute("url")));break;case"instance_geometry":t.instanceGeometries.push(Ce(r));break;case"instance_node":t.instanceNodes.push(a(r.getAttribute("url")));break;case"matrix":var i=o(r.textContent);t.matrix.multiply(ke.fromArray(i).transpose()),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"translate":i=o(r.textContent);xe.fromArray(i),t.matrix.multiply(ke.makeTranslation(xe.x,xe.y,xe.z)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"rotate":i=o(r.textContent);var s=THREE.Math.degToRad(i[3]);t.matrix.multiply(ke.makeRotationAxis(xe.fromArray(i),s)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"scale":i=o(r.textContent);t.matrix.scale(xe.fromArray(i)),t.transforms[r.getAttribute("sid")]=r.nodeName;break;case"extra":break;default:console.log(r)}}return Re(t.id)?console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.",t.id):Ke.nodes[t.id]=t,t}function Ce(e){for(var t={id:a(e.getAttribute("url")),materials:{},skeletons:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];switch(r.nodeName){case"bind_material":for(var o=r.getElementsByTagName("instance_material"),i=0;i<o.length;i++){var s=o[i],c=s.getAttribute("symbol"),u=s.getAttribute("target");t.materials[c]=a(u)}break;case"skeleton":t.skeletons.push(a(r.textContent))}}return t}function Ae(e,t){var n,r,o,i=[],a=[];for(n=0;n<e.length;n++){var s=e[n];if(Re(s))Se(Le(s),t,i);else if(o=s,void 0!==Ke.visualScenes[o])for(var c=Ke.visualScenes[s].children,u=0;u<c.length;u++){var l=c[u];if("JOINT"===l.type)Se(Le(l.id),t,i)}else console.error("THREE.ColladaLoader: Unable to find root bone of skeleton with ID:",s)}for(n=0;n<t.length;n++)for(u=0;u<i.length;u++)if((r=i[u]).bone.name===t[n].name){a[n]=r,r.processed=!0;break}for(n=0;n<i.length;n++)!1===(r=i[n]).processed&&(a.push(r),r.processed=!0);var d=[],f=[];for(n=0;n<a.length;n++)r=a[n],d.push(r.bone),f.push(r.boneInverse);return new THREE.Skeleton(d,f)}function Se(e,t,n){e.traverse((function(e){if(!0===e.isBone){for(var r,o=0;o<t.length;o++){var i=t[o];if(i.name===e.name){r=i.boneInverse;break}}void 0===r&&(r=new THREE.Matrix4),n.push({bone:e,boneInverse:r,processed:!1})}}))}function Me(e){for(var t,n=[],r=e.matrix,o=e.nodes,i=e.type,a=e.instanceCameras,s=e.instanceControllers,c=e.instanceLights,u=e.instanceGeometries,l=e.instanceNodes,d=0,p=o.length;d<p;d++)n.push(Le(o[d]));for(d=0,p=a.length;d<p;d++){var h=J(a[d]);null!==h&&n.push(h.clone())}for(d=0,p=s.length;d<p;d++)for(var m=s[d],v=(t=m.id,f(Ke.controllers[t],I)),g=Ne(de(v.id),m.materials),y=Ae(m.skeletons,v.skin.joints),b=0,E=g.length;b<E;b++){var _;(_=g[b]).isSkinnedMesh&&(_.bind(y,v.skin.bindMatrix),_.normalizeSkinWeights()),n.push(_)}for(d=0,p=c.length;d<p;d++){var T=re(c[d]);null!==T&&n.push(T.clone())}for(d=0,p=u.length;d<p;d++)for(b=0,E=(g=Ne(de((m=u[d]).id),m.materials)).length;b<E;b++)n.push(g[b]);for(d=0,p=l.length;d<p;d++)n.push(Le(l[d]).clone());if(0===o.length&&1===n.length)_=n[0];else{_="JOINT"===i?new THREE.Bone:new THREE.Group;for(d=0;d<n.length;d++)_.add(n[d])}return""===_.name&&(_.name="JOINT"===i?e.sid:e.name),_.matrix.copy(r),_.matrix.decompose(_.position,_.quaternion,_.scale),_}var Ie=new THREE.MeshBasicMaterial({color:16711935});function Pe(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=t[e[r]];void 0===i?(console.warn("THREE.ColladaLoader: Material with key %s not found. Apply fallback material.",e[r]),n.push(Ie)):n.push(Y(i))}return n}function Ne(e,t){var n=[];for(var r in e){var o=e[r],i=Pe(o.materialKeys,t);0===i.length&&("lines"===r||"linestrips"===r?i.push(new THREE.LineBasicMaterial):i.push(new THREE.MeshPhongMaterial));var a=void 0!==o.data.attributes.skinIndex;if(a)for(var s=0,c=i.length;s<c;s++)i[s].skinning=!0;var u,l=1===i.length?i[0]:i;switch(r){case"lines":u=new THREE.LineSegments(o.data,l);break;case"linestrips":u=new THREE.Line(o.data,l);break;case"triangles":case"polylist":u=a?new THREE.SkinnedMesh(o.data,l):new THREE.Mesh(o.data,l)}n.push(u)}return n}function Re(e){return void 0!==Ke.nodes[e]}function Le(e){return f(Ke.nodes[e],Me)}function De(e){var t=new THREE.Group;t.name=e.name;for(var n=e.children,r=0;r<n.length;r++){var o=n[r];t.add(Le(o.id))}return t}function je(e){return f(Ke.visualScenes[e],De)}if(0===e.length)return{scene:new THREE.Scene};var He=n((new DOMParser).parseFromString(e,"application/xml"),"COLLADA")[0],Be=He.getAttribute("version");console.log("THREE.ColladaLoader: File version",Be);var Fe,Ue=function(e){return{unit:c(n(e,"unit")[0]),upAxis:u(n(e,"up_axis")[0])}}(n(He,"asset")[0]),ze=new THREE.TextureLoader(this.manager);ze.setPath(this.resourcePath||t).setCrossOrigin(this.crossOrigin),THREE.TGALoader&&(Fe=new THREE.TGALoader(this.manager)).setPath(this.resourcePath||t);var Ve=[],Ge={},We=0,Ke={animations:{},clips:{},controllers:{},images:{},effects:{},materials:{},cameras:{},lights:{},geometries:{},nodes:{},visualScenes:{},kinematicsModels:{},physicsModels:{},kinematicsScenes:{}};l(He,"library_animations","animation",(function(e){for(var t={sources:{},samplers:{},channels:{}},n=0,r=e.childNodes.length;n<r;n++){var o,i=e.childNodes[n];if(1===i.nodeType)switch(i.nodeName){case"source":o=i.getAttribute("id"),t.sources[o]=oe(i);break;case"sampler":o=i.getAttribute("id"),t.samplers[o]=p(i);break;case"channel":o=i.getAttribute("target"),t.channels[o]=h(i);break;default:console.log(i)}}Ke.animations[e.getAttribute("id")]=t})),l(He,"library_animation_clips","animation_clip",(function(e){for(var t={name:e.getAttribute("id")||"default",start:parseFloat(e.getAttribute("start")||0),end:parseFloat(e.getAttribute("end")||0),animations:[]},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"instance_animation":t.animations.push(a(o.getAttribute("url")))}}Ke.clips[e.getAttribute("id")]=t})),l(He,"library_controllers","controller",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"skin":t.id=a(o.getAttribute("source")),t.skin=A(o);break;case"morph":t.id=a(o.getAttribute("source")),console.warn("THREE.ColladaLoader: Morph target animation not supported yet.")}}Ke.controllers[e.getAttribute("id")]=t})),l(He,"library_images","image",(function(e){var t={init_from:n(e,"init_from")[0].textContent};Ke.images[e.getAttribute("id")]=t})),l(He,"library_effects","effect",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"profile_COMMON":t.profile=R(o)}}Ke.effects[e.getAttribute("id")]=t})),l(He,"library_materials","material",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"instance_effect":t.url=a(o.getAttribute("url"))}}Ke.materials[e.getAttribute("id")]=t})),l(He,"library_cameras","camera",(function(e){for(var t={name:e.getAttribute("name")},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"optics":t.optics=Z(o)}}Ke.cameras[e.getAttribute("id")]=t})),l(He,"library_lights","light",(function(e){for(var t={},n=0,r=e.childNodes.length;n<r;n++){var o=e.childNodes[n];if(1===o.nodeType)switch(o.nodeName){case"technique_common":t=ee(o)}}Ke.lights[e.getAttribute("id")]=t})),l(He,"library_geometries","geometry",(function(e){var t={name:e.getAttribute("name"),sources:{},vertices:{},primitives:[]},r=n(e,"mesh")[0];if(void 0!==r){for(var o=0;o<r.childNodes.length;o++){var i=r.childNodes[o];if(1===i.nodeType){var a=i.getAttribute("id");switch(i.nodeName){case"source":t.sources[a]=oe(i);break;case"vertices":t.vertices=ie(i);break;case"polygons":console.warn("THREE.ColladaLoader: Unsupported primitive type: ",i.nodeName);break;case"lines":case"linestrips":case"polylist":case"triangles":t.primitives.push(ae(i));break;default:console.log(i)}}}Ke.geometries[e.getAttribute("id")]=t}})),l(He,"library_nodes","node",Oe),l(He,"library_visual_scenes","visual_scene",(function(e){var t={name:e.getAttribute("name"),children:[]};!function(e){for(var t=e.getElementsByTagName("node"),n=0;n<t.length;n++){var r=t[n];!1===r.hasAttribute("id")&&r.setAttribute("id","three_default_"+We++)}}(e);for(var r=n(e,"node"),o=0;o<r.length;o++)t.children.push(Oe(r[o]));Ke.visualScenes[e.getAttribute("id")]=t})),l(He,"library_kinematics_models","kinematics_model",(function(e){for(var t={name:e.getAttribute("name")||"",joints:{},links:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"technique_common":pe(r,t)}}Ke.kinematicsModels[e.getAttribute("id")]=t})),l(He,"library_physics_models","physics_model",(function(e){for(var t={name:e.getAttribute("name")||"",rigidBodies:{}},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"rigid_body":t.rigidBodies[r.getAttribute("name")]={},be(r,t.rigidBodies[r.getAttribute("name")])}}Ke.physicsModels[e.getAttribute("id")]=t})),l(He,"scene","instance_kinematics_scene",(function(e){for(var t={bindJointAxis:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(1===r.nodeType)switch(r.nodeName){case"bind_joint_axis":t.bindJointAxis.push(_e(r))}}Ke.kinematicsScenes[a(e.getAttribute("url"))]=t})),d(Ke.animations,m),d(Ke.clips,O),d(Ke.controllers,I),d(Ke.images,P),d(Ke.effects,K),d(Ke.materials,q),d(Ke.cameras,Q),d(Ke.lights,ne),d(Ke.geometries,ce),d(Ke.visualScenes,De),function(){var e=Ke.clips;if(!0===s(e)){if(!1===s(Ke.animations)){var t=[];for(var n in Ke.animations)for(var r=v(n),o=0,i=r.length;o<i;o++)t.push(r[o]);Ve.push(new THREE.AnimationClip("default",-1,t))}}else for(var n in e)Ve.push(C(n))}(),function(){var e=Object.keys(Ke.kinematicsModels)[0],t=Object.keys(Ke.kinematicsScenes)[0],n=Object.keys(Ke.visualScenes)[0];if(void 0!==e&&void 0!==t){for(var r,o=(r=e,f(Ke.kinematicsModels[r],fe)),i=function(e){return f(Ke.kinematicsScenes[e],Te)}(t),a=je(n),s=i.bindJointAxis,c={},u=0,l=s.length;u<l;u++){var d=s[u],p=He.querySelector('[sid="'+d.target+'"]');if(p){var h=p.parentElement;v(d.jointIndex,h)}}var m=new THREE.Matrix4;Ge={joints:o&&o.joints,getJointValue:function(e){var t=c[e];if(t)return t.position;console.warn("THREE.ColladaLoader: Joint "+e+" doesn't exist.")},setJointValue:function(e,t){var n=c[e];if(n){var r=n.joint;if(t>r.limits.max||t<r.limits.min)console.warn("THREE.ColladaLoader: Joint "+e+" value "+t+" outside of limits (min: "+r.limits.min+", max: "+r.limits.max+").");else if(r.static)console.warn("THREE.ColladaLoader: Joint "+e+" is static.");else{var o=n.object,i=r.axis,a=n.transforms;ke.identity();for(var s=0;s<a.length;s++){var u=a[s];if(u.sid&&-1!==u.sid.indexOf(e))switch(r.type){case"revolute":ke.multiply(m.makeRotationAxis(i,THREE.Math.degToRad(t)));break;case"prismatic":ke.multiply(m.makeTranslation(i.x*t,i.y*t,i.z*t));break;default:console.warn("THREE.ColladaLoader: Unknown joint type: "+r.type)}else switch(u.type){case"matrix":ke.multiply(u.obj);break;case"translate":ke.multiply(m.makeTranslation(u.obj.x,u.obj.y,u.obj.z));break;case"scale":ke.scale(u.obj);break;case"rotate":ke.multiply(m.makeRotationAxis(u.obj,u.angle))}}o.matrix.copy(ke),o.matrix.decompose(o.position,o.quaternion,o.scale),c[e].position=t}}else console.log("THREE.ColladaLoader: "+e+" does not exist.")}}}function v(e,t){var n=t.getAttribute("name"),r=o.joints[e];a.traverse((function(o){o.name===n&&(c[e]={object:o,transforms:we(t),joint:r,position:r.zeroPosition})}))}}();var qe=function(e){return je(a(n(e,"instance_visual_scene")[0].getAttribute("url")))}(n(He,"scene")[0]);return"Z_UP"===Ue.upAxis&&qe.quaternion.setFromEuler(new THREE.Euler(-Math.PI/2,0,0)),qe.scale.multiplyScalar(Ue.unit),{animations:Ve,kinematics:Ge,library:Ke,scene:qe}}}},99434:function(e){e.exports=THREE.FBXLoader=function(){var e,t,n;function r(e){this.manager=void 0!==e?e:THREE.DefaultLoadingManager}function o(e){this.textureLoader=e}function i(){}function a(){}function s(){}function c(){}function u(e,t){this.dv=new DataView(e),this.offset=0,this.littleEndian=void 0===t||t}function l(){}function d(e){var t=e.match(/FBXVersion: (\d+)/);if(t)return parseInt(t[1]);throw new Error("THREE.FBXLoader: Cannot find the version number for the file given.")}function f(e){return e/46186158e3}r.prototype={constructor:r,crossOrigin:"anonymous",load:function(e,t,n,r){var o=this,i=THREE.LoaderUtils.extractUrlBase(e),a=new THREE.FileLoader(this.manager);a.setResponseType("arraybuffer"),a.load(e,(function(n){try{var a=o.parse(n,i);t(a)}catch(s){setTimeout((function(){r&&r(s),o.manager.itemError(e)}),0)}}),n,r)},setCrossOrigin:function(e){return this.crossOrigin=e,this},parse:function(t,n){if(function(e){var t="Kaydara FBX Binary  \0";return e.byteLength>=t.length&&t===w(e,0,t.length)}(t))e=(new c).parse(t);else{var r=w(t);if(!function(e){var t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"],n=0;function r(t){var r=e[t-1];return e=e.slice(n+t),n++,r}for(var o=0;o<t.length;++o){if(r(1)===t[o])return!1}return!0}(r))throw new Error("THREE.FBXLoader: Unknown format.");if(d(r)<7e3)throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: "+d(r));e=(new s).parse(r)}return new o(new THREE.TextureLoader(this.manager).setPath(n).setCrossOrigin(this.crossOrigin)).parse(e)}},o.prototype={constructor:o,parse:function(){t=this.parseConnections();var e=this.parseImages(),r=this.parseTextures(e),o=this.parseMaterials(r),a=this.parseDeformers(),s=(new i).parse(a);return this.parseScene(a,s,o),n},parseConnections:function(){var t=new Map;"Connections"in e&&e.Connections.connections.forEach((function(e){var n=e[0],r=e[1],o=e[2];t.has(n)||t.set(n,{parents:[],children:[]});var i={ID:r,relationship:o};t.get(n).parents.push(i),t.has(r)||t.set(r,{parents:[],children:[]});var a={ID:n,relationship:o};t.get(r).children.push(a)}));return t},parseImages:function(){var t={},n={};if("Video"in e.Objects){var r=e.Objects.Video;for(var o in r){var i=r[o];if(t[u=parseInt(o)]=i.RelativeFilename||i.Filename,"Content"in i){var a=i.Content instanceof ArrayBuffer&&i.Content.byteLength>0,s="string"===typeof i.Content&&""!==i.Content;if(a||s){var c=this.parseImage(r[o]);n[i.RelativeFilename||i.Filename]=c}}}}for(var u in t){var l=t[u];void 0!==n[l]?t[u]=n[l]:t[u]=t[u].split("\\").pop()}return t},parseImage:function(e){var t,n=e.Content,r=e.RelativeFilename||e.Filename,o=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(o){case"bmp":t="image/bmp";break;case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"tif":t="image/tiff";break;case"tga":if("function"!==typeof THREE.TGALoader)return void console.warn("FBXLoader: THREE.TGALoader is required to load TGA textures");null===THREE.Loader.Handlers.get(".tga")&&THREE.Loader.Handlers.add(/\.tga$/i,new THREE.TGALoader),t="image/tga";break;default:return void console.warn('FBXLoader: Image type "'+o+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var i=new Uint8Array(n);return window.URL.createObjectURL(new Blob([i],{type:t}))},parseTextures:function(t){var n=new Map;if("Texture"in e.Objects){var r=e.Objects.Texture;for(var o in r){var i=this.parseTexture(r[o],t);n.set(parseInt(o),i)}}return n},parseTexture:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,o=e.WrapModeV,i=void 0!==r?r.value:0,a=void 0!==o?o.value:0;if(n.wrapS=0===i?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,n.wrapT=0===a?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,"Scaling"in e){var s=e.Scaling.value;n.repeat.x=s[0],n.repeat.y=s[1]}return n},loadTexture:function(e,n){var r,o,i=this.textureLoader.path,a=t.get(e.id).children;void 0!==a&&a.length>0&&void 0!==n[a[0].ID]&&(0!==(r=n[a[0].ID]).indexOf("blob:")&&0!==r.indexOf("data:")||this.textureLoader.setPath(void 0));var s=e.FileName.slice(-3).toLowerCase();if("tga"===s){var c=THREE.Loader.Handlers.get(".tga");null===c?(console.warn("FBXLoader: TGALoader not found, creating empty placeholder texture for",r),o=new THREE.Texture):o=c.load(r)}else"psd"===s?(console.warn("FBXLoader: PSD textures are not supported, creating empty placeholder texture for",r),o=new THREE.Texture):o=this.textureLoader.load(r);return this.textureLoader.setPath(i),o},parseMaterials:function(t){var n=new Map;if("Material"in e.Objects){var r=e.Objects.Material;for(var o in r){var i=this.parseMaterial(r[o],t);null!==i&&n.set(parseInt(o),i)}}return n},parseMaterial:function(e,n){var r=e.id,o=e.attrName,i=e.ShadingModel;if("object"===typeof i&&(i=i.value),!t.has(r))return null;var a,s=this.parseParameters(e,n,r);switch(i.toLowerCase()){case"phong":a=new THREE.MeshPhongMaterial;break;case"lambert":a=new THREE.MeshLambertMaterial;break;default:console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',i),a=new THREE.MeshPhongMaterial({color:3342591})}return a.setValues(s),a.name=o,a},parseParameters:function(e,n,r){var o={};e.BumpFactor&&(o.bumpScale=e.BumpFactor.value),e.Diffuse?o.color=(new THREE.Color).fromArray(e.Diffuse.value):e.DiffuseColor&&"Color"===e.DiffuseColor.type&&(o.color=(new THREE.Color).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(o.displacementScale=e.DisplacementFactor.value),e.Emissive?o.emissive=(new THREE.Color).fromArray(e.Emissive.value):e.EmissiveColor&&"Color"===e.EmissiveColor.type&&(o.emissive=(new THREE.Color).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(o.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(o.opacity=parseFloat(e.Opacity.value)),o.opacity<1&&(o.transparent=!0),e.ReflectionFactor&&(o.reflectivity=e.ReflectionFactor.value),e.Shininess&&(o.shininess=e.Shininess.value),e.Specular?o.specular=(new THREE.Color).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(o.specular=(new THREE.Color).fromArray(e.SpecularColor.value));var i=this;return t.get(r).children.forEach((function(e){var t=e.relationship;switch(t){case"Bump":o.bumpMap=i.getTexture(n,e.ID);break;case"DiffuseColor":o.map=i.getTexture(n,e.ID);break;case"DisplacementColor":o.displacementMap=i.getTexture(n,e.ID);break;case"EmissiveColor":o.emissiveMap=i.getTexture(n,e.ID);break;case"NormalMap":o.normalMap=i.getTexture(n,e.ID);break;case"ReflectionColor":o.envMap=i.getTexture(n,e.ID),o.envMap.mapping=THREE.EquirectangularReflectionMapping;break;case"SpecularColor":o.specularMap=i.getTexture(n,e.ID);break;case"TransparentColor":o.alphaMap=i.getTexture(n,e.ID),o.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",t)}})),o},getTexture:function(n,r){return"LayeredTexture"in e.Objects&&r in e.Objects.LayeredTexture&&(console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),r=t.get(r).children[0].ID),n.get(r)},parseDeformers:function(){var n={},r={};if("Deformer"in e.Objects){var o=e.Objects.Deformer;for(var i in o){var a=o[i],s=t.get(parseInt(i));if("Skin"===a.attrType){var c=this.parseSkeleton(s,o);c.ID=i,s.parents.length>1&&console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),c.geometryID=s.parents[0].ID,n[i]=c}else if("BlendShape"===a.attrType){var u={id:i};u.rawTargets=this.parseMorphTargets(s,o),u.id=i,s.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),r[i]=u}}}return{skeletons:n,morphTargets:r}},parseSkeleton:function(e,t){var n=[];return e.children.forEach((function(e){var r=t[e.ID];if("Cluster"===r.attrType){var o={ID:e.ID,indices:[],weights:[],transform:(new THREE.Matrix4).fromArray(r.Transform.a),transformLink:(new THREE.Matrix4).fromArray(r.TransformLink.a),linkMode:r.Mode};"Indexes"in r&&(o.indices=r.Indexes.a,o.weights=r.Weights.a),n.push(o)}})),{rawBones:n,bones:[]}},parseMorphTargets:function(e,n){for(var r=[],o=0;o<e.children.length;o++){if(8===o){console.warn("FBXLoader: maximum of 8 morph targets supported. Ignoring additional targets.");break}var i=e.children[o],a=n[i.ID],s={name:a.attrName,initialWeight:a.DeformPercent,id:a.id,fullWeights:a.FullWeights.a};if("BlendShapeChannel"!==a.attrType)return;t.get(parseInt(i.ID)).children.forEach((function(e){void 0===e.relationship&&(s.geoID=e.ID)})),r.push(s)}return r},parseScene:function(r,o,i){n=new THREE.Group;var s=this.parseModels(r.skeletons,o,i),c=e.Objects.Model,u=this;s.forEach((function(e){var r=c[e.ID];u.setLookAtProperties(e,r),t.get(e.ID).parents.forEach((function(t){var n=s.get(t.ID);void 0!==n&&n.add(e)})),null===e.parent&&n.add(e)})),this.bindSkeleton(r.skeletons,o,s),this.createAmbientLight(),this.setupMorphMaterials();var l=(new a).parse();1===n.children.length&&n.children[0].isGroup&&(n.children[0].animations=l,n=n.children[0]),n.animations=l},parseModels:function(n,r,o){var i=new Map,a=e.Objects.Model;for(var s in a){var c=parseInt(s),u=a[s],l=t.get(c),d=this.buildSkeleton(l,n,c,u.attrName);if(!d){switch(u.attrType){case"Camera":d=this.createCamera(l);break;case"Light":d=this.createLight(l);break;case"Mesh":d=this.createMesh(l,r,o);break;case"NurbsCurve":d=this.createCurve(l,r);break;case"LimbNode":case"Null":default:d=new THREE.Group}d.name=THREE.PropertyBinding.sanitizeNodeName(u.attrName),d.ID=c}this.setModelTransforms(d,u),i.set(c,d)}return i},buildSkeleton:function(e,t,n,r){var o=null;return e.parents.forEach((function(e){for(var i in t){var a=t[i];a.rawBones.forEach((function(t,i){if(t.ID===e.ID){var s=o;(o=new THREE.Bone).matrixWorld.copy(t.transformLink),o.name=THREE.PropertyBinding.sanitizeNodeName(r),o.ID=n,a.bones[i]=o,null!==s&&o.add(s)}}))}})),o},createCamera:function(t){var n,r;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(r=n)})),void 0===r)n=new THREE.Object3D;else{var o=0;void 0!==r.CameraProjectionType&&1===r.CameraProjectionType.value&&(o=1);var i=1;void 0!==r.NearPlane&&(i=r.NearPlane.value/1e3);var a=1e3;void 0!==r.FarPlane&&(a=r.FarPlane.value/1e3);var s=window.innerWidth,c=window.innerHeight;void 0!==r.AspectWidth&&void 0!==r.AspectHeight&&(s=r.AspectWidth.value,c=r.AspectHeight.value);var u=s/c,l=45;void 0!==r.FieldOfView&&(l=r.FieldOfView.value);var d=r.FocalLength?r.FocalLength.value:null;switch(o){case 0:n=new THREE.PerspectiveCamera(l,u,i,a),null!==d&&n.setFocalLength(d);break;case 1:n=new THREE.OrthographicCamera(-s/2,s/2,c/2,-c/2,i,a);break;default:console.warn("THREE.FBXLoader: Unknown camera type "+o+"."),n=new THREE.Object3D}}return n},createLight:function(t){var n,r;if(t.children.forEach((function(t){var n=e.Objects.NodeAttribute[t.ID];void 0!==n&&(r=n)})),void 0===r)n=new THREE.Object3D;else{var o;o=void 0===r.LightType?0:r.LightType.value;var i=16777215;void 0!==r.Color&&(i=(new THREE.Color).fromArray(r.Color.value));var a=void 0===r.Intensity?1:r.Intensity.value/100;void 0!==r.CastLightOnObject&&0===r.CastLightOnObject.value&&(a=0);var s=0;void 0!==r.FarAttenuationEnd&&(s=void 0!==r.EnableFarAttenuation&&0===r.EnableFarAttenuation.value?0:r.FarAttenuationEnd.value);switch(o){case 0:n=new THREE.PointLight(i,a,s,1);break;case 1:n=new THREE.DirectionalLight(i,a);break;case 2:var c=Math.PI/3;void 0!==r.InnerAngle&&(c=THREE.Math.degToRad(r.InnerAngle.value));var u=0;void 0!==r.OuterAngle&&(u=THREE.Math.degToRad(r.OuterAngle.value),u=Math.max(u,1)),n=new THREE.SpotLight(i,a,s,c,u,1);break;default:console.warn("THREE.FBXLoader: Unknown light type "+r.LightType.value+", defaulting to a THREE.PointLight."),n=new THREE.PointLight(i,a)}void 0!==r.CastShadows&&1===r.CastShadows.value&&(n.castShadow=!0)}return n},createMesh:function(e,t,n){var r,o=null,i=null,a=[];return e.children.forEach((function(e){t.has(e.ID)&&(o=t.get(e.ID)),n.has(e.ID)&&a.push(n.get(e.ID))})),a.length>1?i=a:a.length>0?i=a[0]:(i=new THREE.MeshPhongMaterial({color:13421772}),a.push(i)),"color"in o.attributes&&a.forEach((function(e){e.vertexColors=THREE.VertexColors})),o.FBX_Deformer?(a.forEach((function(e){e.skinning=!0})),r=new THREE.SkinnedMesh(o,i)):r=new THREE.Mesh(o,i),r},createCurve:function(e,t){var n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),r=new THREE.LineBasicMaterial({color:3342591,linewidth:1});return new THREE.Line(n,r)},setModelTransforms:function(e,t){var n={};"RotationOrder"in t&&(n.eulerOrder=parseInt(t.RotationOrder.value)),"Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value);var r=E(n);e.applyMatrix(r)},setLookAtProperties:function(r,o){"LookAtProperty"in o&&t.get(r.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){var o=e.Objects.Model[t.ID];if("Lcl_Translation"in o){var i=o.Lcl_Translation.value;void 0!==r.target?(r.target.position.fromArray(i),n.add(r.target)):r.lookAt((new THREE.Vector3).fromArray(i))}}}))},bindSkeleton:function(e,n,r){var o=this.parsePoseNodes();for(var i in e){var a=e[i];t.get(parseInt(a.ID)).parents.forEach((function(e){if(n.has(e.ID)){var i=e.ID;t.get(i).parents.forEach((function(e){r.has(e.ID)&&r.get(e.ID).bind(new THREE.Skeleton(a.bones),o[e.ID])}))}}))}},parsePoseNodes:function(){var t={};if("Pose"in e.Objects){var n=e.Objects.Pose;for(var r in n)if("BindPose"===n[r].attrType){var o=n[r].PoseNode;Array.isArray(o)?o.forEach((function(e){t[e.Node]=(new THREE.Matrix4).fromArray(e.Matrix.a)})):t[o.Node]=(new THREE.Matrix4).fromArray(o.Matrix.a)}}return t},createAmbientLight:function(){if("GlobalSettings"in e&&"AmbientColor"in e.GlobalSettings){var t=e.GlobalSettings.AmbientColor.value,r=t[0],o=t[1],i=t[2];if(0!==r||0!==o||0!==i){var a=new THREE.Color(r,o,i);n.add(new THREE.AmbientLight(a,1))}}},setupMorphMaterials:function(){n.traverse((function(e){if(e.isMesh&&(e.geometry.morphAttributes.position||e.geometry.morphAttributes.normal)){var t=e.uuid,r=e.material.uuid,o=!1;n.traverse((function(e){e.isMesh&&e.material.uuid===r&&e.uuid!==t&&(o=!0)})),!0===o&&(e.material=e.material.clone()),e.material.morphTargets=!0}}))}},i.prototype={constructor:i,parse:function(n){var r=new Map;if("Geometry"in e.Objects){var o=e.Objects.Geometry;for(var i in o){var a=t.get(parseInt(i)),s=this.parseGeometry(a,o[i],n);r.set(parseInt(i),s)}}return r},parseGeometry:function(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}},parseMeshGeometry:function(t,n,r){var o=r.skeletons,i=r.morphTargets,a=t.parents.map((function(t){return e.Objects.Model[t.ID]}));if(0!==a.length){var s=t.children.reduce((function(e,t){return void 0!==o[t.ID]&&(e=o[t.ID]),e}),null),c=t.children.reduce((function(e,t){return void 0!==i[t.ID]&&(e=i[t.ID]),e}),null),u=a[0],l={};"RotationOrder"in u&&(l.eulerOrder=u.RotationOrder.value),"GeometricTranslation"in u&&(l.translation=u.GeometricTranslation.value),"GeometricRotation"in u&&(l.rotation=u.GeometricRotation.value),"GeometricScaling"in u&&(l.scale=u.GeometricScaling.value);var d=E(l);return this.genGeometry(n,s,c,d)}},genGeometry:function(e,t,n,r){var o=new THREE.BufferGeometry;e.attrName&&(o.name=e.attrName);var i=this.parseGeoNode(e,t),a=this.genBuffers(i),s=new THREE.Float32BufferAttribute(a.vertex,3);if(r.applyToBufferAttribute(s),o.addAttribute("position",s),a.colors.length>0&&o.addAttribute("color",new THREE.Float32BufferAttribute(a.colors,3)),t&&(o.addAttribute("skinIndex",new THREE.Uint16BufferAttribute(a.weightsIndices,4)),o.addAttribute("skinWeight",new THREE.Float32BufferAttribute(a.vertexWeights,4)),o.FBX_Deformer=t),a.normal.length>0){var c=new THREE.Float32BufferAttribute(a.normal,3);(new THREE.Matrix3).getNormalMatrix(r).applyToBufferAttribute(c),o.addAttribute("normal",c)}if(a.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),o.addAttribute(n,new THREE.Float32BufferAttribute(a.uvs[t],2))})),i.material&&"AllSame"!==i.material.mappingType){var u=a.materialIndex[0],l=0;if(a.materialIndex.forEach((function(e,t){e!==u&&(o.addGroup(l,t-l,u),u=e,l=t)})),o.groups.length>0){var d=o.groups[o.groups.length-1],f=d.start+d.count;f!==a.materialIndex.length&&o.addGroup(f,a.materialIndex.length-f,u)}0===o.groups.length&&o.addGroup(0,a.materialIndex.length,a.materialIndex[0])}return this.addMorphTargets(o,e,n,r),o},parseGeoNode:function(e,t){var n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];for(var r=0;e.LayerElementUV[r];)n.uv.push(this.parseUVs(e.LayerElementUV[r])),r++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,o){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[o]})}))}))),n},genBuffers:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,o=!1,i=[],a=[],s=[],c=[],u=[],l=[],d=this;return e.vertexIndices.forEach((function(f,p){var m=!1;f<0&&(f^=-1,m=!0);var v=[],g=[];if(i.push(3*f,3*f+1,3*f+2),e.color){var y=h(p,n,f,e.color);s.push(y[0],y[1],y[2])}if(e.skeleton){if(void 0!==e.weightTable[f]&&e.weightTable[f].forEach((function(e){g.push(e.weight),v.push(e.id)})),g.length>4){o||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),o=!0);var b=[0,0,0,0],E=[0,0,0,0];g.forEach((function(e,t){var n=e,r=v[t];E.forEach((function(e,t,o){if(n>e){o[t]=n,n=e;var i=b[t];b[t]=r,r=i}}))})),v=b,g=E}for(;g.length<4;)g.push(0),v.push(0);for(var _=0;_<4;++_)u.push(g[_]),l.push(v[_])}if(e.normal){y=h(p,n,f,e.normal);a.push(y[0],y[1],y[2])}if(e.material&&"AllSame"!==e.material.mappingType)var T=h(p,n,f,e.material)[0];e.uv&&e.uv.forEach((function(e,t){var r=h(p,n,f,e);void 0===c[t]&&(c[t]=[]),c[t].push(r[0]),c[t].push(r[1])})),r++,m&&(d.genFace(t,e,i,T,a,s,c,u,l,r),n++,r=0,i=[],a=[],s=[],c=[],u=[],l=[])})),t},genFace:function(e,t,n,r,o,i,a,s,c,u){for(var l=2;l<u;l++)e.vertex.push(t.vertexPositions[n[0]]),e.vertex.push(t.vertexPositions[n[1]]),e.vertex.push(t.vertexPositions[n[2]]),e.vertex.push(t.vertexPositions[n[3*(l-1)]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+1]]),e.vertex.push(t.vertexPositions[n[3*(l-1)+2]]),e.vertex.push(t.vertexPositions[n[3*l]]),e.vertex.push(t.vertexPositions[n[3*l+1]]),e.vertex.push(t.vertexPositions[n[3*l+2]]),t.skeleton&&(e.vertexWeights.push(s[0]),e.vertexWeights.push(s[1]),e.vertexWeights.push(s[2]),e.vertexWeights.push(s[3]),e.vertexWeights.push(s[4*(l-1)]),e.vertexWeights.push(s[4*(l-1)+1]),e.vertexWeights.push(s[4*(l-1)+2]),e.vertexWeights.push(s[4*(l-1)+3]),e.vertexWeights.push(s[4*l]),e.vertexWeights.push(s[4*l+1]),e.vertexWeights.push(s[4*l+2]),e.vertexWeights.push(s[4*l+3]),e.weightsIndices.push(c[0]),e.weightsIndices.push(c[1]),e.weightsIndices.push(c[2]),e.weightsIndices.push(c[3]),e.weightsIndices.push(c[4*(l-1)]),e.weightsIndices.push(c[4*(l-1)+1]),e.weightsIndices.push(c[4*(l-1)+2]),e.weightsIndices.push(c[4*(l-1)+3]),e.weightsIndices.push(c[4*l]),e.weightsIndices.push(c[4*l+1]),e.weightsIndices.push(c[4*l+2]),e.weightsIndices.push(c[4*l+3])),t.color&&(e.colors.push(i[0]),e.colors.push(i[1]),e.colors.push(i[2]),e.colors.push(i[3*(l-1)]),e.colors.push(i[3*(l-1)+1]),e.colors.push(i[3*(l-1)+2]),e.colors.push(i[3*l]),e.colors.push(i[3*l+1]),e.colors.push(i[3*l+2])),t.material&&"AllSame"!==t.material.mappingType&&(e.materialIndex.push(r),e.materialIndex.push(r),e.materialIndex.push(r)),t.normal&&(e.normal.push(o[0]),e.normal.push(o[1]),e.normal.push(o[2]),e.normal.push(o[3*(l-1)]),e.normal.push(o[3*(l-1)+1]),e.normal.push(o[3*(l-1)+2]),e.normal.push(o[3*l]),e.normal.push(o[3*l+1]),e.normal.push(o[3*l+2])),t.uv&&t.uv.forEach((function(t,n){void 0===e.uvs[n]&&(e.uvs[n]=[]),e.uvs[n].push(a[n][0]),e.uvs[n].push(a[n][1]),e.uvs[n].push(a[n][2*(l-1)]),e.uvs[n].push(a[n][2*(l-1)+1]),e.uvs[n].push(a[n][2*l]),e.uvs[n].push(a[n][2*l+1])}))},addMorphTargets:function(t,n,r,o){if(null!==r){t.morphAttributes.position=[],t.morphAttributes.normal=[];var i=this;r.rawTargets.forEach((function(r){var a=e.Objects.Geometry[r.geoID];void 0!==a&&i.genMorphGeometry(t,n,a,o)}))}},genMorphGeometry:function(e,t,n,r){var o=new THREE.BufferGeometry;n.attrName&&(o.name=n.attrName);for(var i=void 0!==t.PolygonVertexIndex?t.PolygonVertexIndex.a:[],a=void 0!==t.Vertices?t.Vertices.a.slice():[],s=void 0!==n.Vertices?n.Vertices.a:[],c=void 0!==n.Indexes?n.Indexes.a:[],u=0;u<c.length;u++){var l=3*c[u];a[l]+=s[3*u],a[l+1]+=s[3*u+1],a[l+2]+=s[3*u+2]}var d={vertexIndices:i,vertexPositions:a},f=this.genBuffers(d),p=new THREE.Float32BufferAttribute(f.vertex,3);p.name=n.attrName,r.applyToBufferAttribute(p),e.morphAttributes.position.push(p)},parseNormals:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Normals.a,o=[];return"IndexToDirect"===n&&("NormalIndex"in e?o=e.NormalIndex.a:"NormalsIndex"in e&&(o=e.NormalsIndex.a)),{dataSize:3,buffer:r,indices:o,mappingType:t,referenceType:n}},parseUVs:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.UV.a,o=[];return"IndexToDirect"===n&&(o=e.UVIndex.a),{dataSize:2,buffer:r,indices:o,mappingType:t,referenceType:n}},parseVertexColors:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType,r=e.Colors.a,o=[];return"IndexToDirect"===n&&(o=e.ColorIndex.a),{dataSize:4,buffer:r,indices:o,mappingType:t,referenceType:n}},parseMaterialIndices:function(e){var t=e.MappingInformationType,n=e.ReferenceInformationType;if("NoMappingInformation"===t)return{dataSize:1,buffer:[0],indices:[0],mappingType:"AllSame",referenceType:n};for(var r=e.Materials.a,o=[],i=0;i<r.length;++i)o.push(i);return{dataSize:1,buffer:r,indices:o,mappingType:t,referenceType:n}},parseNurbsGeometry:function(e){if(void 0===THREE.NURBSCurve)return console.error("THREE.FBXLoader: The loader relies on THREE.NURBSCurve for any nurbs present in the model. Nurbs will show up as empty geometry."),new THREE.BufferGeometry;var t=parseInt(e.Order);if(isNaN(t))return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s",e.Order,e.id),new THREE.BufferGeometry;for(var n,r,o=t-1,i=e.KnotVector.a,a=[],s=e.Points.a,c=0,u=s.length;c<u;c+=4)a.push((new THREE.Vector4).fromArray(s,c));if("Closed"===e.Form)a.push(a[0]);else if("Periodic"===e.Form){n=o,r=i.length-1-n;for(c=0;c<o;++c)a.push(a[c])}var l=new THREE.NURBSCurve(o,i,a,n,r).getPoints(7*a.length),d=new Float32Array(3*l.length);l.forEach((function(e,t){e.toArray(d,3*t)}));var f=new THREE.BufferGeometry;return f.addAttribute("position",new THREE.BufferAttribute(d,3)),f}},a.prototype={constructor:a,parse:function(){var e=[],t=this.parseClips();if(void 0===t)return e;for(var n in t){var r=t[n],o=this.addClip(r);e.push(o)}return e},parseClips:function(){if(void 0!==e.Objects.AnimationCurve){var t=this.parseAnimationCurveNodes();this.parseAnimationCurves(t);var n=this.parseAnimationLayers(t);return this.parseAnimStacks(n)}},parseAnimationCurveNodes:function(){var t=e.Objects.AnimationCurveNode,n=new Map;for(var r in t){var o=t[r];if(null!==o.attrName.match(/S|R|T|DeformPercent/)){var i={id:o.id,attr:o.attrName,curves:{}};n.set(i.id,i)}}return n},parseAnimationCurves:function(n){var r=e.Objects.AnimationCurve;for(var o in r){var i={id:r[o].id,times:r[o].KeyTime.a.map(f),values:r[o].KeyValueFloat.a},a=t.get(i.id);if(void 0!==a){var s=a.parents[0].ID,c=a.parents[0].relationship;c.match(/X/)?n.get(s).curves.x=i:c.match(/Y/)?n.get(s).curves.y=i:c.match(/Z/)?n.get(s).curves.z=i:c.match(/d|DeformPercent/)&&n.has(s)&&(n.get(s).curves.morph=i)}}},parseAnimationLayers:function(n){var r=e.Objects.AnimationLayer,o=new Map;for(var i in r){var a=[],s=t.get(parseInt(i));if(void 0!==s){var c=s.children,u=this;c.forEach((function(r,o){if(n.has(r.ID)){var i=n.get(r.ID);if(void 0!==i.curves.x||void 0!==i.curves.y||void 0!==i.curves.z){if(void 0===a[o]){t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(p=e.ID)}));var s=e.Objects.Model[p.toString()],c={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),initialPosition:[0,0,0],initialRotation:[0,0,0],initialScale:[1,1,1],transform:u.getModelAnimTransform(s)};"PreRotation"in s&&(c.preRotations=s.PreRotation.value),"PostRotation"in s&&(c.postRotations=s.PostRotation.value),a[o]=c}a[o][i.attr]=i}else if(void 0!==i.curves.morph){if(void 0===a[o]){var l;t.get(r.ID).parents.forEach((function(e){void 0!==e.relationship&&(l=e.ID)}));var d=t.get(l).parents[0].ID,f=t.get(d).parents[0].ID,p=t.get(f).parents[0].ID;s=e.Objects.Model[p],c={modelName:THREE.PropertyBinding.sanitizeNodeName(s.attrName),morphName:e.Objects.Deformer[l].attrName};a[o]=c}a[o][i.attr]=i}}})),o.set(parseInt(i),a)}}return o},getModelAnimTransform:function(e){var t={};return"RotationOrder"in e&&(t.eulerOrder=parseInt(e.RotationOrder.value)),"Lcl_Translation"in e&&(t.translation=e.Lcl_Translation.value),"RotationOffset"in e&&(t.rotationOffset=e.RotationOffset.value),"Lcl_Rotation"in e&&(t.rotation=e.Lcl_Rotation.value),"PreRotation"in e&&(t.preRotation=e.PreRotation.value),"PostRotation"in e&&(t.postRotation=e.PostRotation.value),"Lcl_Scaling"in e&&(t.scale=e.Lcl_Scaling.value),E(t)},parseAnimStacks:function(n){var r=e.Objects.AnimationStack,o={};for(var i in r){var a=t.get(parseInt(i)).children;a.length>1&&console.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");var s=n.get(a[0].ID);o[i]={name:r[i].attrName,layer:s}}return o},addClip:function(e){var t=[],n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new THREE.AnimationClip(e.name,-1,t)},generateTracks:function(e){var t=[],n=new THREE.Vector3,r=new THREE.Quaternion,o=new THREE.Vector3;if(e.transform&&e.transform.decompose(n,r,o),n=n.toArray(),r=(new THREE.Euler).setFromQuaternion(r).toArray(),o=o.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var i=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==i&&t.push(i)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){var a=this.generateRotationTrack(e.modelName,e.R.curves,r,e.preRotations,e.postRotations);void 0!==a&&t.push(a)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){var s=this.generateVectorTrack(e.modelName,e.S.curves,o,"scale");void 0!==s&&t.push(s)}if(void 0!==e.DeformPercent){var c=this.generateMorphTrack(e);void 0!==c&&t.push(c)}return t},generateVectorTrack:function(e,t,n,r){var o=this.getTimesForAllAxes(t),i=this.getKeyframeTrackValues(o,t,n);return new THREE.VectorKeyframeTrack(e+"."+r,o,i)},generateRotationTrack:function(e,t,n,r,o){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(THREE.Math.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(THREE.Math.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(THREE.Math.degToRad));var i=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(i,t,n);void 0!==r&&((r=r.map(THREE.Math.degToRad)).push("ZYX"),r=(new THREE.Euler).fromArray(r),r=(new THREE.Quaternion).setFromEuler(r)),void 0!==o&&((o=o.map(THREE.Math.degToRad)).push("ZYX"),o=(new THREE.Euler).fromArray(o),o=(new THREE.Quaternion).setFromEuler(o).inverse());for(var s=new THREE.Quaternion,c=new THREE.Euler,u=[],l=0;l<a.length;l+=3)c.set(a[l],a[l+1],a[l+2],"ZYX"),s.setFromEuler(c),void 0!==r&&s.premultiply(r),void 0!==o&&s.multiply(o),s.toArray(u,l/3*4);return new THREE.QuaternionKeyframeTrack(e+".quaternion",i,u)},generateMorphTrack:function(e){var t=e.DeformPercent.curves.morph,r=t.values.map((function(e){return e/100})),o=n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName];return new THREE.NumberKeyframeTrack(e.modelName+".morphTargetInfluences["+o+"]",t.times,r)},getTimesForAllAxes:function(e){var t=[];return void 0!==e.x&&(t=t.concat(e.x.times)),void 0!==e.y&&(t=t.concat(e.y.times)),void 0!==e.z&&(t=t.concat(e.z.times)),t=t.sort((function(e,t){return e-t})).filter((function(e,t,n){return n.indexOf(e)==t}))},getKeyframeTrackValues:function(e,t,n){var r=n,o=[],i=-1,a=-1,s=-1;return e.forEach((function(e){if(t.x&&(i=t.x.times.indexOf(e)),t.y&&(a=t.y.times.indexOf(e)),t.z&&(s=t.z.times.indexOf(e)),-1!==i){var n=t.x.values[i];o.push(n),r[0]=n}else o.push(r[0]);if(-1!==a){var c=t.y.values[a];o.push(c),r[1]=c}else o.push(r[1]);if(-1!==s){var u=t.z.values[s];o.push(u),r[2]=u}else o.push(r[2])})),o},interpolateRotations:function(e){for(var t=1;t<e.values.length;t++){var n=e.values[t-1],r=e.values[t]-n,o=Math.abs(r);if(o>=180){for(var i=o/180,a=r/i,s=n+a,c=e.times[t-1],u=(e.times[t]-c)/i,l=c+u,d=[],f=[];l<e.times[t];)d.push(l),l+=u,f.push(s),s+=a;e.times=k(e.times,t,d),e.values=k(e.values,t,f)}}}},s.prototype={constructor:s,getPrevNode:function(){return this.nodeStack[this.currentIndent-2]},getCurrentNode:function(){return this.nodeStack[this.currentIndent-1]},getCurrentProp:function(){return this.currentProp},pushStack:function(e){this.nodeStack.push(e),this.currentIndent+=1},popStack:function(){this.nodeStack.pop(),this.currentIndent-=1},setCurrentProp:function(e,t){this.currentProp=e,this.currentPropName=t},parse:function(e){this.currentIndent=0,console.log("FBXTree: ",l),this.allNodes=new l,this.nodeStack=[],this.currentProp=[],this.currentPropName="";var t=this,n=e.split(/[\r\n]+/);return n.forEach((function(e,r){var o=e.match(/^[\s\t]*;/),i=e.match(/^[\s\t]*$/);if(!o&&!i){var a=e.match("^\\t{"+t.currentIndent+"}(\\w+):(.*){",""),s=e.match("^\\t{"+t.currentIndent+"}(\\w+):[\\s\\t\\r\\n](.*)"),c=e.match("^\\t{"+(t.currentIndent-1)+"}}");a?t.parseNodeBegin(e,a):s?t.parseNodeProperty(e,s,n[++r]):c?t.popStack():e.match(/^[^\s\t}]/)&&t.parseNodePropertyContinued(e)}})),this.allNodes},parseNodeBegin:function(e,t){var n=t[1].trim().replace(/^"/,"").replace(/"$/,""),r=t[2].split(",").map((function(e){return e.trim().replace(/^"/,"").replace(/"$/,"")})),o={name:n},i=this.parseNodeAttr(r),a=this.getCurrentNode();0===this.currentIndent?this.allNodes.add(n,o):n in a?("PoseNode"===n?a.PoseNode.push(o):void 0!==a[n].id&&(a[n]={},a[n][a[n].id]=a[n]),""!==i.id&&(a[n][i.id]=o)):"number"===typeof i.id?(a[n]={},a[n][i.id]=o):"Properties70"!==n&&(a[n]="PoseNode"===n?[o]:o),"number"===typeof i.id&&(o.id=i.id),""!==i.name&&(o.attrName=i.name),""!==i.type&&(o.attrType=i.type),this.pushStack(o)},parseNodeAttr:function(e){var t=e[0];""!==e[0]&&(t=parseInt(e[0]),isNaN(t)&&(t=e[0]));var n="",r="";return e.length>1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}},parseNodeProperty:function(e,t,n){var r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),o=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===o&&(o=n.replace(/"/g,"").replace(/,$/,"").trim());var i=this.getCurrentNode();if("Properties70"!==i.name){if("C"===r){var a=o.split(",").slice(1),s=parseInt(a[0]),c=parseInt(a[1]),u=o.split(",").slice(3);r="connections",function(e,t){for(var n=0,r=e.length,o=t.length;n<o;n++,r++)e[r]=t[n]}(o=[s,c],u=u.map((function(e){return e.trim().replace(/^"/,"")}))),void 0===i[r]&&(i[r]=[])}"Node"===r&&(i.id=o),r in i&&Array.isArray(i[r])?i[r].push(o):"a"!==r?i[r]=o:i.a=o,this.setCurrentProp(i,r),"a"===r&&","!==o.slice(-1)&&(i.a=T(o))}else this.parseNodeSpecialProperty(e,r,o)},parseNodePropertyContinued:function(e){var t=this.getCurrentNode();t.a+=e,","!==e.slice(-1)&&(t.a=T(t.a))},parseNodeSpecialProperty:function(e,t,n){var r=n.split('",').map((function(e){return e.trim().replace(/^\"/,"").replace(/\s/,"_")})),o=r[0],i=r[1],a=r[2],s=r[3],c=r[4];switch(i){case"int":case"enum":case"bool":case"ULongLong":case"double":case"Number":case"FieldOfView":c=parseFloat(c);break;case"Color":case"ColorRGB":case"Vector3D":case"Lcl_Translation":case"Lcl_Rotation":case"Lcl_Scaling":c=T(c)}this.getPrevNode()[o]={type:i,type2:a,flag:s,value:c},this.setCurrentProp(this.getPrevNode(),o)}},c.prototype={constructor:c,parse:function(e){var t=new u(e);t.skip(23);var n=t.getUint32();console.log("THREE.FBXLoader: FBX binary version: "+n);for(var r=new l;!this.endOfContent(t);){var o=this.parseNode(t,n);null!==o&&r.add(o.name,o)}return r},endOfContent:function(e){return e.size()%16===0?(e.getOffset()+160+16&-16)>=e.size():e.getOffset()+160+16>=e.size()},parseNode:function(e,t){var n={},r=t>=7500?e.getUint64():e.getUint32(),o=t>=7500?e.getUint64():e.getUint32(),i=(t>=7500?e.getUint64():e.getUint32(),e.getUint8()),a=e.getString(i);if(0===r)return null;for(var s=[],c=0;c<o;c++)s.push(this.parseProperty(e));var u=s.length>0?s[0]:"",l=s.length>1?s[1]:"",d=s.length>2?s[2]:"";for(n.singleProperty=1===o&&e.getOffset()===r;r>e.getOffset();){var f=this.parseNode(e,t);null!==f&&this.parseSubNode(a,n,f)}return n.propertyList=s,"number"===typeof u&&(n.id=u),""!==l&&(n.attrName=l),""!==d&&(n.attrType=d),""!==a&&(n.name=a),n},parseSubNode:function(e,t,n){if(!0===n.singleProperty){var r=n.propertyList[0];Array.isArray(r)?(t[n.name]=n,n.a=r):t[n.name]=r}else if("Connections"===e&&"C"===n.name){var o=[];n.propertyList.forEach((function(e,t){0!==t&&o.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(o)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var i,a=n.propertyList[0],s=n.propertyList[1],c=n.propertyList[2],u=n.propertyList[3];0===a.indexOf("Lcl ")&&(a=a.replace("Lcl ","Lcl_")),0===s.indexOf("Lcl ")&&(s=s.replace("Lcl ","Lcl_")),i="Color"===s||"ColorRGB"===s||"Vector"===s||"Vector3D"===s||0===s.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[a]={type:s,type2:c,flag:u,value:i}}else void 0===t[n.name]?"number"===typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)},parseProperty:function(e){var t=e.getString(1);switch(t){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":var n=e.getUint32();return e.getArrayBuffer(n);case"S":n=e.getUint32();return e.getString(n);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":var r=e.getUint32(),o=e.getUint32(),i=e.getUint32();if(0===o)switch(t){case"b":case"c":return e.getBooleanArray(r);case"d":return e.getFloat64Array(r);case"f":return e.getFloat32Array(r);case"i":return e.getInt32Array(r);case"l":return e.getInt64Array(r)}"undefined"===typeof Zlib&&console.error("THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js");var a=new u(new Zlib.Inflate(new Uint8Array(e.getArrayBuffer(i))).decompress().buffer);switch(t){case"b":case"c":return a.getBooleanArray(r);case"d":return a.getFloat64Array(r);case"f":return a.getFloat32Array(r);case"i":return a.getInt32Array(r);case"l":return a.getInt64Array(r)}default:throw new Error("THREE.FBXLoader: Unknown property type "+t)}}},u.prototype={constructor:u,getOffset:function(){return this.offset},size:function(){return this.dv.buffer.byteLength},skip:function(e){this.offset+=e},getBoolean:function(){return 1===(1&this.getUint8())},getBooleanArray:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getBoolean());return t},getUint8:function(){var e=this.dv.getUint8(this.offset);return this.offset+=1,e},getInt16:function(){var e=this.dv.getInt16(this.offset,this.littleEndian);return this.offset+=2,e},getInt32:function(){var e=this.dv.getInt32(this.offset,this.littleEndian);return this.offset+=4,e},getInt32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt32());return t},getUint32:function(){var e=this.dv.getUint32(this.offset,this.littleEndian);return this.offset+=4,e},getInt64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),2147483648&t?(t=4294967295&~t,4294967295===(e=4294967295&~e)&&(t=t+1&4294967295),-(4294967296*t+(e=e+1&4294967295))):4294967296*t+e},getInt64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getInt64());return t},getUint64:function(){var e,t;return this.littleEndian?(e=this.getUint32(),t=this.getUint32()):(t=this.getUint32(),e=this.getUint32()),4294967296*t+e},getFloat32:function(){var e=this.dv.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e},getFloat32Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat32());return t},getFloat64:function(){var e=this.dv.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e},getFloat64Array:function(e){for(var t=[],n=0;n<e;n++)t.push(this.getFloat64());return t},getArrayBuffer:function(e){var t=this.dv.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t},getString:function(e){for(var t=[],n=0;n<e;n++)t[n]=this.getUint8();var r=t.indexOf(0);return r>=0&&(t=t.slice(0,r)),THREE.LoaderUtils.decodeText(new Uint8Array(t))}},l.prototype={constructor:l,add:function(e,t){this[e]=t}};var p=[];function h(e,t,n,r){var o;switch(r.mappingType){case"ByPolygonVertex":o=e;break;case"ByPolygon":o=t;break;case"ByVertice":o=n;break;case"AllSame":o=r.indices[0];break;default:console.warn("THREE.FBXLoader: unknown attribute mapping type "+r.mappingType)}"IndexToDirect"===r.referenceType&&(o=r.indices[o]);var i=o*r.dataSize,a=i+r.dataSize;return function(e,t,n,r){for(var o=n,i=0;o<r;o++,i++)e[i]=t[o];return e}(p,r.buffer,i,a)}var m=new THREE.Matrix4,v=new THREE.Euler,g=new THREE.Vector3,y=new THREE.Vector3,b=new THREE.Matrix4;function E(e){var t=new THREE.Matrix4;y.set(0,0,0),b.identity();var n,r=e.eulerOrder?_(e.eulerOrder):_(0);(e.translation&&y.fromArray(e.translation),e.rotationOffset&&y.add(g.fromArray(e.rotationOffset)),e.rotation)&&((n=e.rotation.map(THREE.Math.degToRad)).push(r),b.makeRotationFromEuler(v.fromArray(n)));e.preRotation&&((n=e.preRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(v.fromArray(n)),b.premultiply(m));e.postRotation&&((n=e.postRotation.map(THREE.Math.degToRad)).push(r),m.makeRotationFromEuler(v.fromArray(n)),m.getInverse(m),b.multiply(m));return e.scale&&t.scale(g.fromArray(e.scale)),t.setPosition(y),t.multiply(b),t}function _(e){var t=["ZYX","YZX","XZY","ZXY","YXZ","XYZ"];return 6===e?(console.warn("THREE.FBXLoader: unsupported Euler Order: Spherical XYZ. Animations and rotations may be incorrect."),t[0]):t[e]}function T(e){return e.split(",").map((function(e){return parseFloat(e)}))}function w(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.byteLength),THREE.LoaderUtils.decodeText(new Uint8Array(e,t,n))}function k(e,t,n){return e.slice(0,t).concat(n).concat(e.slice(t))}return r}()},16453:function(e){e.exports=Object.assign((function(){}),{FACE_1:0,FACE_2:1,FACE_3:2,FACE_4:3,L_SHOULDER_1:4,R_SHOULDER_1:5,L_SHOULDER_2:6,R_SHOULDER_2:7,SELECT:8,START:9,DPAD_UP:12,DPAD_DOWN:13,DPAD_LEFT:14,DPAD_RIGHT:15,VENDOR:16})},44379:function(e){e.exports=function(e,t,n){this.type=e,this.index=t,this.pressed=n.pressed,this.value=n.value}},82667:function(e){e.exports={size:5,cellSize:10,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5},autogenerated:!0,cells:[{q:-1,r:0,s:1,h:1,walkable:!0,userData:{}},{q:0,r:-1,s:1,h:1,walkable:!0,userData:{}},{q:0,r:0,s:0,h:1,walkable:!0,userData:{}},{q:1,r:-1,s:0,h:1,walkable:!0,userData:{}},{q:-1,r:1,s:0,h:0,walkable:!0,userData:{}},{q:0,r:1,s:-1,h:0,walkable:!0,userData:{}},{q:1,r:0,s:-1,h:0,walkable:!0,userData:{}}]}},34657:function(e){function t(e){const t=document.getElementById(e),n=t.parentNode;try{n&&n.removeChild(t)}catch(r){}}function n(e,n,r){return new r((function(r,o){const i=n.timeout||5e3,a="script_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),s=function(e,t){var n=document.createElement("script");return n.type="text/javascript",n.async=!0,n.id=t,n.src=e,n}(e,a),c=setTimeout((function(){o(new Error("Script request to "+e+" timed out")),t(a)}),i),u=function(e){clearTimeout(e)};s.addEventListener("load",(function(e){r({ok:!0}),u(c),t(a)})),s.addEventListener("error",(function(n){o(new Error("Script request to "+e+" failed "+n)),u(c),t(a)})),function(e){const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(s)}))}e.exports=function(e){return e=e||{},function(t,r){return n(t,r=r||{},e.Promise||Promise)}}},63471:function(e){var n=e.exports={VERSION:"0.1.1",PI:Math.PI,TAU:2*Math.PI,DEG_TO_RAD:.0174532925,RAD_TO_DEG:57.2957795,SQRT3:Math.sqrt(3),TILE:"tile",ENT:"entity",STR:"structure",HEX:"hex",SQR:"square",ABS:"abstract"};n.Board=function(e,t){if(!e)throw new Error("You must pass in a grid system for the board to use.");this.tiles=[],this.tileGroup=null,this.group=new THREE.Object3D,this.grid=null,this.overlay=null,this.finder=new n.AStarFinder(t),n.Loader.init(),this.setGrid(e)},n.Board.prototype={setEntityOnTile:function(e,t){var n=this.grid.cellToPixel(t.cell);e.position.copy(n),e.position.y+=e.heightOffset||0,e.tile&&(e.tile.entity=null),e.tile=t,t.entity=e},addTile:function(e){-1===this.tiles.indexOf(e)&&(this.tiles.push(e),this.snapTileToGrid(e),e.position.y=0,this.tileGroup.add(e.mesh),this.grid.add(e.cell),e.cell.tile=e)},removeTile:function(e){if(e){var t=this.tiles.indexOf(e);this.grid.remove(e.cell),-1!==t&&this.tiles.splice(t,1),e.dispose()}},removeAllTiles:function(){if(this.tileGroup)for(var e=this.tileGroup.children,t=0;t<e.length;t++)this.tileGroup.remove(e[t])},getTileAtCell:function(e){var t=this.grid.cellToHash(e);return e.tile||("undefined"!=typeof this.grid.cells[t]?this.grid.cells[t].tile:null)},snapToGrid:function(e){var t=this.grid.pixelToCell(e);e.copy(this.grid.cellToPixel(t))},snapTileToGrid:function(e){if(e.cell)e.position.copy(this.grid.cellToPixel(e.cell));else{var t=this.grid.pixelToCell(e.position);e.position.copy(this.grid.cellToPixel(t))}return e},getRandomTile:function(){var e=n.Tools.randomInt(0,this.tiles.length-1);return this.tiles[e]},findPath:function(e,t,n){return this.finder.findPath(e.cell,t.cell,n,this.grid)},setGrid:function(e){this.group.remove(this.tileGroup),this.grid&&e!==this.grid&&(this.removeAllTiles(),this.tiles.forEach((function(e){this.grid.remove(e.cell),e.dispose()})),this.grid.dispose()),this.grid=e,this.tiles=[],this.tileGroup=new THREE.Object3D,this.group.add(this.tileGroup)},generateOverlay:function(e){var t=new THREE.LineBasicMaterial({color:0,opacity:.3});this.overlay&&this.group.remove(this.overlay),this.overlay=new THREE.Object3D,this.grid.generateOverlay(e,this.overlay,t),this.group.add(this.overlay)},generateTilemap:function(e){this.reset();var t=this.grid.generateTiles(e);this.tiles=t,this.tileGroup=new THREE.Object3D;for(var n=0;n<t.length;n++)this.tileGroup.add(t[n].mesh);this.group.add(this.tileGroup)},reset:function(){this.removeAllTiles(),this.tileGroup&&this.group.remove(this.tileGroup)}},n.Board.prototype.constructor=n.Board,n.Cell=function(e,t,r,o){this.q=e||0,this.r=t||0,this.s=r||0,this.h=o||1,this.tile=null,this.userData={},this.walkable=!0,this._calcCost=0,this._priority=0,this._visited=!1,this._parent=null,this.uniqueID=n.LinkedList.generateID()},n.Cell.prototype={set:function(e,t,n){return this.q=e,this.r=t,this.s=n,this},copy:function(e){return this.q=e.q,this.r=e.r,this.s=e.s,this.h=e.h,this.tile=e.tile||null,this.userData=e.userData||{},this.walkable=e.walkable,this},add:function(e){return this.q+=e.q,this.r+=e.r,this.s+=e.s,this},equals:function(e){return this.q===e.q&&this.r===e.r&&this.s===e.s}},n.Cell.prototype.constructor=n.Cell,n.HexGrid=function(e){e=e||{},this.type=n.HEX,this.size=5,this.cellSize="undefined"==typeof e.cellSize?10:e.cellSize,this.cells={},this.numCells=0,this.extrudeSettings=null,this.autogenerated=!1;var t,r=[];for(t=0;6>t;t++)r.push(this._createVertex(t));for(this.cellShape=new THREE.Shape,this.cellShape.moveTo(r[0].x,r[0].y),t=1;6>t;t++)this.cellShape.lineTo(r[t].x,r[t].y);this.cellShape.lineTo(r[0].x,r[0].y),this.cellShape.autoClose=!0,this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=r,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this._hashDelimeter=".",this._directions=[new n.Cell(1,-1,0),new n.Cell(1,0,-1),new n.Cell(0,1,-1),new n.Cell(-1,1,0),new n.Cell(-1,0,1),new n.Cell(0,-1,1)],this._diagonals=[new n.Cell(2,-1,-1),new n.Cell(1,1,-2),new n.Cell(-1,2,-1),new n.Cell(-2,1,1),new n.Cell(-1,-1,2),new n.Cell(1,-2,1)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.HexGrid.TWO_THIRDS=2/3,n.HexGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._cellWidth*.75,this._vec3.y=e.h,this._vec3.z=-(e.s-e.r)*this._cellLength*.5,this._vec3},pixelToCell:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel)},getCellAt:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,o,i=this._directions.length;for(this._list.length=0,r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);if(t)for(r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r+this._hashDelimeter+e.s},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r),Math.abs(e.s-t.s))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var o=Math.abs(e.h);1>o&&(o=1);var i=this._geoCache[o];i||(this.extrudeSettings.amount=o,i=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[o]=i);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:i,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,o,i=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)o=this.cells[t],(r=this.generateTile(o,a.tileScale,a.material)).position.copy(this.cellToPixel(o)),r.position.y=0,i.push(r);return i},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){var t,r,o,i;for(e=e||{},this.size="undefined"==typeof e.size?this.size:e.size,t=-this.size;t<this.size+1;t++)for(r=-this.size;r<this.size+1;r++)o=-t-r,Math.abs(t)<=this.size&&Math.abs(r)<=this.size&&Math.abs(o)<=this.size&&(i=new n.Cell(t,r,o),this.add(i))},generateOverlay:function(e,t,r){var o,i,a,s=this.cellShape.createPointsGeometry();for(o=-e;e+1>o;o++)for(i=-e;e+1>i;i++)if(a=-o-i,Math.abs(o)<=e&&Math.abs(i)<=e&&Math.abs(a)<=e){this._cel.set(o,i,a);var c=new THREE.Line(s,r);c.position.copy(this.cellToPixel(this._cel)),c.rotation.x=90*n.DEG_TO_RAD,t.add(c)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){var o=this;n.Tools.getJSON({url:e,callback:function(e){o.fromJSON(e),t.call(r||null,e)},cache:!1,scope:o})},fromJSON:function(e){var t,r,o=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;t<o.length;t++)(r=new n.Cell).copy(o[t]),this.add(r)},toJSON:function(){var e,t,n={size:this.size,cellSize:this.cellSize,extrudeSettings:this.extrudeSettings,autogenerated:this.autogenerated},r=[];for(t in this.cells)e=this.cells[t],r.push({q:e.q,r:e.r,s:e.s,h:e.h,walkable:e.walkable,userData:e.userData});return n.cells=r,n},_createVertex:function(e){var t=n.TAU/6*e;return new THREE.Vector3(this.cellSize*Math.cos(t),this.cellSize*Math.sin(t),0)},_cubeRound:function(e){var t=Math.round(e.q),n=Math.round(e.r),r=Math.round(e.s),o=Math.abs(t-e.q),i=Math.abs(n-e.r),a=Math.abs(r-e.s);return o>i&&o>a?t=-n-r:i>a?n=-t-r:r=-t-n,this._cel.set(t,n,r)}},n.HexGrid.prototype.constructor=n.HexGrid,n.SqrGrid=function(e){e=e||{},this.type=n.SQR,this.size=5,this.cellSize="undefined"==typeof e.cellSize?10:e.cellSize,this.cells={},this.numCells=0,this.extrudeSettings=null,this.autogenerated=!1;var t=[];t.push(new THREE.Vector3),t.push(new THREE.Vector3(-this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,-this.cellSize)),this.cellShape=new THREE.Shape,this.cellShape.moveTo(-this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,-this.cellSize),this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=t,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._fullCellSize=2*this.cellSize,this._hashDelimeter=".",this._directions=[new n.Cell(1,0,0),new n.Cell(0,-1,0),new n.Cell(-1,0,0),new n.Cell(0,1,0)],this._diagonals=[new n.Cell(-1,-1,0),new n.Cell(-1,1,0),new n.Cell(1,1,0),new n.Cell(1,-1,0)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.SqrGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._fullCellSize,this._vec3.y=e.h,this._vec3.z=e.r*this._fullCellSize,this._vec3},pixelToCell:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n,0)},getCellAt:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,o,i=this._directions.length;for(this._list.length=0,r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);if(t)for(r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var o=Math.abs(e.h);1>o&&(o=1);var i=this._geoCache[o];i||(this.extrudeSettings.amount=o,i=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[o]=i);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:i,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,o,i=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._fullCellSize=2*this.cellSize,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)o=this.cells[t],(r=this.generateTile(o,a.tileScale,a.material)).position.copy(this.cellToPixel(o)),r.position.y=0,i.push(r);return i},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){e=e||{},this.size="undefined"==typeof e.size?this.size:e.size;var t,r,o,i=Math.ceil(this.size/2);for(t=-i;i>t;t++)for(r=-i;i>r;r++)o=new n.Cell(t,r+1),this.add(o)},generateOverlay:function(e,t,r){var o,i,a=Math.ceil(e/2);for(o=-a;a>o;o++)for(i=-a;a>i;i++){this._cel.set(o,i);var s=new THREE.Line(this.cellGeo,r);s.position.copy(this.cellToPixel(this._cel)),s.rotation.x=90*n.DEG_TO_RAD,t.add(s)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){n.Tools.getJSON({url:e,callback:function(e){this.fromJSON(e),t.call(r||null,e)},cache:!1,scope:this})},fromJSON:function(e){var t,r,o=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._fullCellSize=2*this.cellSize,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;t<o.length;t++)(r=new n.Cell).copy(o[t]),this.add(r)},toJSON:function(){var e,t,n={size:this.size,cellSize:this.cellSize,extrudeSettings:this.extrudeSettings,autogenerated:this.autogenerated},r=[];for(t in this.cells)e=this.cells[t],r.push({q:e.q,r:e.r,s:e.s,h:e.h,walkable:e.walkable,userData:e.userData});return n.cells=r,n}},n.SqrGrid.prototype.constructor=n.SqrGrid,n.Tile=function(e){e=e||{};var t={cell:null,geometry:null,material:null};if(!(t=n.Tools.merge(t,e)).cell||!t.geometry)throw new Error("Missing vg.Tile configuration");this.cell=t.cell,this.cell.tile&&this.cell.tile!==this&&this.cell.tile.dispose(),this.cell.tile=this,this.uniqueID=n.Tools.generateID(),this.geometry=t.geometry,this.material=t.material,this.material||(this.material=new THREE.MeshPhongMaterial({color:n.Tools.randomizeRGB("30, 30, 30",13)})),this.objectType=n.TILE,this.entity=null,this.userData={},this.selected=!1,this.highlight="0x0084cc",this.mesh=new THREE.Mesh(this.geometry,this.material),this.mesh.userData.structure=this,this.position=this.mesh.position,this.rotation=this.mesh.rotation,this.rotation.x=-90*n.DEG_TO_RAD,this.mesh.scale.set(t.scale,t.scale,1),this.material.emissive?this._emissive=this.material.emissive.getHex():this._emissive=null},n.Tile.prototype={select:function(){return this.material.emissive&&this.material.emissive.setHex(this.highlight),this.selected=!0,this},deselect:function(){return null!==this._emissive&&this.material.emissive&&this.material.emissive.setHex(this._emissive),this.selected=!1,this},toggle:function(){return this.selected?this.deselect():this.select(),this},dispose:function(){this.cell&&this.cell.tile&&(this.cell.tile=null),this.cell=null,this.position=null,this.rotation=null,this.mesh.parent&&this.mesh.parent.remove(this.mesh),this.mesh.userData.structure=null,this.mesh=null,this.material=null,this.userData=null,this.entity=null,this.geometry=null,this._emissive=null}},n.Tile.prototype.constructor=n.Tile,function(){var e=function(){this.obj=null,this.next=null,this.prev=null,this.free=!0},t=function(){this.first=null,this.last=null,this.length=0,this.objToNodeMap={},this.uniqueID=Date.now()+""+Math.floor(1e3*Math.random()),this.sortArray=[]};t.generateID=function(){return Math.random().toString(36).slice(2)+Date.now()},(t.prototype={getNode:function(e){return this.objToNodeMap[e.uniqueID]},addNode:function(n){var r=new e;if(!n.uniqueID)try{n.uniqueID=t.generateID()}catch(o){return console.error("[LinkedList.addNode] obj passed is immutable: cannot attach necessary identifier"),null}return r.obj=n,r.free=!1,this.objToNodeMap[n.uniqueID]=r,r},swapObjects:function(e,t){this.objToNodeMap[e.obj.uniqueID]=null,this.objToNodeMap[t.uniqueID]=e,e.obj=t},add:function(e){var t=this.objToNodeMap[e.uniqueID];if(t){if(!1===t.free)return;t.obj=e,t.free=!1,t.next=null,t.prev=null}else t=this.addNode(e);if(this.first){if(!this.last)throw new Error("[LinkedList.add] No last in the list -- that shouldn't happen here");this.last.next=t,t.prev=this.last,this.last=t,t.next=null}else this.first=t,this.last=t,t.next=null,t.prev=null;this.length++,this.showDebug&&this.dump("after add")},has:function(e){return!!this.objToNodeMap[e.uniqueID]},moveUp:function(e){this.dump("before move up");var t=this.getNode(e);if(!t)throw"Oops, trying to move an object that isn't in the list";if(t.prev){var n=t.prev,r=n.prev;t==this.last&&(this.last=n);var o=t.next;r&&(r.next=t),t.next=n,t.prev=n.prev,n.next=o,n.prev=t,this.first==n&&(this.first=t)}},moveDown:function(e){var t=this.getNode(e);if(!t)throw"Oops, trying to move an object that isn't in the list";if(t.next){var n=t.next;this.moveUp(n.obj),this.last==n&&(this.last=t)}},sort:function(e){var t,n,r=this.sortArray,o=this.first;for(r.length=0;o;)r.push(o.obj),o=o.next;for(this.clear(),r.sort(e),n=r.length,t=0;n>t;t++)this.add(r[t])},remove:function(e){var t=this.getNode(e);return!(!t||t.free)&&(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.prev||(this.first=t.next),t.next||(this.last=t.prev),t.free=!0,t.prev=null,t.next=null,this.length--,!0)},shift:function(){var e=this.first;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first=e.next,e.next||(this.last=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},pop:function(){var e=this.last;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.last=e.prev,e.prev||(this.first=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},concat:function(e){for(var t=e.first;t;)this.add(t.obj),t=t.next},clear:function(){for(var e=this.first;e;)e.free=!0,e=e.next;this.first=null,this.length=0},dispose:function(){for(var e=this.first;e;)e.obj=null,e=e.next;this.first=null,this.objToNodeMap=null},dump:function(e){console.log("===================="+e+"=====================");for(var t=this.first;t;)console.log("{"+t.obj.toString()+"} previous="+(t.prev?t.prev.obj:"NULL")),t=t.next();console.log("==================================="),console.log("Last: {"+(this.last?this.last.obj:"NULL")+"} First: {"+(this.first?this.first.obj:"NULL")+"}")}}).constructor=t,n.LinkedList=t}(),function(){var e=function(e,t,n,r,o){this._listener=t,this.isOnce=n,this.context=r,this.signal=e,this._priority=o||0};(e.prototype={active:!0,params:null,execute:function(e){var t,n;return this.active&&this._listener&&(n=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,n),this.isOnce&&this.detach()),t},detach:function(){return this.isBound()?this.signal.remove(this._listener,this.context):null},isBound:function(){return!!this.signal&&!!this._listener},_destroy:function(){delete this.signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this.isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}).constructor=e;var t=function(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){t.prototype.dispatch.apply(e,arguments)}};t.prototype={memorize:!1,_shouldPropagate:!0,active:!0,validateListener:function(e,t){if("function"!=typeof e)throw new Error("Signal: listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))},_registerListener:function(t,n,r,o){var i,a=this._indexOfListener(t,r);if(-1!==a){if((i=this._bindings[a]).isOnce!==n)throw new Error("You cannot add"+(n?"":"Once")+"() then add"+(n?"Once":"")+"() the same listener without removing the relationship first.")}else i=new e(this,t,n,r,o),this._addBinding(i);return this.memorize&&this._prevParams&&i.execute(this._prevParams),i},_addBinding:function(e){var t=this._bindings.length;do{t--}while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,r=this._bindings.length;r--;)if((n=this._bindings[r])._listener===e&&n.context===t)return r;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return this.validateListener(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return this.validateListener(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){this.validateListener(e,"remove");var n=this._indexOfListener(e,t);return-1!==n&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(e){"undefined"==typeof e&&(e=null);for(var t=this._bindings.length;t--;)e?this._bindings[t].context===e&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)):this._bindings[t]._destroy();e||(this._bindings.length=0)},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(){if(this.active){var e,t=Array.prototype.slice.call(arguments),n=this._bindings.length;if(this.memorize&&(this._prevParams=t),n){e=this._bindings.slice(),this._shouldPropagate=!0;do{n--}while(e[n]&&this._shouldPropagate&&!1!==e[n].execute(t))}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},t.prototype.constructor=t,n.Signal=t}(),n.AStarFinder=function(e){e=e||{};var t={allowDiagonal:!1,heuristicFilter:null};t=n.Tools.merge(t,e),this.allowDiagonal=t.allowDiagonal,this.heuristicFilter=t.heuristicFilter,this.list=new n.LinkedList},n.AStarFinder.prototype={findPath:function(e,t,r,o){var i,a,s,c,u,l;for(r=r||this.heuristicFilter,o.clearPath(),this.list.clear(),this.list.add(e);this.list.length>0;){if(this.list.sort(this.compare),(i=this.list.shift())._visited=!0,i===t)return n.PathUtil.backtrace(t);for(u=0,l=(s=o.getNeighbors(i,this.allowDiagonal,r)).length;l>u;u++)if((c=s[u]).walkable&&(a=i._calcCost+o.distance(i,c),!c._visited||a<c._calcCost)){if(c._visited=!0,c._parent=i,c._calcCost=a,c._priority=a+o.distance(t,c),c===t)return n.PathUtil.backtrace(t);this.list.add(c)}}return null},compare:function(e,t){return e._priority-t._priority}},n.AStarFinder.prototype.constructor=n.AStarFinder,n.PathUtil={backtrace:function(e){for(var t=[e];e._parent;)e=e._parent,t.push(e);return t.reverse()},biBacktrace:function(e,t){var n=this.backtrace(e),r=this.backtrace(t);return n.concat(r.reverse())},pathLength:function(e){var t,n,r,o,i,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],o=n[0]-r[0],i=n[1]-r[1],a+=Math.sqrt(o*o+i*i);return a},interpolate:function(e,t,n,r){var o,i,a,s,c,u,l=Math.abs,d=[];for(o=n>e?1:-1,i=r>t?1:-1,c=(a=l(n-e))-(s=l(r-t));e!==n||t!==r;)d.push([e,t]),(u=2*c)>-s&&(c-=s,e+=o),a>u&&(c+=a,t+=i);return d},expandPath:function(e){var t,n,r,o,i,a,s=[],c=e.length;if(2>c)return s;for(i=0;c-1>i;++i)for(t=e[i],n=e[i+1],o=(r=this.interpolate(t[0],t[1],n[0],n[1])).length,a=0;o-1>a;++a)s.push(r[a]);return s.push(e[c-1]),s},smoothenPath:function(e,t){var n,r,o,i,a,s,c,u,l,d,f,p,h=t.length,m=t[0][0],v=t[0][1],g=t[h-1][0],y=t[h-1][1];for(a=[[n=m,r=v]],c=2;h>c;++c){for(o=(l=t[c])[0],i=l[1],d=this.interpolate(n,r,o,i),p=!1,u=1;u<d.length;++u)if(f=d[u],!e.isWalkableAt(f[0],f[1])){p=!0;break}p&&(s=t[c-1],a.push(s),n=s[0],r=s[1])}return a.push([g,y]),a},compressPath:function(e){if(e.length<3)return e;var t,n,r,o,i,a,s=[],c=e[0][0],u=e[0][1],l=e[1][0],d=e[1][1],f=l-c,p=d-u;for(f/=i=Math.sqrt(f*f+p*p),p/=i,s.push([c,u]),a=2;a<e.length;a++)t=l,n=d,r=f,o=p,f=(l=e[a][0])-t,p=(d=e[a][1])-n,p/=i=Math.sqrt(f*f+p*p),((f/=i)!==r||p!==o)&&s.push([t,n]);return s.push([l,d]),s}},n.Loader={manager:null,imageLoader:null,crossOrigin:!1,init:function(e){this.crossOrigin=e||!1,this.manager=new THREE.LoadingManager((function(){}),(function(){}),(function(){console.warn("Error loading images")})),this.imageLoader=new THREE.ImageLoader(this.manager),this.imageLoader.crossOrigin=e},loadTexture:function(e,t,n,r){var o=new THREE.Texture(null,t);return this.imageLoader.load(e,(function(e){o.image=e,o.needsUpdate=!0,n&&n(o)}),null,(function(e){r&&r(e)})),o.sourceFile=e,o}},n.MouseCaster=function(e,t,r){this.down=!1,this.rightDown=!1,this.pickedObject=null,this.selectedObject=null,this.allHits=null,this.active=!0,this.shift=!1,this.ctrl=!1,this.wheel=0,this.position=new THREE.Vector3,this.screenPosition=new THREE.Vector2,this.signal=new n.Signal,this.group=e,this._camera=t,this._raycaster=new THREE.Raycaster,this._preventDefault=!1,(r=r||document).addEventListener("mousemove",this._onDocumentMouseMove.bind(this),!1),r.addEventListener("mousedown",this._onDocumentMouseDown.bind(this),!1),r.addEventListener("mouseup",this._onDocumentMouseUp.bind(this),!1),r.addEventListener("mousewheel",this._onMouseWheel.bind(this),!1),r.addEventListener("DOMMouseScroll",this._onMouseWheel.bind(this),!1)},n.MouseCaster.OVER="over",n.MouseCaster.OUT="out",n.MouseCaster.DOWN="down",n.MouseCaster.UP="up",n.MouseCaster.CLICK="click",n.MouseCaster.WHEEL="wheel",n.MouseCaster.prototype={update:function(){if(this.active){this._raycaster.setFromCamera(this.screenPosition,this._camera);var e,t,r=this._raycaster.intersectObject(this.group,!0);r.length>0?(t=(e=r[0]).object.userData.structure,this.pickedObject!=t&&(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=t,this.selectedObject=null,this.signal.dispatch(n.MouseCaster.OVER,this.pickedObject)),this.position.copy(e.point),this.screenPosition.z=e.distance):(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=null,this.selectedObject=null),this.allHits=r}},preventDefault:function(){this._preventDefault=!0},_onDocumentMouseDown:function(e){return(e=e||window.event).preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.pickedObject&&(this.selectedObject=this.pickedObject),this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.down=1===e.which,this.rightDown=3===e.which,void this.signal.dispatch(n.MouseCaster.DOWN,this.pickedObject))},_onDocumentMouseUp:function(e){return e.preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.signal.dispatch(n.MouseCaster.UP,this.pickedObject),this.selectedObject&&this.pickedObject&&this.selectedObject.uniqueID===this.pickedObject.uniqueID&&this.signal.dispatch(n.MouseCaster.CLICK,this.pickedObject),this.down=1!==e.which&&this.down,void(this.rightDown=3!==e.which&&this.rightDown))},_onDocumentMouseMove:function(e){e.preventDefault(),this.screenPosition.x=e.clientX/window.innerWidth*2-1,this.screenPosition.y=-e.clientY/window.innerHeight*2+1},_onMouseWheel:function(e){if(this.active){e.preventDefault(),e.stopPropagation();var t=0;void 0!==e.wheelDelta?t=e.wheelDelta:void 0!==e.detail&&(t=-e.detail),t>0?this.wheel++:this.wheel--,this.signal.dispatch(n.MouseCaster.WHEEL,this.wheel)}}},n.MouseCaster.prototype.constructor=n.MouseCaster,n.Scene=function(e,t){var r={element:document.body,alpha:!0,antialias:!0,clearColor:"#fff",sortObjects:!1,fog:null,light:new THREE.DirectionalLight(16777215),lightPosition:null,cameraType:"PerspectiveCamera",cameraPosition:null,orthoZoom:4},o={minDistance:100,maxDistance:1e3,zoomSpeed:2,noZoom:!1};if(r=n.Tools.merge(r,e),"boolean"!=typeof t&&(o=n.Tools.merge(o,t)),this.renderer=new THREE.WebGLRenderer({alpha:r.alpha,antialias:r.antialias}),this.renderer.setClearColor(r.clearColor,0),this.renderer.sortObjects=r.sortObjects,this.width=window.innerWidth,this.height=window.innerHeight,this.orthoZoom=r.orthoZoom,this.container=new THREE.Scene,this.container.fog=r.fog,this.container.add(new THREE.AmbientLight(14540253)),r.lightPosition||r.light.position.set(-1,1,-1).normalize(),this.container.add(r.light),"OrthographicCamera"===r.cameraType){var i=window.innerWidth/this.orthoZoom,a=window.innerHeight/this.orthoZoom;this.camera=new THREE.OrthographicCamera(i/-2,i/2,a/2,a/-2,1,5e3)}else this.camera=new THREE.PerspectiveCamera(50,this.width/this.height,1,5e3);this.contolled=!!t,this.contolled&&(this.controls=new THREE.OrbitControls(this.camera,this.renderer.domElement),this.controls.minDistance=o.minDistance,this.controls.maxDistance=o.maxDistance,this.controls.zoomSpeed=o.zoomSpeed,this.controls.noZoom=o.noZoom),r.cameraPosition&&this.camera.position.copy(r.cameraPosition),window.addEventListener("resize",function(){if(this.width=window.innerWidth,this.height=window.innerHeight,"OrthographicCamera"===this.camera.type){var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2}else this.camera.aspect=this.width/this.height;this.camera.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height)}.bind(this),!1),this.attachTo(r.element)},n.Scene.prototype={attachTo:function(e){e.style.width=this.width+"px",e.style.height=this.height+"px",this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),e.appendChild(this.renderer.domElement)},add:function(e){this.container.add(e)},remove:function(e){this.container.remove(e)},render:function(){this.contolled&&this.controls.update(),this.renderer.render(this.container,this.camera)},updateOrthoZoom:function(){if(this.orthoZoom<=0)this.orthoZoom=0;else{var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2,this.camera.updateProjectionMatrix()}},focusOn:function(e){this.camera.lookAt(e.position)}},n.Scene.prototype.constructor=n.Scene,n.SelectionManager=function(e){this.mouse=e,this.onSelect=new n.Signal,this.onDeselect=new n.Signal,this.selected=null,this.toggleSelection=!1,this.mouse.signal.add(this.onMouse,this)},n.SelectionManager.prototype={select:function(e,t){e&&(t=t||!0,this.selected!==e&&this.clearSelection(t),e.selected?this.toggleSelection&&(t&&this.onDeselect.dispatch(e),e.deselect()):e.select(),this.selected=e,t&&this.onSelect.dispatch(e))},clearSelection:function(e){e=e||!0,this.selected&&(e&&this.onDeselect.dispatch(this.selected),this.selected.deselect()),this.selected=null},onMouse:function(e,t){switch(e){case n.MouseCaster.DOWN:t||this.clearSelection();break;case n.MouseCaster.CLICK:this.select(t)}}},n.SelectionManager.prototype.constructor=n.SelectionManager,n.Tools={clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},sign:function(e){return e&&e/Math.abs(e)},random:function(e,t){return 1===arguments.length?Math.random()*e-.5*e:Math.random()*(t-e)+e},randomInt:function(e,t){return 1===arguments.length?Math.random()*e-.5*e|0:Math.random()*(t-e+1)+e|0},normalize:function(e,t,n){return(e-t)/(n-t)},getShortRotation:function(e){return(e%=this.TAU)>this.PI?e-=this.TAU:e<-this.PI&&(e+=this.TAU),e},generateID:function(){return Math.random().toString(36).slice(2)+Date.now()},isPlainObject:function(e){if("object"!=typeof e||e.nodeType||e===e.window)return!1;try{if(e.constructor&&!Object.prototype.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},merge:function(e,t){var n=this,r=Array.isArray(t),o=r&&[]||{};return r?(e=e||[],o=o.concat(e),t.forEach((function(t,r){"undefined"==typeof o[r]?o[r]=t:n.isPlainObject(t)?o[r]=n.merge(e[r],t):-1===e.indexOf(t)&&o.push(t)})),o):(e&&n.isPlainObject(e)&&Object.keys(e).forEach((function(t){o[t]=e[t]})),Object.keys(t).forEach((function(r){t[r]&&n.isPlainObject(t[r])&&e[r]?o[r]=n.merge(e[r],t[r]):o[r]=t[r]})),o)},now:function(){return window.nwf?window.nwf.system.Performance.elapsedTime:window.performance.now()},empty:function(e){for(;e.lastChild;)e.removeChild(e.lastChild)},radixSort:function(e,t,n,r){if(r=r||31,!((t=t||0)>=(n=n||e.length)-1||0>r)){for(var o=t,i=n,a=1<<r;i>o;)if(e[o]&a){--i;var s=e[o];e[o]=e[i],e[i]=s}else++o;this.radixSort(e,t,i,r-1),this.radixSort(e,i,n,r-1)}},randomizeRGB:function(e,t){var n,r,o=e.split(","),i="rgb(";for(t=this.randomInt(t),n=0;3>n;n++)0>(r=parseInt(o[n])+t)?r=0:r>255&&(r=255),i+=r+",";return(i=i.substring(0,i.length-1))+")"},getJSON:function(e){var t=new XMLHttpRequest,n="undefined"!=typeof e.cache&&e.cache?e.url:e.url+"?t="+Math.floor(1e4*Math.random())+Date.now();t.onreadystatechange=function(){if(200!==this.status)0!==this.status&&console.warn("[Tools.getJSON] Error: "+this.status+" ("+this.statusText+") :: "+e.url);else{var t=null;try{t=JSON.parse(this.responseText)}catch(n){return}e.callback.call(e.scope||null,t)}},t.open("GET",n,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Content-Type","application/json"),t.send("")}}},77454:function(){!function(e){var t="KeyboardEvent"in e;t||(e.KeyboardEvent=function(){throw TypeError("Illegal constructor")}),"DOM_KEY_LOCATION_STANDARD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_STANDARD=0),"DOM_KEY_LOCATION_LEFT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_LEFT=1),"DOM_KEY_LOCATION_RIGHT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_RIGHT=2),"DOM_KEY_LOCATION_NUMPAD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD=3);var n=window.KeyboardEvent.DOM_KEY_LOCATION_STANDARD,r=window.KeyboardEvent.DOM_KEY_LOCATION_LEFT,o=window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,i=window.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD;function a(e,t){return-1!==String(e).indexOf(t)}var s=a(navigator.platform,"Win")?"win":a(navigator.platform,"Mac")?"mac":a(navigator.platform,"CrOS")?"cros":a(navigator.platform,"Linux")?"linux":a(navigator.userAgent,"iPad")||a(navigator.platform,"iPod")||a(navigator.platform,"iPhone")?"ios":"",c=a(navigator.userAgent,"Chrome/")?"chrome":a(navigator.vendor,"Apple")?"safari":a(navigator.userAgent,"MSIE")?"ie":a(navigator.userAgent,"Gecko/")?"moz":a(navigator.userAgent,"Opera/")?"opera":"",u=c+"-"+s;function l(e,t,n){u!==t&&c!==t&&s!==t||Object.keys(n).forEach((function(t){e[t]=n[t]}))}var d={3:{code:"Cancel"},6:{code:"Help"},8:{code:"Backspace"},9:{code:"Tab"},12:{code:"Clear"},13:{code:"Enter"},16:{code:"Shift"},17:{code:"Control"},18:{code:"Alt"},19:{code:"Pause"},20:{code:"CapsLock"},21:{code:"KanaMode"},22:{code:"HangulMode"},23:{code:"JunjaMode"},24:{code:"FinalMode"},25:{code:"KanjiMode"},27:{code:"Escape"},28:{code:"Convert"},29:{code:"NonConvert"},30:{code:"Accept"},31:{code:"ModeChange"},32:{code:"Space"},33:{code:"PageUp"},34:{code:"PageDown"},35:{code:"End"},36:{code:"Home"},37:{code:"ArrowLeft"},38:{code:"ArrowUp"},39:{code:"ArrowRight"},40:{code:"ArrowDown"},41:{code:"Select"},42:{code:"Print"},43:{code:"Execute"},44:{code:"PrintScreen"},45:{code:"Insert"},46:{code:"Delete"},47:{code:"Help"},48:{code:"Digit0",keyCap:"0"},49:{code:"Digit1",keyCap:"1"},50:{code:"Digit2",keyCap:"2"},51:{code:"Digit3",keyCap:"3"},52:{code:"Digit4",keyCap:"4"},53:{code:"Digit5",keyCap:"5"},54:{code:"Digit6",keyCap:"6"},55:{code:"Digit7",keyCap:"7"},56:{code:"Digit8",keyCap:"8"},57:{code:"Digit9",keyCap:"9"},65:{code:"KeyA",keyCap:"a"},66:{code:"KeyB",keyCap:"b"},67:{code:"KeyC",keyCap:"c"},68:{code:"KeyD",keyCap:"d"},69:{code:"KeyE",keyCap:"e"},70:{code:"KeyF",keyCap:"f"},71:{code:"KeyG",keyCap:"g"},72:{code:"KeyH",keyCap:"h"},73:{code:"KeyI",keyCap:"i"},74:{code:"KeyJ",keyCap:"j"},75:{code:"KeyK",keyCap:"k"},76:{code:"KeyL",keyCap:"l"},77:{code:"KeyM",keyCap:"m"},78:{code:"KeyN",keyCap:"n"},79:{code:"KeyO",keyCap:"o"},80:{code:"KeyP",keyCap:"p"},81:{code:"KeyQ",keyCap:"q"},82:{code:"KeyR",keyCap:"r"},83:{code:"KeyS",keyCap:"s"},84:{code:"KeyT",keyCap:"t"},85:{code:"KeyU",keyCap:"u"},86:{code:"KeyV",keyCap:"v"},87:{code:"KeyW",keyCap:"w"},88:{code:"KeyX",keyCap:"x"},89:{code:"KeyY",keyCap:"y"},90:{code:"KeyZ",keyCap:"z"},91:{code:"OSLeft",location:r},92:{code:"OSRight",location:o},93:{code:"ContextMenu"},95:{code:"Standby"},96:{code:"Numpad0",keyCap:"0",location:i},97:{code:"Numpad1",keyCap:"1",location:i},98:{code:"Numpad2",keyCap:"2",location:i},99:{code:"Numpad3",keyCap:"3",location:i},100:{code:"Numpad4",keyCap:"4",location:i},101:{code:"Numpad5",keyCap:"5",location:i},102:{code:"Numpad6",keyCap:"6",location:i},103:{code:"Numpad7",keyCap:"7",location:i},104:{code:"Numpad8",keyCap:"8",location:i},105:{code:"Numpad9",keyCap:"9",location:i},106:{code:"NumpadMultiply",keyCap:"*",location:i},107:{code:"NumpadAdd",keyCap:"+",location:i},108:{code:"NumpadComma",keyCap:",",location:i},109:{code:"NumpadSubtract",keyCap:"-",location:i},110:{code:"NumpadDecimal",keyCap:".",location:i},111:{code:"NumpadDivide",keyCap:"/",location:i},112:{code:"F1"},113:{code:"F2"},114:{code:"F3"},115:{code:"F4"},116:{code:"F5"},117:{code:"F6"},118:{code:"F7"},119:{code:"F8"},120:{code:"F9"},121:{code:"F10"},122:{code:"F11"},123:{code:"F12"},124:{code:"F13"},125:{code:"F14"},126:{code:"F15"},127:{code:"F16"},128:{code:"F17"},129:{code:"F18"},130:{code:"F19"},131:{code:"F20"},132:{code:"F21"},133:{code:"F22"},134:{code:"F23"},135:{code:"F24"},144:{code:"NumLock",location:i},145:{code:"ScrollLock"},160:{code:"ShiftLeft",location:r},161:{code:"ShiftRight",location:o},162:{code:"ControlLeft",location:r},163:{code:"ControlRight",location:o},164:{code:"AltLeft",location:r},165:{code:"AltRight",location:o},166:{code:"BrowserBack"},167:{code:"BrowserForward"},168:{code:"BrowserRefresh"},169:{code:"BrowserStop"},170:{code:"BrowserSearch"},171:{code:"BrowserFavorites"},172:{code:"BrowserHome"},173:{code:"VolumeMute"},174:{code:"VolumeDown"},175:{code:"VolumeUp"},176:{code:"MediaTrackNext"},177:{code:"MediaTrackPrevious"},178:{code:"MediaStop"},179:{code:"MediaPlayPause"},180:{code:"LaunchMail"},181:{code:"MediaSelect"},182:{code:"LaunchApp1"},183:{code:"LaunchApp2"},186:{code:"Semicolon",keyCap:";"},187:{code:"Equal",keyCap:"="},188:{code:"Comma",keyCap:","},189:{code:"Minus",keyCap:"-"},190:{code:"Period",keyCap:"."},191:{code:"Slash",keyCap:"/"},192:{code:"Backquote",keyCap:"`"},219:{code:"BracketLeft",keyCap:"["},220:{code:"Backslash",keyCap:"\\"},221:{code:"BracketRight",keyCap:"]"},222:{code:"Quote",keyCap:"'"},226:{code:"IntlBackslash",keyCap:"\\"},229:{code:"Process"},246:{code:"Attn"},247:{code:"CrSel"},248:{code:"ExSel"},249:{code:"EraseEof"},250:{code:"Play"},251:{code:"ZoomToggle"},254:{code:"Clear"}};l(d,"moz",{59:{code:"Semicolon",keyCap:";"},61:{code:"Equal",keyCap:"="},107:{code:"Equal",keyCap:"="},109:{code:"Minus",keyCap:"-"},187:{code:"NumpadAdd",keyCap:"+",location:i},189:{code:"NumpadSubtract",keyCap:"-",location:i}}),l(d,"moz-mac",{12:{code:"NumLock",location:i},173:{code:"Minus",keyCap:"-"}}),l(d,"moz-win",{173:{code:"Minus",keyCap:"-"}}),l(d,"chrome-mac",{93:{code:"OSRight",location:o}}),l(d,"safari",{3:{code:"Enter"},25:{code:"Tab"}}),l(d,"ios",{10:{code:"Enter",location:n}}),l(d,"safari-mac",{91:{code:"OSLeft",location:r},93:{code:"OSRight",location:o},229:{code:"KeyQ",keyCap:"Q"}});var f={};"cros"===s&&(f["U+00A0"]={code:"ShiftLeft",location:r},f["U+00A1"]={code:"ShiftRight",location:o},f["U+00A2"]={code:"ControlLeft",location:r},f["U+00A3"]={code:"ControlRight",location:o},f["U+00A4"]={code:"AltLeft",location:r},f["U+00A5"]={code:"AltRight",location:o}),"chrome-mac"===u&&(f["U+0010"]={code:"ContextMenu"}),"safari-mac"===u&&(f["U+0010"]={code:"ContextMenu"}),"ios"===s&&(f["U+0010"]={code:"Function"},f["U+001C"]={code:"ArrowLeft"},f["U+001D"]={code:"ArrowRight"},f["U+001E"]={code:"ArrowUp"},f["U+001F"]={code:"ArrowDown"},f["U+0001"]={code:"Home"},f["U+0004"]={code:"End"},f["U+000B"]={code:"PageUp"},f["U+000C"]={code:"PageDown"});var p=[];p[r]={16:{code:"ShiftLeft",location:r},17:{code:"ControlLeft",location:r},18:{code:"AltLeft",location:r}},p[o]={16:{code:"ShiftRight",location:o},17:{code:"ControlRight",location:o},18:{code:"AltRight",location:o}},p[i]={13:{code:"NumpadEnter",location:i}},l(p[i],"moz",{109:{code:"NumpadSubtract",location:i},107:{code:"NumpadAdd",location:i}}),l(p[r],"moz-mac",{224:{code:"OSLeft",location:r}}),l(p[o],"moz-mac",{224:{code:"OSRight",location:o}}),l(p[o],"moz-win",{91:{code:"OSRight",location:o}}),l(p[o],"mac",{93:{code:"OSRight",location:o}}),l(p[i],"chrome-mac",{12:{code:"NumLock",location:i}}),l(p[i],"safari-mac",{12:{code:"NumLock",location:i},187:{code:"NumpadAdd",location:i},189:{code:"NumpadSubtract",location:i},190:{code:"NumpadDecimal",location:i},191:{code:"NumpadDivide",location:i}});var h={ShiftLeft:{key:"Shift"},ShiftRight:{key:"Shift"},ControlLeft:{key:"Control"},ControlRight:{key:"Control"},AltLeft:{key:"Alt"},AltRight:{key:"Alt"},OSLeft:{key:"OS"},OSRight:{key:"OS"},NumpadEnter:{key:"Enter"},Space:{key:" "},Digit0:{key:"0",shiftKey:")"},Digit1:{key:"1",shiftKey:"!"},Digit2:{key:"2",shiftKey:"@"},Digit3:{key:"3",shiftKey:"#"},Digit4:{key:"4",shiftKey:"$"},Digit5:{key:"5",shiftKey:"%"},Digit6:{key:"6",shiftKey:"^"},Digit7:{key:"7",shiftKey:"&"},Digit8:{key:"8",shiftKey:"*"},Digit9:{key:"9",shiftKey:"("},KeyA:{key:"a",shiftKey:"A"},KeyB:{key:"b",shiftKey:"B"},KeyC:{key:"c",shiftKey:"C"},KeyD:{key:"d",shiftKey:"D"},KeyE:{key:"e",shiftKey:"E"},KeyF:{key:"f",shiftKey:"F"},KeyG:{key:"g",shiftKey:"G"},KeyH:{key:"h",shiftKey:"H"},KeyI:{key:"i",shiftKey:"I"},KeyJ:{key:"j",shiftKey:"J"},KeyK:{key:"k",shiftKey:"K"},KeyL:{key:"l",shiftKey:"L"},KeyM:{key:"m",shiftKey:"M"},KeyN:{key:"n",shiftKey:"N"},KeyO:{key:"o",shiftKey:"O"},KeyP:{key:"p",shiftKey:"P"},KeyQ:{key:"q",shiftKey:"Q"},KeyR:{key:"r",shiftKey:"R"},KeyS:{key:"s",shiftKey:"S"},KeyT:{key:"t",shiftKey:"T"},KeyU:{key:"u",shiftKey:"U"},KeyV:{key:"v",shiftKey:"V"},KeyW:{key:"w",shiftKey:"W"},KeyX:{key:"x",shiftKey:"X"},KeyY:{key:"y",shiftKey:"Y"},KeyZ:{key:"z",shiftKey:"Z"},Numpad0:{key:"0"},Numpad1:{key:"1"},Numpad2:{key:"2"},Numpad3:{key:"3"},Numpad4:{key:"4"},Numpad5:{key:"5"},Numpad6:{key:"6"},Numpad7:{key:"7"},Numpad8:{key:"8"},Numpad9:{key:"9"},NumpadMultiply:{key:"*"},NumpadAdd:{key:"+"},NumpadComma:{key:","},NumpadSubtract:{key:"-"},NumpadDecimal:{key:"."},NumpadDivide:{key:"/"},Semicolon:{key:";",shiftKey:":"},Equal:{key:"=",shiftKey:"+"},Comma:{key:",",shiftKey:"<"},Minus:{key:"-",shiftKey:"_"},Period:{key:".",shiftKey:">"},Slash:{key:"/",shiftKey:"?"},Backquote:{key:"`",shiftKey:"~"},BracketLeft:{key:"[",shiftKey:"{"},Backslash:{key:"\\",shiftKey:"|"},BracketRight:{key:"]",shiftKey:"}"},Quote:{key:"'",shiftKey:'"'},IntlBackslash:{key:"\\",shiftKey:"|"}};l(h,"mac",{OSLeft:{key:"Meta"},OSRight:{key:"Meta"}});var m={Esc:"Escape",Nonconvert:"NonConvert",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Menu:"ContextMenu",MediaNextTrack:"MediaTrackNext",MediaPreviousTrack:"MediaTrackPrevious",SelectMedia:"MediaSelect",HalfWidth:"Hankaku",FullWidth:"Zenkaku",RomanCharacters:"Romaji",Crsel:"CrSel",Exsel:"ExSel",Zoom:"ZoomToggle"},v=function(e,t){var n={};return Object.keys(e).forEach((function(r){var o=e[r];t in o&&(n[o[t]]=o)})),n}(d,"code");try{var g=t&&"location"in new KeyboardEvent("")}catch(b){}function y(e){var t="keyCode"in e?e.keyCode:"which"in e?e.which:0,n=function(){if(g||"keyLocation"in e){var n=g?e.location:e.keyLocation;if(n&&t in p[n])return p[n][t]}return"keyIdentifier"in e&&e.keyIdentifier in f?f[e.keyIdentifier]:t in d?d[t]:null}();if(!n)return null;var r=function(){var t=h[n.code];return t?e.shiftKey&&"shiftKey"in t?t.shiftKey:t.key:n.code}();return{code:n.code,key:r,location:n.location,keyCap:n.keyCap}}"KeyboardEvent"in e&&"defineProperty"in Object&&function(){function e(e,t,n){t in e||Object.defineProperty(e,t,n)}if(e(KeyboardEvent.prototype,"code",{get:function(){var e=y(this);return e?e.code:""}}),"key"in KeyboardEvent.prototype){var t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key");Object.defineProperty(KeyboardEvent.prototype,"key",{get:function(){var e=t.get.call(this);return m.hasOwnProperty(e)?m[e]:e}})}e(KeyboardEvent.prototype,"key",{get:function(){var e=y(this);return e&&"key"in e?e.key:"Unidentified"}}),e(KeyboardEvent.prototype,"location",{get:function(){var e=y(this);return e&&"location"in e?e.location:n}}),e(KeyboardEvent.prototype,"locale",{get:function(){return""}})}(),"queryKeyCap"in e.KeyboardEvent||(e.KeyboardEvent.queryKeyCap=function(e,t){if(e=String(e),!v.hasOwnProperty(e))return"Undefined";if(t&&"en-us"!==String(t).toLowerCase())throw Error("Unsupported locale");var n=v[e];return n.keyCap||n.code||"Undefined"}),e.identifyKey=function(e){if(!("code"in e)){var t=y(e);e.code=t?t.code:"",e.key=t&&"key"in t?t.key:"Unidentified",e.location="location"in e?e.location:"keyLocation"in e?e.keyLocation:t&&"location"in t?t.location:n,e.locale=""}}}(window)},33386:function(e){e.exports=AFRAME.registerComponent("checkpoint-controls",{schema:{enabled:{default:!0},mode:{default:"teleport",oneOf:["teleport","animate"]},animateSpeed:{default:3}},init:function(){this.active=!0,this.checkpoint=null,this.isNavMeshConstrained=!1,this.offset=new THREE.Vector3,this.position=new THREE.Vector3,this.targetPosition=new THREE.Vector3},play:function(){this.active=!0},pause:function(){this.active=!1},setCheckpoint:function(e){const t=this.el;this.active&&this.checkpoint!==e&&(this.checkpoint&&t.emit("navigation-end",{checkpoint:this.checkpoint}),this.checkpoint=e,this.sync(),this.position.distanceTo(this.targetPosition)<.1?this.checkpoint=null:(t.emit("navigation-start",{checkpoint:e}),"teleport"===this.data.mode&&(this.el.setAttribute("position",this.targetPosition),this.checkpoint=null,t.emit("navigation-end",{checkpoint:e}),t.components["movement-controls"].updateNavLocation())))},isVelocityActive:function(){return!(!this.active||!this.checkpoint)},getVelocity:function(){if(!this.active)return;const e=this.data,t=this.offset,n=this.position,r=this.targetPosition,o=this.checkpoint;return this.sync(),n.distanceTo(r)<.1?(this.checkpoint=null,this.el.emit("navigation-end",{checkpoint:o}),t.set(0,0,0)):(t.setLength(e.animateSpeed),t)},sync:function(){const e=this.offset,t=this.position,n=this.targetPosition;t.copy(this.el.getAttribute("position")),this.checkpoint.object3D.getWorldPosition(n),n.add(this.checkpoint.components.checkpoint.getOffset()),e.copy(n).sub(t)}})},45062:function(e,t,n){const r=n(16453),o=n(44379),i=.2,a="left",s="right",c=1,u=2;e.exports=AFRAME.registerComponent("gamepad-controls",{GamepadButton:r,schema:{enabled:{default:!0},camera:{default:"[camera]",type:"selector"},rotationSensitivity:{default:2}},init:function(){const e=this.el.sceneEl;this.system=e.systems["tracked-controls-webxr"]||{controllers:[]},this.prevTime=window.performance.now(),this.buttons={};const t=this.el.object3D.rotation;this.pitch=new THREE.Object3D,this.pitch.rotation.x=THREE.Math.degToRad(t.x),this.yaw=new THREE.Object3D,this.yaw.position.y=10,this.yaw.rotation.y=THREE.Math.degToRad(t.y),this.yaw.add(this.pitch),this._lookVector=new THREE.Vector2,this._moveVector=new THREE.Vector2,this._dpadVector=new THREE.Vector2,e.addBehavior(this)},update:function(){this.tick()},tick:function(e,t){this.updateButtonState(),this.updateRotation(t)},remove:function(){},isVelocityActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(c,t);const n=e.x||t.x,r=e.y||t.y;return Math.abs(n)>i||Math.abs(r)>i},getVelocityDelta:function(){const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(c,t);const n=e.x||t.x,r=e.y||t.y,o=new THREE.Vector3;return Math.abs(n)>i&&(o.x+=n),Math.abs(r)>i&&(o.z+=r),o},isRotationActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._lookVector;return this.getJoystick(u,e),Math.abs(e.x)>i||Math.abs(e.y)>i},updateRotation:function(e){if(!this.isRotationActive())return;const t=this.data,n=this.yaw,r=this.pitch,o=t.camera.components["look-controls"],a=o&&o.pitchObject&&o.yawObject;a&&(r.rotation.copy(o.pitchObject.rotation),n.rotation.copy(o.yawObject.rotation));const s=this._lookVector;this.getJoystick(u,s),Math.abs(s.x)<=i&&(s.x=0),Math.abs(s.y)<=i&&(s.y=0),s.multiplyScalar(t.rotationSensitivity*e/1e3),n.rotation.y-=s.x,r.rotation.x-=s.y,r.rotation.x=Math.max(-Math.PI/2,Math.min(Math.PI/2,r.rotation.x)),t.camera.object3D.rotation.set(r.rotation.x,n.rotation.y,0),a&&(o.pitchObject.rotation.copy(r.rotation),o.yawObject.rotation.copy(n.rotation))},updateButtonState:function(){const e=this.getGamepad(s);if(this.data.enabled&&e)for(var t=0;t<e.buttons.length;t++)e.buttons[t].pressed&&!this.buttons[t]?this.emit(new o("gamepadbuttondown",t,e.buttons[t])):!e.buttons[t].pressed&&this.buttons[t]&&this.emit(new o("gamepadbuttonup",t,e.buttons[t])),this.buttons[t]=e.buttons[t].pressed;else Object.keys(this.buttons)&&(this.buttons={})},emit:function(e){this.el.emit(e.type,e),this.el.emit(e.type+":"+e.index,new o(e.type,e.index,e))},getGamepad:function(){const e=[],t=[];return function(n){const r=this.el.sceneEl.components["proxy-controls"],o=r&&r.isConnected()&&r.getGamepad(0);if(o)return o;e.length=0;for(let t=0;t<this.system.controllers.length;t++){const r=this.system.controllers[t],o=r?r.gamepad:null;if(e.push(o),o&&o.handedness===n)return o}const i=navigator.getGamepads?navigator.getGamepads():t;for(let e=0;e<i.length;e++){const t=i[e];if(t&&t.hand===n)return t}return e[0]||i[0]}}(),getButton:function(e){return this.getGamepad(s).buttons[e]},getAxis:function(e){return this.getGamepad(e>1?s:a).axes[e]},getJoystick:function(e,t){const n=this.getGamepad(e===c?a:s);if("xr-standard"===n.mapping)switch(e){case c:return t.set(n.axes[2],n.axes[3]);case u:return t.set(n.axes[0],n.axes[1])}else switch(e){case c:return t.set(n.axes[0],n.axes[1]);case u:return t.set(n.axes[2],n.axes[3])}throw new Error('Unexpected joystick index "%d".',e)},getDpad:function(e){const t=this.getGamepad(a);return t.buttons[r.DPAD_RIGHT]?e.set((t.buttons[r.DPAD_RIGHT].pressed?1:0)+(t.buttons[r.DPAD_LEFT].pressed?-1:0),(t.buttons[r.DPAD_UP].pressed?-1:0)+(t.buttons[r.DPAD_DOWN].pressed?1:0)):e.set(0,0)},isConnected:function(){const e=this.getGamepad(a);return!(!e||!e.connected)},getID:function(){return this.getGamepad(a).id}})},52406:function(e,t,n){n(33386),n(45062),n(32250),n(79048),n(43819),n(99893)},32250:function(e,t,n){n(77454);const r=window.KeyboardEvent;e.exports=AFRAME.registerComponent("keyboard-controls",{schema:{enabled:{default:!0},debug:{default:!1}},init:function(){this.dVelocity=new THREE.Vector3,this.localKeys={},this.listeners={keydown:this.onKeyDown.bind(this),keyup:this.onKeyUp.bind(this),blur:this.onBlur.bind(this)},this.attachEventListeners()},isVelocityActive:function(){return this.data.enabled&&!!Object.keys(this.getKeys()).length},getVelocityDelta:function(){const e=this.data,t=this.getKeys();return this.dVelocity.set(0,0,0),e.enabled&&((t.KeyW||t.ArrowUp)&&(this.dVelocity.z-=1),(t.KeyA||t.ArrowLeft)&&(this.dVelocity.x-=1),(t.KeyS||t.ArrowDown)&&(this.dVelocity.z+=1),(t.KeyD||t.ArrowRight)&&(this.dVelocity.x+=1)),this.dVelocity.clone()},play:function(){this.attachEventListeners()},pause:function(){this.removeEventListeners()},remove:function(){this.pause()},attachEventListeners:function(){window.addEventListener("keydown",this.listeners.keydown,!1),window.addEventListener("keyup",this.listeners.keyup,!1),window.addEventListener("blur",this.listeners.blur,!1)},removeEventListeners:function(){window.removeEventListener("keydown",this.listeners.keydown),window.removeEventListener("keyup",this.listeners.keyup),window.removeEventListener("blur",this.listeners.blur)},onKeyDown:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(this.localKeys[e.code]=!0,this.emit(e))},onKeyUp:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(delete this.localKeys[e.code],this.emit(e))},onBlur:function(){for(let e in this.localKeys)this.localKeys.hasOwnProperty(e)&&delete this.localKeys[e]},emit:function(e){"__keyboard-controls-proxy"in e&&this.el.emit(e.type,e),this.el.emit(e.type+":"+e.code,new r(e.type,e)),this.data.debug&&console.log(e.type+":"+e.code)},isPressed:function(e){return e in this.getKeys()},getKeys:function(){return this.isProxied()?this.el.sceneEl.components["proxy-controls"].getKeyboard():this.localKeys},isProxied:function(){const e=this.el.sceneEl.components["proxy-controls"];return e&&e.isConnected()}})},43819:function(e){const t="-controls";e.exports=AFRAME.registerComponent("movement-controls",{dependencies:["rotation"],schema:{enabled:{default:!0},controls:{default:["gamepad","trackpad","keyboard","touch"]},speed:{default:.3,min:0},fly:{default:!1},constrainToNavMesh:{default:!1},camera:{default:"[movement-controls] [camera]",type:"selector"}},init:function(){const e=this.el;this.velocityCtrl=null,this.velocity=new THREE.Vector3,this.heading=new THREE.Quaternion,this.navGroup=null,this.navNode=null,e.sceneEl.hasLoaded?this.injectControls():e.sceneEl.addEventListener("loaded",this.injectControls.bind(this))},update:function(e){const t=this.el,n=this.data,r=t.sceneEl.systems.nav;t.sceneEl.hasLoaded&&this.injectControls(),r&&n.constrainToNavMesh!==e.constrainToNavMesh&&(n.constrainToNavMesh?r.addAgent(this):r.removeAgent(this))},injectControls:function(){const e=this.data;var n;for(let r=0;r<e.controls.length;r++)n=e.controls[r]+t,this.el.components[n]||this.el.setAttribute(n,"")},updateNavLocation:function(){this.navGroup=null,this.navNode=null},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3;return function(r,o){if(!o)return;const i=this.el,a=this.data;if(!a.enabled)return;this.updateVelocityCtrl();const s=this.velocityCtrl,c=this.velocity;if(s)if(o/1e3>.2?c.set(0,0,0):this.updateVelocity(o),a.constrainToNavMesh&&!1!==s.isNavMeshConstrained){if(c.lengthSq()<1e-5)return;e.copy(i.object3D.position),t.copy(c).multiplyScalar(o/1e3).add(e);const r=i.sceneEl.systems.nav;this.navGroup=null===this.navGroup?r.getGroup(e):this.navGroup,this.navNode=this.navNode||r.getNode(e,this.navGroup),this.navNode=r.clampStep(e,t,this.navGroup,this.navNode,n),i.object3D.position.copy(n)}else i.hasAttribute("velocity")?i.setAttribute("velocity",c):(i.object3D.position.x+=c.x*o/1e3,i.object3D.position.y+=c.y*o/1e3,i.object3D.position.z+=c.z*o/1e3)}}(),updateVelocityCtrl:function(){const e=this.data;if(e.enabled){for(let n=0,r=e.controls.length;n<r;n++){const r=this.el.components[e.controls[n]+t];if(r&&r.isVelocityActive())return void(this.velocityCtrl=r)}this.velocityCtrl=null}},updateVelocity:function(){const e=new THREE.Vector2,t=new THREE.Quaternion;return function(n){let r;const o=this.el,i=this.velocityCtrl,a=this.velocity,s=this.data;if(i){if(!i.getVelocityDelta){if(i.getVelocity)return void a.copy(i.getVelocity());if(i.getPositionDelta)return void a.copy(i.getPositionDelta(n).multiplyScalar(1e3/n));throw new Error("Incompatible movement controls: ",i)}r=i.getVelocityDelta(n)}if(o.hasAttribute("velocity")&&!s.constrainToNavMesh&&a.copy(this.el.getAttribute("velocity")),r&&s.enabled){const n=s.camera;t.copy(n.object3D.quaternion),t.premultiply(o.object3D.quaternion),r.applyQuaternion(t);const i=r.length();s.fly?(a.copy(r),a.multiplyScalar(16.66667*this.data.speed)):(e.set(r.x,r.z),e.setLength(i*this.data.speed*16.66667),a.x=e.x,a.z=e.y)}}}()})},79048:function(e){e.exports=AFRAME.registerComponent("touch-controls",{schema:{enabled:{default:!0},reverseEnabled:{default:!0}},init:function(){this.dVelocity=new THREE.Vector3,this.bindMethods(),this.direction=0},play:function(){this.addEventListeners()},pause:function(){this.removeEventListeners(),this.dVelocity.set(0,0,0)},remove:function(){this.pause()},addEventListeners:function(){const e=this.el.sceneEl,t=e.canvas;t?(t.addEventListener("touchstart",this.onTouchStart),t.addEventListener("touchend",this.onTouchEnd)):e.addEventListener("render-target-loaded",this.addEventListeners.bind(this))},removeEventListeners:function(){const e=this.el.sceneEl&&this.el.sceneEl.canvas;e&&(e.removeEventListener("touchstart",this.onTouchStart),e.removeEventListener("touchend",this.onTouchEnd))},isVelocityActive:function(){return this.data.enabled&&!!this.direction},getVelocityDelta:function(){return this.dVelocity.z=this.direction,this.dVelocity.clone()},bindMethods:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this)},onTouchStart:function(e){this.direction=-1,this.data.reverseEnabled&&2===e.touches.length&&(this.direction=1),e.preventDefault()},onTouchEnd:function(e){this.direction=0,e.preventDefault()}})},99893:function(e){e.exports=AFRAME.registerComponent("trackpad-controls",{schema:{enabled:{default:!0},enableNegX:{default:!0},enablePosX:{default:!0},enableNegZ:{default:!0},enablePosZ:{default:!0},mode:{default:"touch",oneOf:["swipe","touch","press"]}},init:function(){this.dVelocity=new THREE.Vector3,this.zVel=0,this.xVel=0,this.bindMethods()},play:function(){this.addEventListeners()},pause:function(){this.removeEventListeners(),this.dVelocity.set(0,0,0)},remove:function(){this.pause()},addEventListeners:function(){const e=this.data,t=this.el.sceneEl;switch(t.addEventListener("axismove",this.onAxisMove),e.mode){case"swipe":case"touch":t.addEventListener("trackpadtouchstart",this.onTouchStart),t.addEventListener("trackpadtouchend",this.onTouchEnd);break;case"press":t.addEventListener("trackpaddown",this.onTouchStart),t.addEventListener("trackpadup",this.onTouchEnd)}},removeEventListeners:function(){const e=this.el.sceneEl;e.removeEventListener("axismove",this.onAxisMove),e.removeEventListener("trackpadtouchstart",this.onTouchStart),e.removeEventListener("trackpadtouchend",this.onTouchEnd),e.removeEventListener("trackpaddown",this.onTouchStart),e.removeEventListener("trackpadup",this.onTouchEnd)},isVelocityActive:function(){return this.data.enabled&&this.isMoving},getVelocityDelta:function(){return this.dVelocity.z=this.isMoving?-this.zVel:1,this.dVelocity.x=this.isMoving?this.xVel:1,this.dVelocity.clone()},bindMethods:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onAxisMove=this.onAxisMove.bind(this)},onTouchStart:function(e){switch(this.data.mode){case"swipe":this.canRecordAxis=!0,this.startingAxisData=[];break;case"touch":case"press":this.isMoving=!0}e.preventDefault()},onTouchEnd:function(e){"swipe"==this.data.mode&&(this.startingAxisData=[]),this.isMoving=!1,e.preventDefault()},onAxisMove:function(e){switch(this.data.mode){case"swipe":return this.handleSwipeAxis(e);case"touch":case"press":return this.handleTouchAxis(e)}},handleSwipeAxis:function(e){const t=this.data,n=e.detail.axis;if(0===this.startingAxisData.length&&this.canRecordAxis&&(this.canRecordAxis=!1,this.startingAxisData[0]=n[0],this.startingAxisData[1]=n[1]),this.startingAxisData.length>0){let e=0,r=0;t.enableNegX&&n[0]<this.startingAxisData[0]&&(e=-1),t.enablePosX&&n[0]>this.startingAxisData[0]&&(e=1),t.enablePosZ&&n[1]>this.startingAxisData[1]&&(r=-1),t.enableNegZ&&n[1]<this.startingAxisData[1]&&(r=1);const o=Math.abs(this.startingAxisData[1]-n[1]);Math.abs(this.startingAxisData[0]-n[0])>o?(this.zVel=0,this.xVel=e,this.isMoving=!0):(this.xVel=0,this.zVel=r,this.isMoving=!0)}},handleTouchAxis:function(e){const t=this.data,n=e.detail.axis;let r=0,o=0;t.enableNegX&&n[0]<0&&(r=-1),t.enablePosX&&n[0]>0&&(r=1),t.enablePosZ&&n[1]>0&&(o=-1),t.enableNegZ&&n[1]<0&&(o=1),Math.abs(n[0])>Math.abs(n[1])?(this.zVel=0,this.xVel=r):(this.xVel=0,this.zVel=o)}})},76591:function(e){const t={once:THREE.LoopOnce,repeat:THREE.LoopRepeat,pingpong:THREE.LoopPingPong};function n(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}e.exports=AFRAME.registerComponent("animation-mixer",{schema:{clip:{default:"*"},duration:{default:0},clampWhenFinished:{default:!1,type:"boolean"},crossFadeDuration:{default:0},loop:{default:"repeat",oneOf:Object.keys(t)},repetitions:{default:1/0,min:0},timeScale:{default:1}},init:function(){this.model=null,this.mixer=null,this.activeActions=[];const e=this.el.getObject3D("mesh");e?this.load(e):this.el.addEventListener("model-loaded",(e=>{this.load(e.detail.model)}))},load:function(e){const t=this.el;this.model=e,this.mixer=new THREE.AnimationMixer(e),this.mixer.addEventListener("loop",(e=>{t.emit("animation-loop",{action:e.action,loopDelta:e.loopDelta})})),this.mixer.addEventListener("finished",(e=>{t.emit("animation-finished",{action:e.action,direction:e.direction})})),this.data.clip&&this.update({})},remove:function(){this.mixer&&this.mixer.stopAllAction()},update:function(e){if(!e)return;const n=this.data,r=AFRAME.utils.diff(n,e);if("clip"in r)return this.stopAction(),void(n.clip&&this.playAction());this.activeActions.forEach((e=>{"duration"in r&&n.duration&&e.setDuration(n.duration),"clampWhenFinished"in r&&(e.clampWhenFinished=n.clampWhenFinished),("loop"in r||"repetitions"in r)&&e.setLoop(t[n.loop],n.repetitions),"timeScale"in r&&e.setEffectiveTimeScale(n.timeScale)}))},stopAction:function(){const e=this.data;for(let t=0;t<this.activeActions.length;t++)e.crossFadeDuration?this.activeActions[t].fadeOut(e.crossFadeDuration):this.activeActions[t].stop();this.activeActions.length=0},playAction:function(){if(!this.mixer)return;const e=this.model,r=this.data,o=e.animations||(e.geometry||{}).animations||[];if(!o.length)return;const i=(a=r.clip,new RegExp("^"+a.split(/\*+/).map(n).join(".*")+"$"));var a;for(let n,s=0;n=o[s];s++)if(n.name.match(i)){const o=this.mixer.clipAction(n,e);o.enabled=!0,o.clampWhenFinished=r.clampWhenFinished,r.duration&&o.setDuration(r.duration),1!==r.timeScale&&o.setEffectiveTimeScale(r.timeScale),o.setLoop(t[r.loop],r.repetitions).fadeIn(r.crossFadeDuration).play(),this.activeActions.push(o)}},tick:function(e,t){this.mixer&&!isNaN(t)&&this.mixer.update(t/1e3)}})},62290:function(e,t,n){THREE.ColladaLoader=n(20203),e.exports.Component=AFRAME.registerComponent("collada-model-legacy",{schema:{type:"asset"},init:function(){this.model=null,this.loader=new THREE.ColladaLoader},update:function(){var e=this,t=this.el,n=this.data,r=this.el.sceneEl.systems.renderer;n&&(this.remove(),this.loader.load(n,(function(n){e.model=n.scene,e.model.traverse((function(e){if(e.isMesh){var t=e.material;t.color&&r.applyColorCorrection(t.color),t.map&&r.applyColorCorrection(t.map),t.emissive&&r.applyColorCorrection(t.emissive),t.emissiveMap&&r.applyColorCorrection(t.emissiveMap)}})),t.setObject3D("mesh",e.model),t.emit("model-loaded",{format:"collada",model:e.model})})))},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},5310:function(e,t,n){THREE.FBXLoader=n(99434),e.exports=AFRAME.registerComponent("fbx-model",{schema:{src:{type:"asset"},crossorigin:{default:""}},init:function(){this.model=null},update:function(){const e=this.data;if(!e.src)return;this.remove();const t=new THREE.FBXLoader;e.crossorigin&&t.setCrossOrigin(e.crossorigin),t.load(e.src,this.load.bind(this))},load:function(e){this.model=e,this.el.setObject3D("mesh",e),this.el.emit("model-loaded",{format:"fbx",model:e})},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},88837:function(e,t,n){const r=n(34657)(),o=function(){let e;return function(){return e=e||r("https://cdn.jsdelivr.net/gh/mrdoob/three.js@r86/examples/js/loaders/GLTFLoader.js"),e}}();e.exports=AFRAME.registerComponent("gltf-model-legacy",{schema:{type:"model"},init:function(){this.model=null,this.loader=null,this.loaderPromise=o().then((()=>{this.loader=new THREE.GLTFLoader,this.loader.setCrossOrigin("Anonymous")}))},update:function(){const e=this,t=this.el,n=this.data;n&&(this.remove(),this.loaderPromise.then((()=>{this.loader.load(n,(function(n){e.model=n.scene,e.model.animations=n.animations,t.setObject3D("mesh",e.model),t.emit("model-loaded",{format:"gltf",model:e.model})}))})))},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},29874:function(e,t,n){n(76591),n(62290),n(5310),n(88837),n(30171)},30171:function(e){e.exports=AFRAME.registerComponent("object-model",{schema:{src:{type:"asset"},crossorigin:{default:""}},init:function(){this.model=null},update:function(){let e;const t=this.data;t.src&&(this.remove(),e=new THREE.ObjectLoader,t.crossorigin&&e.setCrossOrigin(t.crossorigin),e.load(t.src,(e=>{e.traverse((e=>{e instanceof THREE.SkinnedMesh&&e.material&&(e.material.skinning=!!(e.geometry&&e.geometry.bones||[]).length)})),this.load(e)})))},load:function(e){this.model=e,this.el.setObject3D("mesh",e),this.el.emit("model-loaded",{format:"json",model:e})},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},37642:function(e){e.exports=AFRAME.registerComponent("checkpoint",{schema:{offset:{default:{x:0,y:0,z:0},type:"vec3"}},init:function(){this.active=!1,this.targetEl=null,this.fire=this.fire.bind(this),this.offset=new THREE.Vector3},update:function(){this.offset.copy(this.data.offset)},play:function(){this.el.addEventListener("click",this.fire)},pause:function(){this.el.removeEventListener("click",this.fire)},remove:function(){this.pause()},fire:function(){const e=this.el.sceneEl.querySelector("[checkpoint-controls]");if(!e)throw new Error("No `checkpoint-controls` component found.");e.components["checkpoint-controls"].setCheckpoint(this.el)},getOffset:function(){return this.offset.copy(this.data.offset)}})},74795:function(e){function t(e,t,n,r){e&&(t=t||[],e.traverse((e=>{if(!e.isMesh)return;var o;((o=e.material)?Array.isArray(o)?o:o.materials?o.materials:[o]:[]).forEach((e=>{e&&!("envMap"in e)||t.length&&-1===t.indexOf(e.name)||(e.envMap=n,e.reflectivity=r,e.needsUpdate=!0)}))})))}e.exports=AFRAME.registerComponent("cube-env-map",{multiple:!0,schema:{path:{default:""},extension:{default:"jpg",oneOf:["jpg","png"]},format:{default:"RGBFormat",oneOf:["RGBFormat","RGBAFormat"]},enableBackground:{default:!1},reflectivity:{default:1,min:0,max:1},materials:{default:[]}},init:function(){const e=this.data;this.texture=(new THREE.CubeTextureLoader).load([e.path+"posx."+e.extension,e.path+"negx."+e.extension,e.path+"posy."+e.extension,e.path+"negy."+e.extension,e.path+"posz."+e.extension,e.path+"negz."+e.extension]),this.texture.format=THREE[e.format],this.object3dsetHandler=()=>{const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,this.texture,n.reflectivity)},this.el.addEventListener("object3dset",this.object3dsetHandler)},update:function(e){const n=this.data,r=this.el.getObject3D("mesh");let o=[],i=[];if(n.materials.length&&(e.materials?(o=n.materials.filter((t=>!e.materials.includes(t))),i=e.materials.filter((e=>!n.materials.includes(e)))):o=n.materials),o.length&&t(r,o,this.texture,n.reflectivity),i.length&&t(r,i,null,1),e.materials&&n.reflectivity!==e.reflectivity){const o=n.materials.filter((t=>e.materials.includes(t)));o.length&&t(r,o,this.texture,n.reflectivity)}this.data.enableBackground&&!e.enableBackground?this.setBackground(this.texture):!this.data.enableBackground&&e.enableBackground&&this.setBackground(null)},remove:function(){this.el.removeEventListener("object3dset",this.object3dsetHandler);const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,null,1),n.enableBackground&&this.setBackground(null)},setBackground:function(e){this.el.sceneEl.object3D.background=e}})},79511:function(e){e.exports=AFRAME.registerComponent("grab",{init:function(){this.system=this.el.sceneEl.systems.physics,this.GRABBED_STATE="grabbed",this.grabbing=!1,this.hitEl=null,this.physics=this.el.sceneEl.systems.physics,this.constraint=null,this.onHit=this.onHit.bind(this),this.onGripOpen=this.onGripOpen.bind(this),this.onGripClose=this.onGripClose.bind(this)},play:function(){const e=this.el;e.addEventListener("hit",this.onHit),e.addEventListener("gripdown",this.onGripClose),e.addEventListener("gripup",this.onGripOpen),e.addEventListener("trackpaddown",this.onGripClose),e.addEventListener("trackpadup",this.onGripOpen),e.addEventListener("triggerdown",this.onGripClose),e.addEventListener("triggerup",this.onGripOpen)},pause:function(){const e=this.el;e.removeEventListener("hit",this.onHit),e.removeEventListener("gripdown",this.onGripClose),e.removeEventListener("gripup",this.onGripOpen),e.removeEventListener("trackpaddown",this.onGripClose),e.removeEventListener("trackpadup",this.onGripOpen),e.removeEventListener("triggerdown",this.onGripClose),e.removeEventListener("triggerup",this.onGripOpen)},onGripClose:function(){this.grabbing=!0},onGripOpen:function(){const e=this.hitEl;this.grabbing=!1,e&&(e.removeState(this.GRABBED_STATE),this.hitEl=void 0,this.system.removeConstraint(this.constraint),this.constraint=null)},onHit:function(e){const t=e.detail.el;t&&!t.is(this.GRABBED_STATE)&&this.grabbing&&!this.hitEl&&(t.addState(this.GRABBED_STATE),this.hitEl=t,this.constraint=new CANNON.LockConstraint(this.el.body,t.body),this.system.addConstraint(this.constraint))}})},59236:function(e,t,n){n(37642),n(74795),n(79511),n(70765),n(80837),n(58310),n(78240),n(91790)},70765:function(e){e.exports=AFRAME.registerComponent("jump-ability",{dependencies:["velocity"],schema:{on:{default:"keydown:Space gamepadbuttondown:0"},playerHeight:{default:1.764},maxJumps:{default:1},distance:{default:5},debug:{default:!1}},init:function(){this.velocity=0,this.numJumps=0;const e=this.beginJump.bind(this),t=this.data.on.split(" ");this.bindings={};for(let n=0;n<t.length;n++)this.bindings[t[n]]=e,this.el.addEventListener(t[n],e);this.bindings.collide=this.onCollide.bind(this),this.el.addEventListener("collide",this.bindings.collide)},remove:function(){for(var e in this.bindings)this.bindings.hasOwnProperty(e)&&(this.el.removeEventListener(e,this.bindings[e]),delete this.bindings[e]);this.el.removeEventListener("collide",this.bindings.collide),delete this.bindings.collide},beginJump:function(){if(this.numJumps<this.data.maxJumps){const e=this.data,t=Math.sqrt(-2*e.distance*-24.8),n=this.el.getAttribute("velocity");this.el.setAttribute("velocity",{x:n.x,y:t,z:n.z}),this.numJumps++,this.el.emit("jumpstart")}},onCollide:function(){this.numJumps>0&&this.el.emit("jumpend"),this.numJumps=0}})},80837:function(e){const t=1e-6;e.exports=AFRAME.registerComponent("kinematic-body",{dependencies:["velocity"],schema:{mass:{default:5},radius:{default:1.3},linearDamping:{default:.05},enableSlopes:{default:!0},enableJumps:{default:!1}},init:function(){this.system=this.el.sceneEl.systems.physics,this.system.addComponent(this);const e=this.el,t=this.data,n=(new CANNON.Vec3).copy(e.object3D.getWorldPosition(new THREE.Vector3));this.body=new CANNON.Body({material:this.system.getMaterial("staticMaterial"),position:n,mass:t.mass,linearDamping:t.linearDamping,fixedRotation:!0}),this.body.addShape(new CANNON.Sphere(t.radius),new CANNON.Vec3(0,t.radius,0)),this.body.el=this.el,this.el.body=this.body,this.system.addBody(this.body),e.hasAttribute("wasd-controls")&&console.warn("[kinematic-body] Not compatible with wasd-controls, use movement-controls.")},remove:function(){this.system.removeBody(this.body),this.system.removeComponent(this),delete this.el.body},beforeStep:function(e,t){if(!t)return;const n=this.el,r=this.data,o=this.body;r.enableJumps||o.velocity.set(0,0,0),o.position.copy(n.getAttribute("position"))},step:function(){const e=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,o=new THREE.Vector3;return function(i,a){if(!a)return;let s,c,u=this.body,l=this.data,d=!1,f=-1/0,p=this.system.getContacts();a=Math.min(a,1e3*this.system.data.maxInterval),o.set(0,0,0),e.copy(this.el.getAttribute("velocity")),u.velocity.copy(e);for(var h,m=0;h=p[m];m++)if(h.enabled){if(u.id===h.bi.id)h.ni.negate(r);else{if(u.id!==h.bj.id)continue;r.copy(h.ni)}d=u.velocity.dot(r)<-t,d&&r.y<=.5?e.projectOnPlane(r):r.y>.5&&(s=u.id===h.bi.id?Math.abs(h.rj.y+h.bj.position.y):Math.abs(h.ri.y+h.bi.position.y),s>f&&(f=s,o.copy(r),c=u.id===h.bi.id?h.bj:h.bi))}n.copy(e).normalize(),c&&(!l.enableJumps||n.y<.5)?(l.enableSlopes?o.y<1-t&&o.copy(this.raycastToGround(c,o)):o.set(0,1,0),e.projectOnPlane(o)):this.system.driver.world&&e.add(this.system.driver.world.gravity.scale(4*a/1e3)),u.velocity.copy(e),this.el.setAttribute("velocity",u.velocity),this.el.setAttribute("position",u.position)}}(),raycastToGround:function(e,t){let n,r,o=this.body.position,i=this.body.position.clone();return n=new CANNON.Ray(o,i),n._updateDirection(),n.intersectBody(e),n.hasHit?(r=n.result.hitNormalWorld,Math.abs(r.y)>Math.abs(t.y)?r:t):t}})},58310:function(e){e.exports=AFRAME.registerComponent("mesh-smooth",{init:function(){this.el.addEventListener("model-loaded",(e=>{e.detail.model.traverse((e=>{e.isMesh&&e.geometry.computeVertexNormals()}))}))}})},78240:function(e){e.exports=AFRAME.registerComponent("normal-material",{init:function(){this.material=new THREE.MeshNormalMaterial({flatShading:!0}),this.applyMaterial=this.applyMaterial.bind(this),this.el.addEventListener("object3dset",this.applyMaterial)},remove:function(){this.el.removeEventListener("object3dset",this.applyMaterial)},applyMaterial:function(){this.el.object3D.traverse((e=>{e.isMesh&&(e.material=this.material)}))}})},91790:function(e){e.exports=AFRAME.registerComponent("sphere-collider",{schema:{objects:{default:""},state:{default:"collided"},radius:{default:.05},watch:{default:!0}},init:function(){this.observer=null,this.els=[],this.collisions=[],this.handleHit=this.handleHit.bind(this),this.handleHitEnd=this.handleHitEnd.bind(this)},remove:function(){this.pause()},play:function(){const e=this.el.sceneEl;this.data.watch&&(this.observer=new MutationObserver(this.update.bind(this,null)),this.observer.observe(e,{childList:!0,subtree:!0}))},pause:function(){this.observer&&(this.observer.disconnect(),this.observer=null)},update:function(){const e=this.data;let t;t=e.objects?this.el.sceneEl.querySelectorAll(e.objects):this.el.sceneEl.children,this.els=Array.prototype.slice.call(t)},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,o=new THREE.Box3,i=new Map;return function(){const a=this.el,s=this.data,c=a.getObject3D("mesh"),u=[];let l;var d;c&&(i.clear(),a.object3D.getWorldPosition(e),a.object3D.getWorldScale(n),l=s.radius*(d=n,Math.max.apply(null,d.toArray())),this.els.forEach((function(n){let a,s,c,d;if(!n.isEntity)return;if(s=n.getObject3D("mesh"),!s)return;if(o.setFromObject(s).getSize(r),d=Math.max(r.x,r.y,r.z)/2,a=Math.sqrt(2*d*d),o.getCenter(t),!a)return;c=e.distanceTo(t),c<a+l&&(u.push(n),i.set(n,c))})),u.sort(((e,t)=>i.get(e)>i.get(t)?1:-1)).forEach(this.handleHit),0===u.length&&a.emit("hit",{el:null}),this.collisions.filter((e=>!i.has(e))).forEach(this.handleHitEnd),this.collisions=u)}}(),handleHit:function(e){e.emit("hit"),e.addState(this.data.state),this.el.emit("hit",{el:e})},handleHitEnd:function(e){e.emit("hitend"),e.removeState(this.data.state),this.el.emit("hitend",{el:e})}})},82578:function(e,t,n){n(38453),n(11250),n(31465)},11250:function(e){e.exports=AFRAME.registerComponent("nav-agent",{schema:{destination:{type:"vec3"},active:{default:!1},speed:{default:2}},init:function(){this.system=this.el.sceneEl.systems.nav,this.system.addAgent(this),this.group=null,this.path=[],this.raycaster=new THREE.Raycaster},remove:function(){this.system.removeAgent(this)},update:function(){this.path.length=0},updateNavLocation:function(){this.group=null,this.path=[]},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3;return function(r,o){const i=this.el,a=this.data,s=this.raycaster,c=a.speed*o/1e3;if(!a.active)return;if(!this.path.length){const t=this.el.object3D.position;this.group=this.group||this.system.getGroup(t),this.path=this.system.getPath(t,e.copy(a.destination),this.group)||[],i.emit("navigation-start")}if(!this.path.length)return console.warn("[nav] Unable to find path to %o.",a.destination),this.el.setAttribute("nav-agent",{active:!1}),void i.emit("navigation-end");const u=i.object3D.position,l=this.path[0];t.subVectors(l,u);let d;if(t.length()<c){if(this.path.shift(),!this.path.length)return this.el.setAttribute("nav-agent",{active:!1}),void i.emit("navigation-end");n.copy(u),d=this.path[0]}else n.copy(t.setLength(c)).add(u),d=l;d.y=u.y,i.object3D.lookAt(d),s.ray.origin.copy(n),s.ray.origin.y+=1.5,s.ray.direction.y=-1;const f=s.intersectObject(this.system.getNavMesh());f.length?(t.subVectors(f[0].point,u),u.add(t.setLength(c))):u.copy(n)}}()})},38453:function(e){e.exports=AFRAME.registerComponent("nav-mesh",{init:function(){this.system=this.el.sceneEl.systems.nav,this.hasLoadedNavMesh=!1,this.el.addEventListener("object3dset",this.loadNavMesh.bind(this))},play:function(){this.hasLoadedNavMesh||this.loadNavMesh()},loadNavMesh:function(){const e=this.el.getObject3D("mesh"),t=this.el.sceneEl.object3D;if(!e)return;let n;if(e.traverse((e=>{e.isMesh&&(n=e)})),!n)return;const r=n.geometry.isBufferGeometry?(new THREE.Geometry).fromBufferGeometry(n.geometry):n.geometry.clone();t.updateMatrixWorld(),r.applyMatrix(n.matrixWorld),this.system.setNavMeshGeometry(r),this.hasLoadedNavMesh=!0}})},31465:function(e,t,n){const{Pathfinding:r}=n(56594),o=new r,i="level";e.exports=AFRAME.registerSystem("nav",{init:function(){this.navMesh=null,this.agents=new Set},setNavMeshGeometry:function(e){this.navMesh=new THREE.Mesh(e),o.setZoneData(i,r.createZone(e)),Array.from(this.agents).forEach((e=>e.updateNavLocation()))},getNavMesh:function(){return this.navMesh},addAgent:function(e){this.agents.add(e)},removeAgent:function(e){this.agents.delete(e)},getPath:function(e,t,n){return this.navMesh?o.findPath(e,t,i,n):null},getGroup:function(e){return this.navMesh?o.getGroup(i,e):null},getNode:function(e,t){return this.navMesh?o.getClosestNode(e,i,t,!0):null},clampStep:function(e,t,n,r,a){return this.navMesh?r?o.clampStep(e,t,r,i,n,a):(a.copy(t),this.getNode(t,n)):(a.copy(t),null)}})},50386:function(e){e.exports=AFRAME.registerPrimitive("a-grid",{defaultComponents:{geometry:{primitive:"plane",width:75,height:75},rotation:{x:-90,y:0,z:0},material:{src:"url(https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v1.16.3/assets/grid.png)",repeat:"75 75"}},mappings:{width:"geometry.width",height:"geometry.height",src:"material.src"}})},23535:function(e,t,n){const r=n(63471),o=n(82667);e.exports.Primitive=AFRAME.registerPrimitive("a-hexgrid",{defaultComponents:{hexgrid:{}},mappings:{src:"hexgrid.src"}}),e.exports.Component=AFRAME.registerComponent("hexgrid",{dependencies:["material"],schema:{src:{type:"asset"}},init:function(){const e=this.data;e.src?fetch(e.src).then((e=>e.json())).then((e=>this.addMesh(e))):this.addMesh(o)},addMesh:function(e){const t=new r.HexGrid;t.fromJSON(e);const n=new r.Board(t);n.generateTilemap(),this.el.setObject3D("mesh",n.group),this.addMaterial()},addMaterial:function(){const e=(this.el.components.material||{}).material;e&&this.el.object3D.traverse((t=>{t.isMesh&&(t.material=e)}))},remove:function(){this.el.removeObject3D("mesh")}})},59307:function(e){e.exports.Primitive=AFRAME.registerPrimitive("a-ocean",{defaultComponents:{ocean:{},rotation:{x:-90,y:0,z:0}},mappings:{width:"ocean.width",depth:"ocean.depth",density:"ocean.density",amplitude:"ocean.amplitude",amplitudeVariance:"ocean.amplitudeVariance",speed:"ocean.speed",speedVariance:"ocean.speedVariance",color:"ocean.color",opacity:"ocean.opacity"}}),e.exports.Component=AFRAME.registerComponent("ocean",{schema:{width:{default:10,min:0},depth:{default:10,min:0},density:{default:10},amplitude:{default:.1},amplitudeVariance:{default:.3},speed:{default:1},speedVariance:{default:2},color:{default:"#7AD2F7",type:"color"},opacity:{default:.8}},play:function(){const e=this.el,t=this.data;let n=e.components.material;const r=new THREE.PlaneGeometry(t.width,t.depth,t.density,t.density);r.mergeVertices(),this.waves=[];for(let o,i=0,a=r.vertices.length;i<a;i++)o=r.vertices[i],this.waves.push({z:o.z,ang:Math.random()*Math.PI*2,amp:t.amplitude+Math.random()*t.amplitudeVariance,speed:(t.speed+Math.random()*t.speedVariance)/1e3});n||(n={},n.material=new THREE.MeshPhongMaterial({color:t.color,transparent:t.opacity<1,opacity:t.opacity,shading:THREE.FlatShading})),this.mesh=new THREE.Mesh(r,n.material),e.setObject3D("mesh",this.mesh)},remove:function(){this.el.removeObject3D("mesh")},tick:function(e,t){if(!t)return;const n=this.mesh.geometry.vertices;for(let r,o,i=0;r=n[i];i++)o=this.waves[i],r.z=o.z+Math.sin(o.ang)*o.amp,o.ang+=o.speed*t;this.mesh.geometry.verticesNeedUpdate=!0}})},50699:function(e){e.exports.Primitive=AFRAME.registerPrimitive("a-tube",{defaultComponents:{tube:{}},mappings:{path:"tube.path",segments:"tube.segments",radius:"tube.radius","radial-segments":"tube.radialSegments",closed:"tube.closed"}}),e.exports.Component=AFRAME.registerComponent("tube",{schema:{path:{default:[]},segments:{default:64},radius:{default:1},radialSegments:{default:8},closed:{default:!1}},init:function(){const e=this.el,t=this.data;let n=e.components.material;if(!t.path.length)return void console.error("[a-tube] `path` property expected but not found.");const r=new THREE.CatmullRomCurve3(t.path.map((function(e){return e=e.split(" "),new THREE.Vector3(Number(e[0]),Number(e[1]),Number(e[2]))}))),o=new THREE.TubeGeometry(r,t.segments,t.radius,t.radialSegments,t.closed);n||(n={},n.material=new THREE.MeshPhongMaterial),this.mesh=new THREE.Mesh(o,n.material),this.el.setObject3D("mesh",this.mesh)},update:function(e){Object.keys(e).length&&(this.remove(),this.init())},remove:function(){this.mesh&&this.el.removeObject3D("mesh")}})},36699:function(e,t,n){n(50386),n(23535),n(59307),n(50699)},31359:function(e,t,n){if("undefined"===typeof AFRAME)throw new Error("Component attempted to register before AFRAME was available.");let r=n(92539);"default"in r&&(r=r.default);let o=n(81398);"default"in o&&(o=o.default);const i=function(e){return"string"===typeof e?JSON.parse(e):e},a=function(e){if("function"===typeof e)return e;const t=eval;try{return t("("+e+")")}catch(n){}return null},s=function(e){return isNaN(parseFloat(e))?a(e)?a(e):e:parseFloat(e)};AFRAME.registerComponent("forcegraph",{schema:{jsonUrl:{type:"string",default:""},nodes:{parse:i,default:[]},links:{parse:i,default:[]},numDimensions:{type:"number",default:3},dagMode:{type:"string",default:""},dagLevelDistance:{type:"number",default:0},dagNodeFilter:{parse:a,function:()=>!0},onDagError:{parse:a,default:void 0},nodeRelSize:{type:"number",default:4},nodeId:{type:"string",default:"id"},nodeVal:{parse:s,default:"val"},nodeResolution:{type:"number",default:8},nodeVisibility:{parse:s,default:!0},nodeColor:{parse:s,default:"color"},nodeAutoColorBy:{parse:s,default:""},nodeOpacity:{type:"number",default:.75},nodeThreeObject:{parse:s,default:null},nodeThreeObjectExtend:{parse:s,default:!1},linkSource:{type:"string",default:"source"},linkTarget:{type:"string",default:"target"},linkVisibility:{parse:s,default:!0},linkColor:{parse:s,default:"color"},linkAutoColorBy:{parse:s,default:""},linkOpacity:{type:"number",default:.2},linkWidth:{parse:s,default:0},linkResolution:{type:"number",default:6},linkCurvature:{parse:s,default:0},linkCurveRotation:{parse:s,default:0},linkMaterial:{parse:s,default:null},linkThreeObject:{parse:s,default:null},linkThreeObjectExtend:{parse:s,default:!1},linkPositionUpdate:{parse:a,default:null},linkDirectionalArrowLength:{parse:s,default:0},linkDirectionalArrowColor:{parse:s,default:null},linkDirectionalArrowRelPos:{parse:s,default:.5},linkDirectionalArrowResolution:{type:"number",default:8},linkDirectionalParticles:{parse:s,default:0},linkDirectionalParticleSpeed:{parse:s,default:.01},linkDirectionalParticleWidth:{parse:s,default:.5},linkDirectionalParticleColor:{parse:s,default:null},linkDirectionalParticleResolution:{type:"number",default:4},onNodeHover:{parse:a,default:()=>{}},onLinkHover:{parse:a,default:()=>{}},onNodeClick:{parse:a,default:()=>{}},onLinkClick:{parse:a,default:()=>{}},forceEngine:{type:"string",default:"d3"},d3AlphaMin:{type:"number",default:0},d3AlphaDecay:{type:"number",default:.0228},d3VelocityDecay:{type:"number",default:.4},ngraphPhysics:{parse:i,default:null},warmupTicks:{type:"int",default:0},cooldownTicks:{type:"int",default:1e18},cooldownTime:{type:"int",default:15e3},onEngineTick:{parse:a,default:function(){}},onEngineStop:{parse:a,default:function(){}}},getGraphBbox:function(){return this.forceGraph||(this.forceGraph=new o),this.forceGraph.getGraphBbox()},emitParticle:function(){this.forceGraph||(this.forceGraph=new o);const e=this.forceGraph,t=e.emitParticle.apply(e,arguments);return t===e?this:t},d3Force:function(){this.forceGraph||(this.forceGraph=new o);const e=this.forceGraph,t=e.d3Force.apply(e,arguments);return t===e?this:t},d3ReheatSimulation:function(){return this.forceGraph&&this.forceGraph.d3ReheatSimulation(),this},refresh:function(){return this.forceGraph&&this.forceGraph.refresh(),this},init:function(){const e=this.state={};e.infoEl=document.createElement("a-text"),e.infoEl.setAttribute("position","0 -0.1 -1"),e.infoEl.setAttribute("width",1),e.infoEl.setAttribute("align","center"),e.infoEl.setAttribute("color","lavender");const t=document.querySelector("a-entity[camera], a-camera");t.appendChild(e.infoEl),e.cameraObj=t.object3D.children.filter((function(e){return"PerspectiveCamera"===e.type}))[0],this.el.sceneEl.addEventListener("camera-set-active",(function(t){e.cameraObj=t.detail.cameraEl.components.camera.camera})),this.forceGraph||(this.forceGraph=new o),this.forceGraph.onFinishUpdate((()=>this.el.setObject3D("forcegraphGroup",this.forceGraph))).onLoading((()=>e.infoEl.setAttribute("value","Loading..."))).onFinishLoading((()=>e.infoEl.setAttribute("value",""))),this.el.addEventListener("raycaster-intersected",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("raycaster-intersected-cleared",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("click",(()=>e.hoverObj&&this.data["on"+("node"===e.hoverObj.__graphObjType?"Node":"Link")+"Click"](e.hoverObj.__data)))},remove:function(){this.state.infoEl.remove(),this.el.removeObject3D("forcegraphGroup")},update:function(e){const t=this,n=this.data,r=AFRAME.utils.diff(n,e);["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaMin","d3AphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].filter((function(e){return e in r})).forEach((function(e){t.forceGraph[e](""!==n[e]?n[e]:null)})),("nodes"in r||"links"in r)&&t.forceGraph.graphData({nodes:n.nodes,links:n.links})},tick:function(e,t){const n=this.state,r=this.data,o=n.hoverDetail?n.hoverDetail.getIntersection?n.hoverDetail.getIntersection(this.el):n.hoverDetail.intersection||void 0:void 0;let i=o?o.object:void 0;for(;i&&!i.hasOwnProperty("__graphObjType");)i=i.parent;if(i!==n.hoverObj){const e=n.hoverObj?n.hoverObj.__graphObjType:null,t=n.hoverObj?n.hoverObj.__data:null,o=i?i.__graphObjType:null,a=i?i.__data:null;e&&e!==o&&r["on"+("node"===e?"Node":"Link")+"Hover"](null,t),o&&r["on"+("node"===o?"Node":"Link")+"Hover"](a,e===o?t:null),n.hoverObj=i}this.forceGraph.tickFrame()}})},18869:function(e){"use strict";e.exports=function(e){if(e)throw e}},45403:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(67294),i=n(96910),a=r(n(90233)),s=r(n(37763)),c=r(n(96705)),u=n(88323),l=n(11487),d=n(46017),f=n(87409),p=n(71018),h=n(81820);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){return a(e,t,{keys:["value","label"]})}function g(e){return o.createElement(l.Text,null,o.createElement(l.Box,{as:"span"},"Create")," ",o.createElement(l.Box,{as:"span",bg:"yellow.300",fontWeight:"bold"},'"',e,'"'))}t.CUIAutoComplete=function(e){var t=e.items,n=e.optionFilterFunc,r=void 0===n?v:n,a=e.itemRenderer,y=e.highlightItemBg,b=void 0===y?"gray.100":y,E=e.placeholder,_=e.label,T=e.listStyleProps,w=e.labelStyleProps,k=e.inputStyleProps,x=e.toggleButtonStyleProps,O=e.tagStyleProps,C=e.selectedIconProps,A=e.listItemStyleProps,S=e.onCreateItem,M=e.icon,I=e.hideToggleButton,P=void 0!==I&&I,N=e.disableCreateItem,R=void 0!==N&&N,L=e.createItemRenderer,D=void 0===L?g:L,j=e.renderCustomInput,H=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["items","optionFilterFunc","itemRenderer","highlightItemBg","placeholder","label","listStyleProps","labelStyleProps","inputStyleProps","toggleButtonStyleProps","tagStyleProps","selectedIconProps","listItemStyleProps","onCreateItem","icon","hideToggleButton","disableCreateItem","createItemRenderer","renderCustomInput"]),B=o.useState(!1),F=B[0],U=B[1],z=o.useState(""),V=z[0],G=z[1],W=o.useState(t),K=W[0],q=W[1],Y=o.useRef(null),Z=i.useMultipleSelection(H),$=Z.getSelectedItemProps,X=Z.getDropdownProps,Q=Z.addSelectedItem,J=Z.removeSelectedItem,ee=Z.selectedItems,te=ee.map((function(e){return e.value})),ne=i.useCombobox({inputValue:V,selectedItem:void 0,items:K,onInputValueChange:function(e){var n=e.selectedItem,o=r(t,e.inputValue||"");F&&o.length>0&&U(!1),n||q(o)},stateReducer:function(e,t){var n=t.changes;switch(t.type){case i.useCombobox.stateChangeTypes.InputBlur:return m({},n,{isOpen:!1});case i.useCombobox.stateChangeTypes.InputKeyDownEnter:case i.useCombobox.stateChangeTypes.ItemClick:return m({},n,{highlightedIndex:e.highlightedIndex,inputValue:V,isOpen:!0});case i.useCombobox.stateChangeTypes.FunctionSelectItem:return m({},n,{inputValue:V});default:return n}},onStateChange:function(e){var n=e.inputValue,r=e.selectedItem;switch(e.type){case i.useCombobox.stateChangeTypes.InputChange:G(n||"");break;case i.useCombobox.stateChangeTypes.InputKeyDownEnter:case i.useCombobox.stateChangeTypes.ItemClick:r&&(te.includes(r.value)?J(r):S&&F?(S(r),U(!1),q(t),G("")):Q(r),fe(null))}}}),re=ne.isOpen,oe=ne.getToggleButtonProps,ie=ne.getLabelProps,ae=ne.getMenuProps,se=ne.getInputProps,ce=ne.getComboboxProps,ue=ne.highlightedIndex,le=ne.getItemProps,de=ne.openMenu,fe=ne.selectItem,pe=ne.setHighlightedIndex;return o.useEffect((function(){0!==K.length||R||(U(!0),q([{label:""+V,value:V}]),pe(0))}),[K,U,pe,V,R]),c((function(){q(t)}),[t]),o.createElement(l.Stack,null,o.createElement(u.FormLabel,Object.assign({},m({},ie({}),w)),_),ee&&o.createElement(l.Stack,{spacing:2,isInline:!0,flexWrap:"wrap"},ee.map((function(e,t){return o.createElement(h.Tag,Object.assign({mb:1},O,{key:"selected-item-"+t},$({selectedItem:e,index:t})),o.createElement(h.TagLabel,null,e.label),o.createElement(h.TagCloseButton,{onClick:function(t){t.stopPropagation(),J(e)},"aria-label":"Remove menu selection badge"}))}))),o.createElement(l.Stack,Object.assign({isInline:!0},ce()),j?j(m({},k,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:Y}))),m({},x,oe(),{ariaLabel:"toggle menu",hideToggleButton:P})):o.createElement(o.Fragment,null,o.createElement(f.Input,Object.assign({},k,se(X({placeholder:E,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:Y})))),!P&&o.createElement(d.Button,Object.assign({},x,oe(),{"aria-label":"toggle menu"}),o.createElement(p.ArrowDownIcon,null)))),o.createElement(l.Box,{pb:4,mb:4},o.createElement(l.List,Object.assign({bg:"white",borderRadius:"4px",border:re&&"1px solid rgba(0,0,0,0.1)",boxShadow:"6px 5px 8px rgba(0,50,30,0.02)"},T,ae()),re&&K.map((function(e,t){return o.createElement(l.ListItem,Object.assign({px:2,py:1,borderBottom:"1px solid rgba(0,0,0,0.01)"},A,{bg:ue===t?b:"inherit",key:""+e.value+t},le({item:e,index:t})),F?D(e.label):o.createElement(l.Box,{display:"inline-flex",alignItems:"center"},te.includes(e.value)&&o.createElement(l.ListIcon,Object.assign({as:M||p.CheckCircleIcon,color:"green.500",role:"img",display:"inline","aria-label":"Selected"},C)),a?a(e):o.createElement(s,{autoEscape:!0,searchWords:[V||""],textToHighlight:(n=e,n.label)})));var n})))))}},47647:function(e,t,n){"use strict";e.exports=n(45403)},56851:function(e,t){"use strict";t.parse=function(e){var t,n=[],r=String(e||""),o=r.indexOf(","),i=0,a=!1;for(;!a;)-1===o&&(o=r.length,a=!0),!(t=r.slice(i,o).trim())&&a||n.push(t),i=o+1,o=r.indexOf(",",i);return n},t.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",o=n.padRight?" ":"";""===e[e.length-1]&&(e=e.concat(""));return e.join(o+","+r).trim()}},20640:function(e,t,n){"use strict";var r=n(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,c,u,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),u&&document.body.removeChild(u),a()}return l}},78244:function(e,t,n){"use strict";n.r(t),n.d(t,{calculateBox:function(){return p},createBox:function(){return u},expand:function(){return a},getBox:function(){return h},getRect:function(){return i},offset:function(){return d},shrink:function(){return s},withScroll:function(){return f}});var r="Invariant failed";var o=function(e,t){if(!e)throw new Error(r)},i=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},a=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},s=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},c={top:0,right:0,bottom:0,left:0},u=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?c:n,o=e.border,u=void 0===o?c:o,l=e.padding,d=void 0===l?c:l,f=i(a(t,r)),p=i(s(t,u)),h=i(s(p,d));return{marginBox:f,borderBox:i(t),paddingBox:p,contentBox:h,margin:r,border:u,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&o(!1),n},d=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,c=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return u({borderBox:c,border:i,margin:a,padding:s})},f=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),d(e,t)},p=function(e,t){var n={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},r={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},o={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return u({borderBox:e,margin:n,padding:r,border:o})},h=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return p(t,n)}},20296:function(e){function t(e,t,n){var r,o,i,a,s;function c(){var u=Date.now()-a;u<t&&u>=0?r=setTimeout(c,t-u):(r=null,n||(s=e.apply(i,o),i=o=null))}null==t&&(t=100);var u=function(){i=this,o=arguments,a=Date.now();var u=n&&!r;return r||(r=setTimeout(c,t)),u&&(s=e.apply(i,o),i=o=null),s};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},u}t.debounce=t,e.exports=t},53879:function(e,t,n){var r=n(87236),o=n(6189),i={float:"cssFloat"},a=n(93379);function s(e,t,n){var s=i[t];if("undefined"===typeof s&&(s=function(e){var t=o(e),n=r(t);return i[t]=i[e]=i[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=a(s,n)}}function c(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}function u(){2===arguments.length?"string"===typeof arguments[1]?arguments[0].style.cssText=arguments[1]:c(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=u,e.exports.set=u,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=s(e,n||""),t}),{}):s(e,t||"")}},96910:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.r(t),n.d(t,{default:function(){return K},resetIdCounter:function(){return k},useCombobox:function(){return Re},useMultipleSelection:function(){return We},useSelect:function(){return ke}});var s=n(45697),c=n.n(s),u=n(67294);n(59864);function l(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function d(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function f(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return d(n.overflowY,t)||d(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function p(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var h=n(70655),m=0;function v(e){return"function"===typeof e?e:g}function g(){}function y(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,c="function"==typeof a?a:function(e){return e!==a};if(!l(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,d=[],h=e;l(h)&&c(h);){if((h=h.parentElement)===u){d.push(h);break}null!=h&&h===document.body&&f(h)&&!f(document.documentElement)||null!=h&&f(h,s)&&d.push(h)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),E=b.height,_=b.width,T=b.top,w=b.right,k=b.bottom,x=b.left,O="start"===o||"nearest"===o?T:"end"===o?k:T+E/2,C="center"===i?x+_/2:"end"===i?w:x,A=[],S=0;S<d.length;S++){var M=d[S],I=M.getBoundingClientRect(),P=I.height,N=I.width,R=I.top,L=I.right,D=I.bottom,j=I.left;if("if-needed"===r&&T>=0&&x>=0&&k<=v&&w<=m&&T>=R&&k<=D&&x>=j&&w<=L)return A;var H=getComputedStyle(M),B=parseInt(H.borderLeftWidth,10),F=parseInt(H.borderTopWidth,10),U=parseInt(H.borderRightWidth,10),z=parseInt(H.borderBottomWidth,10),V=0,G=0,W="offsetWidth"in M?M.offsetWidth-M.clientWidth-B-U:0,K="offsetHeight"in M?M.offsetHeight-M.clientHeight-F-z:0;if(u===M)V="start"===o?O:"end"===o?O-v:"nearest"===o?p(y,y+v,v,F,z,y+O,y+O+E,E):O-v/2,G="start"===i?C:"center"===i?C-m/2:"end"===i?C-m:p(g,g+m,m,B,U,g+C,g+C+_,_),V=Math.max(0,V+y),G=Math.max(0,G+g);else{V="start"===o?O-R-F:"end"===o?O-D+z+K:"nearest"===o?p(R,D,P,F,z+K,O,O+E,E):O-(R+P/2)+K/2,G="start"===i?C-j-B:"center"===i?C-(j+N/2)+W/2:"end"===i?C-L+U+W:p(j,L,N,B,U+W,C,C+_,_);var q=M.scrollLeft,Y=M.scrollTop;O+=Y-(V=Math.max(0,Math.min(Y+V,M.scrollHeight-P+K))),C+=q-(G=Math.max(0,Math.min(q+G,M.scrollWidth-N+W)))}A.push({el:M,top:V,left:G})}return A}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function E(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"===typeof t?t(e):t&&(t.current=e)}))}}function w(){return String(m++)}function k(){m=0}function x(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function O(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function C(e){return"string"===typeof e.type}function A(e){return e.props}var S=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function M(e){void 0===e&&(e={});var t={};return S.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function I(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=P(t,r)?t[r]:e[r],n}),{})}function P(e,t){return void 0!==e[t]}function N(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function R(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var s=L(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function L(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return o?e>0?L(1,0,n,r,!1):L(-1,n-1,n,r,!1):-1}function D(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(b(t,e,n)||r&&b(t,n.document.activeElement,n))}))}var j=E((function(e){B(e).textContent=""}),500);function H(e,t){var n=B(t);e&&(n.textContent=e,j(t))}function B(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var F=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),U=["refKey","ref"],z=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],V=["onKeyDown","onBlur","onChange","onInput","onChangeText"],G=["refKey","ref"],W=["onMouseMove","onMouseDown","onClick","onPress","index","item"],K=function(){var e=function(e){var t,n;function s(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+w(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=M(t),n.internalSetState(o({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=M(t),n.internalSetState(o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,i,a={},s="function"===typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,o({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var c=s?e(t):e;c=n.props.stateReducer(t,c),r=c.hasOwnProperty("selectedItem");var u={},l={};return r&&c.selectedItem!==t.selectedItem&&(i=c.selectedItem),c.type=c.type||0,Object.keys(c).forEach((function(e){t[e]!==c[e]&&(a[e]=c[e]),"type"!==e&&(l[e]=c[e],P(n.props,e)||(u[e]=c[e]))})),s&&c.hasOwnProperty("inputValue")&&n.props.onInputValueChange(c.inputValue,o({},n.getStateAndHelpers(),c)),u}),(function(){v(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,c=void 0===s?"ref":s,u=a.ref,l=r(a,U),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=c,n.getRootProps.suppressRefError=f;var p=n.getState().isOpen;return o(((i={})[c]=T(u,n.rootRef),i.role="combobox",i["aria-expanded"]=p,i["aria-haspopup"]="listbox",i["aria-owns"]=p?n.menuId:null,i["aria-labelledby"]=n.labelId,i),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=R(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=R(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(o({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=o({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=o({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=L(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=L(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,i=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,c=t.onBlur,u=r(t,z),l=n.getState().isOpen,d={onClick:_(i,n.buttonHandleClick),onKeyDown:_(a,n.buttonHandleKeyDown),onKeyUp:_(s,n.buttonHandleKeyUp),onBlur:_(c,n.buttonHandleBlur)};return o({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},u.disabled?{}:d,u)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=N(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(i(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return o({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,i=t.onKeyDown,a=t.onBlur,s=t.onChange,c=t.onInput;t.onChangeText;var u=r(t,V),l={};var d,f=n.getState(),p=f.inputValue,h=f.isOpen,m=f.highlightedIndex;u.disabled||((d={}).onChange=_(s,c,n.inputHandleChange),d.onKeyDown=_(i,n.inputHandleKeyDown),d.onBlur=_(a,n.inputHandleBlur),l=d);return o({"aria-autocomplete":"list","aria-activedescendant":h&&"number"===typeof m&&m>=0?n.getItemId(m):null,"aria-controls":h?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:p,id:n.inputId},l,u)},n.inputHandleKeyDown=function(e){var t=N(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(i(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,c=void 0===s?"ref":s,u=a.ref,l=r(a,G),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=c,n.getMenuProps.suppressRefError=f,o(((i={})[c]=T(u,n.menuRef),i.role="listbox",i["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,i.id=n.menuId,i),l)},n.getItemProps=function(e){var t,i=void 0===e?{}:e,a=i.onMouseMove,s=i.onMouseDown,c=i.onClick;i.onPress;var u=i.index,l=i.item,d=void 0===l?void 0:l,f=r(i,W);void 0===u?(n.items.push(d),u=n.items.indexOf(d)):n.items[u]=d;var p=c,h=((t={onMouseMove:_(a,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:_(s,(function(e){e.preventDefault()}))}).onClick=_(p,(function(){n.selectItemAtIndex(u,{type:9})})),t),m=f.disabled?{onMouseDown:h.onMouseDown}:h;return o({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},m,f)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=M(e),n.internalSetState((function(t){var r=t.selectedItem;return o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=M(e),n.internalSetState((function(t){var r=t.isOpen;return o({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"===typeof i&&n.setHighlightedIndex(i,e),v(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=E((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(o({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,H(i,n.props.environment.document)}),200);var a=n.props,s=a.defaultHighlightedIndex,c=a.initialHighlightedIndex,u=void 0===c?s:c,l=a.defaultIsOpen,d=a.initialIsOpen,f=void 0===d?l:d,p=a.initialInputValue,h=void 0===p?"":p,m=a.initialSelectedItem,g=void 0===m?null:m,y=n.getState({highlightedIndex:u,isOpen:f,inputValue:h,selectedItem:g});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var c=s.prototype;return c.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},c.getState=function(e){return void 0===e&&(e=this.state),I(e,this.props)},c.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},c.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},c.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},c.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),o=this.getState().highlightedIndex;if(r>0){var i=R(e,o,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(i,t)}},c.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,c=this.getToggleButtonProps,u=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,p=this.openMenu,h=this.closeMenu,m=this.toggleMenu,v=this.selectItem,g=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,E=this.clearSelection,_=this.clearItems;return{getRootProps:s,getToggleButtonProps:c,getLabelProps:u,getMenuProps:l,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:p,closeMenu:h,toggleMenu:m,selectItem:v,selectItemAtIndex:g,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:E,clearItems:_,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},c.componentDidMount=function(){var e=this;var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!D(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},o=function(){e.isTouchMove=!0},i=function(t){var n=D(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",o),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",o),a.removeEventListener("touchend",i)}},c.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},c.componentDidUpdate=function(e,t){P(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},c.componentWillUnmount=function(){this.cleanup()},c.render=function(){var e=O(this.props.children,g);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=O(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:C(t)?(0,u.cloneElement)(t,this.getRootProps(A(t))):void 0:null},s}(u.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:x,itemToString:function(e){return null==e?"":String(e)},onStateChange:g,onInputValueChange:g,onUserAction:g,onChange:g,onSelect:g,onOuterClick:g,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"===typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=F,e}();var q=["isInitialMount","highlightedIndex","items","environment"],Y={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Z(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,s="on"+te(e)+"Change";i[s]&&void 0!==r[e]&&r[e]!==n[e]&&i[s](o({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(o({type:i},a))}var $=E((function(e,t){H(e(),t)}),200),X="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?u.useLayoutEffect:u.useEffect;function Q(e){var t=e.id,n=void 0===t?"downshift-"+w():t,r=e.labelId,o=e.menuId,i=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,u.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"}).current}function J(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ee(e){return/^\S{1}$/.test(e)}function te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ne(e){var t=(0,u.useRef)(e);return t.current=e,t}function re(e,t,n){var r=(0,u.useRef)(),i=(0,u.useRef)(),a=(0,u.useCallback)((function(t,n){i.current=n,t=I(t,n.props);var r=e(t,n);return n.props.stateReducer(t,o({},n,{changes:r}))}),[e]),s=(0,u.useReducer)(a,t),c=s[0],l=s[1],d=ne(n),f=(0,u.useCallback)((function(e){return l(o({props:d.current},e))}),[d]),p=i.current;return(0,u.useEffect)((function(){p&&r.current&&r.current!==c&&Z(p,I(r.current,p.props),c),r.current=c}),[c,n,p]),[c,f]}function oe(e,t,n){var r=re(e,t,n),o=r[0],i=r[1];return[I(o,n),i]}var ie={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:y,circularNavigation:!1,environment:"undefined"===typeof window?{}:window};function ae(e,t,n){void 0===n&&(n=Y);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=Y),t in e)return e[t];var r="initial"+te(t);return r in e?e[r]:ae(e,t,n)}function ce(e){var t=se(e,"selectedItem"),n=se(e,"isOpen"),r=se(e,"highlightedIndex"),o=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ue(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,c=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&c===i?i:void 0!==a?a:s?0===n?o.indexOf(s):R(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function le(e,t,n,r){var o=(0,u.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,u.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!D(i.target,t.map((function(e){return e.current})),n)&&r()},s=function(){o.current.isTouchMove=!1},c=function(){o.current.isTouchMove=!0},u=function(i){!e||o.current.isTouchMove||D(i.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",c),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",c),n.removeEventListener("touchend",u)}}),[e,n]),o}var de=function(){return g};function fe(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,s=n.items,c=n.environment,l=r(n,q);(0,u.useEffect)((function(){i||$((function(){return e(o({highlightedIndex:a,highlightedItem:s[a],resultCount:s.length},l))}),c.document)}),t)}function pe(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,i=e.menuElement,a=e.scrollIntoView,s=(0,u.useRef)(!0);return X((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}var he=g;function me(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ue(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ue(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:ae(a,"highlightedIndex"),isOpen:ae(a,"isOpen"),selectedItem:ae(a,"selectedItem"),inputValue:ae(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,r)}function ve(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var c=(s+n+1)%r.length,u=r[c];if(void 0!==u&&o(u).toLowerCase().startsWith(a)){var l=i(c);if(!(null===l||void 0===l?void 0:l.hasAttribute("disabled")))return c}}return n}c().array.isRequired,c().func,c().func,c().func,c().bool,c().number,c().number,c().number,c().bool,c().bool,c().bool,c().any,c().any,c().any,c().string,c().string,c().string,c().func,c().string,c().func,c().func,c().func,c().func,c().func,c().shape({addEventListener:c().func,removeEventListener:c().func,document:c().shape({getElementById:c().func,activeElement:c().any,body:c().any})});var ge=(0,h.pi)((0,h.pi)({},ie),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),ye=g;var be=Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});function Ee(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 11:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case 15:var s=t.key,c=""+e.inputValue+s,u=ve({keysSoFar:c,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:c},u>=0&&{selectedItem:i.items[u]});break;case 13:n={highlightedIndex:ue(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ue(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=o({isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:L(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:L(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=ve({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:R(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:R(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return me(e,t,be)}return o({},e,n)}var _e=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],Te=["onClick","onKeyDown","refKey","ref"],we=["item","index","onMouseMove","onClick","refKey","ref"];function ke(e){void 0===e&&(e={}),ye(e,ke);var t=o({},ge,e),n=t.items,i=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,c=t.defaultIsOpen,l=t.itemToString,d=t.getA11ySelectionMessage,f=t.getA11yStatusMessage,p=oe(Ee,ce(t),t),h=p[0],m=p[1],v=h.isOpen,g=h.highlightedIndex,y=h.selectedItem,b=h.inputValue,w=(0,u.useRef)(null),k=(0,u.useRef)(null),x=(0,u.useRef)({}),O=(0,u.useRef)(!0),C=(0,u.useRef)(null),A=Q(t),S=(0,u.useRef)(),M=(0,u.useRef)(!0),I=ne({state:h,props:t}),P=(0,u.useCallback)((function(e){return x.current[A.getItemId(e)]}),[A]);fe(f,[v,g,b,n],o({isInitialMount:M.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h)),fe(d,[y],o({isInitialMount:M.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h));var R=pe({menuElement:k.current,highlightedIndex:g,isOpen:v,itemRefs:x,scrollIntoView:i,getItemNodeFromIndex:P});(0,u.useEffect)((function(){return C.current=E((function(e){e({type:21,inputValue:""})}),500),function(){C.current.cancel()}}),[]),(0,u.useEffect)((function(){b&&C.current(m)}),[m,b]),he({isInitialMount:M.current,props:t,state:h}),(0,u.useEffect)((function(){M.current?(s||c||v)&&k.current&&k.current.focus():v?k.current&&k.current.focus():a.document.activeElement===k.current&&w.current&&(O.current=!1,w.current.focus())}),[v]),(0,u.useEffect)((function(){M.current||(S.current=n.length)}));var L=le(v,[k,w],a,(function(){m({type:8})})),D=de();(0,u.useEffect)((function(){M.current=!1}),[]),(0,u.useEffect)((function(){v||(x.current={})}),[v]);var j=(0,u.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:13,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:14,getItemNodeFromIndex:P,shiftKey:e.shiftKey})}}}),[m,P]),H=(0,u.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:1,getItemNodeFromIndex:P,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),m({type:3,getItemNodeFromIndex:P})},End:function(e){e.preventDefault(),m({type:4,getItemNodeFromIndex:P})},Escape:function(){m({type:2})},Enter:function(e){e.preventDefault(),m({type:5})}," ":function(e){e.preventDefault(),m({type:6})}}}),[m,P]),B=(0,u.useCallback)((function(){m({type:16})}),[m]),F=(0,u.useCallback)((function(){m({type:18})}),[m]),U=(0,u.useCallback)((function(){m({type:17})}),[m]),z=(0,u.useCallback)((function(e){m({type:19,highlightedIndex:e})}),[m]),V=(0,u.useCallback)((function(e){m({type:20,selectedItem:e})}),[m]),G=(0,u.useCallback)((function(){m({type:22})}),[m]),W=(0,u.useCallback)((function(e){m({type:21,inputValue:e})}),[m]),K=(0,u.useCallback)((function(e){return o({id:A.labelId,htmlFor:A.toggleButtonId},e)}),[A]),q=(0,u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,c=void 0===s?"ref":s,u=i.onKeyDown,l=i.onBlur,d=i.ref,f=r(i,_e),p=(void 0===t?{}:t).suppressRefError,h=void 0!==p&&p,v=I.current.state;return D("getMenuProps",h,c,k),o(((n={})[c]=T(d,(function(e){k.current=e})),n.id=A.menuId,n.role="listbox",n["aria-labelledby"]=A.labelId,n.tabIndex=-1,n),v.isOpen&&v.highlightedIndex>-1&&{"aria-activedescendant":A.getItemId(v.highlightedIndex)},{onMouseLeave:_(a,(function(){m({type:9})})),onKeyDown:_(u,(function(e){var t=N(e);t&&H[t]?H[t](e):ee(t)&&m({type:7,key:t,getItemNodeFromIndex:P})})),onBlur:_(l,(function(){!1!==O.current?!L.current.isMouseDown&&m({type:8}):O.current=!0}))},f)}),[m,I,H,L,D,A,P]);return{getToggleButtonProps:(0,u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onClick,s=i.onKeyDown,c=i.refKey,u=void 0===c?"ref":c,l=i.ref,d=r(i,Te),f=(void 0===t?{}:t).suppressRefError,p=void 0!==f&&f,h=o(((n={})[u]=T(l,(function(e){w.current=e})),n.id=A.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=I.current.state.isOpen,n["aria-labelledby"]=A.labelId+" "+A.toggleButtonId,n),d);return d.disabled||(h.onClick=_(a,(function(){m({type:12})})),h.onKeyDown=_(s,(function(e){var t=N(e);t&&j[t]?j[t](e):ee(t)&&m({type:15,key:t,getItemNodeFromIndex:P})}))),D("getToggleButtonProps",p,u,w),h}),[m,I,j,D,A,P]),getLabelProps:K,getMenuProps:q,getItemProps:(0,u.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.item,a=n.index,s=n.onMouseMove,c=n.onClick,u=n.refKey,l=void 0===u?"ref":u,d=n.ref,f=r(n,we),p=I.current,h=p.state,v=p.props,g=J(a,i,v.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");var y=o(((t={role:"option","aria-selected":""+(g===h.highlightedIndex),id:A.getItemId(g)})[l]=T(d,(function(e){e&&(x.current[A.getItemId(g)]=e)})),t),f);return f.disabled||(y.onMouseMove=_(s,(function(){a!==h.highlightedIndex&&(R.current=!1,m({type:10,index:a}))})),y.onClick=_(c,(function(){m({type:11,index:a})}))),y}),[m,I,R,A]),toggleMenu:B,openMenu:U,closeMenu:F,setHighlightedIndex:z,selectItem:V,reset:G,setInputValue:W,highlightedIndex:g,isOpen:v,selectedItem:y,inputValue:b}}ke.stateChangeTypes=be;var xe=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});c().array.isRequired,c().func,c().func,c().func,c().bool,c().number,c().number,c().number,c().bool,c().bool,c().bool,c().any,c().any,c().any,c().string,c().string,c().string,c().string,c().string,c().string,c().func,c().string,c().string,c().func,c().func,c().func,c().func,c().func,c().func,c().shape({addEventListener:c().func,removeEventListener:c().func,document:c().shape({getElementById:c().func,activeElement:c().any,body:c().any})});var Oe=g;var Ce=o({},ie,{getA11yStatusMessage:x,circularNavigation:!0});function Ae(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 10:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:R(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ue(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:R(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ue(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 5:n=o({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 2:n=o({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:L(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:L(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=o({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:ae(i,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return me(e,t,xe)}return o({},e,n)}var Se=["onMouseLeave","refKey","ref"],Me=["item","index","refKey","ref","onMouseMove","onClick","onPress"],Ie=["onClick","onPress","refKey","ref"],Pe=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],Ne=["refKey","ref"];function Re(e){void 0===e&&(e={}),Oe(e,Re);var t=o({},Ce,e),n=t.initialIsOpen,i=t.defaultIsOpen,a=t.items,s=t.scrollIntoView,c=t.environment,l=t.getA11yStatusMessage,d=t.getA11ySelectionMessage,f=t.itemToString,p=function(e,t,n){var r=(0,u.useRef)(),o=re(e,t,n),i=o[0],a=o[1];return(0,u.useEffect)((function(){P(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:19,inputValue:n.itemToString(n.selectedItem)}),r.current=i.selectedItem===r.current?n.selectedItem:i.selectedItem)})),[I(i,n),a]}(Ae,function(e){var t=ce(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),o({},t,{inputValue:r})}(t),t),h=p[0],m=p[1],v=h.isOpen,g=h.highlightedIndex,y=h.selectedItem,b=h.inputValue,E=(0,u.useRef)(null),w=(0,u.useRef)({}),k=(0,u.useRef)(null),x=(0,u.useRef)(null),O=(0,u.useRef)(null),C=(0,u.useRef)(!0),A=Q(t),S=(0,u.useRef)(),M=ne({state:h,props:t}),R=(0,u.useCallback)((function(e){return w.current[A.getItemId(e)]}),[A]);fe(l,[v,g,b,a],o({isInitialMount:C.current,previousResultCount:S.current,items:a,environment:c,itemToString:f},h)),fe(d,[y],o({isInitialMount:C.current,previousResultCount:S.current,items:a,environment:c,itemToString:f},h));var L=pe({menuElement:E.current,highlightedIndex:g,isOpen:v,itemRefs:w,scrollIntoView:s,getItemNodeFromIndex:R});he({isInitialMount:C.current,props:t,state:h}),(0,u.useEffect)((function(){(n||i||v)&&k.current&&k.current.focus()}),[]),(0,u.useEffect)((function(){C.current||(S.current=a.length)}));var D=le(v,[O,E,x],c,(function(){m({type:7,selectItem:!1})})),j=de();(0,u.useEffect)((function(){C.current=!1}),[]),(0,u.useEffect)((function(){v||(w.current={})}),[v]);var H=(0,u.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:R})},ArrowUp:function(e){e.preventDefault(),m({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:R})},Home:function(e){M.current.state.isOpen&&(e.preventDefault(),m({type:3,getItemNodeFromIndex:R}))},End:function(e){M.current.state.isOpen&&(e.preventDefault(),m({type:4,getItemNodeFromIndex:R}))},Escape:function(){var e=M.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&m({type:2})},Enter:function(e){var t=M.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),m({type:5,getItemNodeFromIndex:R}))}}}),[m,M,R]),B=(0,u.useCallback)((function(e){return o({id:A.labelId,htmlFor:A.inputId},e)}),[A]),F=(0,u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,c=void 0===s?"ref":s,u=i.ref,l=r(i,Se),d=(void 0===t?{}:t).suppressRefError;return j("getMenuProps",void 0!==d&&d,c,E),o(((n={})[c]=T(u,(function(e){E.current=e})),n.id=A.menuId,n.role="listbox",n["aria-labelledby"]=A.labelId,n.onMouseLeave=_(a,(function(){m({type:8})})),n),l)}),[m,j,A]),U=(0,u.useCallback)((function(e){var t,n,i=void 0===e?{}:e,a=i.item,s=i.index,c=i.refKey,u=void 0===c?"ref":c,l=i.ref,d=i.onMouseMove,f=i.onClick;i.onPress;var p=r(i,Me),h=M.current,v=h.props,g=h.state,y=J(s,a,v.items);if(y<0)throw new Error("Pass either item or item index in getItemProps!");var b=f;return o(((t={})[u]=T(l,(function(e){e&&(w.current[A.getItemId(y)]=e)})),t.role="option",t["aria-selected"]=""+(y===g.highlightedIndex),t.id=A.getItemId(y),t),!p.disabled&&((n={onMouseMove:_(d,(function(){s!==g.highlightedIndex&&(L.current=!1,m({type:9,index:s}))}))}).onClick=_(b,(function(){m({type:10,index:s}),k.current&&k.current.focus()})),n),p)}),[m,M,L,A]),z=(0,u.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,c=n.ref,u=r(n,Ie);return o(((t={})[s]=T(c,(function(e){x.current=e})),t.id=A.toggleButtonId,t.tabIndex=-1,t),!u.disabled&&o({},{onClick:_(i,(function(){m({type:11}),!M.current.state.isOpen&&k.current&&k.current.focus()}))}),u)}),[m,M,A]),V=(0,u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onKeyDown,s=i.onChange,c=i.onInput,u=i.onBlur;i.onChangeText;var l=i.refKey,d=void 0===l?"ref":l,f=i.ref,p=r(i,Pe),h=(void 0===t?{}:t).suppressRefError;j("getInputProps",void 0!==h&&h,d,k);var v,g=M.current.state,y={};p.disabled||((v={}).onChange=_(s,c,(function(e){m({type:6,inputValue:e.target.value})})),v.onKeyDown=_(a,(function(e){var t=N(e);t&&H[t]&&H[t](e)})),v.onBlur=_(u,(function(){g.isOpen&&!D.current.isMouseDown&&m({type:7,selectItem:!0})})),y=v);return o(((n={})[d]=T(f,(function(e){k.current=e})),n.id=A.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=A.menuId,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":A.getItemId(g.highlightedIndex)},{"aria-labelledby":A.labelId,autoComplete:"off",value:g.inputValue},y,p)}),[m,H,M,D,j,A]),G=(0,u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.refKey,s=void 0===a?"ref":a,c=i.ref,u=r(i,Ne),l=(void 0===t?{}:t).suppressRefError;return j("getComboboxProps",void 0!==l&&l,s,O),o(((n={})[s]=T(c,(function(e){O.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=A.menuId,n["aria-expanded"]=M.current.state.isOpen,n),u)}),[M,j,A]),W=(0,u.useCallback)((function(){m({type:12})}),[m]),K=(0,u.useCallback)((function(){m({type:14})}),[m]),q=(0,u.useCallback)((function(){m({type:13})}),[m]),Y=(0,u.useCallback)((function(e){m({type:15,highlightedIndex:e})}),[m]),Z=(0,u.useCallback)((function(e){m({type:16,selectedItem:e})}),[m]);return{getItemProps:U,getLabelProps:B,getMenuProps:F,getInputProps:V,getComboboxProps:G,getToggleButtonProps:z,toggleMenu:W,openMenu:q,closeMenu:K,setHighlightedIndex:Y,setInputValue:(0,u.useCallback)((function(e){m({type:17,inputValue:e})}),[m]),selectItem:Z,reset:(0,u.useCallback)((function(){m({type:18})}),[m]),highlightedIndex:g,isOpen:v,selectedItem:y,inputValue:b}}Re.stateChangeTypes=xe;var Le={activeIndex:-1,selectedItems:[]};function De(e,t){return se(e,t,Le)}function je(e,t){return ae(e,t,Le)}function He(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value)||0===t.selectionStart&&0===t.selectionEnd}c().array,c().array,c().array,c().func,c().func,c().func,c().number,c().number,c().number,c().func,c().func,c().string,c().string,c().shape({addEventListener:c().func,removeEventListener:c().func,document:c().shape({getElementById:c().func,activeElement:c().any,body:c().any})});var Be={itemToString:ie.itemToString,stateReducer:ie.stateReducer,environment:ie.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Fe=g;var Ue=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function ze(e,t){var n,r=t.type,i=t.index,a=t.props,s=t.selectedItem,c=e.activeIndex,u=e.selectedItems;switch(r){case 0:n={activeIndex:i};break;case 4:n={activeIndex:c-1<0?0:c-1};break;case 3:n={activeIndex:c+1>=u.length?-1:c+1};break;case 2:case 1:var l=c;1===u.length?l=-1:c===u.length-1&&(l=u.length-2),n=o({selectedItems:[].concat(u.slice(0,c),u.slice(c+1))},{activeIndex:l});break;case 5:n={activeIndex:u.length-1};break;case 6:n={selectedItems:u.slice(0,u.length-1)};break;case 8:n={selectedItems:[].concat(u,[s])};break;case 7:n={activeIndex:-1};break;case 9:var d=c,f=u.indexOf(s);1===u.length?d=-1:f===u.length-1&&(d=u.length-2),n=o({selectedItems:[].concat(u.slice(0,f),u.slice(f+1))},{activeIndex:d});break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:je(a,"activeIndex"),selectedItems:je(a,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,n)}var Ve=["refKey","ref","onClick","onKeyDown","selectedItem","index"],Ge=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function We(e){void 0===e&&(e={}),Fe(e,We);var t=o({},Be,e),n=t.getA11yRemovalMessage,i=t.itemToString,a=t.environment,s=t.keyNavigationNext,c=t.keyNavigationPrevious,l=oe(ze,function(e){return{activeIndex:De(e,"activeIndex"),selectedItems:De(e,"selectedItems")}}(t),t),d=l[0],f=l[1],p=d.activeIndex,h=d.selectedItems,m=(0,u.useRef)(!0),v=(0,u.useRef)(null),g=(0,u.useRef)(h),y=(0,u.useRef)();y.current=[];var b=ne({state:d,props:t});(0,u.useEffect)((function(){if(!m.current){if(h.length<g.current.length){var e=g.current.find((function(e){return h.indexOf(e)<0}));H(n({itemToString:i,resultCount:h.length,removedSelectedItem:e,activeIndex:p,activeSelectedItem:h[p]}),a.document)}g.current=h}}),[h.length]),(0,u.useEffect)((function(){m.current||(-1===p&&v.current?v.current.focus():y.current[p]&&y.current[p].focus())}),[p]),he({isInitialMount:m.current,props:t,state:d});var E=de();(0,u.useEffect)((function(){m.current=!1}),[]);var w=(0,u.useMemo)((function(){var e;return(e={})[c]=function(){f({type:4})},e[s]=function(){f({type:3})},e.Delete=function(){f({type:1})},e.Backspace=function(){f({type:2})},e}),[f,s,c]),k=(0,u.useMemo)((function(){var e;return(e={})[c]=function(e){He(e)&&f({type:5})},e.Backspace=function(e){He(e)&&f({type:6})},e}),[f,c]);return{getSelectedItemProps:(0,u.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.refKey,a=void 0===i?"ref":i,s=n.ref,c=n.onClick,u=n.onKeyDown,l=n.selectedItem,d=n.index,p=r(n,Ve),h=b.current.state;if(J(d,l,h.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return o(((t={})[a]=T(s,(function(e){e&&y.current.push(e)})),t.tabIndex=d===h.activeIndex?0:-1,t.onClick=_(c,(function(){f({type:0,index:d})})),t.onKeyDown=_(u,(function(e){var t=N(e);t&&w[t]&&w[t](e)})),t),p)}),[f,b,w]),getDropdownProps:(0,u.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.refKey,s=void 0===a?"ref":a,c=i.ref,u=i.onKeyDown,l=i.onClick,d=i.preventKeyAction,p=void 0!==d&&d,h=r(i,Ge),m=(void 0===t?{}:t).suppressRefError;E("getDropdownProps",void 0!==m&&m,s,v);return o(((n={})[s]=T(c,(function(e){e&&(v.current=e)})),n),!p&&{onKeyDown:_(u,(function(e){var t=N(e);t&&k[t]&&k[t](e)})),onClick:_(l,(function(){f({type:7})}))},h)}),[f,k,E]),addSelectedItem:(0,u.useCallback)((function(e){f({type:8,selectedItem:e})}),[f]),removeSelectedItem:(0,u.useCallback)((function(e){f({type:9,selectedItem:e})}),[f]),setSelectedItems:(0,u.useCallback)((function(e){f({type:10,selectedItems:e})}),[f]),setActiveIndex:(0,u.useCallback)((function(e){f({type:11,activeIndex:e})}),[f]),reset:(0,u.useCallback)((function(){f({type:12})}),[f]),selectedItems:h,activeIndex:p}}We.stateChangeTypes=Ue},94470:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,l,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=c(d,n),d!==(o=c(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,l=r&&i(r)?r:[]):l=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,l,o)})):"undefined"!==typeof o&&s(d,{name:n,newValue:o}));return d}},38252:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},53869:function(e,t,n){"use strict";n.d(t,{M:function(){return h}});var r=n(81439),o=n(67294),i=n(6717);var a=n(8626),s=n(45930),c=0;function u(){var e=c;return c++,e}var l=function(e){var t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,c=e.custom,l=e.presenceAffectsLayout,f=(0,s.h)(d),p=(0,s.h)(u),h=(0,o.useMemo)((function(){return{id:p,initial:n,isPresent:r,custom:c,onExitComplete:function(e){f.set(e,!0);var t=!0;f.forEach((function(e){e||(t=!1)})),t&&(null===i||void 0===i||i())},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}}),l?void 0:[r]);return(0,o.useMemo)((function(){f.forEach((function(e,t){return f.set(t,!1)}))}),[r]),o.useEffect((function(){!r&&!f.size&&(null===i||void 0===i||i())}),[r]),o.createElement(a.O.Provider,{value:h},t)};function d(){return new Map}var f=n(49870);function p(e){return e.key||""}var h=function(e){var t=e.children,n=e.custom,a=e.initial,s=void 0===a||a,c=e.onExitComplete,u=e.exitBeforeEnter,d=e.presenceAffectsLayout,h=void 0===d||d,m=function(){var e=(0,o.useRef)(!1),t=(0,r.CR)((0,o.useState)(0),2),n=t[0],a=t[1];return(0,i.z)((function(){return e.current=!0})),(0,o.useCallback)((function(){!e.current&&a(n+1)}),[n])}(),v=(0,o.useContext)(f.WH);(0,f.Md)(v)&&(m=v.forceUpdate);var g=(0,o.useRef)(!0),y=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),b=(0,o.useRef)(y),E=(0,o.useRef)(new Map).current,_=(0,o.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=p(e);t.set(n,e)}))}(y,E),g.current)return g.current=!1,o.createElement(o.Fragment,null,y.map((function(e){return o.createElement(l,{key:p(e),isPresent:!0,initial:!!s&&void 0,presenceAffectsLayout:h},e)})));for(var T=(0,r.ev)([],(0,r.CR)(y)),w=b.current.map(p),k=y.map(p),x=w.length,O=0;O<x;O++){var C=w[O];-1===k.indexOf(C)?_.add(C):_.delete(C)}return u&&_.size&&(T=[]),_.forEach((function(e){if(-1===k.indexOf(e)){var t=E.get(e);if(t){var r=w.indexOf(e);T.splice(r,0,o.createElement(l,{key:p(t),isPresent:!1,onExitComplete:function(){E.delete(e),_.delete(e);var t=b.current.findIndex((function(t){return t.key===e}));b.current.splice(t,1),_.size||(b.current=y,m(),c&&c())},custom:n,presenceAffectsLayout:h},t))}}})),T=T.map((function(e){var t=e.key;return _.has(t)?e:o.createElement(l,{key:p(e),isPresent:!0,presenceAffectsLayout:h},e)})),b.current=T,o.createElement(o.Fragment,null,_.size?T:T.map((function(e){return(0,o.cloneElement)(e)})))}},69283:function(e,t,n){"use strict";n.d(t,{EN:function(){return s},oO:function(){return a}});var r=n(67294),o=n(8626),i=n(45930);function a(){var e=(0,r.useContext)(o.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,i=e.register,a=l();(0,r.useEffect)((function(){return i(a)}),[]);return!t&&n?[!1,function(){return null===n||void 0===n?void 0:n(a)}]:[!0]}function s(e){return null===e||e.isPresent}var c=0,u=function(){return c++},l=function(){return(0,i.h)(u)}},7646:function(e,t,n){"use strict";var r,o;n.d(t,{z:function(){return r},c:function(){return o}}),function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(r||(r={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(o||(o={}))},8626:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(67294).createContext)(null)},49870:function(e,t,n){"use strict";n.d(t,{bg:function(){return h},WH:function(){return p},Md:function(){return m}});var r=n(67294),o=n(81439),i=n(9839),a=n(58839),s=n(27565),c=n(519),u=n(7646),l={layoutReady:function(e){return e.notifyLayoutReady()}};function d(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?l:t,r=n.layoutReady,d=n.parent;(0,s.U)((function(t,n){var s=Array.from(e).sort(c._),l=d?(0,a.kv)(d):[];n((function(){(0,o.ev)((0,o.ev)([],(0,o.CR)(l)),(0,o.CR)(s)).forEach((function(e){return e.resetTransform()}))})),t((function(){s.forEach(a.de)})),n((function(){l.forEach((function(e){return e.restoreTransform()})),s.forEach(r)})),t((function(){s.forEach((function(e){e.isPresent&&(e.presence=u.z.Present)}))})),n((function(){i.iW.preRender(),i.iW.render()})),t((function(){i.ZP.postRender((function(){return s.forEach(f)})),e.clear()}))})),(0,s.R)()}}}function f(e){e.prevViewportBox=e.projection.target}var p=(0,r.createContext)(d()),h=(0,r.createContext)(d());function m(e){return!!e.forceUpdate}},39629:function(e,t,n){"use strict";n.d(t,{E:function(){return Ti}});var r=n(81439),o=n(67294),i=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},a={measureLayout:i(["layout","layoutId","drag","_layoutResetTransform"]),animation:i(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag"]),exit:i(["exit"]),drag:i(["drag","dragControls"]),focus:i(["whileFocus"]),hover:i(["whileHover","onHoverStart","onHoverEnd"]),tap:i(["whileTap","onTap","onTapStart","onTapCancel"]),pan:i(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),layoutAnimation:i(["layout","layoutId"])};var s=(0,o.createContext)({strict:!1}),c=Object.keys(a),u=c.length;var l=(0,o.createContext)({transformPagePoint:function(e){return e},isStatic:!1}),d=(0,o.createContext)({});var f=n(8626),p=n(69283),h=(0,o.createContext)(null),m="undefined"!==typeof window,v=m?o.useLayoutEffect:o.useEffect;function g(e,t,n,i){var a=(0,o.useContext)(l),c=(0,o.useContext)(s),u=(0,o.useContext)(d).visualElement,m=(0,o.useContext)(f.O),g=function(e){var t=e.layoutId,n=(0,o.useContext)(h);return n&&void 0!==t?n+"-"+t:t}(n),y=(0,o.useRef)(void 0);i||(i=c.renderer),!y.current&&i&&(y.current=i(e,{visualState:t,parent:u,props:(0,r.pi)((0,r.pi)({},n),{layoutId:g}),presenceId:null===m||void 0===m?void 0:m.id,blockInitialAnimation:!1===(null===m||void 0===m?void 0:m.initial)}));var b=y.current;return v((function(){b&&(b.setProps((0,r.pi)((0,r.pi)((0,r.pi)({},a),n),{layoutId:g})),b.isPresent=(0,p.EN)(m),b.isPresenceRoot=!u||u.presenceId!==(null===m||void 0===m?void 0:m.id),b.syncRender())})),(0,o.useEffect)((function(){var e;b&&(null===(e=b.animationState)||void 0===e||e.animateChanges())})),v((function(){return function(){return null===b||void 0===b?void 0:b.notifyUnmount()}}),[]),b}function y(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function b(e){return Array.isArray(e)}function E(e){return"string"===typeof e||b(e)}function _(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"string"===typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"===typeof t?t(null!==n&&void 0!==n?n:e.custom,r,o):t}function T(e,t,n){var r=e.getProps();return _(r,t,null!==n&&void 0!==n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function w(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||E(e.initial)||E(e.animate)||E(e.whileHover)||E(e.whileDrag)||E(e.whileTap)||E(e.whileFocus)||E(e.exit)}function k(e){return Boolean(w(e)||e.variants)}function x(e,t){var n=function(e,t){if(w(e)){var n=e.initial,r=e.animate;return{initial:!1===n||E(n)?n:void 0,animate:E(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(d)),r=n.initial,i=n.animate;return(0,o.useMemo)((function(){return{initial:r,animate:i}}),t?[O(r),O(i)]:[])}function O(e){return Array.isArray(e)?e.join(" "):e}function C(e){var t=e.preloadedFeatures,n=e.createVisualElement,i=e.useRender,f=e.useVisualState,p=e.Component;return t&&function(e){for(var t in e){var n=e[t];null!==n&&(a[t].Component=n)}}(t),(0,o.forwardRef)((function(e,t){var h=(0,o.useContext)(l).isStatic,v=null,b=x(e,h),E=f(e,h);return!h&&m&&(b.visualElement=g(p,E,e,n),v=function(e,t,n){var i=[];if((0,o.useContext)(s),!t)return null;for(var l=0;l<u;l++){var d=c[l],f=a[d],p=f.isEnabled,h=f.Component;p(e)&&h&&i.push(o.createElement(h,(0,r.pi)({key:d},e,{visualElement:t})))}return i}(e,b.visualElement)),o.createElement(o.Fragment,null,o.createElement(d.Provider,{value:b},i(p,e,function(e,t,n){return(0,o.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):y(n)&&(n.current=r))}),[t])}(E,b.visualElement,t),E,h)),v)}))}function A(e){function t(t,n){return void 0===n&&(n={}),C(e(t,n))}var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var S=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function M(e){return"string"===typeof e&&!e.includes("-")&&!!(S.indexOf(e)>-1||/[A-Z]/.test(e))}var I={};var P=["","X","Y","Z"],N=["transformPerspective","x","y","z"];function R(e,t){return N.indexOf(e)-N.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return P.forEach((function(t){return N.push(e+t)}))}));var L=new Set(N);function D(e){return L.has(e)}var j=new Set(["originX","originY","originZ"]);function H(e){return j.has(e)}function B(e,t){var n=t.layout,r=t.layoutId;return D(e)||H(e)||(n||void 0!==r)&&(!!I[e]||"opacity"===e)}var F=function(e){return null!==e&&"object"===typeof e&&e.getVelocity},U={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function z(e){return e.startsWith("--")}var V=function(e,t){return t&&"number"===typeof e?t.transform(e):e};var G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.create;Object.create;var W=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},K=function(e){return e%1?Number(e.toFixed(5)):e},q=/(-)?([\d]*\.?[\d])+/g,Y=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Z=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function $(e){return"string"===typeof e}var X=function(e){return{test:function(t){return $(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},Q=X("deg"),J=X("%"),ee=X("px"),te=X("vh"),ne=X("vw"),re=G(G({},J),{parse:function(e){return J.parse(e)/100},transform:function(e){return J.transform(100*e)}}),oe={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},ie=G(G({},oe),{transform:W(0,1)}),ae=G(G({},oe),{default:1}),se=(0,r.pi)((0,r.pi)({},oe),{transform:Math.round}),ce={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,size:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:ae,scaleX:ae,scaleY:ae,scaleZ:ae,skew:Q,skewX:Q,skewY:Q,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:ie,originX:re,originY:re,originZ:ee,zIndex:se,fillOpacity:ie,strokeOpacity:ie,numOctaves:se};function ue(e,t,n,r,o,i,a,s){var c,u=e.style,l=e.vars,d=e.transform,f=e.transformKeys,p=e.transformOrigin;f.length=0;var h=!1,m=!1,v=!0;for(var g in t){var y=t[g];if(z(g))l[g]=y;else{var b=ce[g],E=V(y,b);if(D(g)){if(h=!0,d[g]=E,f.push(g),!v)continue;y!==(null!==(c=b.default)&&void 0!==c?c:0)&&(v=!1)}else if(H(g))p[g]=E,m=!0;else if((null===n||void 0===n?void 0:n.isHydrated)&&(null===r||void 0===r?void 0:r.isHydrated)&&I[g]){var _=I[g].process(y,r,n),T=I[g].applyTo;if(T)for(var w=T.length,k=0;k<w;k++)u[T[k]]=_;else u[g]=_}else u[g]=E}}r&&n&&a&&s?(u.transform=a(r.deltaFinal,r.treeScale,h?d:void 0),i&&(u.transform=i(d,u.transform)),u.transformOrigin=s(r)):(h&&(u.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,c=t.allowTransformNone,u=void 0===c||c,l="";i.sort(R);for(var d=!1,f=i.length,p=0;p<f;p++){var h=i[p];l+=(U[h]||h)+"("+o[h]+") ","z"===h&&(d=!0)}return!d&&s?l+="translateZ(0)":l=l.trim(),r?l=r(o,n?"":l):u&&n&&(l="none"),l}(e,o,v,i)),m&&(u.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ;return n+" "+o+" "+(void 0===i?0:i)}(p)))}var le=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function de(e,t,n){for(var r in t)F(t[r])||B(r,n)||(e[r]=t[r])}function fe(e,t,n){var i={};return de(i,e.style||{},e),Object.assign(i,function(e,t,n){var i=e.transformTemplate;return(0,o.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ue(e,t,void 0,void 0,{enableHardwareAcceleration:!n},i);var o=e.vars,a=e.style;return(0,r.pi)((0,r.pi)({},o),a)}),[t])}(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function pe(e,t,n){var r={},o=fe(e,t,n);return Boolean(e.drag)&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),r.style=o,r}var he=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","_layoutResetTransform","onLayoutAnimationComplete","onViewportBoxUpdate","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover"]);function me(e){return he.has(e)}var ve=function(e){return!me(e)};try{var ge=n(64910).Z;ve=function(e){return e.startsWith("on")?!me(e):ge(e)}}catch(wi){}function ye(e,t,n){return"string"===typeof e?e:ee.transform(t+n*e)}var be=function(e,t){return ee.transform(e*t)},Ee={offset:"stroke-dashoffset",array:"stroke-dasharray"},_e={offset:"strokeDashoffset",array:"strokeDasharray"};function Te(e,t,n,o,i,a,s,c){var u=t.attrX,l=t.attrY,d=t.originX,f=t.originY,p=t.pathLength,h=t.pathSpacing,m=void 0===h?1:h,v=t.pathOffset,g=void 0===v?0:v;ue(e,(0,r._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,o,i,a,s,c),e.attrs=e.style,e.style={};var y=e.attrs,b=e.style,E=e.dimensions,_=e.totalPathLength;y.transform&&(E&&(b.transform=y.transform),delete y.transform),E&&(void 0!==d||void 0!==f||b.transform)&&(b.transformOrigin=function(e,t,n){return ye(t,e.x,e.width)+" "+ye(n,e.y,e.height)}(E,void 0!==d?d:.5,void 0!==f?f:.5)),void 0!==u&&(y.x=u),void 0!==l&&(y.y=l),void 0!==_&&void 0!==p&&function(e,t,n,r,o,i){void 0===r&&(r=1),void 0===o&&(o=0),void 0===i&&(i=!0);var a=i?Ee:_e;e[a.offset]=be(-o,t);var s=be(n,t),c=be(r,t);e[a.array]=s+" "+c}(y,_,p,m,g,!1)}var we=function(){return(0,r.pi)((0,r.pi)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ke(e,t){var n=(0,o.useMemo)((function(){var n=we();return Te(n,t,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),(0,r.pi)((0,r.pi)({},n.attrs),{style:(0,r.pi)({},n.style)})}),[t]);if(e.style){var i={};de(i,e.style,e),n.style=(0,r.pi)((0,r.pi)({},i),n.style)}return n}function xe(e){void 0===e&&(e=!1);return function(t,n,i,a,s){var c=a.latestValues,u=(M(t)?ke:pe)(n,c,s),l=function(e,t,n){var r={};for(var o in e)(ve(o)||!0===n&&me(o)||!t&&!me(o))&&(r[o]=e[o]);return r}(n,"string"===typeof t,e),d=(0,r.pi)((0,r.pi)((0,r.pi)({},l),u),{ref:i});return(0,o.createElement)(t,d)}}var Oe=/([a-z])([A-Z])/g,Ce=function(e){return e.replace(Oe,"$1-$2").toLowerCase()};function Ae(e,t){var n=t.style,r=t.vars;for(var o in Object.assign(e.style,n),r)e.style.setProperty(o,r[o])}var Se=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform"]);function Me(e,t){for(var n in Ae(e,t),t.attrs)e.setAttribute(Se.has(n)?n:Ce(n),t.attrs[n])}function Ie(e){var t=e.style,n={};for(var r in t)(F(t[r])||B(r,e))&&(n[r]=t[r]);return n}function Pe(e){var t=Ie(e);for(var n in e){if(F(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function Ne(e){return"object"===typeof e&&"function"===typeof e.start}var Re=n(45930),Le=function(e){return Array.isArray(e)};function De(e){var t,n=F(e)?e.get():e;return t=n,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?n.toValue():n}function je(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Be(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var He=function(e){return function(t,n){var r=(0,o.useContext)(d),i=(0,o.useContext)(f.O);return n?je(e,t,r,i):(0,Re.h)((function(){return je(e,t,r,i)}))}};function Be(e,t,n,o){var i={},a=!1===(null===n||void 0===n?void 0:n.initial),s=o(e);for(var c in s)i[c]=De(s[c]);var u=e.initial,l=e.animate,d=w(e),f=k(e);t&&f&&!d&&!1!==e.inherit&&(null!==u&&void 0!==u||(u=t.initial),null!==l&&void 0!==l||(l=t.animate));var p=a||!1===u?l:u;p&&"boolean"!==typeof p&&!Ne(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=_(e,t);if(n){var o=n.transitionEnd;n.transition;var a=(0,r._T)(n,["transitionEnd","transition"]);for(var s in a)i[s]=a[s];for(var s in o)i[s]=o[s]}}));return i}var Fe={useVisualState:He({scrapeMotionValuesFromProps:Pe,createRenderState:we,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}"path"===t.tagName&&(r.totalPathLength=t.getTotalLength()),Te(r,o,void 0,void 0,{enableHardwareAcceleration:!1},e.transformTemplate),Me(t,r)}})};var Ue,ze={useVisualState:He({scrapeMotionValuesFromProps:Ie,createRenderState:le})};function Ve(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ge(e,t,n,r){(0,o.useEffect)((function(){var o=e.current;if(n&&o)return Ve(o,t,n,r)}),[e,t,n,r])}function We(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Ke(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.Exit="exit"}(Ue||(Ue={}));var qe={pageX:0,pageY:0};function Ye(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||qe;return{x:n[t+"X"],y:n[t+"Y"]}}function Ze(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function $e(e,t){return void 0===t&&(t="page"),{point:Ke(e)?Ye(e,t):Ze(e,t)}}var Xe=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,$e(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},Qe={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Je={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function et(e){return m&&null===window.onpointerdown?e:m&&null===window.ontouchstart?Je[e]:m&&null===window.onmousedown?Qe[e]:e}function tt(e,t,n,r){return Ve(e,et(t),Xe(n,"pointerdown"===t),r)}function nt(e,t,n,r){return Ge(e,et(t),n&&Xe(n,"pointerdown"===t),r)}function rt(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ot=rt("dragHorizontal"),it=rt("dragVertical");function at(e){var t=!1;if("y"===e)t=it();else if("x"===e)t=ot();else{var n=ot(),r=it();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function st(){var e=at(!0);return!e||(e(),!1)}function ct(e,t,n){return function(r,o){var i;We(r)&&!st()&&(null===n||void 0===n||n(r,o),null===(i=e.animationState)||void 0===i||i.setActive(Ue.Hover,t))}}var ut=function(e,t){return!!t&&(e===t||ut(e,t.parentElement))},lt=n(6717),dt=function(e,t){return function(n){return t(e(n))}},ft=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(dt)};var pt=function(e){return function(t){return e(t),null}},ht={tap:pt((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,a=e.visualElement,s=t||n||r||i,c=(0,o.useRef)(!1),u=(0,o.useRef)(null);function l(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return l(),c.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Ue.Tap,!1),!st()}function f(e,n){d()&&(ut(a.getInstance(),e.target)?null===t||void 0===t||t(e,n):null===r||void 0===r||r(e,n))}function p(e,t){d()&&(null===r||void 0===r||r(e,t))}nt(a,"pointerdown",s?function(e,t){var r;l(),c.current||(c.current=!0,u.current=ft(tt(window,"pointerup",f),tt(window,"pointercancel",p)),null===n||void 0===n||n(e,t),null===(r=a.animationState)||void 0===r||r.setActive(Ue.Tap,!0))}:void 0),(0,lt.z)(l)})),focus:pt((function(e){var t=e.whileFocus,n=e.visualElement;Ge(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ue.Focus,!0)}:void 0),Ge(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ue.Focus,!1)}:void 0)})),hover:pt((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;nt(o,"pointerenter",t||r?ct(o,!0,t):void 0),nt(o,"pointerleave",n||r?ct(o,!1,n):void 0)}))};function mt(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var vt=function(){return(vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function gt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;var yt=function(e,t,n){return Math.min(Math.max(n,e),t)},bt=.001;function Et(e){var t,n,r=e.duration,o=void 0===r?800:r,i=e.bounce,a=void 0===i?.25:i,s=e.velocity,c=void 0===s?0:s,u=e.mass,l=void 0===u?1:u,d=1-a;d=yt(.05,1,d),o=yt(.01,10,o/1e3),d<1?(t=function(e){var t=e*d,n=t*o,r=t-c,i=_t(e,d),a=Math.exp(-n);return bt-r/i*a},n=function(e){var n=e*d*o,r=n*c+c,i=Math.pow(d,2)*Math.pow(e,2)*o,a=Math.exp(-n),s=_t(Math.pow(e,2),d);return(-t(e)+bt>0?-1:1)*((r-i)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-c)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(c-e))});var f=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var p=Math.pow(f,2)*l;return{stiffness:p,damping:2*d*Math.sqrt(l*p),duration:o}}function _t(e,t){return e*Math.sqrt(1-t*t)}var Tt=["duration","bounce"],wt=["stiffness","damping","mass"];function kt(e,t){return t.some((function(t){return void 0!==e[t]}))}function xt(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.restSpeed,a=void 0===i?2:i,s=e.restDelta,c=gt(e,["from","to","restSpeed","restDelta"]),u={done:!1,value:n},l=function(e){var t=vt({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!kt(e,wt)&&kt(e,Tt)){var n=Et(e);(t=vt(vt(vt({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(c),d=l.stiffness,f=l.damping,p=l.mass,h=l.velocity,m=l.duration,v=l.isResolvedFromDuration,g=Ot,y=Ot;function b(){var e=h?-h/1e3:0,t=o-n,r=f/(2*Math.sqrt(d*p)),i=Math.sqrt(d/p)/1e3;if(null!==s&&void 0!==s||(s=Math.abs(o-n)<=1?.01:.4),r<1){var a=_t(i,r);g=function(n){var s=Math.exp(-r*i*n);return o-s*((e+r*i*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},y=function(n){var o=Math.exp(-r*i*n);return r*i*o*(Math.sin(a*n)*(e+r*i*t)/a+t*Math.cos(a*n))-o*(Math.cos(a*n)*(e+r*i*t)-a*t*Math.sin(a*n))}}else if(1===r)g=function(n){return o-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var c=i*Math.sqrt(r*r-1);g=function(n){var a=Math.exp(-r*i*n),s=Math.min(c*n,300);return o-a*((e+r*i*t)*Math.sinh(s)+c*t*Math.cosh(s))/c}}}return b(),{next:function(e){var t=g(e);if(v)u.done=e>=m;else{var n=1e3*y(e),r=Math.abs(n)<=a,i=Math.abs(o-t)<=s;u.done=r&&i}return u.value=u.done?o:t,u},flipTarget:function(){var e;h=-h,n=(e=[o,n])[0],o=e[1],b()}}}xt.needsInterpolation=function(e,t){return"string"===typeof e||"string"===typeof t};var Ot=function(e){return 0},Ct=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},At=function(e,t,n){return-n*e+n*t+e},St=function(e,t){return function(n){return Boolean($(n)&&Z.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Mt=function(e,t,n){return function(r){var o;if(!$(r))return r;var i=r.match(q),a=i[0],s=i[1],c=i[2],u=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[n]=parseFloat(c),o.alpha=void 0!==u?parseFloat(u):1,o}},It=W(0,255),Pt=G(G({},oe),{transform:function(e){return Math.round(It(e))}}),Nt={test:St("rgb","red"),parse:Mt("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+Pt.transform(t)+", "+Pt.transform(n)+", "+Pt.transform(r)+", "+K(ie.transform(i))+")"}};var Rt={test:St("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Nt.transform},Lt={test:St("hsl","hue"),parse:Mt("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,i=void 0===o?1:o;return"hsla("+Math.round(t)+", "+J.transform(K(n))+", "+J.transform(K(r))+", "+K(ie.transform(i))+")"}},Dt=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},jt=[Rt,Nt,Lt],Ht=function(e){return jt.find((function(t){return t.test(e)}))},Bt=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Ft=function(e,t){var n=Ht(e),r=Ht(t);Bt(e),Bt(t),n.transform,r.transform;var o=n.parse(e),i=r.parse(t),a=vt({},o),s=n===Lt?At:Dt;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=At(o.alpha,i.alpha,e),n.transform(a)}},Ut={test:function(e){return Nt.test(e)||Rt.test(e)||Lt.test(e)},parse:function(e){return Nt.test(e)?Nt.parse(e):Lt.test(e)?Lt.parse(e):Rt.parse(e)},transform:function(e){return $(e)?e:e.hasOwnProperty("red")?Nt.transform(e):Lt.transform(e)}},zt="${c}",Vt="${n}";function Gt(e){var t=[],n=0,r=e.match(Y);r&&(n=r.length,e=e.replace(Y,zt),t.push.apply(t,r.map(Ut.parse)));var o=e.match(q);return o&&(e=e.replace(q,Vt),t.push.apply(t,o.map(oe.parse))),{values:t,numColors:n,tokenised:e}}function Wt(e){return Gt(e).values}function Kt(e){var t=Gt(e),n=t.values,r=t.numColors,o=t.tokenised,i=n.length;return function(e){for(var t=o,n=0;n<i;n++)t=t.replace(n<r?zt:Vt,n<r?Ut.transform(e[n]):K(e[n]));return t}}var qt=function(e){return"number"===typeof e?0:e};var Yt={test:function(e){var t,n,r,o;return isNaN(e)&&$(e)&&(null!==(n=null===(t=e.match(q))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(Y))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:Wt,createTransformer:Kt,getAnimatableNone:function(e){var t=Wt(e);return Kt(e)(t.map(qt))}},Zt=function(e){return"number"===typeof e};function $t(e,t){return Zt(e)?function(n){return At(e,t,n)}:Ut.test(e)?Ft(e,t):en(e,t)}var Xt=function(e,t){var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}([],e),r=n.length,o=e.map((function(e,n){return $t(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=o[t](e);return n}},Qt=function(e,t){var n=vt(vt({},e),t),r={};for(var o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=$t(e[o],t[o]));return function(e){for(var t in r)n[t]=r[t](e);return n}};function Jt(e){for(var t=Yt.parse(e),n=t.length,r=0,o=0,i=0,a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}var en=function(e,t){var n=Yt.createTransformer(t),r=Jt(e),o=Jt(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&(r.numNumbers,o.numNumbers),ft(Xt(r.parsed,o.parsed),n)},tn=function(e,t){return function(n){return At(e,t,n)}};function nn(e,t,n){for(var r,o=[],i=n||("number"===typeof(r=e[0])?tn:"string"===typeof r?Ut.test(r)?Ft:en:Array.isArray(r)?Xt:"object"===typeof r?Qt:void 0),a=e.length-1,s=0;s<a;s++){var c=i(e[s],e[s+1]);if(t){var u=Array.isArray(t)?t[s]:t;c=ft(u,c)}o.push(c)}return o}function rn(e,t,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,a=r.ease,s=r.mixer,c=e.length;t.length,!a||!Array.isArray(a)||a.length,e[0]>e[c-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var u=nn(t,a,s),l=2===c?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(Ct(n,r,e))}}(e,u):function(e,t){var n=e.length,r=n-1;return function(o){var i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){for(var s=1;s<n&&!(e[s]>o||s===r);s++);i=s-1}var c=Ct(e[i],e[i+1],o);return t[i](c)}}(e,u);return i?function(t){return l(yt(e[0],e[c-1],t))}:l}var on,an=function(e){return function(t){return 1-e(1-t)}},sn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},cn=function(e){return function(t){return t*t*((e+1)*t-e)}},un=function(e){return e},ln=(on=2,function(e){return Math.pow(e,on)}),dn=an(ln),fn=sn(ln),pn=function(e){return 1-Math.sin(Math.acos(e))},hn=an(pn),mn=sn(hn),vn=cn(1.525),gn=an(vn),yn=sn(vn),bn=function(e){var t=cn(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),En=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},_n=an(En);function Tn(e,t){return e.map((function(){return t||fn})).splice(0,e.length-1)}function wn(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.ease,a=e.offset,s=e.duration,c=void 0===s?300:s,u={done:!1,value:n},l=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===l.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(l),c);function f(){return rn(d,l,{ease:Array.isArray(i)?i:Tn(l,i)})}var p=f();return{next:function(e){return u.value=p(e),u.done=e>=c,u},flipTarget:function(){l.reverse(),p=f()}}}var kn={keyframes:wn,spring:xt,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,i=e.power,a=void 0===i?.8:i,s=e.timeConstant,c=void 0===s?350:s,u=e.restDelta,l=void 0===u?.5:u,d=e.modifyTarget,f={done:!1,value:o},p=a*n,h=o+p,m=void 0===d?h:d(h);return m!==h&&(p=m-o),{next:function(e){var t=-p*Math.exp(-e/c);return f.done=!(t>l||t<-l),f.value=f.done?m:m+t,f},flipTarget:function(){}}}};var xn=n(9839);function On(e,t,n){return void 0===n&&(n=0),e-t-n}var Cn=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return xn.ZP.update(t,!0)},stop:function(){return xn.qY.update(t)}}};function An(e){var t,n,r,o,i,a=e.from,s=e.autoplay,c=void 0===s||s,u=e.driver,l=void 0===u?Cn:u,d=e.elapsed,f=void 0===d?0:d,p=e.repeat,h=void 0===p?0:p,m=e.repeatType,v=void 0===m?"loop":m,g=e.repeatDelay,y=void 0===g?0:g,b=e.onPlay,E=e.onStop,_=e.onComplete,T=e.onRepeat,w=e.onUpdate,k=gt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),x=k.to,O=0,C=k.duration,A=!1,S=!0,M=function(e){if(Array.isArray(e.to))return wn;if(kn[e.type])return kn[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?wn:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?xt:wn}(k);(null===(n=(t=M).needsInterpolation)||void 0===n?void 0:n.call(t,a,x))&&(i=rn([0,100],[a,x],{clamp:!1}),a=0,x=100);var I=M(vt(vt({},k),{from:a,to:x}));function P(){O++,"reverse"===v?f=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?On(t+-e,t,n):t-(e-t)+n}(f,C,y,S=O%2===0):(f=On(f,C,y),"mirror"===v&&I.flipTarget()),A=!1,T&&T()}function N(e){if(S||(e=-e),f+=e,!A){var t=I.next(Math.max(0,f));o=t.value,i&&(o=i(o)),A=S?t.done:f<=0}null===w||void 0===w||w(o),A&&(0===O&&(null!==C&&void 0!==C||(C=f)),O<h?function(e,t,n,r){return r?e>=t+n:e<=-n}(f,C,y,S)&&P():(r.stop(),_&&_()))}return c&&(null===b||void 0===b||b(),(r=l(N)).start()),{stop:function(){null===E||void 0===E||E(),r.stop()}}}function Sn(e,t){return t?e*(1e3/t):0}var Mn=function(e){return 1e3*e},In=function(e,t){return 1-3*t+3*e},Pn=function(e,t){return 3*t-6*e},Nn=function(e){return 3*e},Rn=function(e,t,n){return((In(t,n)*e+Pn(t,n))*e+Nn(t))*e},Ln=function(e,t,n){return 3*In(t,n)*e*e+2*Pn(t,n)*e+Nn(t)};var Dn=.1;function jn(e,t,n,r){if(e===t&&n===r)return un;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=Rn(i*Dn,e,n);function a(t){for(var r=0,i=1;10!==i&&o[i]<=t;++i)r+=Dn;--i;var a=r+(t-o[i])/(o[i+1]-o[i])*Dn,s=Ln(a,e,n);return s>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var i=Ln(t,n,r);if(0===i)return t;t-=(Rn(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){var i,a,s=0;do{(i=Rn(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+Dn,e,n)}return function(e){return 0===e||1===e?e:Rn(a(e),t,r)}}var Hn={linear:un,easeIn:ln,easeInOut:fn,easeOut:dn,circIn:pn,circInOut:mn,circOut:hn,backIn:vn,backInOut:yn,backOut:gn,anticipate:bn,bounceIn:_n,bounceInOut:function(e){return e<.5?.5*(1-En(1-2*e)):.5*En(2*e-1)+.5},bounceOut:En},Bn=function(e){if(Array.isArray(e)){e.length;var t=(0,r.CR)(e,4);return jn(t[0],t[1],t[2],t[3])}return"string"===typeof e?Hn[e]:e},Fn=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Yt.test(t)||t.startsWith("url(")))},Un=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},zn=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Vn=function(){return{type:"keyframes",ease:"linear",duration:.3}},Gn=function(e){return{type:"keyframes",duration:.8,values:e}},Wn={x:Un,y:Un,z:Un,rotate:Un,rotateX:Un,rotateY:Un,rotateZ:Un,scaleX:zn,scaleY:zn,scale:zn,opacity:Vn,backgroundColor:Vn,color:Vn,default:zn},Kn=new Set(["brightness","contrast","saturate","opacity"]);function qn(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(q)||[])[0];if(!o)return e;var i=r.replace(o,""),a=Kn.has(n)?1:0;return o!==r&&(a*=100),n+"("+a+i+")"}var Yn=/([a-z-]*)\(.*?\)/g,Zn=G(G({},Yt),{getAnimatableNone:function(e){var t=e.match(Yn);return t?t.map(qn).join(" "):e}}),$n=(0,r.pi)((0,r.pi)({},ce),{color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:Zn,WebkitFilter:Zn}),Xn=function(e){return $n[e]};function Qn(e,t){var n,r=Xn(e);return r!==Zn&&(r=Yt),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Jn(e){var t=e.ease,n=e.times,o=e.yoyo,i=e.flip,a=e.loop,s=(0,r._T)(e,["ease","times","yoyo","flip","loop"]),c=(0,r.pi)({},s);return n&&(c.offset=n),s.duration&&(c.duration=Mn(s.duration)),s.repeatDelay&&(c.repeatDelay=Mn(s.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(Bn):Bn(t)),"tween"===s.type&&(c.type="keyframes"),(o||a||i)&&(!0,o?c.repeatType="reverse":a?c.repeatType="loop":i&&(c.repeatType="mirror"),c.repeat=a||o||i||s.repeat),"spring"!==s.type&&(c.type="keyframes"),c}function er(e,t,n){var o;return Array.isArray(t.to)&&(null!==(o=e.duration)&&void 0!==o||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.ev)([],(0,r.CR)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,r._T)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.pi)((0,r.pi)({},e),function(e,t){var n;return n=Le(t)?Gn:Wn[e]||Wn.default,(0,r.pi)({to:t},n(t))}(n,t.to))),(0,r.pi)((0,r.pi)({},t),Jn(e))}function tr(e,t,n,o,i){var a,s=or(o,e),c=null!==(a=s.from)&&void 0!==a?a:t.get(),u=Fn(e,n);"none"===c&&u&&"string"===typeof n?c=Qn(e,n):nr(c)&&"string"===typeof n?c=rr(n):!Array.isArray(n)&&nr(n)&&"string"===typeof c&&(n=rr(c));var l=Fn(e,c);return l&&u&&!1!==s.type?function(){var o={from:c,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,i=void 0===o?0:o,a=e.min,s=e.max,c=e.power,u=void 0===c?.8:c,l=e.timeConstant,d=void 0===l?750:l,f=e.bounceStiffness,p=void 0===f?500:f,h=e.bounceDamping,m=void 0===h?10:h,v=e.restDelta,g=void 0===v?1:v,y=e.modifyTarget,b=e.driver,E=e.onUpdate,_=e.onComplete;function T(e){return void 0!==a&&e<a||void 0!==s&&e>s}function w(e){return void 0===a?s:void 0===s||Math.abs(a-e)<Math.abs(s-e)?a:s}function k(e){null===t||void 0===t||t.stop(),t=An(vt(vt({},e),{driver:b,onUpdate:function(t){var n;null===E||void 0===E||E(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:_}))}function x(e){k(vt({type:"spring",stiffness:p,damping:m,restDelta:g},e))}if(T(r))x({from:r,velocity:i,to:w(r)});else{var O=u*i+r;"undefined"!==typeof y&&(O=y(O));var C,A,S=w(O),M=S===a?-1:1;k({type:"decay",from:r,velocity:i,timeConstant:d,power:u,restDelta:g,modifyTarget:y,onUpdate:T(O)?function(e){C=A,A=e,i=Sn(e-C,(0,xn.$B)().delta),(1===M&&e>S||-1===M&&e<S)&&x({from:e,to:S,velocity:i})}:void 0})}return{stop:function(){return null===t||void 0===t?void 0:t.stop()}}}((0,r.pi)((0,r.pi)({},o),s)):An((0,r.pi)((0,r.pi)({},er(s,o,e)),{onUpdate:function(e){var t;o.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;o.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e;return t.set(n),i(),null===(e=null===s||void 0===s?void 0:s.onComplete)||void 0===e||e.call(s),{stop:function(){}}}}function nr(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function rr(e){return"number"===typeof e?0:Qn("",e)}function or(e,t){return e[t]||e.default||e}function ir(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var i,a,s=tr(e,t,n,r,o),c=function(e,t){var n;return null!==(n=(or(e,t)||{}).delay)&&void 0!==n?n:0}(r,e),u=function(){return a=s()};return c?i=setTimeout(u,Mn(c)):u(),function(){clearTimeout(i),null===a||void 0===a||a.stop()}}))}function ar(e,t){-1===e.indexOf(t)&&e.push(t)}function sr(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var cr=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ar(this.subscriptions,e),function(){return sr(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),ur=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new cr,this.velocityUpdateSubscribers=new cr,this.renderSubscribers=new cr,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=(0,xn.$B)(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,xn.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return xn.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Sn(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function lr(e){return new ur(e)}var dr=function(e){return function(t){return t.test(e)}},fr=[oe,ee,J,Q,ne,te,{test:function(e){return"auto"===e},parse:function(e){return e}}],pr=function(e){return fr.find(dr(e))},hr=(0,r.ev)((0,r.ev)([],(0,r.CR)(fr)),[Ut,Yt]),mr=function(e){return hr.find(dr(e))};function vr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,lr(n))}function gr(e,t){var n=T(e,t),o=n?e.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,a=void 0===i?{}:i;o.transition;var s,c=(0,r._T)(o,["transitionEnd","transition"]);for(var u in c=(0,r.pi)((0,r.pi)({},c),a)){vr(e,u,(s=c[u],Le(s)?s[s.length-1]||0:s))}}function yr(e,t){if(t)return(t[e]||t.default||t).from}function br(e,t,n){var o;void 0===n&&(n={});var i=T(e,t,n.custom),a=(i||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var c=i?function(){return Er(e,i,n)}:function(){return Promise.resolve()},u=(null===(o=e.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=s.delayChildren,a=void 0===i?0:i,c=s.staggerChildren,u=s.staggerDirection;return function(e,t,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],c=(e.variantChildren.size-1)*o,u=1===i?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),c-e*o};return Array.from(e.variantChildren).sort(_r).forEach((function(e,o){s.push(br(e,t,(0,r.pi)((0,r.pi)({},a),{delay:n+u(o)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+o,c,u,n)}:function(){return Promise.resolve()},l=s.when;if(l){var d=(0,r.CR)("beforeChildren"===l?[c,u]:[u,c],2),f=d[0],p=d[1];return f().then(p)}return Promise.all([c(),u(n.delay)])}function Er(e,t,n){var o,i=void 0===n?{}:n,a=i.delay,s=void 0===a?0:a,c=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),d=l.transition,f=void 0===d?e.getDefaultTransition():d,p=l.transitionEnd,h=(0,r._T)(l,["transition","transitionEnd"]);c&&(f=c);var m=[],v=u&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[u]);for(var g in h){var y=e.getValue(g),b=h[g];if(!(!y||void 0===b||v&&Tr(v,g))){var E=ir(g,y,b,(0,r.pi)({delay:s},f));m.push(E)}}return Promise.all(m).then((function(){p&&gr(e,p)}))}function _r(e,t){return e.sortNodePosition(t)}function Tr(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var wr=[Ue.Animate,Ue.Hover,Ue.Tap,Ue.Drag,Ue.Focus,Ue.Exit],kr=(0,r.ev)([],(0,r.CR)(wr)).reverse(),xr=wr.length;function Or(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(),Array.isArray(t)){var o=t.map((function(t){return br(e,t,n)}));r=Promise.all(o)}else if("string"===typeof t)r=br(e,t,n);else{var i="function"===typeof t?T(e,t,n.custom):t;r=Er(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function Cr(e){var t=Or(e),n=function(){var e;return(e={})[Ue.Animate]=Ar(!0),e[Ue.Hover]=Ar(),e[Ue.Tap]=Ar(),e[Ue.Drag]=Ar(),e[Ue.Focus]=Ar(),e[Ue.Exit]=Ar(),e}(),o={},i=!0,a=function(t,n){var o=T(e,n);if(o){o.transition;var i=o.transitionEnd,a=(0,r._T)(o,["transition","transitionEnd"]);t=(0,r.pi)((0,r.pi)((0,r.pi)({},t),a),i)}return t};function s(s,c){for(var u,l=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set,h={},m=1/0,v=function(t){var o=kr[t],v=n[o],g=null!==(u=l[o])&&void 0!==u?u:d[o],y=E(g),_=o===c?v.isActive:null;!1===_&&(m=t);var T=g===d[o]&&g!==l[o]&&y;if(T&&i&&e.manuallyAnimateOnMount&&(T=!1),v.protectedKeys=(0,r.pi)({},h),!v.isActive&&null===_||!g&&!v.prevProp||Ne(g)||"boolean"===typeof g)return"continue";var w=function(e,t){if("string"===typeof t)return t!==e;if(b(t))return!mt(t,e);return!1}(v.prevProp,g)||o===c&&v.isActive&&!T&&y||t>m&&y,k=Array.isArray(g)?g:[g],x=k.reduce(a,{});!1===_&&(x={});var O=v.prevResolvedValues,C=void 0===O?{}:O,A=(0,r.pi)((0,r.pi)({},C),x),S=function(e){w=!0,p.delete(e),v.needsAnimating[e]=!0};for(var M in A){var I=x[M],P=C[M];h.hasOwnProperty(M)||(I!==P?Le(I)&&Le(P)?mt(I,P)?v.protectedKeys[M]=!0:S(M):void 0!==I?S(M):p.add(M):void 0!==I&&p.has(M)?S(M):v.protectedKeys[M]=!0)}v.prevProp=g,v.prevResolvedValues=x,v.isActive&&(h=(0,r.pi)((0,r.pi)({},h),x)),i&&e.blockInitialAnimation&&(w=!1),w&&!T&&f.push.apply(f,(0,r.ev)([],(0,r.CR)(k.map((function(e){return{animation:e,options:(0,r.pi)({type:o},s)}})))))},g=0;g<xr;g++)v(g);if(o=(0,r.pi)({},h),p.size){var y={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var _=Boolean(f.length);return i&&!1===l.initial&&!e.manuallyAnimateOnMount&&(_=!1),i=!1,_?t(f):Promise.resolve()}return{isAnimated:function(e){return void 0!==o[e]},animateChanges:s,setActive:function(t,r,o){var i;return n[t].isActive===r?Promise.resolve():(null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r,s(o,t))},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function Ar(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Sr={animation:pt((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Cr(t)),Ne(n)&&(0,o.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:pt((function(e){var t=e.custom,n=e.visualElement,i=(0,r.CR)((0,p.oO)(),2),a=i[0],s=i[1],c=(0,o.useContext)(f.O);(0,o.useEffect)((function(){var e,r,o=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Ue.Exit,!a,{custom:null!==(r=null===c||void 0===c?void 0:c.custom)&&void 0!==r?r:t});!a&&(null===o||void 0===o||o.then(s))}),[a])}))},Mr=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Ir=function(e){return Mr(e)&&e.hasOwnProperty("z")},Pr=function(e,t){return Math.abs(e-t)};function Nr(e,t){if(Zt(e)&&Zt(t))return Pr(e,t);if(Mr(e)&&Mr(t)){var n=Pr(e.x,t.x),r=Pr(e.y,t.y),o=Ir(e)&&Ir(t)?Pr(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Rr=function(){function e(e,t,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var e=jr(o.lastMoveEventInfo,o.history),t=null!==o.startEvent,n=Nr(e.offset,{x:0,y:0})>=3;if(t||n){var i=e.point,a=(0,xn.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,c=s.onStart,u=s.onMove;t||(c&&c(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),u&&u(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){o.lastMoveEvent=e,o.lastMoveEventInfo=Lr(t,o.transformPagePoint),We(e)&&0===e.buttons?o.handlePointerUp(e,t):xn.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=jr(Lr(t,o.transformPagePoint),o.history);o.startEvent&&r&&r(e,a),i&&i(e,a)},!(Ke(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Lr($e(e),this.transformPagePoint),s=a.point,c=(0,xn.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},s),{timestamp:c})];var u=t.onSessionStart;u&&u(e,jr(a,this.history)),this.removeListeners=ft(tt(window,"pointermove",this.handlePointerMove),tt(window,"pointerup",this.handlePointerUp),tt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),xn.qY.update(this.updatePoint)},e}();function Lr(e,t){return t?{point:t(e.point)}:e}function Dr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jr(e,t){var n=e.point;return{point:n,delta:Dr(n,Br(t)),offset:Dr(n,Hr(t)),velocity:Fr(t,.1)}}function Hr(e){return e[0]}function Br(e){return e[e.length-1]}function Fr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Br(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Ur=n(93327);function zr(e){return[e("x"),e("y")]}function Vr(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?At(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?At(o,e,n.max):Math.min(e,o)),e}function Gr(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Wr(e,t){var n,o=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(o=(n=(0,r.CR)([i,o],2))[0],i=n[1]),{min:e.min+o,max:e.min+i}}function Kr(e,t,n){return{min:qr(e,t),max:qr(e,n)}}function qr(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Yr(e,t){var n=e.getBoundingClientRect();return(0,Ur.RX)((0,Ur.dV)(n,t))}function Zr(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Nr(e,t)<n}function $r(e){return e.max-e.min}function Xr(e,t){var n=.5,r=$r(e),o=$r(t);return o>r?n=Ct(t.min,t.max-r,e.min):r>o&&(n=Ct(e.min,e.max-o,t.min)),yt(0,1,n)}function Qr(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=At(t.min,t.max,e.origin),e.scale=$r(n)/$r(t),Zr(e.scale,1,1e-4)&&(e.scale=1),e.translate=At(n.min,n.max,e.origin)-e.originPoint,Zr(e.translate)&&(e.translate=0)}function Jr(e,t,n,r){Qr(e.x,t.x,n.x,eo(r.originX)),Qr(e.y,t.y,n.y,eo(r.originY))}function eo(e){return"number"===typeof e?e:.5}function to(e,t,n){e.min=n.min+t.min,e.max=e.min+$r(t)}var no=n(58839);function ro(e,t){return{min:t.min-e.min,max:t.max-e.min}}function oo(e,t){return{x:ro(e.x,t.x),y:ro(e.y,t.y)}}function io(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function ao(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function so(e,t){e.min=t.min,e.max=t.max}function co(e,t,n){return n+t*(e-n)}function uo(e,t,n,r,o){return void 0!==o&&(e=co(e,o,r)),co(e,n,r)+t}function lo(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=uo(e.min,t,n,r,o),e.max=uo(e.max,t,n,r,o)}function fo(e,t){var n=t.x,r=t.y;lo(e.x,n.translate,n.scale,n.originPoint),lo(e.y,r.translate,r.scale,r.originPoint)}function po(e,t,n,o){var i=(0,r.CR)(o,3),a=i[0],s=i[1],c=i[2];e.min=t.min,e.max=t.max;var u=void 0!==n[c]?n[c]:.5,l=At(t.min,t.max,u);lo(e,n[a],n[s],l,n.scale)}var ho=["x","scaleX","originX"],mo=["y","scaleY","originY"];function vo(e,t,n){po(e.x,t.x,n,ho),po(e.y,t.y,n,mo)}function go(e,t,n,r,o){return e=co(e-=t,1/n,r),void 0!==o&&(e=co(e,1/o,r)),e}function yo(e,t,n){var o=(0,r.CR)(n,3),i=o[0],a=o[1],s=o[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var i=At(e.min,e.max,r)-t;e.min=go(e.min,t,n,i,o),e.max=go(e.max,t,n,i,o)}(e,t[i],t[a],t[s],t.scale)}function bo(e,t){yo(e.x,t,ho),yo(e.y,t,mo)}var Eo,_o=n(27565),To=new WeakMap,wo=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,Ur.VZ)(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),To.set(t,this)}return e.prototype.start=function(e,t){var n=this,o=void 0===t?{}:t,i=o.snapToCursor,a=void 0!==i&&i,s=o.cursorProgress,c=this.props.transformPagePoint;this.panSession=new Rr(e,{onSessionStart:function(e){var t;n.stopMotion();var o=function(e){return $e(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=(0,_o.U)((function(e,t){var i=(0,no.kv)(n.visualElement),c=(0,no.e3)(n.visualElement),u=(0,r.ev)((0,r.ev)([],(0,r.CR)(i)),(0,r.CR)(c)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){u.forEach((function(e){return e.resetTransform()}))})),e((function(){(0,no.de)(n.visualElement),c.forEach(no.de)})),t((function(){u.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(o))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;zr((function(t){if(!l){var r=e.target[t],i=r.min,a=r.max;n.cursorProgress[t]=s?s[t]:Ct(i,a,o[t])}var c=n.getAxisMotionValue(t);c&&(n.originPoint[t]=c.get())}))})),t((function(){xn.iW.update(),xn.iW.preRender(),xn.iW.render(),xn.iW.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,i,a=n.props,s=a.drag,c=a.dragPropagation;(!s||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=at(s),n.openGlobalLock))&&((0,_o.R)(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(i=n.visualElement.animationState)||void 0===i||i.setActive(Ue.Drag,!0))},onMove:function(e,t){var r,o,i,a,s=n.props,c=s.dragPropagation,u=s.dragDirectionLock;if(c||n.openGlobalLock){var l=t.offset;if(u&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),null===(a=(i=n.props).onDrag)||void 0===a||a.call(i,e,t),Eo=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:c})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(y(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:Gr(e.x,r,i),y:Gr(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:Kr(e,"left","right"),y:Kr(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&zr((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,i=t.current;this.constraintsBox=Yr(i,o);var a=function(e,t){return{x:Wr(e.x,t.x),y:Wr(e.y,t.y)}}(e,this.constraintsBox);if(r){var s=r((0,Ur._6)(a));this.hasMutatedConstraints=!!s,s&&(a=(0,Ur.RX)(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ue.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=t.velocity;this.animateDragEnd(a),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return zr((function(n){if(ko(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,i=o[n].max-o[n].min,a=o[n].min+i/2,s=e[n]-a;t.originPoint[n]=e[n],r.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(ko(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?Vr(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,i=this.cursorProgress[e],a=function(e,t,n,r,o){var i=e-t*n;return r?Vr(i,r,o):i}(t[e],o,i,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,o=e.dragDirectionLock,i=void 0!==o&&o,a=e.dragPropagation,s=void 0!==a&&a,c=e.dragConstraints,u=void 0!==c&&c,l=e.dragElastic,d=void 0===l?.35:l,f=e.dragMomentum,p=void 0===f||f,h=(0,r._T)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.pi)({drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:u,dragElastic:d,dragMomentum:p},h)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,c=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?bo(n=oo(r.projection.target,e.projection.target),r.getLatestValues()):n=oo(r.getLayoutState().layout,e.getLayoutState().layout),zr((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),u=this.constraints||{};if(c&&Object.keys(u).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var d=oo(l.projection.targetFinal,u);zr((function(e){var t=d[e],n=t.min,r=t.max;u[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var f=zr((function(n){var l;if(ko(n,o,t.currentDirection)){var d=null!==(l=null===u||void 0===u?void 0:u[n])&&void 0!==l?l:{},f=a?200:1e6,p=a?40:1e7,h=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),d);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,h):t.visualElement.startLayoutAnimation(n,h,c)}}));return Promise.all(f).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;zr((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),ir(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(y(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};zr((function(t){r[t]=Xr(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){zr((function(t){if(ko(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=At(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),i=o.min,a=o.max;e.visualElement.setProjectionTargetAxis(t,i,a)}}))})),setTimeout(_o.R,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=(0,_o.U)((function(n,r){var o=(0,no.kv)(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return(0,no.de)(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=tt(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=Ve(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),i=e.prevDragCursor;return i&&this.start(Eo,{cursorProgress:i}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===o||void 0===o||o(),t.cancelDrag()}},e}();function ko(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var xo={pan:pt((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,s=t||n||r||i,c=(0,o.useRef)(null),u=(0,o.useContext)(l).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){c.current=null,r&&r(e,t)}};(0,o.useEffect)((function(){null!==c.current&&c.current.updateHandlers(d)})),nt(a,"pointerdown",s&&function(e){c.current=new Rr(e,d,{transformPagePoint:u})}),(0,lt.z)((function(){return c.current&&c.current.end()}))})),drag:pt((function(e){var t=e.dragControls,n=e.visualElement,i=(0,o.useContext)(l).transformPagePoint,a=(0,Re.h)((function(){return new wo({visualElement:n})}));a.setProps((0,r.pi)((0,r.pi)({},e),{transformPagePoint:i})),(0,o.useEffect)((function(){return t&&t.subscribe(a)}),[a]),(0,o.useEffect)((function(){return a.mount(n)}),[])}))},Oo=n(7646);function Co(e){return"string"===typeof e&&e.startsWith("var(--")}var Ao=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function So(e,t,n){void 0===n&&(n=1);var o=(0,r.CR)(function(e){var t=Ao.exec(e);if(!t)return[,];var n=(0,r.CR)(t,3);return[n[1],n[2]]}(e),2),i=o[0],a=o[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():Co(a)?So(a,t,n+1):a}}function Mo(e,t){return e/(t.max-t.min)*100}var Io="_$css";var Po={process:function(e,t,n){var r=n.target;if("string"===typeof e){if(!ee.test(e))return e;e=parseFloat(e)}return Mo(e,r.x)+"% "+Mo(e,r.y)+"%"}},No={borderRadius:(0,r.pi)((0,r.pi)({},Po),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Ao,(function(e){return a.push(e),Io})));var s=Yt.parse(e);if(s.length>5)return o;var c=Yt.createTransformer(e),u="number"!==typeof s[0]?1:0,l=n.x.scale*r.x,d=n.y.scale*r.y;s[0+u]/=l,s[1+u]/=d;var f=At(l,d,.5);"number"===typeof s[2+u]&&(s[2+u]/=f),"number"===typeof s[3+u]&&(s[3+u]/=f);var p=c(s);if(i){var h=0;p=p.replace(Io,(function(){var e=a[h];return h++,e}))}return p}}},Ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget=(0,Ur.VZ)(),t.currentAnimationTarget=(0,Ur.VZ)(),t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,o){void 0===o&&(o={});var i=o.originBox,a=o.targetBox,s=o.visibilityAction,c=o.shouldStackAnimate,u=o.onComplete,l=o.prevParent,d=(0,r._T)(o,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=t.props,p=f.visualElement,h=f.layout;if(!1===c)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===c){c&&(t.isAnimatingTree=!0),n=i||n,e=a||e;var m=!1,v=p.getProjectionParent();if(v){var g=v.prevViewportBox,y=v.getLayoutState().layout;l&&(a&&(y=l.getLayoutState().layout),i&&!io(l,v)&&l.prevViewportBox&&(g=l.prevViewportBox)),g&&Fo(l,i,a)&&(m=!0,n=oo(g,n),e=oo(y,e))}var b=Lo(n,e),E=zr((function(o){var i,a;if("position"===h){var c=e[o].max-e[o].min;n[o].max=n[o].min+c}if(!p.projection.isTargetLocked)return void 0===s?b?t.animateAxis(o,e[o],n[o],(0,r.pi)((0,r.pi)({},d),{isRelative:m})):(null===(a=(i=t.stopAxisAnimation)[o])||void 0===a||a.call(i),p.setProjectionTargetAxis(o,e[o].min,e[o].max,m)):void p.setVisibility(s===Oo.c.Show)}));return p.syncRender(),Promise.all(E).then((function(){t.isAnimatingTree=!1,u&&u(),p.notifyLayoutAnimationComplete()}))}},t}return(0,r.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=ir,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)I[t]=e[t]}(No)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),zr((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,i,a=this,s=void 0===r?{}:r,c=s.transition,u=s.isRelative;if(!this.isAnimating[e]||!Ho(t,this.currentAnimationTarget[e])){null===(i=(o=this.stopAxisAnimation)[e])||void 0===i||i.call(o),this.isAnimating[e]=!0;var l=this.props.visualElement,d=this.frameTarget[e],f=l.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var p=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=At(t.min,n.min,r),e.max=At(t.max,n.max,r)}(d,n,t,r),l.setProjectionTargetAxis(e,d.min,d.max,u)};p();var h=f.onChange(p);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,f.stop(),h()},this.currentAnimationTarget[e]=t;var m=c||l.getDefaultTransition()||Bo;return ir("x"===e?"layoutX":"layoutY",f,1e3,m&&or(m,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(o.Component);function Lo(e,t){return!jo(e)&&!jo(t)&&(!Ho(e.x,t.x)||!Ho(e.y,t.y))}var Do={min:0,max:0};function jo(e){return Ho(e.x,Do)&&Ho(e.y,Do)}function Ho(e,t){return e.min===t.min&&e.max===t.max}var Bo={duration:.45,ease:[.4,0,.1,1]};function Fo(e,t,n){return e||!e&&!(t||n)}var Uo=n(49870),zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;(0,Uo.Md)(t)&&t.register(r),(0,Uo.Md)(n)&&n.register(r),r.onUnmount((function(){(0,Uo.Md)(t)&&t.remove(r),(0,Uo.Md)(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return(0,Uo.Md)(t)?t.syncUpdate():((0,no.x7)(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;(0,Uo.Md)(e)||e.flush()},t.prototype.render=function(){return null},t}(o.Component);var Vo={measureLayout:function(e){var t=(0,o.useContext)(Uo.WH),n=(0,o.useContext)(Uo.bg);return o.createElement(zo,(0,r.pi)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,r.CR)((0,p.oO)(),2)[1];return o.createElement(Ro,(0,r.pi)({},e,{safeToRemove:t}))}};function Go(){return{isHydrated:!1,layout:(0,Ur.VZ)(),layoutCorrected:(0,Ur.VZ)(),treeScale:{x:1,y:1},delta:(0,Ur.pY)(),deltaFinal:(0,Ur.pY)(),deltaTransform:""}}var Wo=Go();function Ko(e,t,n){var r=e.x,o=e.y,i="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,c=n.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),c&&(i+="rotateY("+c+") ")}return i+="scale("+r.scale+", "+o.scale+")",n||i!==Yo?i:""}function qo(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Yo=Ko(Wo.delta,Wo.treeScale,{x:1,y:1}),Zo=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function $o(e,t,n,r){var o,i,a=e.delta,s=e.layout,c=e.layoutCorrected,u=e.treeScale,l=t.target;i=s,so((o=c).x,i.x),so(o.y,i.y),function(e,t,n){var r=n.length;if(r){var o,i;t.x=t.y=1;for(var a=0;a<r;a++)i=(o=n[a]).getLayoutState().delta,t.x*=i.x.scale,t.y*=i.y.scale,fo(e,i),ao(o)&&vo(e,e,o.getLatestValues())}}(c,u,n),Jr(a,c,l,r)}var Xo=n(519),Qo=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){ar(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){sr(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Xo._),this.isDirty=!1,this.children.forEach(e)},e}();var Jo=function(e){var t=e.treeType,n=void 0===t?"":t,o=e.build,i=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,c=e.render,u=e.readValueFromInstance,l=e.resetTransform,d=e.restoreTransform,f=e.removeValueFromRenderState,p=e.sortNodePosition,h=e.scrapeMotionValuesFromProps;return function(e,t){var m=e.parent,v=e.props,g=e.presenceId,y=e.blockInitialAnimation,b=e.visualState;void 0===t&&(t={});var _,T,x,O,C,A,S=b.latestValues,M=b.renderState,I=function(){var e=Zo.map((function(){return new cr})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){return Zo.forEach((function(r){var o;null===(o=t[r])||void 0===o||o.call(t);var i="on"+r,a=e[i];a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+Zo[t]]=function(t){return e.add(t)},n["notify"+Zo[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,r.ev)([],(0,r.CR)(t)))}})),n}(),P={isEnabled:!1,isHydrated:!1,isTargetLocked:!1,target:(0,Ur.VZ)(),targetFinal:(0,Ur.VZ)()},N=P,R=S,L=Go(),D=!1,j=new Map,H=new Map,B={},U=(0,r.pi)({},S);function z(){_&&(X.isProjectionReady()&&(vo(N.targetFinal,N.target,R),Jr(L.deltaFinal,L.layoutCorrected,N.targetFinal,S)),V(),c(_,M))}function V(){var e=S;if(O&&O.isActive()){var n=O.getCrossfadeState(X);n&&(e=n)}o(X,M,e,N,L,t,v)}function G(){I.notifyUpdate(S)}function W(){X.layoutTree.forEach(ti)}var K=h(v);for(var q in K){var Y=K[q];void 0!==S[q]&&F(Y)&&Y.set(S[q],!1)}var Z=w(v),$=k(v),X=(0,r.pi)((0,r.pi)({treeType:n,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,path:m?(0,r.ev)((0,r.ev)([],(0,r.CR)(m.path)),[m]):[],layoutTree:m?m.layoutTree:new Qo,presenceId:g,projection:P,variantChildren:$?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===m||void 0===m?void 0:m.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(_)},mount:function(e){_=X.current=e,X.pointTo(X),$&&m&&!Z&&(A=null===m||void 0===m?void 0:m.addVariantChild(X)),null===m||void 0===m||m.children.add(X)},unmount:function(){xn.qY.update(G),xn.qY.render(z),xn.qY.preRender(X.updateLayoutProjection),H.forEach((function(e){return e()})),X.stopLayoutAnimation(),X.layoutTree.remove(X),null===A||void 0===A||A(),null===m||void 0===m||m.children.delete(X),null===x||void 0===x||x(),I.clearAllListeners()},addVariantChild:function(e){var t,n=X.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return p&&n===e.treeType?p(X.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return $?X:null===m||void 0===m?void 0:m.getClosestVariantNode()},scheduleUpdateLayoutProjection:m?m.scheduleUpdateLayoutProjection:function(){return xn.ZP.preRender(X.updateTreeLayoutProjection,!1,!0)},getLayoutId:function(){return v.layoutId},getInstance:function(){return _},getStaticValue:function(e){return S[e]},setStaticValue:function(e,t){return S[e]=t},getLatestValues:function(){return S},setVisibility:function(e){X.isVisible!==e&&(X.isVisible=e,X.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(X,e,v,t)},addValue:function(e,t){X.hasValue(e)&&X.removeValue(e),j.set(e,t),S[e]=t.get(),function(e,t){var n=t.onChange((function(t){S[e]=t,v.onUpdate&&xn.ZP.update(G,!1,!0)})),r=t.onRenderRequest(X.scheduleRender);H.set(e,(function(){n(),r()}))}(e,t)},removeValue:function(e){var t;j.delete(e),null===(t=H.get(e))||void 0===t||t(),H.delete(e),delete S[e],f(e,M)},hasValue:function(e){return j.has(e)},getValue:function(e,t){var n=j.get(e);return void 0===n&&void 0!==t&&(n=lr(t),X.addValue(e,n)),n},forEachValue:function(e){return j.forEach(e)},readValue:function(e){var n;return null!==(n=S[e])&&void 0!==n?n:u(_,e,t)},setBaseTarget:function(e,t){U[e]=t},getBaseTarget:function(e){if(i){var t=i(v,e);if(void 0!==t&&!F(t))return t}return U[e]}},I),{build:function(){return V(),M},scheduleRender:function(){xn.ZP.render(z,!1,!0)},syncRender:z,setProps:function(e){v=e,I.updatePropListeners(e),B=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(F(i))e.addValue(o,i);else if(F(a))e.addValue(o,lr(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,lr(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(X,h(v),B)},getProps:function(){return v},getVariant:function(e){var t;return null===(t=v.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return v.transition},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===m||void 0===m?void 0:m.getVariantContext();if(!Z){var t=(null===m||void 0===m?void 0:m.getVariantContext())||{};return void 0!==v.initial&&(t.initial=v.initial),t}for(var n={},r=0;r<oi;r++){var o=ri[r],i=v[o];(E(i)||!1===i)&&(n[o]=i)}return n},enableLayoutProjection:function(){P.isEnabled=!0,X.layoutTree.add(X)},lockProjectionTarget:function(){P.isTargetLocked=!0},unlockProjectionTarget:function(){X.stopLayoutAnimation(),P.isTargetLocked=!1},getLayoutState:function(){return L},setCrossfader:function(e){O=e},isProjectionReady:function(){return P.isEnabled&&P.isHydrated&&L.isHydrated},startLayoutAnimation:function(e,t,n){void 0===n&&(n=!1);var r=X.getProjectionAnimationProgress()[e],o=n?P.relativeTarget[e]:P.target[e],i=o.min,a=o.max-i;return r.clearListeners(),r.set(i),r.set(i),r.onChange((function(t){X.setProjectionTargetAxis(e,t,t+a,n)})),X.animateMotionValue(e,r,0,t)},stopLayoutAnimation:function(){zr((function(e){return X.getProjectionAnimationProgress()[e].stop()}))},measureViewportBox:function(e){void 0===e&&(e=!0);var n=s(_,t);return e||bo(n,S),n},getProjectionAnimationProgress:function(){return C||(C={x:lr(0),y:lr(0)}),C},setProjectionTargetAxis:function(e,t,n,r){var o;void 0===r&&(r=!1),r?(P.relativeTarget||(P.relativeTarget=(0,Ur.VZ)()),o=P.relativeTarget[e]):(P.relativeTarget=void 0,o=P.target[e]),P.isHydrated=!0,o.min=t,o.max=n,D=!0,I.notifySetAxisTarget()},rebaseProjectionTarget:function(e,t){void 0===t&&(t=L.layout);var n=X.getProjectionAnimationProgress(),r=n.x,o=n.y,i=!P.relativeTarget&&!P.isTargetLocked&&!r.isAnimating()&&!o.isAnimating();(e||i)&&zr((function(e){var n=t[e],r=n.min,o=n.max;X.setProjectionTargetAxis(e,r,o)}))},notifyLayoutReady:function(e){!function(e){var t=e.getProjectionParent();if(t){var n=oo(t.getLayoutState().layout,e.getLayoutState().layout);zr((function(t){e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)}))}else e.rebaseProjectionTarget()}(X),X.notifyLayoutUpdate(L.layout,X.prevViewportBox||L.layout,e)},resetTransform:function(){return l(X,_,v)},restoreTransform:function(){return d(_,M)},updateLayoutProjection:function(){if(X.isProjectionReady()){var e=L.delta,t=L.treeScale,n=t.x,r=t.y,o=L.deltaTransform;$o(L,N,X.path,S),D&&X.notifyViewportBoxUpdate(N.target,e),D=!1;var i=Ko(e,t);i===o&&n===t.x&&r===t.y||X.scheduleRender(),L.deltaTransform=i}},updateTreeLayoutProjection:function(){X.layoutTree.forEach(ei),xn.ZP.preRender(W,!1,!0)},getProjectionParent:function(){if(void 0===T){for(var e=!1,t=X.path.length-1;t>=0;t--){var n=X.path[t];if(n.projection.isEnabled){e=n;break}}T=e}return T},resolveRelativeTargetBox:function(){var e=X.getProjectionParent();if(P.relativeTarget&&e&&(function(e,t){to(e.target.x,e.relativeTarget.x,t.target.x),to(e.target.y,e.relativeTarget.y,t.target.y)}(P,e.projection),ao(e))){var t=P.target;vo(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(v._layoutResetTransform)},pointTo:function(e){N=e.projection,R=e.getLatestValues(),null===x||void 0===x||x(),x=ft(e.onSetAxisTarget(X.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;X.isPresent?X.presence=Oo.z.Present:null===(e=X.layoutSafeToRemove)||void 0===e||e.call(X)})))},isPresent:!0,presence:Oo.z.Entering});return X}};function ei(e){e.resolveRelativeTargetBox()}function ti(e){e.updateLayoutProjection()}var ni,ri=(0,r.ev)(["initial"],(0,r.CR)(wr)),oi=ri.length,ii=new Set(["width","height","top","left","right","bottom","x","y"]),ai=function(e){return ii.has(e)},si=function(e,t){e.set(t,!1),e.set(t)},ci=function(e){return e===oe||e===ee};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ni||(ni={}));var ui=function(e,t){return parseFloat(e.split(", ")[t])},li=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return ui(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?ui(a[1],e):0}},di=new Set(["x","y","z"]),fi=N.filter((function(e){return!di.has(e)}));var pi={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:li(4,13),y:li(5,14)},hi=function(e,t,n,o){void 0===n&&(n={}),void 0===o&&(o={}),t=(0,r.pi)({},t),o=(0,r.pi)({},o);var i=Object.keys(t).filter(ai),a=[],s=!1,c=[];if(i.forEach((function(r){var i=e.getValue(r);if(e.hasValue(r)){var u,l=n[r],d=t[r],f=pr(l);if(Le(d))for(var p=d.length,h=null===d[0]?1:0;h<p;h++)u?pr(d[h]):(u=pr(d[h]))===f||ci(f)&&ci(u);else u=pr(d);if(f!==u)if(ci(f)&&ci(u)){var m=i.get();"string"===typeof m&&i.set(parseFloat(m)),"string"===typeof d?t[r]=parseFloat(d):Array.isArray(d)&&u===ee&&(t[r]=d.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===u||void 0===u?void 0:u.transform)&&(0===l||0===d)?0===l?i.set(u.transform(l)):t[r]=f.transform(d):(s||(a=function(e){var t=[];return fi.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),s=!0),c.push(r),o[r]=void 0!==o[r]?o[r]:t[r],si(i,d))}})),c.length){var u=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===a&&t.setStaticValue("display",e.display||"block"),t.syncRender();var c=t.measureViewportBox();return n.forEach((function(n){var o=t.getValue(n);si(o,pi[n](r,s)),e[n]=pi[n](c,i)})),e}(t,e,c);return a.length&&a.forEach((function(t){var n=(0,r.CR)(t,2),o=n[0],i=n[1];e.getValue(o).set(i)})),e.syncRender(),{target:u,transitionEnd:o}}return{target:t,transitionEnd:o}};function mi(e,t,n,r){return function(e){return Object.keys(e).some(ai)}(t)?hi(e,t,n,r):{target:t,transitionEnd:r}}var vi=function(e,t,n,o){var i=function(e,t,n){var o,i=(0,r._T)(t,[]),a=e.getInstance();if(!(a instanceof HTMLElement))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.pi)({},n)),e.forEachValue((function(e){var t=e.get();if(Co(t)){var n=So(t,a);n&&e.set(n)}})),i){var c=i[s];if(Co(c)){var u=So(c,a);u&&(i[s]=u,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=c)))}}return{target:i,transitionEnd:n}}(e,t,o);return mi(e,t=i.target,n,o=i.transitionEnd)};var gi={treeType:"dom",readValueFromInstance:function(e,t){if(D(t)){var n=Xn(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(z(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Yr(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=t.transition,s=t.transitionEnd,c=(0,r._T)(t,["transition","transitionEnd"]),u=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=yr(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(c,a||{},e);if(i&&(s&&(s=i(s)),c&&(c=i(c)),u&&(u=i(u))),o){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=s.length;if(c)for(var u=0;u<c;u++){var l=s[u],d=t[l],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==o?o:t[l]),void 0!==f&&null!==f&&("string"===typeof f&&/^\-?\d*\.?\d+$/.test(f)?f=parseFloat(f):!mr(f)&&Yt.test(d)&&(f=Qn(l,d)),e.addValue(l,lr(f)),null!==(i=(a=n)[l])&&void 0!==i||(a[l]=f),e.setBaseTarget(l,f))}}(e,c,u);var l=vi(e,c,u,s);s=l.transitionEnd,c=l.target}return(0,r.pi)({transition:a,transitionEnd:s},c)},scrapeMotionValuesFromProps:Ie,build:function(e,t,n,r,o,i,a){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden");var s=r.isEnabled&&o.isHydrated;ue(t,n,r,o,i,a.transformTemplate,s?Ko:void 0,s?qo:void 0)},render:Ae},yi=Jo(gi),bi=Jo((0,r.pi)((0,r.pi)({},gi),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return D(t)?(null===(n=Xn(t))||void 0===n?void 0:n.default)||0:(t=Se.has(t)?t:Ce(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Pe,build:function(e,t,n,r,o,i,a){var s=r.isEnabled&&o.isHydrated;Te(t,n,r,o,i,a.transformTemplate,s?Ko:void 0,s?qo:void 0)},render:Me})),Ei=function(e,t){return M(e)?bi(t,{enableHardwareAcceleration:!1}):yi(t,{enableHardwareAcceleration:!0})},_i=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Sr),ht),xo),Vo),Ti=A((function(e,t){return function(e,t,n,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=M(e)?Fe:ze;return(0,r.pi)((0,r.pi)({},s),{preloadedFeatures:n,useRender:xe(a),createVisualElement:o,Component:e})}(e,t,_i,Ei)}))},58839:function(e,t,n){"use strict";n.d(t,{kv:function(){return s},e3:function(){return c},x7:function(){return l},de:function(){return u}});var r=n(9839),o=n(93327),i=n(519);function a(e){return e.projection.isEnabled||e.shouldResetTransform()}function s(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&s(n,t),a(e)&&t.push(e),t}function c(e){var t=[],n=function(e){a(e)&&t.push(e),e.children.forEach(n)};return e.children.forEach(n),t.sort(i._)}function u(e){if(!e.shouldResetTransform()){var t=e.getLayoutState();e.notifyBeforeLayoutMeasure(t.layout),t.isHydrated=!0,t.layout=e.measureViewportBox(),t.layoutCorrected=(0,o.nP)(t.layout),e.notifyLayoutMeasure(t.layout,e.prevViewportBox||t.layout),r.ZP.update((function(){return e.rebaseProjectionTarget()}))}}function l(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}},27565:function(e,t,n){"use strict";n.d(t,{U:function(){return i},R:function(){return a}});var r=new Set;function o(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function i(e){return r.add(e),function(){return r.delete(e)}}function a(){if(r.size){var e=0,t=[[]],n=[],i=function(n){return o(t,n,e)},a=function(t){o(n,t,e),e++};r.forEach((function(t){t(i,a),e=0})),r.clear();for(var c=n.length,u=0;u<=c;u++)t[u]&&t[u].forEach(s),n[u]&&n[u].forEach(s)}}var s=function(e){return e()}},519:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var r=function(e,t){return e.depth-t.depth}},93327:function(e,t,n){"use strict";n.d(t,{VZ:function(){return c},_6:function(){return a},RX:function(){return i},nP:function(){return u},pY:function(){return d},dV:function(){return s}});var r=n(81439);function o(e){return e}function i(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function a(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}function s(e,t){var n=e.top,r=e.left,i=e.bottom,a=e.right;void 0===t&&(t=o);var s=t({x:r,y:n}),c=t({x:a,y:i});return{top:s.y,left:s.x,bottom:c.y,right:c.x}}function c(){return{x:{min:0,max:1},y:{min:0,max:1}}}function u(e){return{x:(0,r.pi)({},e.x),y:(0,r.pi)({},e.y)}}var l={translate:0,scale:1,origin:0,originPoint:0};function d(){return{x:(0,r.pi)({},l),y:(0,r.pi)({},l)}}},45930:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(67294);function o(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6717:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(67294);function o(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},64910:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},81439:function(e,t,n){"use strict";n.d(t,{ZT:function(){return o},pi:function(){return i},_T:function(){return a},CR:function(){return s},ev:function(){return c}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}Object.create},9839:function(e,t,n){"use strict";n.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return y}});var r=1/60*1e3,o="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},i="undefined"!==typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(o())}),r)};var a=!0,s=!1,c=!1,u={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var c=s&&o,u=c?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),c&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:function(s){var c;if(o=!0,t=(c=[n,t])[0],(n=c[1]).length=0,r=t.length)for(var u=0;u<r;u++){var l=t[u];l(s),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return s=!0})),e}),{}),f=l.reduce((function(e,t){var n=d[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s||g(),n.schedule(e,t,r)},e}),{}),p=l.reduce((function(e,t){return e[t]=d[t].cancel,e}),{}),h=l.reduce((function(e,t){return e[t]=function(){return d[t].process(u)},e}),{}),m=function(e){return d[e].process(u)},v=function(e){s=!1,u.delta=a?r:Math.max(Math.min(e-u.timestamp,40),1),u.timestamp=e,c=!0,l.forEach(m),c=!1,s&&(a=!1,i(v))},g=function(){s=!0,a=!0,c||i(v)},y=function(){return u},b=f},84839:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=1/60*1e3,r="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()},o="undefined"!==typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(r())}),n)};var i=!0,a=!1,s=!1,c={delta:0,timestamp:0},u=["read","update","preRender","render","postRender"],l=u.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,i=new WeakSet,a={schedule:function(e,a,s){void 0===a&&(a=!1),void 0===s&&(s=!1);var c=s&&o,u=c?t:n;return a&&i.add(e),-1===u.indexOf(e)&&(u.push(e),c&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:function(s){var c;if(o=!0,t=(c=[n,t])[0],(n=c[1]).length=0,r=t.length)for(var u=0;u<r;u++){var l=t[u];l(s),i.has(l)&&(a.schedule(l),e())}o=!1}};return a}((function(){return a=!0})),e}),{}),d=u.reduce((function(e,t){var n=l[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),a||v(),n.schedule(e,t,r)},e}),{}),f=u.reduce((function(e,t){return e[t]=l[t].cancel,e}),{}),p=u.reduce((function(e,t){return e[t]=function(){return l[t].process(c)},e}),{}),h=function(e){return l[e].process(c)},m=function(e){a=!1,c.delta=i?n:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,s=!0,u.forEach(h),s=!1,a&&(i=!1,o(m))},v=function(){a=!0,i=!0,s||o(m)};t.cancelSync=f,t.default=d,t.flushSync=p,t.getFrameData=function(){return c}},23405:function(e){e.exports=function(e){return[...e].reduce(((e,[t,n])=>(e[t]=n,e)),{})}},76331:function(e,t,n){"use strict";var r=n(97247),o=n(11218),i=n(99560),a=n(93934),s=n(36582),c=n(56851),u=n(57848),l=n(54992),d=n(48145),f=d("root"),p=d("element"),h=d("text");function m(e,t,n){var r,i,a=n.schema,s=a,c=t.tagName,u={},d=[],f=-1;for(r in"html"===a.space&&"svg"===c.toLowerCase()&&(s=o,n.schema=s),t.properties)v(u,r,t.properties[r],n,c);if(n.vdom&&("html"===s.space?c=c.toUpperCase():u.namespace=l[s.space]),n.prefix&&(n.key++,u.key=n.prefix+n.key),t.children)for(;++f<t.children.length;)i=t.children[f],p(i)?d.push(m(e,i,n)):h(i)&&d.push(i.value);return n.schema=a,d.length?e.call(t,c,u,d):e.call(t,c,u)}function v(e,t,n,r,o){var l,d=i(r.schema,t);null==n||n!==n||!1===n&&(r.vue||r.vdom||r.hyperscript)||!n&&d.boolean&&(r.vue||r.vdom||r.hyperscript)||(n&&"object"===typeof n&&"length"in n&&(n=(d.commaSeparated?c:s).stringify(n)),d.boolean&&r.hyperscript&&(n=""),"style"===d.property&&"string"===typeof n&&(r.react||r.vue||r.vdom)&&(n=function(e,t){var n={};try{u(e,r)}catch(o){throw o.message=t+"[style]"+o.message.slice("undefined".length),o}return n;function r(e,t){"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),n[e.replace(/-([a-z])/g,y)]=t}}(n,o)),r.vue?"style"!==d.property&&(l="attrs"):d.mustUseProperty||(r.vdom?"style"!==d.property&&(l="attributes"):r.hyperscript&&(l="attrs")),l?(e[l]||(e[l]={}),e[l][d.attribute]=n):d.space&&r.react?e[a[d.property]||d.property]=n:e[d.attribute]=n)}function g(e){return Boolean(e&&e.context&&e.cleanup)}function y(e,t){return t.toUpperCase()}e.exports=function(e,t,n){var i,a=n||{},s=function(e){var t=e&&e("div");return Boolean(t&&("_owner"in t||"_store"in t)&&null==t.key)}(e),c=function(e){var t=e&&e("div");return Boolean(t&&t.context&&t.context._isVue)}(e),u=function(e){return e&&"VirtualNode"===e("div").type}(e);if("function"!==typeof e)throw new Error("h is not a function");"string"===typeof a||"boolean"===typeof a?(i=a,a={}):i=a.prefix;if(f(t))t=1===t.children.length&&p(t.children[0])?t.children[0]:{type:"element",tagName:"div",properties:{},children:t.children};else if(!p(t))throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return m(e,t,{schema:"svg"===a.space?o:r,prefix:null==i?s||c||u?"h-":null:i,key:0,react:s,vue:c,vdom:u,hyperscript:g(e)})}},92114:function(e,t,n){"use strict";var r=n(9505),o=n(31742),i=n(99560),a=n(97247),s=n(11218),c=n(14787),u=n(54992);e.exports=function(e,t){var n,r=t||{};r.messages?(n=r,r={}):n=r.file;return f(e,{schema:"svg"===r.space?s:a,file:n,verbose:r.verbose})};var l={}.hasOwnProperty,d={"#document":p,"#document-fragment":p,"#text":function(e){return{type:"text",value:e.value}},"#comment":function(e){return{type:"comment",value:e.data}},"#documentType":function(e){return{type:"doctype",name:e.name||"",public:e.publicId||null,system:e.systemId||null}}};function f(e,t){var n,r,o,i=t.schema,c=l.call(d,e.nodeName)?d[e.nodeName]:h;return c===h&&(t.schema=e.namespaceURI===u.svg?s:a),e.childNodes&&(n=function(e,t){var n=-1,r=[];for(;++n<e.length;)r[n]=f(e[n],t);return r}(e.childNodes,t)),r=c(e,n,t),e.sourceCodeLocation&&t.file&&(o=m(r,e.sourceCodeLocation,t))&&(t.location=!0,r.position=o),t.schema=i,r}function p(e,t,n){var r,o,i={type:"root",children:t,data:{quirksMode:"quirks"===e.mode||"limited-quirks"===e.mode}};return n.file&&n.location&&(r=String(n.file),o=c(r),i.position={start:o.toPoint(0),end:o.toPoint(r.length)}),i}function h(e,t,n){for(var i,a,s,c,u,l="svg"===n.schema.space?r:o,d={},p=-1;++p<e.attrs.length;)d[((a=e.attrs[p]).prefix?a.prefix+":":"")+a.name]=a.value;return"template"===(i=l(e.tagName,d,t)).tagName&&"content"in e&&(c=(s=e.sourceCodeLocation)&&s.startTag&&v(s.startTag).end,u=s&&s.endTag&&v(s.endTag).start,i.content=f(e.content,n),(c||u)&&n.file&&(i.content.position={start:c,end:u})),i}function m(e,t,n){var r,o,a,s=v(t);if("element"===e.type&&(r=e.children[e.children.length-1],!t.endTag&&r&&r.position&&r.position.end&&(s.end=Object.assign({},r.position.end)),n.verbose)){for(o in a={},t.attrs)a[i(n.schema,o).property]=v(t.attrs[o]);e.data={position:{opening:v(t.startTag),closing:t.endTag?v(t.endTag):null,properties:a}}}return s}function v(e){var t=g({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=g({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function g(e){return e.line&&e.column?e:null}},83216:function(e){"use strict";function t(e){if("string"===typeof e)return function(e){return t;function t(t){return n(t)&&t.tagName===e}}(e);if(null===e||void 0===e)return n;if("object"===typeof e)return function(e){var n=function(e){var n=e.length,r=-1,o=[];for(;++r<n;)o[r]=t(e[r]);return o}(e),r=n.length;return o;function o(){for(var e=-1;++e<r;)if(n[e].apply(this,arguments))return!0;return!1}}(e);if("function"===typeof e)return function(e){return t;function t(t){return n(t)&&Boolean(e.apply(this,arguments))}}(e);throw new Error("Expected function, string, or array as test")}function n(e){return e&&"object"===typeof e&&"element"===e.type&&"string"===typeof e.tagName}e.exports=t},78892:function(e){"use strict";e.exports=function(e,n){var r,o,i,a=e||"",s=n||"div",c={},u=0;for(;u<a.length;)t.lastIndex=u,i=t.exec(a),(r=a.slice(u,i?i.index:a.length))&&(o?"#"===o?c.id=r:c.className?c.className.push(r):c.className=[r]:s=r,u+=r.length),i&&(o=i[0],u++);return{type:"element",tagName:s,properties:c,children:[]}};var t=/[#.]/g},85330:function(e,t,n){"use strict";var r=n(96464),o=n(83216),i=n(33262);e.exports=function(e){var t,n,o,i,a=e.children||[],s=p(e),u=y(e,{}),l=-1;if("text"===e.type||"comment"===e.type)return m(e,{whiteSpace:u,breakBefore:!0,breakAfter:!0});t=[];for(;++l<a.length;)t=t.concat(h(a[l],l,e,{whiteSpace:u,breakBefore:l?null:s,breakAfter:l<a.length-1?c(a[l+1]):s}));l=-1,n=[];for(;++l<t.length;)"number"===typeof(o=t[l])?void 0!==i&&o>i&&(i=o):o&&(i&&n.push(r("\n",i)),i=0,n.push(o));return n.join("")};var a=/\n/g,s=/[\t ]+/g,c=o("br"),u=o("p"),l=o(["th","td"]),d=o("tr"),f=o(["datalist","head","noembed","noframes","rp","script","style","template","title","noscript",function(e){return(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),p=o(["caption","html","body","address","blockquote","center","dialog","div","figure","figcaption","footer","form,","header","hr","legend","listing","main","p","plaintext","pre","xmp","article","aside","h1","h2","h3","h4","h5","h6","hgroup","nav","section","dir","dd","dl","dt","menu","ol","ul"]);function h(e,t,n,r){return"element"===e.type?function(e,t,n,r){var o,a,s=y(e,r),m=e.children||[],v=-1,g=[];if(f(e))return g;c(e)||d(e)&&i(n,e,d)?a="\n":u(e)?(o=2,a=2):p(e)&&(o=1,a=1);for(;++v<m.length;)g=g.concat(h(m[v],v,e,{whiteSpace:s,breakBefore:v?null:o,breakAfter:v<m.length-1?c(m[v+1]):a}));l(e)&&i(n,e,l)&&g.push("\t");o&&g.unshift(o);a&&g.push(a);return g}(e,0,n,r):"text"===e.type?["normal"===r.whiteSpace?m(e,r):v(e)]:[]}function m(e,t){for(var n,r,o,i=String(e.value),s=[],c=[],u=0,l=-1;u<i.length;)a.lastIndex=u,r=(n=a.exec(i))?n.index:i.length,s.push(g(i.slice(u,r).replace(/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g,""),t.breakBefore,t.breakAfter)),u=r+1;for(;++l<s.length;)8203===s[l].charCodeAt(s[l].length-1)||l<s.length-1&&8203===s[l+1].charCodeAt(0)?(c.push(s[l]),o=""):s[l]&&(o&&c.push(o),c.push(s[l]),o=" ");return c.join("")}function v(e){return String(e.value)}function g(e,t,n){for(var r,o,i=[],a=0;a<e.length;)s.lastIndex=a,o=(r=s.exec(e))?r.index:e.length,a||o||!r||t||i.push(""),a!==o&&i.push(e.slice(a,o)),a=r?o+r[0].length:o;return a===o||n||i.push(""),i.join(" ")}function y(e,t){var n=e.properties||{},r=t.whiteSpace||"normal";switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":r;case"textarea":return"pre-wrap";default:return r}}},62502:function(e,t,n){"use strict";var r=n(99560),o=n(66632),i=n(78892),a=n(36582).parse,s=n(56851).parse;e.exports=function(e,t,n){var o=n?function(e){var t,n=e.length,r=-1,o={};for(;++r<n;)o[(t=e[r]).toLowerCase()]=t;return o}(n):null;return function(e,n){var r,a=i(e,t),s=Array.prototype.slice.call(arguments,2),d=a.tagName.toLowerCase();a.tagName=o&&c.call(o,d)?o[d]:d,n&&u(n,a)&&(s.unshift(n),n=null);if(n)for(r in n)f(a.properties,r,n[r]);l(a.children,s),"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]);return a};function f(t,n,o){var i,c,u;null!==o&&void 0!==o&&o===o&&(c=(i=r(e,n)).property,"string"===typeof(u=o)&&(i.spaceSeparated?u=a(u):i.commaSeparated?u=s(u):i.commaOrSpaceSeparated&&(u=a(s(u).join(" ")))),"style"===c&&"string"!==typeof o&&(u=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(u)),"className"===c&&t.className&&(u=t.className.concat(u)),t[c]=function(e,t,n){var r,o,i;if("object"!==typeof n||!("length"in n))return d(e,t,n);o=n.length,r=-1,i=[];for(;++r<o;)i[r]=d(e,t,n[r]);return i}(i,c,u))}};var c={}.hasOwnProperty;function u(e,t){return"string"===typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!==typeof n)return!1;if("object"===typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}function l(e,t){var n,r;if("string"!==typeof t&&"number"!==typeof t)if("object"===typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)l(e,t[n]);else{if("object"!==typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function d(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!==typeof r||""!==r&&o(n)!==o(t)||(r=!0)),r}},52579:function(e,t,n){"use strict";var r=n(97247),o=n(62502)(r,"div");o.displayName="html",e.exports=o},31742:function(e,t,n){"use strict";e.exports=n(52579)},15157:function(e){"use strict";e.exports=JSON.parse('["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]')},9505:function(e,t,n){"use strict";var r=n(11218),o=n(15157),i=n(62502)(r,"g",o);i.displayName="svg",e.exports=i},1527:function(e,t){"use strict";function n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(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 new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=(t instanceof Array?t.length?t:[void 0]:[t]).map((function(e){return{keyAccessor:e,isProp:!(e instanceof Function)}})),u=e.reduce((function(e,t){var r=e,o=t;return c.forEach((function(e,t){var a,u=e.keyAccessor;if(e.isProp){var l=o,d=l[u],f=n(l,[u].map(s));a=d,o=f}else a=u(o,t);t+1<c.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):i?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(o)):r[a]=o})),e}),{});i instanceof Function&&function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;n===c.length?Object.keys(t).forEach((function(e){return t[e]=i(t[e])})):Object.values(t).forEach((function(t){return e(t,n+1)}))}(u);var l=u;return a&&(l=[],function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===c.length?l.push({keys:n,vals:t}):Object.entries(t).forEach((function(t){var i=r(t,2),a=i[0],s=i[1];return e(s,[].concat(o(n),[a]))}))}(u),t instanceof Array&&0===t.length&&1===l.length&&(l[0].keys=[])),l}},18139:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function l(e){return e?e.replace(c,u):u}e.exports=function(e,c){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=c.source}m.prototype.content=e;var v=[];function g(t){var n=new Error(c.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=c.source,n.line=d,n.column=f,n.source=e,!c.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function E(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function T(){var e=h(),n=y(o);if(n){if(_(),!y(i))return g("property missing ':'");var r=y(a),c=e({type:"declaration",property:l(n[0].replace(t,u)),value:r?l(r[0].replace(t,u)):u});return y(s),c}}return b(),function(){var e,t=[];for(E(t);e=T();)!1!==e&&(t.push(e),E(t));return t}()}},33310:function(e){"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},36808:function(e,t,n){var r,o;!function(i){if(void 0===(o="function"===typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var a=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!==typeof document){"number"===typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(u){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in i)i[c]&&(s+="; "+c,!0!==i[c]&&(s+="="+i[c].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(r.read||r)(c,u)||t(c),n)try{c=JSON.parse(c)}catch(l){}if(o[u]=c,e===u)break}catch(l){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},44858:function(e,t,n){"use strict";var r=n(20296),o=n.n(r);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function e(t,n){var r=n.default,o=void 0===r?null:r,i=n.triggerUpdate,a=void 0===i||i,s=n.onChange,c=void 0===s?function(e,t){}:s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.defaultVal=o,this.triggerUpdate=a,this.onChange=c};t.Z=function(e){var t=e.stateInit,n=void 0===t?function(){return{}}:t,r=e.props,a=void 0===r?{}:r,c=e.methods,u=void 0===c?{}:c,l=e.aliases,d=void 0===l?{}:l,f=e.init,p=void 0===f?function(){}:f,h=e.update,m=void 0===h?function(){}:h,v=Object.keys(a).map((function(e){return new s(e,a[e])}));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},n instanceof Function?n(e):n,{initialised:!1}),r={};function a(t){return s(t,e),c(),a}var s=function(e,n){p.call(a,e,t,n),t.initialised=!0},c=o()((function(){t.initialised&&(m.call(a,t,r),r={})}),1);return v.forEach((function(e){a[e.name]=function(e){var n=e.name,o=e.triggerUpdate,i=void 0!==o&&o,s=e.onChange,u=void 0===s?function(e,t){}:s,l=e.defaultVal,d=void 0===l?null:l;return function(e){var o=t[n];if(!arguments.length)return o;var s=void 0===e?d:e;return t[n]=s,u.call(a,s,t,o),!r.hasOwnProperty(n)&&(r[n]=o),i&&c(),a}}(e)})),Object.keys(u).forEach((function(e){a[e]=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=u[e]).call.apply(n,[a,t].concat(o))}})),Object.entries(d).forEach((function(e){var t=i(e,2),n=t[0],r=t[1];return a[n]=a[r]})),a.resetProps=function(){return v.forEach((function(e){a[e.name](e.defaultVal)})),a},a.resetProps(),t._rerender=c,a}}},93096:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=u||l||Function("return this")(),f=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return d.Date.now()};function v(e,t,n){var o,i,a,s,c,u,l=0,d=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=o,r=i;return o=i=void 0,l=t,s=e.apply(r,n)}function E(e){return l=e,c=setTimeout(T,t),d?b(e):s}function _(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=a}function T(){var e=m();if(_(e))return w(e);c=setTimeout(T,function(e){var n=t-(e-u);return f?h(n,a-(e-l)):n}(e))}function w(e){return c=void 0,v&&o?b(e):(o=i=void 0,s)}function k(){var e=m(),n=_(e);if(o=arguments,i=this,u=e,n){if(void 0===c)return E(u);if(f)return c=setTimeout(T,t),b(u)}return void 0===c&&(c=setTimeout(T,t)),s}return t=y(t)||0,g(n)&&(d=!!n.leading,a=(f="maxWait"in n)?p(y(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==c&&clearTimeout(c),l=0,o=u=i=c=void 0},k.flush=function(){return void 0===c?s:w(m())},k}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),v(e,t,{leading:o,maxWait:t,trailing:i})}},90233:function(e,t,n){"use strict";n.r(t),n.d(t,{rankings:function(){return a}});var r=n(22122),o=n(76826),i=n.n(o),a={CASE_SENSITIVE_EQUAL:9,EQUAL:8,STARTS_WITH:7,WORD_STARTS_WITH:6,STRING_CASE:5,STRING_CASE_ACRONYM:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},s={CAMEL:.8,PASCAL:.6,KEBAB:.4,SNAKE:.2,NO_CASE:0};u.rankings=a,u.caseRankings=s;var c=function(e,t){return String(e.rankedItem).localeCompare(t.rankedItem)};function u(e,t,n){void 0===n&&(n={});var r=n,o=r.keys,i=r.threshold,s=void 0===i?a.MATCHES:i,u=r.baseSort,d=void 0===u?c:u;return e.reduce((function(e,r,i){var c=function(e,t,n,r){if(!t)return{rankedItem:e,rank:l(e,n,r),keyIndex:-1,keyThreshold:r.threshold};return function(e,t){return t.reduce((function(t,n){var r=function(e,t){"object"===typeof t&&(t=t.key);var n;n="function"===typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce((function(e,t){return e?e[t]:null}),e):e[t];return null!=n?[].concat(n):null}(e,n);return r&&r.forEach((function(e){t.push({itemValue:e,attributes:f(n)})})),t}),[])}(e,t).reduce((function(e,t,o){var i=e.rank,s=e.rankedItem,c=e.keyIndex,u=e.keyThreshold,d=t.itemValue,f=t.attributes,p=l(d,n,r),h=s,m=f.minRanking,v=f.maxRanking,g=f.threshold;return p<m&&p>=a.MATCHES?p=m:p>v&&(p=v),p>i&&(i=p,c=o,u=g,h=d),{rankedItem:h,rank:i,keyIndex:c,keyThreshold:u}}),{rank:a.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,o,t,n),u=c.rankedItem,d=c.rank,p=c.keyIndex,h=c.keyThreshold;d>=(void 0===h?s:h)&&e.push({rankedItem:u,item:r,rank:d,index:i,keyIndex:p});return e}),[]).sort((function(e,t){return function(e,t,n){var r=-1,o=1,i=e.rank,a=e.keyIndex,s=t.rank,c=t.keyIndex;return i===s?a===c?n(e,t):a<c?r:o:i>s?r:o}(e,t,d)})).map((function(e){return e.item}))}function l(e,t,n){if(e=d(e,n),(t=d(t,n)).length>e.length)return a.NO_MATCH;if(e===t)return a.CASE_SENSITIVE_EQUAL;var r=function(e){var t=e.toLowerCase()!==e,n=e.indexOf("-")>=0,r=e.indexOf("_")>=0;if(!t&&!r&&n)return s.KEBAB;if(!t&&r&&!n)return s.SNAKE;if(t&&!n&&!r){return e[0].toUpperCase()===e[0]?s.PASCAL:s.CAMEL}return s.NO_CASE}(e),o=function(e,t,n){var r=e.toLowerCase().indexOf(t.toLowerCase());switch(n){case s.SNAKE:return"_"===e[r-1];case s.KEBAB:return"-"===e[r-1];case s.PASCAL:case s.CAMEL:return-1!==r&&e[r]===e[r].toUpperCase();default:return!1}}(e,t,r),i=function(e,t,n){var r=null;switch(n){case s.SNAKE:r="_";break;case s.KEBAB:r="-";break;case s.PASCAL:case s.CAMEL:r=/(?=[A-Z])/;break;default:r=null}var o=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=o[n];return e&&r&&r[0].toLowerCase()===t}),!0)}(e,t,r);return(e=e.toLowerCase())===(t=t.toLowerCase())?a.EQUAL+r:0===e.indexOf(t)?a.STARTS_WITH+r:-1!==e.indexOf(" "+t)?a.WORD_STARTS_WITH+r:o?a.STRING_CASE+r:r>0&&i?a.STRING_CASE_ACRONYM+r:-1!==e.indexOf(t)?a.CONTAINS+r:1===t.length?a.NO_MATCH:-1!==function(e){var t="";return e.split(" ").forEach((function(e){e.split("-").forEach((function(e){t+=e.substr(0,1)}))})),t}(e).indexOf(t)?a.ACRONYM+r:function(e,t){var n=0,r=0;function o(e,t,r){for(var o=r;o<t.length;o++){if(t[o]===e)return n+=1,o+1}return-1}function i(e){var r=n/t.length;return a.MATCHES+r*(1/e)}var s=o(t[0],e,0);if(s<0)return a.NO_MATCH;r=s;for(var c=1;c<t.length;c++){if(!((r=o(t[c],e,r))>-1))return a.NO_MATCH}return i(r-s)}(e,t)}function d(e,t){return e=""+e,t.keepDiacritics||(e=i()(e)),e}function f(e){return"string"===typeof e&&(e={key:e}),(0,r.Z)({maxRanking:1/0,minRanking:-1/0},e)}t.default=u},3752:function(e,t,n){"use strict";function r(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n;if(void 0===t){var o,i=r(e);try{for(i.s();!(o=i.n()).done;){var a=o.value;null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}}catch(d){i.e(d)}finally{i.f()}}else{var s,c=-1,u=r(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;null!=(l=t(l,++c,e))&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(d){u.e(d)}finally{u.f()}}return n}n.d(t,{Z:function(){return i}})},86701:function(e,t,n){"use strict";function r(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n;if(void 0===t){var o,i=r(e);try{for(i.s();!(o=i.n()).done;){var a=o.value;null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}}catch(d){i.e(d)}finally{i.f()}}else{var s,c=-1,u=r(e);try{for(u.s();!(s=u.n()).done;){var l=s.value;null!=(l=t(l,++c,e))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(d){u.e(d)}finally{u.f()}}return n}n.d(t,{Z:function(){return i}})},14275:function(e,t,n){"use strict";function r(e,t,n){if(isNaN(t))return e;var r,o,i,a,s,c,u=e._root,l={data:n},d=e._x0,f=e._x1;if(!u)return e._root=l,e;for(;u.length;)if((a=t>=(o=(d+f)/2))?d=o:f=o,r=u,!(u=u[s=+a]))return r[s]=l,e;if(t===(i=+e._x.call(null,u.data)))return l.next=u,r?r[s]=l:e._root=l,e;do{r=r?r[s]=new Array(2):e._root=new Array(2),(a=t>=(o=(d+f)/2))?d=o:f=o}while((s=+a)===(c=+(i>=o)));return r[c]=u,r[s]=l,e}function o(e,t,n){this.node=e,this.x0=t,this.x1=n}function i(e){return e[0]}function a(e,t){var n=new s(null==t?i:t,NaN,NaN);return null==e?n:n.addAll(e)}function s(e,t,n){this._x=e,this._x0=t,this._x1=n,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return a}});var u=a.prototype=s.prototype;u.copy=function(){var e,t,n=new s(this._x,this._x0,this._x1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=new Array(2)}];r=e.pop();)for(var o=0;o<2;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(2)}):r.target[o]=c(t));return n},u.add=function(e){var t=+this._x.call(null,e);return r(this.cover(t),t,e)},u.addAll=function(e){var t,n,o=e.length,i=new Array(o),a=1/0,s=-1/0;for(t=0;t<o;++t)isNaN(n=+this._x.call(null,e[t]))||(i[t]=n,n<a&&(a=n),n>s&&(s=n));if(a>s)return this;for(this.cover(a).cover(s),t=0;t<o;++t)r(this,i[t],e[t]);return this},u.cover=function(e){if(isNaN(e=+e))return this;var t=this._x0,n=this._x1;if(isNaN(t))n=(t=Math.floor(e))+1;else{for(var r,o,i=n-t||1,a=this._root;t>e||e>=n;)switch(o=+(e<t),(r=new Array(2))[o]=a,a=r,i*=2,o){case 0:n=t+i;break;case 1:t=n-i}this._root&&this._root.length&&(this._root=a)}return this._x0=t,this._x1=n,this},u.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},u.extent=function(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]},u.find=function(e,t){var n,r,i,a,s,c=this._x0,u=this._x1,l=[],d=this._root;for(d&&l.push(new o(d,c,u)),null==t?t=1/0:(c=e-t,u=e+t);a=l.pop();)if(!(!(d=a.node)||(r=a.x0)>u||(i=a.x1)<c))if(d.length){var f=(r+i)/2;l.push(new o(d[1],f,i),new o(d[0],r,f)),(s=+(e>=f))&&(a=l[l.length-1],l[l.length-1]=l[l.length-1-s],l[l.length-1-s]=a)}else{var p=Math.abs(e-+this._x.call(null,d.data));p<t&&(t=p,c=e-p,u=e+p,n=d.data)}return n},u.remove=function(e){if(isNaN(i=+this._x.call(null,e)))return this;var t,n,r,o,i,a,s,c,u,l=this._root,d=this._x0,f=this._x1;if(!l)return this;if(l.length)for(;;){if((s=i>=(a=(d+f)/2))?d=a:f=a,t=l,!(l=l[c=+s]))return this;if(!l.length)break;t[c+1&1]&&(n=t,u=c)}for(;l.data!==e;)if(r=l,!(l=l.next))return this;return(o=l.next)&&delete l.next,r?(o?r.next=o:delete r.next,this):t?(o?t[c]=o:delete t[c],(l=t[0]||t[1])&&l===(t[1]||t[0])&&!l.length&&(n?n[u]=l:this._root=l),this):(this._root=o,this)},u.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},u.root=function(){return this._root},u.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},u.visit=function(e){var t,n,r,i,a=[],s=this._root;for(s&&a.push(new o(s,this._x0,this._x1));t=a.pop();)if(!e(s=t.node,r=t.x0,i=t.x1)&&s.length){var c=(r+i)/2;(n=s[1])&&a.push(new o(n,c,i)),(n=s[0])&&a.push(new o(n,r,c))}return this},u.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._x1));t=n.pop();){var i=t.node;if(i.length){var a,s=t.x0,c=t.x1,u=(s+c)/2;(a=i[0])&&n.push(new o(a,s,u)),(a=i[1])&&n.push(new o(a,u,c))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.x1);return this},u.x=function(e){return arguments.length?(this._x=e,this):this._x}},77137:function(e,t){"use strict";var n={value:function(){}};function r(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new o(r)}function o(e){this._=e}function i(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function a(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function s(e,t,r){for(var o=0,i=e.length;o<i;++o)if(e[o].name===t){e[o]=n,e=e.slice(0,o).concat(e.slice(o+1));break}return null!=r&&e.push({name:t,value:r}),e}o.prototype=r.prototype={constructor:o,on:function(e,t){var n,r=this._,o=i(e+"",r),c=-1,u=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++c<u;)if(n=(e=o[c]).type)r[n]=s(r[n],e.name,t);else if(null==t)for(n in r)r[n]=s(r[n],e.name,null);return this}for(;++c<u;)if((n=(e=o[c]).type)&&(n=a(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new o(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}},t.Z=r},20216:function(e,t,n){"use strict";function r(e,t,n){var r,o=1;function i(){var i,a,s=r.length,c=0,u=0,l=0;for(i=0;i<s;++i)c+=(a=r[i]).x||0,u+=a.y||0,l+=a.z||0;for(c=(c/s-e)*o,u=(u/s-t)*o,l=(l/s-n)*o,i=0;i<s;++i)a=r[i],c&&(a.x-=c),u&&(a.y-=u),l&&(a.z-=l)}return null==e&&(e=0),null==t&&(t=0),null==n&&(n=0),i.initialize=function(e){r=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.z=function(e){return arguments.length?(n=+e,i):n},i.strength=function(e){return arguments.length?(o=+e,i):o},i}n.d(t,{Z:function(){return r}})},29437:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},8246:function(e,t,n){"use strict";function r(e){return 1e-6*(e()-.5)}n.d(t,{Z:function(){return r}})},15560:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(29437),o=n(8246);function i(e){return e.index}function a(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function s(e){var t,n,s,c,u,l,d,f=i,p=function(e){return 1/Math.min(u[e.source.index],u[e.target.index])},h=(0,r.Z)(30),m=1;function v(r){for(var i=0,a=e.length;i<m;++i)for(var s,u,f,p,h,v=0,g=0,y=0,b=0;v<a;++v)u=(s=e[v]).source,g=(f=s.target).x+f.vx-u.x-u.vx||(0,o.Z)(d),c>1&&(y=f.y+f.vy-u.y-u.vy||(0,o.Z)(d)),c>2&&(b=f.z+f.vz-u.z-u.vz||(0,o.Z)(d)),g*=p=((p=Math.sqrt(g*g+y*y+b*b))-n[v])/p*r*t[v],y*=p,b*=p,f.vx-=g*(h=l[v]),c>1&&(f.vy-=y*h),c>2&&(f.vz-=b*h),u.vx+=g*(h=1-h),c>1&&(u.vy+=y*h),c>2&&(u.vz+=b*h)}function g(){if(s){var r,o,i=s.length,c=e.length,d=new Map(s.map((function(e,t){return[f(e,t,s),e]})));for(r=0,u=new Array(i);r<c;++r)(o=e[r]).index=r,"object"!==typeof o.source&&(o.source=a(d,o.source)),"object"!==typeof o.target&&(o.target=a(d,o.target)),u[o.source.index]=(u[o.source.index]||0)+1,u[o.target.index]=(u[o.target.index]||0)+1;for(r=0,l=new Array(c);r<c;++r)o=e[r],l[r]=u[o.source.index]/(u[o.source.index]+u[o.target.index]);t=new Array(c),y(),n=new Array(c),b()}}function y(){if(s)for(var n=0,r=e.length;n<r;++n)t[n]=+p(e[n],n,e)}function b(){if(s)for(var t=0,r=e.length;t<r;++t)n[t]=+h(e[t],t,e)}return null==e&&(e=[]),v.initialize=function(e){s=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];d=n.find((function(e){return"function"===typeof e}))||Math.random,c=n.find((function(e){return[1,2,3].includes(e)}))||2,g()},v.links=function(t){return arguments.length?(e=t,g(),v):e},v.id=function(e){return arguments.length?(f=e,v):f},v.iterations=function(e){return arguments.length?(m=+e,v):m},v.strength=function(e){return arguments.length?(p="function"===typeof e?e:(0,r.Z)(+e),y(),v):p},v.distance=function(e){return arguments.length?(h="function"===typeof e?e:(0,r.Z)(+e),b(),v):h},v}},92405:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(14275),o=n(60054),i=n(78357),a=n(29437),s=n(8246),c=n(54505);function u(){var e,t,n,u,l,d,f=(0,a.Z)(-30),p=1,h=1/0,m=.81;function v(a){var s,u=e.length,d=(1===t?(0,r.Z)(e,c.x):2===t?(0,o.Z)(e,c.x,c.y):3===t?(0,i.Z)(e,c.x,c.y,c.z):null).visitAfter(y);for(l=a,s=0;s<u;++s)n=e[s],d.visit(b)}function g(){if(e){var t,n,r=e.length;for(d=new Array(r),t=0;t<r;++t)n=e[t],d[n.index]=+f(n,t,e)}}function y(e){var n,r,o,i,a,s,c=0,u=0,l=e.length;if(l){for(o=i=a=s=0;s<l;++s)(n=e[s])&&(r=Math.abs(n.value))&&(c+=n.value,u+=r,o+=r*(n.x||0),i+=r*(n.y||0),a+=r*(n.z||0));c*=Math.sqrt(4/l),e.x=o/u,t>1&&(e.y=i/u),t>2&&(e.z=a/u)}else{(n=e).x=n.data.x,t>1&&(n.y=n.data.y),t>2&&(n.z=n.data.z);do{c+=d[n.data.index]}while(n=n.next)}e.value=c}function b(e,r,o,i,a){if(!e.value)return!0;var c=[o,i,a][t-1],f=e.x-n.x,v=t>1?e.y-n.y:0,g=t>2?e.z-n.z:0,y=c-r,b=f*f+v*v+g*g;if(y*y/m<b)return b<h&&(0===f&&(b+=(f=(0,s.Z)(u))*f),t>1&&0===v&&(b+=(v=(0,s.Z)(u))*v),t>2&&0===g&&(b+=(g=(0,s.Z)(u))*g),b<p&&(b=Math.sqrt(p*b)),n.vx+=f*e.value*l/b,t>1&&(n.vy+=v*e.value*l/b),t>2&&(n.vz+=g*e.value*l/b)),!0;if(!(e.length||b>=h)){(e.data!==n||e.next)&&(0===f&&(b+=(f=(0,s.Z)(u))*f),t>1&&0===v&&(b+=(v=(0,s.Z)(u))*v),t>2&&0===g&&(b+=(g=(0,s.Z)(u))*g),b<p&&(b=Math.sqrt(p*b)));do{e.data!==n&&(y=d[e.data.index]*l/b,n.vx+=f*y,t>1&&(n.vy+=v*y),t>2&&(n.vz+=g*y))}while(e=e.next)}}return v.initialize=function(n){e=n;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];u=o.find((function(e){return"function"===typeof e}))||Math.random,t=o.find((function(e){return[1,2,3].includes(e)}))||2,g()},v.strength=function(e){return arguments.length?(f="function"===typeof e?e:(0,a.Z)(+e),g(),v):f},v.distanceMin=function(e){return arguments.length?(p=e*e,v):Math.sqrt(p)},v.distanceMax=function(e){return arguments.length?(h=e*e,v):Math.sqrt(h)},v.theta=function(e){return arguments.length?(m=e*e,v):Math.sqrt(m)},v}},16917:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(29437);function o(e,t,n,o){var i,a,s,c,u=(0,r.Z)(.1);function l(e){for(var r=0,u=i.length;r<u;++r){var l=i[r],d=l.x-t||1e-6,f=(l.y||0)-n||1e-6,p=(l.z||0)-o||1e-6,h=Math.sqrt(d*d+f*f+p*p),m=(c[r]-h)*s[r]*e/h;l.vx+=d*m,a>1&&(l.vy+=f*m),a>2&&(l.vz+=p*m)}}function d(){if(i){var t,n=i.length;for(s=new Array(n),c=new Array(n),t=0;t<n;++t)c[t]=+e(i[t],t,i),s[t]=isNaN(c[t])?0:+u(i[t],t,i)}}return"function"!==typeof e&&(e=(0,r.Z)(+e)),null==t&&(t=0),null==n&&(n=0),null==o&&(o=0),l.initialize=function(e){i=e;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a=n.find((function(e){return[1,2,3].includes(e)}))||2,d()},l.strength=function(e){return arguments.length?(u="function"===typeof e?e:(0,r.Z)(+e),d(),l):u},l.radius=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),d(),l):e},l.x=function(e){return arguments.length?(t=+e,l):t},l.y=function(e){return arguments.length?(n=+e,l):n},l.z=function(e){return arguments.length?(o=+e,l):o},l}},54505:function(e,t,n){"use strict";n.d(t,{Z:function(){return d},x:function(){return a},y:function(){return s},z:function(){return c}});var r=n(77137),o=n(513),i=4294967296;function a(e){return e.x}function s(e){return e.y}function c(e){return e.z}var u=Math.PI*(3-Math.sqrt(5)),l=20*Math.PI/(9+Math.sqrt(221));function d(e,t){t=t||2;var n,a=Math.min(3,Math.max(1,Math.round(t))),s=1,c=.001,d=1-Math.pow(c,1/300),f=0,p=.6,h=new Map,m=(0,o.HT)(y),v=(0,r.Z)("tick","end"),g=function(){var e=1;return function(){return(e=(1664525*e+1013904223)%i)/i}}();function y(){b(),v.call("tick",n),s<c&&(m.stop(),v.call("end",n))}function b(t){var r,o,i=e.length;void 0===t&&(t=1);for(var c=0;c<t;++c)for(s+=(f-s)*d,h.forEach((function(e){e(s)})),r=0;r<i;++r)null==(o=e[r]).fx?o.x+=o.vx*=p:(o.x=o.fx,o.vx=0),a>1&&(null==o.fy?o.y+=o.vy*=p:(o.y=o.fy,o.vy=0)),a>2&&(null==o.fz?o.z+=o.vz*=p:(o.z=o.fz,o.vz=0));return n}function E(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),null!=t.fz&&(t.z=t.fz),isNaN(t.x)||a>1&&isNaN(t.y)||a>2&&isNaN(t.z)){var o=10*(a>2?Math.cbrt(.5+n):a>1?Math.sqrt(.5+n):n),i=n*u,s=n*l;1===a?t.x=o:2===a?(t.x=o*Math.cos(i),t.y=o*Math.sin(i)):(t.x=o*Math.sin(i)*Math.cos(s),t.y=o*Math.cos(i),t.z=o*Math.sin(i)*Math.sin(s))}(isNaN(t.vx)||a>1&&isNaN(t.vy)||a>2&&isNaN(t.vz))&&(t.vx=0,a>1&&(t.vy=0),a>2&&(t.vz=0))}}function _(t){return t.initialize&&t.initialize(e,g,a),t}return null==e&&(e=[]),E(),n={tick:b,restart:function(){return m.restart(y),n},stop:function(){return m.stop(),n},numDimensions:function(e){return arguments.length?(a=Math.min(3,Math.max(1,Math.round(e))),h.forEach(_),n):a},nodes:function(t){return arguments.length?(e=t,E(),h.forEach(_),n):e},alpha:function(e){return arguments.length?(s=+e,n):s},alphaMin:function(e){return arguments.length?(c=+e,n):c},alphaDecay:function(e){return arguments.length?(d=+e,n):+d},alphaTarget:function(e){return arguments.length?(f=+e,n):f},velocityDecay:function(e){return arguments.length?(p=1-e,n):1-p},randomSource:function(e){return arguments.length?(g=e,h.forEach(_),n):g},force:function(e,t){return arguments.length>1?(null==t?h.delete(e):h.set(e,_(t)),n):h.get(e)},find:function(){var t,n,r,o,i,s,c=Array.prototype.slice.call(arguments),u=c.shift()||0,l=(a>1?c.shift():null)||0,d=(a>2?c.shift():null)||0,f=c.shift()||1/0,p=0,h=e.length;for(f*=f,p=0;p<h;++p)(o=(t=u-(i=e[p]).x)*t+(n=l-(i.y||0))*n+(r=d-(i.z||0))*r)<f&&(s=i,f=o);return s},on:function(e,t){return arguments.length>1?(v.on(e,t),n):v.on(e)}}}},78357:function(e,t,n){"use strict";function r(e,t,n,r,o){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var i,a,s,c,u,l,d,f,p,h,m,v,g=e._root,y={data:o},b=e._x0,E=e._y0,_=e._z0,T=e._x1,w=e._y1,k=e._z1;if(!g)return e._root=y,e;for(;g.length;)if((f=t>=(a=(b+T)/2))?b=a:T=a,(p=n>=(s=(E+w)/2))?E=s:w=s,(h=r>=(c=(_+k)/2))?_=c:k=c,i=g,!(g=g[m=h<<2|p<<1|f]))return i[m]=y,e;if(u=+e._x.call(null,g.data),l=+e._y.call(null,g.data),d=+e._z.call(null,g.data),t===u&&n===l&&r===d)return y.next=g,i?i[m]=y:e._root=y,e;do{i=i?i[m]=new Array(8):e._root=new Array(8),(f=t>=(a=(b+T)/2))?b=a:T=a,(p=n>=(s=(E+w)/2))?E=s:w=s,(h=r>=(c=(_+k)/2))?_=c:k=c}while((m=h<<2|p<<1|f)===(v=(d>=c)<<2|(l>=s)<<1|u>=a));return i[v]=g,i[m]=y,e}function o(e,t,n,r,o,i,a){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=o,this.y1=i,this.z1=a}function i(e){return e[0]}function a(e){return e[1]}function s(e){return e[2]}function c(e,t,n,r){var o=new u(null==t?i:t,null==n?a:n,null==r?s:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==e?o:o.addAll(e)}function u(e,t,n,r,o,i,a,s,c){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=o,this._z0=i,this._x1=a,this._y1=s,this._z1=c,this._root=void 0}function l(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return c}});var d=c.prototype=u.prototype;d.copy=function(){var e,t,n=new u(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return n;if(!r.length)return n._root=l(r),n;for(e=[{source:r,target:n._root=new Array(8)}];r=e.pop();)for(var o=0;o<8;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(8)}):r.target[o]=l(t));return n},d.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e),o=+this._z.call(null,e);return r(this.cover(t,n,o),t,n,o,e)},d.addAll=function(e){var t,n,o,i,a,s=e.length,c=new Array(s),u=new Array(s),l=new Array(s),d=1/0,f=1/0,p=1/0,h=-1/0,m=-1/0,v=-1/0;for(n=0;n<s;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||isNaN(a=+this._z.call(null,t))||(c[n]=o,u[n]=i,l[n]=a,o<d&&(d=o),o>h&&(h=o),i<f&&(f=i),i>m&&(m=i),a<p&&(p=a),a>v&&(v=a));if(d>h||f>m||p>v)return this;for(this.cover(d,f,p).cover(h,m,v),n=0;n<s;++n)r(this,c[n],u[n],l[n],e[n]);return this},d.cover=function(e,t,n){if(isNaN(e=+e)||isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,i=this._z0,a=this._x1,s=this._y1,c=this._z1;if(isNaN(r))a=(r=Math.floor(e))+1,s=(o=Math.floor(t))+1,c=(i=Math.floor(n))+1;else{for(var u,l,d=a-r||1,f=this._root;r>e||e>=a||o>t||t>=s||i>n||n>=c;)switch(l=(n<i)<<2|(t<o)<<1|e<r,(u=new Array(8))[l]=f,f=u,d*=2,l){case 0:a=r+d,s=o+d,c=i+d;break;case 1:r=a-d,s=o+d,c=i+d;break;case 2:a=r+d,o=s-d,c=i+d;break;case 3:r=a-d,o=s-d,c=i+d;break;case 4:a=r+d,s=o+d,i=c-d;break;case 5:r=a-d,s=o+d,i=c-d;break;case 6:a=r+d,o=s-d,i=c-d;break;case 7:r=a-d,o=s-d,i=c-d}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=o,this._z0=i,this._x1=a,this._y1=s,this._z1=c,this},d.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},d.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]},d.find=function(e,t,n,r){var i,a,s,c,u,l,d,f,p,h=this._x0,m=this._y0,v=this._z0,g=this._x1,y=this._y1,b=this._z1,E=[],_=this._root;for(_&&E.push(new o(_,h,m,v,g,y,b)),null==r?r=1/0:(h=e-r,m=t-r,v=n-r,g=e+r,y=t+r,b=n+r,r*=r);f=E.pop();)if(!(!(_=f.node)||(a=f.x0)>g||(s=f.y0)>y||(c=f.z0)>b||(u=f.x1)<h||(l=f.y1)<m||(d=f.z1)<v))if(_.length){var T=(a+u)/2,w=(s+l)/2,k=(c+d)/2;E.push(new o(_[7],T,w,k,u,l,d),new o(_[6],a,w,k,T,l,d),new o(_[5],T,s,k,u,w,d),new o(_[4],a,s,k,T,w,d),new o(_[3],T,w,c,u,l,k),new o(_[2],a,w,c,T,l,k),new o(_[1],T,s,c,u,w,k),new o(_[0],a,s,c,T,w,k)),(p=(n>=k)<<2|(t>=w)<<1|e>=T)&&(f=E[E.length-1],E[E.length-1]=E[E.length-1-p],E[E.length-1-p]=f)}else{var x=e-+this._x.call(null,_.data),O=t-+this._y.call(null,_.data),C=n-+this._z.call(null,_.data),A=x*x+O*O+C*C;if(A<r){var S=Math.sqrt(r=A);h=e-S,m=t-S,v=n-S,g=e+S,y=t+S,b=n+S,i=_.data}}return i},d.remove=function(e){if(isNaN(i=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e))||isNaN(s=+this._z.call(null,e)))return this;var t,n,r,o,i,a,s,c,u,l,d,f,p,h,m,v=this._root,g=this._x0,y=this._y0,b=this._z0,E=this._x1,_=this._y1,T=this._z1;if(!v)return this;if(v.length)for(;;){if((d=i>=(c=(g+E)/2))?g=c:E=c,(f=a>=(u=(y+_)/2))?y=u:_=u,(p=s>=(l=(b+T)/2))?b=l:T=l,t=v,!(v=v[h=p<<2|f<<1|d]))return this;if(!v.length)break;(t[h+1&7]||t[h+2&7]||t[h+3&7]||t[h+4&7]||t[h+5&7]||t[h+6&7]||t[h+7&7])&&(n=t,m=h)}for(;v.data!==e;)if(r=v,!(v=v.next))return this;return(o=v.next)&&delete v.next,r?(o?r.next=o:delete r.next,this):t?(o?t[h]=o:delete t[h],(v=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&v===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!v.length&&(n?n[m]=v:this._root=v),this):(this._root=o,this)},d.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},d.root=function(){return this._root},d.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},d.visit=function(e){var t,n,r,i,a,s,c,u,l=[],d=this._root;for(d&&l.push(new o(d,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=l.pop();)if(!e(d=t.node,r=t.x0,i=t.y0,a=t.z0,s=t.x1,c=t.y1,u=t.z1)&&d.length){var f=(r+s)/2,p=(i+c)/2,h=(a+u)/2;(n=d[7])&&l.push(new o(n,f,p,h,s,c,u)),(n=d[6])&&l.push(new o(n,r,p,h,f,c,u)),(n=d[5])&&l.push(new o(n,f,i,h,s,p,u)),(n=d[4])&&l.push(new o(n,r,i,h,f,p,u)),(n=d[3])&&l.push(new o(n,f,p,a,s,c,h)),(n=d[2])&&l.push(new o(n,r,p,a,f,c,h)),(n=d[1])&&l.push(new o(n,f,i,a,s,p,h)),(n=d[0])&&l.push(new o(n,r,i,a,f,p,h))}return this},d.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));t=n.pop();){var i=t.node;if(i.length){var a,s=t.x0,c=t.y0,u=t.z0,l=t.x1,d=t.y1,f=t.z1,p=(s+l)/2,h=(c+d)/2,m=(u+f)/2;(a=i[0])&&n.push(new o(a,s,c,u,p,h,m)),(a=i[1])&&n.push(new o(a,p,c,u,l,h,m)),(a=i[2])&&n.push(new o(a,s,h,u,p,d,m)),(a=i[3])&&n.push(new o(a,p,h,u,l,d,m)),(a=i[4])&&n.push(new o(a,s,c,m,p,h,f)),(a=i[5])&&n.push(new o(a,p,c,m,l,h,f)),(a=i[6])&&n.push(new o(a,s,h,m,p,d,f)),(a=i[7])&&n.push(new o(a,p,h,m,l,d,f))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.z0,t.x1,t.y1,t.z1);return this},d.x=function(e){return arguments.length?(this._x=e,this):this._x},d.y=function(e){return arguments.length?(this._y=e,this):this._y},d.z=function(e){return arguments.length?(this._z=e,this):this._z}},60054:function(e,t,n){"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,i,a,s,c,u,l,d,f,p=e._root,h={data:r},m=e._x0,v=e._y0,g=e._x1,y=e._y1;if(!p)return e._root=h,e;for(;p.length;)if((u=t>=(i=(m+g)/2))?m=i:g=i,(l=n>=(a=(v+y)/2))?v=a:y=a,o=p,!(p=p[d=l<<1|u]))return o[d]=h,e;if(s=+e._x.call(null,p.data),c=+e._y.call(null,p.data),t===s&&n===c)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(u=t>=(i=(m+g)/2))?m=i:g=i,(l=n>=(a=(v+y)/2))?v=a:y=a}while((d=l<<1|u)===(f=(c>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}function o(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function i(e){return e[0]}function a(e){return e[1]}function s(e,t,n){var r=new c(null==t?i:t,null==n?a:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function c(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function u(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return s}});var l=s.prototype=c.prototype;l.copy=function(){var e,t,n=new c(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=u(t));return n},l.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},l.addAll=function(e){var t,n,o,i,a=e.length,s=new Array(a),c=new Array(a),u=1/0,l=1/0,d=-1/0,f=-1/0;for(n=0;n<a;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=o,c[n]=i,o<u&&(u=o),o>d&&(d=o),i<l&&(l=i),i>f&&(f=i));if(u>d||l>f)return this;for(this.cover(u,l).cover(d,f),n=0;n<a;++n)r(this,s[n],c[n],e[n]);return this},l.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,i=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var a,s,c=o-n||1,u=this._root;n>e||e>=o||r>t||t>=i;)switch(s=(t<r)<<1|e<n,(a=new Array(4))[s]=u,u=a,c*=2,s){case 0:o=n+c,i=r+c;break;case 1:n=o-c,i=r+c;break;case 2:o=n+c,r=i-c;break;case 3:n=o-c,r=i-c}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},l.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},l.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(e,t,n){var r,i,a,s,c,u,l,d=this._x0,f=this._y0,p=this._x1,h=this._y1,m=[],v=this._root;for(v&&m.push(new o(v,d,f,p,h)),null==n?n=1/0:(d=e-n,f=t-n,p=e+n,h=t+n,n*=n);u=m.pop();)if(!(!(v=u.node)||(i=u.x0)>p||(a=u.y0)>h||(s=u.x1)<d||(c=u.y1)<f))if(v.length){var g=(i+s)/2,y=(a+c)/2;m.push(new o(v[3],g,y,s,c),new o(v[2],i,y,g,c),new o(v[1],g,a,s,y),new o(v[0],i,a,g,y)),(l=(t>=y)<<1|e>=g)&&(u=m[m.length-1],m[m.length-1]=m[m.length-1-l],m[m.length-1-l]=u)}else{var b=e-+this._x.call(null,v.data),E=t-+this._y.call(null,v.data),_=b*b+E*E;if(_<n){var T=Math.sqrt(n=_);d=e-T,f=t-T,p=e+T,h=t+T,r=v.data}}return r},l.remove=function(e){if(isNaN(i=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,o,i,a,s,c,u,l,d,f,p=this._root,h=this._x0,m=this._y0,v=this._x1,g=this._y1;if(!p)return this;if(p.length)for(;;){if((u=i>=(s=(h+v)/2))?h=s:v=s,(l=a>=(c=(m+g)/2))?m=c:g=c,t=p,!(p=p[d=l<<1|u]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},l.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},l.root=function(){return this._root},l.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},l.visit=function(e){var t,n,r,i,a,s,c=[],u=this._root;for(u&&c.push(new o(u,this._x0,this._y0,this._x1,this._y1));t=c.pop();)if(!e(u=t.node,r=t.x0,i=t.y0,a=t.x1,s=t.y1)&&u.length){var l=(r+a)/2,d=(i+s)/2;(n=u[3])&&c.push(new o(n,l,d,a,s)),(n=u[2])&&c.push(new o(n,r,d,l,s)),(n=u[1])&&c.push(new o(n,l,i,a,d)),(n=u[0])&&c.push(new o(n,r,i,l,d))}return this},l.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var a,s=t.x0,c=t.y0,u=t.x1,l=t.y1,d=(s+u)/2,f=(c+l)/2;(a=i[0])&&n.push(new o(a,s,c,d,f)),(a=i[1])&&n.push(new o(a,d,c,u,f)),(a=i[2])&&n.push(new o(a,s,f,d,l)),(a=i[3])&&n.push(new o(a,d,f,u,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},l.x=function(e){return arguments.length?(this._x=e,this):this._x},l.y=function(e){return arguments.length?(this._y=e,this):this._y}},47646:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n}("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928")},72462:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});class r extends Map{constructor(e,t=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(o(this,e))}has(e){return super.has(o(this,e))}set(e,t){return super.set(i(this,e),t)}delete(e){return super.delete(a(this,e))}}Set;function o({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function a({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function s(e){return null!==e&&"object"===typeof e?e.valueOf():e}function c(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function u(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=Symbol("implicit");function f(){var e=new r,t=[],n=[],o=d;function i(r){var i=e.get(r);if(void 0===i){if(o!==d)return o;e.set(r,i=t.push(r)-1)}return n[i%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;var o,a=u(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;e.has(s)||e.set(s,t.push(s)-1)}}catch(c){a.e(c)}finally{a.f()}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(o=e,i):o},i.copy=function(){return f(t,n).unknown(o)},c.apply(i,arguments),i}},513:function(e,t,n){"use strict";n.d(t,{zO:function(){return p},B7:function(){return m},HT:function(){return v}});var r,o,i=0,a=0,s=0,c=0,u=0,l=0,d="object"===typeof performance&&performance.now?performance:Date,f=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function p(){return u||(f(h),u=d.now()+l)}function h(){u=0}function m(){this._call=this._time=this._next=null}function v(e,t,n){var r=new m;return r.restart(e,t,n),r}function g(){u=(c=d.now())+l,i=a=0;try{!function(){p(),++i;for(var e,t=r;t;)(e=u-t._time)>=0&&t._call.call(void 0,e),t=t._next;--i}()}finally{i=0,function(){var e,t,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,b(i)}(),u=0}}function y(){var e=d.now(),t=e-c;t>1e3&&(l-=t,c=e)}function b(e){i||(a&&(a=clearTimeout(a)),e-u>24?(e<1/0&&(a=setTimeout(g,e-d.now()-l)),s&&(s=clearInterval(s))):(s||(c=d.now(),s=setInterval(y,1e3)),i=1,f(g)))}m.prototype=v.prototype={constructor:m,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},84245:function(e){e.exports=function(e){!function(e){if(!e)throw new Error("Eventify cannot use falsy object as events subject");for(var t=["on","fire","off"],n=0;n<t.length;++n)if(e.hasOwnProperty(t[n]))throw new Error("Subject cannot be eventified, since it already has property '"+t[n]+"'")}(e);var t=function(e){var t=Object.create(null);return{on:function(n,r,o){if("function"!==typeof r)throw new Error("callback is expected to be a function");var i=t[n];return i||(i=t[n]=[]),i.push({callback:r,ctx:o}),e},off:function(n,r){if("undefined"===typeof n)return t=Object.create(null),e;if(t[n])if("function"!==typeof r)delete t[n];else for(var o=t[n],i=0;i<o.length;++i)o[i].callback===r&&o.splice(i,1);return e},fire:function(n){var r,o=t[n];if(!o)return e;arguments.length>1&&(r=Array.prototype.splice.call(arguments,1));for(var i=0;i<o.length;++i){var a=o[i];a.callback.apply(a.ctx,r)}return e}}}(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e}},16505:function(e,t,n){e.exports=function(e,t){if(!e)throw new Error("Graph structure cannot be undefined");var i=(t&&t.createSimulator||n(45818))(t);if(Array.isArray(t))throw new Error("Physics settings is expected to be an object");var a=function(t){var n=e.getLinks(t);return n?1+n.length/3:1};t&&"function"===typeof t.nodeMass&&(a=t.nodeMass);var s=new Map,c={},u=0,l=i.settings.springTransform||o;u=0,e.forEachNode((function(e){v(e.id),u+=1})),e.forEachLink(y),e.on("changed",m);var d=!1,f={step:function(){if(0===u)return p(!0),!0;var e=i.step();f.lastMove=e,f.fire("step");var t=e/u<=.01;return p(t),t},getNodePosition:function(e){return _(e).pos},setNodePosition:function(e){var t=_(e);t.setPosition.apply(t,Array.prototype.slice.call(arguments,1))},getLinkPosition:function(e){var t=c[e];if(t)return{from:t.from.pos,to:t.to.pos}},getGraphRect:function(){return i.getBBox()},forEachBody:h,pinNode:function(e,t){_(e.id).isPinned=!!t},isNodePinned:function(e){return _(e.id).isPinned},dispose:function(){e.off("changed",m),f.fire("disposed")},getBody:function(e){return s.get(e)},getSpring:function(t,n){var r;if(void 0===n)r="object"!==typeof t?t:t.id;else{var o=e.hasLink(t,n);if(!o)return;r=o.id}return c[r]},getForceVectorLength:function(){var e=0,t=0;return h((function(n){e+=Math.abs(n.force.x),t+=Math.abs(n.force.y)})),Math.sqrt(e*e+t*t)},simulator:i,graph:e,lastMove:0};return r(f),f;function p(e){var t;d!==e&&(d=e,t=e,f.fire("stable",t))}function h(e){s.forEach(e)}function m(t){for(var n=0;n<t.length;++n){var r=t[n];"add"===r.changeType?(r.node&&v(r.node.id),r.link&&y(r.link)):"remove"===r.changeType&&(r.node&&g(r.node),r.link&&b(r.link))}u=e.getNodesCount()}function v(t){var n=s.get(t);if(!n){var r=e.getNode(t);if(!r)throw new Error("initBody() was called with unknown node id");var o=r.position;if(!o){var a=function(e){var t=[];if(!e.links)return t;for(var n=Math.min(e.links.length,2),r=0;r<n;++r){var o=e.links[r],i=o.fromId!==e.id?s.get(o.fromId):s.get(o.toId);i&&i.pos&&t.push(i)}return t}(r);o=i.getBestNewBodyPosition(a)}(n=i.addBodyAt(o)).id=t,s.set(t,n),E(t),function(e){return e&&(e.isPinned||e.data&&e.data.isPinned)}(r)&&(n.isPinned=!0)}}function g(e){var t=e.id,n=s.get(t);n&&(s.delete(t),i.removeBody(n))}function y(e){E(e.fromId),E(e.toId);var t=s.get(e.fromId),n=s.get(e.toId),r=i.addSpring(t,n,e.length);l(e,r),c[e.id]=r}function b(t){var n=c[t.id];if(n){var r=e.getNode(t.fromId),o=e.getNode(t.toId);r&&E(r.id),o&&E(o.id),delete c[t.id],i.removeSpring(n)}}function E(e){var t=s.get(e);if(t.mass=a(e),Number.isNaN(t.mass))throw new Error("Node mass should be a number")}function _(e){var t=s.get(e);return t||(v(e),t=s.get(e)),t}},e.exports.simulator=n(45818);var r=n(84245);function o(){}},15189:function(e,t,n){const r=n(16422);e.exports=function(e){return function(t,n){let o=n&&n.indent||0,i=n&&void 0!==n.join?n.join:"\n",a=Array(o+1).join(" "),s=[];for(let c=0;c<e;++c){let e=r(c),n=0===c?"":a;s.push(n+t.replace(/{var}/g,e))}return s.join(i)}}},30891:function(e,t,n){e.exports=function(e){let t=o(e);return new Function("bodies","settings","random",t)},e.exports.generateFunctionBody=o;const r=n(15189);function o(e){let t=r(e);return`\n  var boundingBox = {\n    ${t("min_{var}: 0, max_{var}: 0,",{indent:4})}\n  };\n\n  return {\n    box: boundingBox,\n\n    update: updateBoundingBox,\n\n    reset: resetBoundingBox,\n\n    getBestNewPosition: function (neighbors) {\n      var ${t("base_{var} = 0",{join:", "})};\n\n      if (neighbors.length) {\n        for (var i = 0; i < neighbors.length; ++i) {\n          let neighborPos = neighbors[i].pos;\n          ${t("base_{var} += neighborPos.{var};",{indent:10})}\n        }\n\n        ${t("base_{var} /= neighbors.length;",{indent:8})}\n      } else {\n        ${t("base_{var} = (boundingBox.min_{var} + boundingBox.max_{var}) / 2;",{indent:8})}\n      }\n\n      var springLength = settings.springLength;\n      return {\n        ${t("{var}: base_{var} + (random.nextDouble() - 0.5) * springLength,",{indent:8})}\n      };\n    }\n  };\n\n  function updateBoundingBox() {\n    var i = bodies.length;\n    if (i === 0) return; // No bodies - no borders.\n\n    ${t("var max_{var} = -Infinity;",{indent:4})}\n    ${t("var min_{var} = Infinity;",{indent:4})}\n\n    while(i--) {\n      // this is O(n), it could be done faster with quadtree, if we check the root node bounds\n      var bodyPos = bodies[i].pos;\n      ${t("if (bodyPos.{var} < min_{var}) min_{var} = bodyPos.{var};",{indent:6})}\n      ${t("if (bodyPos.{var} > max_{var}) max_{var} = bodyPos.{var};",{indent:6})}\n    }\n\n    ${t("boundingBox.min_{var} = min_{var};",{indent:4})}\n    ${t("boundingBox.max_{var} = max_{var};",{indent:4})}\n  }\n\n  function resetBoundingBox() {\n    ${t("boundingBox.min_{var} = boundingBox.max_{var} = 0;",{indent:4})}\n  }\n`}},6410:function(e,t,n){const r=n(15189);function o(e,t){return`\n${a(e,t)}\n${i(e)}\nreturn {Body: Body, Vector: Vector};\n`}function i(e){let t=r(e),n=t("{var}",{join:", "});return`\nfunction Body(${n}) {\n  this.isPinned = false;\n  this.pos = new Vector(${n});\n  this.force = new Vector();\n  this.velocity = new Vector();\n  this.mass = 1;\n\n  this.springCount = 0;\n  this.springLength = 0;\n}\n\nBody.prototype.reset = function() {\n  this.force.reset();\n  this.springCount = 0;\n  this.springLength = 0;\n}\n\nBody.prototype.setPosition = function (${n}) {\n  ${t("this.pos.{var} = {var} || 0;",{indent:2})}\n};`}function a(e,t){let n=r(e),o="";return t&&(o=`${n("\n   var v{var};\nObject.defineProperty(this, '{var}', {\n  set: function(v) { \n    if (!Number.isFinite(v)) throw new Error('Cannot set non-numbers to {var}');\n    v{var} = v; \n  },\n  get: function() { return v{var}; }\n});")}`),`function Vector(${n("{var}",{join:", "})}) {\n  ${o}\n    if (typeof arguments[0] === 'object') {\n      // could be another vector\n      let v = arguments[0];\n      ${n('if (!Number.isFinite(v.{var})) throw new Error("Expected value is not a finite number at Vector constructor ({var})");',{indent:4})}\n      ${n("this.{var} = v.{var};",{indent:4})}\n    } else {\n      ${n('this.{var} = typeof {var} === "number" ? {var} : 0;',{indent:4})}\n    }\n  }\n  \n  Vector.prototype.reset = function () {\n    ${n("this.{var} = ",{join:""})}0;\n  };`}e.exports=function(e,t){let n=o(e,t),{Body:r}=new Function(n)();return r},e.exports.generateCreateBodyFunctionBody=o,e.exports.getVectorCode=a,e.exports.getBodyCode=i},36647:function(e,t,n){const r=n(15189);function o(e){return`\n  if (!Number.isFinite(options.dragCoefficient)) throw new Error('dragCoefficient is not a finite number');\n\n  return {\n    update: function(body) {\n      ${r(e)("body.force.{var} -= options.dragCoefficient * body.velocity.{var};",{indent:6})}\n    }\n  };\n`}e.exports=function(e){let t=o(e);return new Function("options",t)},e.exports.generateCreateDragForceFunctionBody=o},34079:function(e,t,n){const r=n(15189);function o(e){let t=r(e);return`\n  if (!Number.isFinite(options.springCoefficient)) throw new Error('Spring coefficient is not a number');\n  if (!Number.isFinite(options.springLength)) throw new Error('Spring length is not a number');\n\n  return {\n    /**\n     * Updates forces acting on a spring\n     */\n    update: function (spring) {\n      var body1 = spring.from;\n      var body2 = spring.to;\n      var length = spring.length < 0 ? options.springLength : spring.length;\n      ${t("var d{var} = body2.pos.{var} - body1.pos.{var};",{indent:6})}\n      var r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n      if (r === 0) {\n        ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:8})}\n        r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n      }\n\n      var d = r - length;\n      var coefficient = ((spring.coefficient > 0) ? spring.coefficient : options.springCoefficient) * d / r;\n\n      ${t("body1.force.{var} += coefficient * d{var}",{indent:6})};\n      body1.springCount += 1;\n      body1.springLength += r;\n\n      ${t("body2.force.{var} -= coefficient * d{var}",{indent:6})};\n      body2.springCount += 1;\n      body2.springLength += r;\n    }\n  };\n`}e.exports=function(e){let t=o(e);return new Function("options","random",t)},e.exports.generateCreateSpringForceFunctionBody=o},51763:function(e,t,n){const r=n(15189);function o(e){let t=r(e);return`\n  var length = bodies.length;\n  if (length === 0) return 0;\n\n  ${t("var d{var} = 0, t{var} = 0;",{indent:2})}\n\n  for (var i = 0; i < length; ++i) {\n    var body = bodies[i];\n    if (body.isPinned) continue;\n\n    if (adaptiveTimeStepWeight && body.springCount) {\n      timeStep = (adaptiveTimeStepWeight * body.springLength/body.springCount);\n    }\n\n    var coeff = timeStep / body.mass;\n\n    ${t("body.velocity.{var} += coeff * body.force.{var};",{indent:4})}\n    ${t("var v{var} = body.velocity.{var};",{indent:4})}\n    var v = Math.sqrt(${t("v{var} * v{var}",{join:" + "})});\n\n    if (v > 1) {\n      // We normalize it so that we move within timeStep range. \n      // for the case when v <= 1 - we let velocity to fade out.\n      ${t("body.velocity.{var} = v{var} / v;",{indent:6})}\n    }\n\n    ${t("d{var} = timeStep * body.velocity.{var};",{indent:4})}\n\n    ${t("body.pos.{var} += d{var};",{indent:4})}\n\n    ${t("t{var} += Math.abs(d{var});",{indent:4})}\n  }\n\n  return (${t("t{var} * t{var}",{join:" + "})})/length;\n`}e.exports=function(e){let t=o(e);return new Function("bodies","timeStep","adaptiveTimeStepWeight",t)},e.exports.generateIntegratorFunctionBody=o},1584:function(e,t,n){const r=n(15189),o=n(16422);function i(e){let t=r(e),n=Math.pow(2,e);return`\n${l()}\n${u(e)}\n${a(e)}\n${c(e)}\n${s(e)}\n\nfunction createQuadTree(options, random) {\n  options = options || {};\n  options.gravity = typeof options.gravity === 'number' ? options.gravity : -1;\n  options.theta = typeof options.theta === 'number' ? options.theta : 0.8;\n\n  var gravity = options.gravity;\n  var updateQueue = [];\n  var insertStack = new InsertStack();\n  var theta = options.theta;\n\n  var nodesCache = [];\n  var currentInCache = 0;\n  var root = newNode();\n\n  return {\n    insertBodies: insertBodies,\n\n    /**\n     * Gets root node if it is present\n     */\n    getRoot: function() {\n      return root;\n    },\n\n    updateBodyForce: update,\n\n    options: function(newOptions) {\n      if (newOptions) {\n        if (typeof newOptions.gravity === 'number') {\n          gravity = newOptions.gravity;\n        }\n        if (typeof newOptions.theta === 'number') {\n          theta = newOptions.theta;\n        }\n\n        return this;\n      }\n\n      return {\n        gravity: gravity,\n        theta: theta\n      };\n    }\n  };\n\n  function newNode() {\n    // To avoid pressure on GC we reuse nodes.\n    var node = nodesCache[currentInCache];\n    if (node) {\n${function(e){let t=[];for(let r=0;r<n;++r)t.push(`${e}quad${r} = null;`);return t.join("\n")}("      node.")}\n      node.body = null;\n      node.mass = ${t("node.mass_{var} = ",{join:""})}0;\n      ${t("node.min_{var} = node.max_{var} = ",{join:""})}0;\n    } else {\n      node = new QuadNode();\n      nodesCache[currentInCache] = node;\n    }\n\n    ++currentInCache;\n    return node;\n  }\n\n  function update(sourceBody) {\n    var queue = updateQueue;\n    var v;\n    ${t("var d{var};",{indent:4})}\n    var r; \n    ${t("var f{var} = 0;",{indent:4})}\n    var queueLength = 1;\n    var shiftIdx = 0;\n    var pushIdx = 1;\n\n    queue[0] = root;\n\n    while (queueLength) {\n      var node = queue[shiftIdx];\n      var body = node.body;\n\n      queueLength -= 1;\n      shiftIdx += 1;\n      var differentBody = (body !== sourceBody);\n      if (body && differentBody) {\n        // If the current node is a leaf node (and it is not source body),\n        // calculate the force exerted by the current node on body, and add this\n        // amount to body's net force.\n        ${t("d{var} = body.pos.{var} - sourceBody.pos.{var};",{indent:8})}\n        r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n        if (r === 0) {\n          // Poor man's protection against zero distance.\n          ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:10})}\n          r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n        }\n\n        // This is standard gravitation force calculation but we divide\n        // by r^3 to save two operations when normalizing force vector.\n        v = gravity * body.mass * sourceBody.mass / (r * r * r);\n        ${t("f{var} += v * d{var};",{indent:8})}\n      } else if (differentBody) {\n        // Otherwise, calculate the ratio s / r,  where s is the width of the region\n        // represented by the internal node, and r is the distance between the body\n        // and the node's center-of-mass\n        ${t("d{var} = node.mass_{var} / node.mass - sourceBody.pos.{var};",{indent:8})}\n        r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n        if (r === 0) {\n          // Sorry about code duplication. I don't want to create many functions\n          // right away. Just want to see performance first.\n          ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:10})}\n          r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n        }\n        // If s / r < \u03b8, treat this internal node as a single body, and calculate the\n        // force it exerts on sourceBody, and add this amount to sourceBody's net force.\n        if ((node.max_${o(0)} - node.min_${o(0)}) / r < theta) {\n          // in the if statement above we consider node's width only\n          // because the region was made into square during tree creation.\n          // Thus there is no difference between using width or height.\n          v = gravity * node.mass * sourceBody.mass / (r * r * r);\n          ${t("f{var} += v * d{var};",{indent:10})}\n        } else {\n          // Otherwise, run the procedure recursively on each of the current node's children.\n\n          // I intentionally unfolded this loop, to save several CPU cycles.\n${function(){let e=Array(11).join(" "),t=[];for(let r=0;r<n;++r)t.push(e+`if (node.quad${r}) {`),t.push(e+`  queue[pushIdx] = node.quad${r};`),t.push(e+"  queueLength += 1;"),t.push(e+"  pushIdx += 1;"),t.push(e+"}");return t.join("\n")}()}\n        }\n      }\n    }\n\n    ${t("sourceBody.force.{var} += f{var};",{indent:4})}\n  }\n\n  function insertBodies(bodies) {\n    ${t("var {var}min = Number.MAX_VALUE;",{indent:4})}\n    ${t("var {var}max = Number.MIN_VALUE;",{indent:4})}\n    var i = bodies.length;\n\n    // To reduce quad tree depth we are looking for exact bounding box of all particles.\n    while (i--) {\n      var pos = bodies[i].pos;\n      ${t("if (pos.{var} < {var}min) {var}min = pos.{var};",{indent:6})}\n      ${t("if (pos.{var} > {var}max) {var}max = pos.{var};",{indent:6})}\n    }\n\n    // Makes the bounds square.\n    var maxSideLength = -Infinity;\n    ${t("if ({var}max - {var}min > maxSideLength) maxSideLength = {var}max - {var}min ;",{indent:4})}\n\n    currentInCache = 0;\n    root = newNode();\n    ${t("root.min_{var} = {var}min;",{indent:4})}\n    ${t("root.max_{var} = {var}min + maxSideLength;",{indent:4})}\n\n    i = bodies.length - 1;\n    if (i >= 0) {\n      root.body = bodies[i];\n    }\n    while (i--) {\n      insert(bodies[i], root);\n    }\n  }\n\n  function insert(newBody) {\n    insertStack.reset();\n    insertStack.push(root, newBody);\n\n    while (!insertStack.isEmpty()) {\n      var stackItem = insertStack.pop();\n      var node = stackItem.node;\n      var body = stackItem.body;\n\n      if (!node.body) {\n        // This is internal node. Update the total mass of the node and center-of-mass.\n        ${t("var {var} = body.pos.{var};",{indent:8})}\n        node.mass += body.mass;\n        ${t("node.mass_{var} += body.mass * {var};",{indent:8})}\n\n        // Recursively insert the body in the appropriate quadrant.\n        // But first find the appropriate quadrant.\n        var quadIdx = 0; // Assume we are in the 0's quad.\n        ${t("var min_{var} = node.min_{var};",{indent:8})}\n        ${t("var max_{var} = (min_{var} + node.max_{var}) / 2;",{indent:8})}\n\n${function(t){let n=[],r=Array(t+1).join(" ");for(let i=0;i<e;++i)n.push(r+`if (${o(i)} > max_${o(i)}) {`),n.push(r+`  quadIdx = quadIdx + ${Math.pow(2,i)};`),n.push(r+`  min_${o(i)} = max_${o(i)};`),n.push(r+`  max_${o(i)} = node.max_${o(i)};`),n.push(r+"}");return n.join("\n")}(8)}\n\n        var child = getChild(node, quadIdx);\n\n        if (!child) {\n          // The node is internal but this quadrant is not taken. Add\n          // subnode to it.\n          child = newNode();\n          ${t("child.min_{var} = min_{var};",{indent:10})}\n          ${t("child.max_{var} = max_{var};",{indent:10})}\n          child.body = body;\n\n          setChild(node, quadIdx, child);\n        } else {\n          // continue searching in this quadrant.\n          insertStack.push(child, body);\n        }\n      } else {\n        // We are trying to add to the leaf node.\n        // We have to convert current leaf into internal node\n        // and continue adding two nodes.\n        var oldBody = node.body;\n        node.body = null; // internal nodes do not cary bodies\n\n        if (isSamePosition(oldBody.pos, body.pos)) {\n          // Prevent infinite subdivision by bumping one node\n          // anywhere in this quadrant\n          var retriesCount = 3;\n          do {\n            var offset = random.nextDouble();\n            ${t("var d{var} = (node.max_{var} - node.min_{var}) * offset;",{indent:12})}\n\n            ${t("oldBody.pos.{var} = node.min_{var} + d{var};",{indent:12})}\n            retriesCount -= 1;\n            // Make sure we don't bump it out of the box. If we do, next iteration should fix it\n          } while (retriesCount > 0 && isSamePosition(oldBody.pos, body.pos));\n\n          if (retriesCount === 0 && isSamePosition(oldBody.pos, body.pos)) {\n            // This is very bad, we ran out of precision.\n            // if we do not return from the method we'll get into\n            // infinite loop here. So we sacrifice correctness of layout, and keep the app running\n            // Next layout iteration should get larger bounding box in the first step and fix this\n            return;\n          }\n        }\n        // Next iteration should subdivide node further.\n        insertStack.push(node, oldBody);\n        insertStack.push(node, body);\n      }\n    }\n  }\n}\nreturn createQuadTree;\n\n`}function a(e){let t=r(e);return`\n  function isSamePosition(point1, point2) {\n    ${t("var d{var} = Math.abs(point1.{var} - point2.{var});",{indent:2})}\n  \n    return ${t("d{var} < 1e-8",{join:" && "})};\n  }  \n`}function s(e){var t=Math.pow(2,e);return`\nfunction setChild(node, idx, child) {\n  ${function(){let e=[];for(let n=0;n<t;++n){let t=0===n?"  ":"  else ";e.push(`${t}if (idx === ${n}) node.quad${n} = child;`)}return e.join("\n")}()}\n}`}function c(e){return`function getChild(node, idx) {\n${function(){let t=[],n=Math.pow(2,e);for(let e=0;e<n;++e)t.push(`  if (idx === ${e}) return node.quad${e};`);return t.join("\n")}()}\n  return null;\n}`}function u(e){let t=r(e),n=Math.pow(2,e);return`\nfunction QuadNode() {\n  // body stored inside this node. In quad tree only leaf nodes (by construction)\n  // contain bodies:\n  this.body = null;\n\n  // Child nodes are stored in quads. Each quad is presented by number:\n  // 0 | 1\n  // -----\n  // 2 | 3\n${function(e){let t=[];for(let r=0;r<n;++r)t.push(`${e}quad${r} = null;`);return t.join("\n")}("  this.")}\n\n  // Total mass of current node\n  this.mass = 0;\n\n  // Center of mass coordinates\n  ${t("this.mass_{var} = 0;",{indent:2})}\n\n  // bounding box coordinates\n  ${t("this.min_{var} = 0;",{indent:2})}\n  ${t("this.max_{var} = 0;",{indent:2})}\n}\n`}function l(){return"\n/**\n * Our implementation of QuadTree is non-recursive to avoid GC hit\n * This data structure represent stack of elements\n * which we are trying to insert into quad tree.\n */\nfunction InsertStack () {\n    this.stack = [];\n    this.popIdx = 0;\n}\n\nInsertStack.prototype = {\n    isEmpty: function() {\n        return this.popIdx === 0;\n    },\n    push: function (node, body) {\n        var item = this.stack[this.popIdx];\n        if (!item) {\n            // we are trying to avoid memory pressure: create new element\n            // only when absolutely necessary\n            this.stack[this.popIdx] = new InsertStackElement(node, body);\n        } else {\n            item.node = node;\n            item.body = body;\n        }\n        ++this.popIdx;\n    },\n    pop: function () {\n        if (this.popIdx > 0) {\n            return this.stack[--this.popIdx];\n        }\n    },\n    reset: function () {\n        this.popIdx = 0;\n    }\n};\n\nfunction InsertStackElement(node, body) {\n    this.node = node; // QuadTree node\n    this.body = body; // physical body which needs to be inserted to node\n}\n"}e.exports=function(e){let t=i(e);return new Function(t)()},e.exports.generateQuadTreeFunctionBody=i,e.exports.getInsertStackCode=l,e.exports.getQuadNodeCode=u,e.exports.isSamePosition=a,e.exports.getChildBodyCode=c,e.exports.setChildBodyCode=s},16422:function(e){e.exports=function(e){return 0===e?"x":1===e?"y":2===e?"z":"c"+(e+1)}},45818:function(e,t,n){e.exports=function(e){var t=n(68403),d=n(35510),f=n(84245);if(e){if(void 0!==e.springCoeff)throw new Error("springCoeff was renamed to springCoefficient");if(void 0!==e.dragCoeff)throw new Error("dragCoeff was renamed to dragCoefficient")}e=d(e,{springLength:10,springCoefficient:.8,gravity:-12,theta:.8,dragCoefficient:.9,timeStep:.5,adaptiveTimeStepWeight:0,dimensions:2,debug:!1});var p=u[e.dimensions];if(!p){var h=e.dimensions;p={Body:r(h,e.debug),createQuadTree:o(h),createBounds:i(h),createDragForce:a(h),createSpringForce:s(h),integrate:c(h)},u[h]=p}var m=p.Body,v=p.createQuadTree,g=p.createBounds,y=p.createDragForce,b=p.createSpringForce,E=p.integrate,_=n(78712).random(42),T=[],w=[],k=v(e,_),x=g(T,e,_),O=b(e,_),C=y(e),A=[],S=new Map,M=0;N("nbody",(function(){if(0===T.length)return;k.insertBodies(T);var e=T.length;for(;e--;){var t=T[e];t.isPinned||(t.reset(),k.updateBodyForce(t),C.update(t))}})),N("spring",(function(){var e=w.length;for(;e--;)O.update(w[e])}));var I={bodies:T,quadTree:k,springs:w,settings:e,addForce:N,removeForce:function(e){var t=A.indexOf(S.get(e));if(t<0)return;A.splice(t,1),S.delete(e)},getForces:function(){return S},step:function(){for(var t=0;t<A.length;++t)A[t](M);var n=E(T,e.timeStep,e.adaptiveTimeStepWeight);return M+=1,n},addBody:function(e){if(!e)throw new Error("Body is required");return T.push(e),e},addBodyAt:function(e){if(!e)throw new Error("Body position is required");var t=(e=>new m(e))(e);return T.push(t),t},removeBody:function(e){if(e){var t=T.indexOf(e);if(!(t<0))return T.splice(t,1),0===T.length&&x.reset(),!0}},addSpring:function(e,n,r,o){if(!e||!n)throw new Error("Cannot add null spring to force simulator");"number"!==typeof r&&(r=-1);var i=new t(e,n,r,o>=0?o:-1);return w.push(i),i},getTotalMovement:function(){return 0},removeSpring:function(e){if(e){var t=w.indexOf(e);return t>-1?(w.splice(t,1),!0):void 0}},getBestNewBodyPosition:function(e){return x.getBestNewPosition(e)},getBBox:P,getBoundingBox:P,invalidateBBox:function(){console.warn("invalidateBBox() is deprecated, bounds always recomputed on `getBBox()` call")},gravity:function(t){return void 0!==t?(e.gravity=t,k.options({gravity:t}),this):e.gravity},theta:function(t){return void 0!==t?(e.theta=t,k.options({theta:t}),this):e.theta},random:_};return function(e,t){for(var n in e)l(e,t,n)}(e,I),f(I),I;function P(){return x.update(),x.box}function N(e,t){if(S.has(e))throw new Error("Force "+e+" is already added");S.set(e,t),A.push(t)}};var r=n(6410),o=n(1584),i=n(30891),a=n(36647),s=n(34079),c=n(51763),u={};function l(e,t,n){if(e.hasOwnProperty(n)&&"function"!==typeof t[n]){var r=Number.isFinite(e[n]);t[n]=r?function(r){if(void 0!==r){if(!Number.isFinite(r))throw new Error("Value of "+n+" should be a valid number.");return e[n]=r,t}return e[n]}:function(r){return void 0!==r?(e[n]=r,t):e[n]}}}},68403:function(e){e.exports=function(e,t,n,r){this.from=e,this.to=t,this.length=n,this.coefficient=r}},54736:function(e,t,n){e.exports=function(e){"uniqueLinkId"in(e=e||{})&&(console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n","\n","Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."),e.multigraph=e.uniqueLinkId);void 0===e.multigraph&&(e.multigraph=!1);if("function"!==typeof Map)throw new Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");var t=new Map,n=[],u={},l=0,d=e.multigraph?function(e,t,n){var r=c(e,t),o=u.hasOwnProperty(r);if(o||O(e,t)){o||(u[r]=0);var i="@"+ ++u[r];r=c(e+i,t+i)}return new s(e,t,n,r)}:function(e,t,n){var r=c(e,t);return new s(e,t,n,r)},f=[],p=C,h=C,m=C,v=C,g={addNode:E,addLink:function(e,t,r){m();var o=_(e)||E(e),i=_(t)||E(t),s=d(e,t,r);n.push(s),a(o,s),e!==t&&a(i,s);return p(s,"add"),v(),s},removeLink:x,removeNode:T,getNode:_,getNodeCount:w,getLinkCount:k,getLinksCount:k,getNodesCount:w,getLinks:function(e){var t=_(e);return t?t.links:null},forEachNode:M,forEachLinkedNode:function(e,n,r){var o=_(e);if(o&&o.links&&"function"===typeof n)return r?function(e,n,r){for(var o=0;o<e.length;++o){var i=e[o];if(i.fromId===n&&r(t.get(i.toId),i))return!0}}(o.links,e,n):function(e,n,r){for(var o=0;o<e.length;++o){var i=e[o],a=i.fromId===n?i.toId:i.fromId;if(r(t.get(a),i))return!0}}(o.links,e,n)},forEachLink:function(e){var t,r;if("function"===typeof e)for(t=0,r=n.length;t<r;++t)e(n[t])},beginUpdate:m,endUpdate:v,clear:function(){m(),M((function(e){T(e.id)})),v()},hasLink:O,hasNode:_,getLink:O};return r(g),function(){var e=g.on;function t(){return g.beginUpdate=m=A,g.endUpdate=v=S,p=y,h=b,g.on=e,e.apply(g,arguments)}g.on=t}(),g;function y(e,t){f.push({link:e,changeType:t})}function b(e,t){f.push({node:e,changeType:t})}function E(e,n){if(void 0===e)throw new Error("Invalid node identifier");m();var r=_(e);return r?(r.data=n,h(r,"update")):(r=new i(e,n),h(r,"add")),t.set(e,r),v(),r}function _(e){return t.get(e)}function T(e){var n=_(e);if(!n)return!1;m();var r=n.links;if(r){n.links=null;for(var o=0;o<r.length;++o)x(r[o])}return t.delete(e),h(n,"remove"),v(),!0}function w(){return t.size}function k(){return n.length}function x(e){if(!e)return!1;var t=o(e,n);if(t<0)return!1;m(),n.splice(t,1);var r=_(e.fromId),i=_(e.toId);return r&&(t=o(e,r.links))>=0&&r.links.splice(t,1),i&&(t=o(e,i.links))>=0&&i.links.splice(t,1),p(e,"remove"),v(),!0}function O(e,t){var n,r=_(e);if(!r||!r.links)return null;for(n=0;n<r.links.length;++n){var o=r.links[n];if(o.fromId===e&&o.toId===t)return o}return null}function C(){}function A(){l+=1}function S(){0===(l-=1)&&f.length>0&&(g.fire("changed",f),f.length=0)}function M(e){if("function"!==typeof e)throw new Error("Function is expected to iterate over graph nodes. You passed "+e);for(var n=t.values(),r=n.next();!r.done;){if(e(r.value))return!0;r=n.next()}}};var r=n(84245);function o(e,t){if(!t)return-1;if(t.indexOf)return t.indexOf(e);var n,r=t.length;for(n=0;n<r;n+=1)if(t[n]===e)return n;return-1}function i(e,t){this.id=e,this.links=null,this.data=t}function a(e,t){e.links?e.links.push(t):e.links=[t]}function s(e,t,n,r){this.fromId=e,this.toId=t,this.data=n,this.id=r}function c(e,t){return e.toString()+"\ud83d\udc49 "+t.toString()}},35510:function(e){e.exports=function e(t,n){var r;t||(t={});if(n)for(r in n)if(n.hasOwnProperty(r)){var o=t.hasOwnProperty(r),i=typeof n[r];!o||typeof t[r]!==i?t[r]=n[r]:"object"===i&&(t[r]=e(t[r],n[r]))}return t}},78712:function(e){function t(e){return new n("number"===typeof e?e:+new Date)}function n(e){this.seed=e}function r(e){return Math.sqrt(2*Math.PI/e)*Math.pow(1/Math.E*(e+1/(12*e-1/(10*e))),e)}function o(){var e=this.seed;return e=4294967295&(3042594569^(e=(e=4294967295&((e=(e=4294967295&(3345072700^(e=e+2127912214+(e<<12)&4294967295)^e>>>19))+374761393+(e<<5)&4294967295)+3550635116^e<<9))+4251993797+(e<<3)&4294967295)^e>>>16),this.seed=e,(268435455&e)/268435456}e.exports=t,e.exports.random=t,e.exports.randomIterator=function(e,n){var r=n||t();if("function"!==typeof r.next)throw new Error("customRandom does not match expected API: next() function is missing");return{forEach:function(t){var n,o,i;for(n=e.length-1;n>0;--n)o=r.next(n+1),i=e[o],e[o]=e[n],e[n]=i,t(i);e.length&&t(e[0])},shuffle:function(){var t,n,o;for(t=e.length-1;t>0;--t)n=r.next(t+1),o=e[n],e[n]=e[t],e[t]=o;return e}}},n.prototype.next=function(e){return Math.floor(this.nextDouble()*e)},n.prototype.nextDouble=o,n.prototype.uniform=o,n.prototype.gaussian=function(){var e,t,n;do{t=2*this.nextDouble()-1,n=2*this.nextDouble()-1,e=t*t+n*n}while(e>=1||0===e);return t*Math.sqrt(-2*Math.log(e)/e)},n.prototype.levy=function(){var e=1.5,t=Math.pow(r(2.5)*Math.sin(Math.PI*e/2)/(r(1.25)*e*Math.pow(2,.25)),1/e);return this.gaussian()*t/Math.pow(Math.abs(this.gaussian()),1/e)}},31515:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152),o="html",i=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],a=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],c=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],u=c.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function l(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return e.name===o&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if(e.name!==o)return r.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return r.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),s.indexOf(n)>-1)return r.QUIRKS;let e=null===t?a:i;if(d(n,e))return r.QUIRKS;if(e=null===t?c:u,d(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+l(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+l(n)),r}},41734:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},88779:function(e,t,n){"use strict";const r=n(55763),o=n(16152),i=o.TAG_NAMES,a=o.NAMESPACES,s=o.ATTRS,c="text/html",u="application/xhtml+xml",l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},d={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},f=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p={[i.B]:!0,[i.BIG]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.CENTER]:!0,[i.CODE]:!0,[i.DD]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EM]:!0,[i.EMBED]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HR]:!0,[i.I]:!0,[i.IMG]:!0,[i.LI]:!0,[i.LISTING]:!0,[i.MENU]:!0,[i.META]:!0,[i.NOBR]:!0,[i.OL]:!0,[i.P]:!0,[i.PRE]:!0,[i.RUBY]:!0,[i.S]:!0,[i.SMALL]:!0,[i.SPAN]:!0,[i.STRONG]:!0,[i.STRIKE]:!0,[i.SUB]:!0,[i.SUP]:!0,[i.TABLE]:!0,[i.TT]:!0,[i.U]:!0,[i.UL]:!0,[i.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===i.FONT&&(null!==r.getTokenAttr(e,s.COLOR)||null!==r.getTokenAttr(e,s.SIZE)||null!==r.getTokenAttr(e,s.FACE)))||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=l[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=f[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,r){return!(r&&r!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===i.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===s.ENCODING){const e=n[r].value.toLowerCase();return e===c||e===u}return t===a.SVG&&(e===i.FOREIGN_OBJECT||e===i.DESC||e===i.TITLE)}(e,t,n))||!(r&&r!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===i.MI||e===i.MO||e===i.MN||e===i.MS||e===i.MTEXT)}(e,t))}},16152:function(e,t){"use strict";const n=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[n.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[n.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[n.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}},54284:function(e,t){"use strict";const n=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="\ufffd",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},23843:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},22232:function(e,t,n){"use strict";const r=n(23843),o=n(70050),i=n(46110),a=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),a.install(this.tokenizer,o,e.opts),a.install(this.tokenizer,i)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},23288:function(e,t,n){"use strict";const r=n(23843),o=n(57930),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=i.install(e,o),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},70050:function(e,t,n){"use strict";const r=n(23843),o=n(23288),i=n(81704);e.exports=class extends r{constructor(e,t){super(e,t);const n=i.install(e.preprocessor,o,t);this.posTracker=n.posTracker}}},11077:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},452:function(e,t,n){"use strict";const r=n(81704),o=n(55763),i=n(46110),a=n(11077),s=n(16152).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i={};t.type===o.END_TAG_TOKEN&&r===t.tagName?(i.endTag=Object.assign({},n),i.endLine=n.endLine,i.endCol=n.endCol,i.endOffset=n.endOffset):(i.endLine=n.startLine,i.endCol=n.startCol,i.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(n,o){t._bootstrap.call(this,n,o),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,i);e.posTracker=s.posTracker,r.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===o.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t<r;t++){const r=n[t];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,r){e.lastStartTagToken=n,t._appendElement.call(this,n,r)},_insertElement(n,r){e.lastStartTagToken=n,t._insertElement.call(this,n,r)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const r=this.treeAdapter.getChildNodes(n),o=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(o,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),o=r&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(o),a=r&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,s=i[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:r}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:r})}else this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},46110:function(e,t,n){"use strict";const r=n(81704),o=n(55763),i=n(57930);e.exports=class extends r{constructor(e){super(e),this.tokenizer=e,this.posTracker=r.install(e.preprocessor,i),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,r){t._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===o.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(o.MODE).forEach((r=>{const i=o.MODE[r];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}})),n}}},57930:function(e,t,n){"use strict";const r=n(81704);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},12484:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const n=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===t.MARKER_ENTRY)break;const s=a.element,c=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===o&&this.treeAdapter.getNamespaceURI(s)===i&&c.length===r&&n.push({idx:e,attrs:c})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),o=r.length,i=Object.create(null);for(let e=0;e<o;e++){const t=r[e];i[t.name]=t.value}for(let e=0;e<o;e++)for(let r=0;r<n;r++){const o=t[r].attrs[e];if(i[o.name]!==o.value&&(t.splice(r,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},7045:function(e,t,n){"use strict";const r=n(55763),o=n(46519),i=n(12484),a=n(452),s=n(22232),c=n(81704),u=n(17296),l=n(8904),d=n(31515),f=n(88779),p=n(41734),h=n(54284),m=n(16152),v=m.TAG_NAMES,g=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},E="hidden",_="INITIAL_MODE",T="BEFORE_HTML_MODE",w="BEFORE_HEAD_MODE",k="IN_HEAD_MODE",x="IN_HEAD_NO_SCRIPT_MODE",O="AFTER_HEAD_MODE",C="IN_BODY_MODE",A="TEXT_MODE",S="IN_TABLE_MODE",M="IN_TABLE_TEXT_MODE",I="IN_CAPTION_MODE",P="IN_COLUMN_GROUP_MODE",N="IN_TABLE_BODY_MODE",R="IN_ROW_MODE",L="IN_CELL_MODE",D="IN_SELECT_MODE",j="IN_SELECT_IN_TABLE_MODE",H="IN_TEMPLATE_MODE",B="AFTER_BODY_MODE",F="IN_FRAMESET_MODE",U="AFTER_FRAMESET_MODE",z="AFTER_AFTER_BODY_MODE",V="AFTER_AFTER_FRAMESET_MODE",G={[v.TR]:R,[v.TBODY]:N,[v.THEAD]:N,[v.TFOOT]:N,[v.CAPTION]:I,[v.COLGROUP]:P,[v.TABLE]:S,[v.BODY]:C,[v.FRAMESET]:F},W={[v.CAPTION]:S,[v.COLGROUP]:S,[v.TBODY]:S,[v.TFOOT]:S,[v.THEAD]:S,[v.COL]:P,[v.TR]:N,[v.TD]:R,[v.TH]:R},K={[_]:{[r.CHARACTER_TOKEN]:ae,[r.NULL_CHARACTER_TOKEN]:ae,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:d.getDocumentMode(t);d.isConforming(t)||e._err(p.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=T},[r.START_TAG_TOKEN]:ae,[r.END_TAG_TOKEN]:ae,[r.EOF_TOKEN]:ae},[T]:{[r.CHARACTER_TOKEN]:se,[r.NULL_CHARACTER_TOKEN]:se,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?(e._insertElement(t,g.HTML),e.insertionMode=w):se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==v.HTML&&n!==v.HEAD&&n!==v.BODY&&n!==v.BR||se(e,t)},[r.EOF_TOKEN]:se},[w]:{[r.CHARACTER_TOKEN]:ce,[r.NULL_CHARACTER_TOKEN]:ce,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.HEAD?(e._insertElement(t,g.HTML),e.headElement=e.openElements.current,e.insertionMode=k):ce(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HEAD||n===v.BODY||n===v.HTML||n===v.BR?ce(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:ce},[k]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ue,[r.END_TAG_TOKEN]:le,[r.EOF_TOKEN]:de},[x]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.BASEFONT||n===v.BGSOUND||n===v.HEAD||n===v.LINK||n===v.META||n===v.NOFRAMES||n===v.STYLE?ue(e,t):n===v.NOSCRIPT?e._err(p.nestedNoscriptInHead):fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.NOSCRIPT?(e.openElements.pop(),e.insertionMode=k):n===v.BR?fe(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:fe},[O]:{[r.CHARACTER_TOKEN]:pe,[r.NULL_CHARACTER_TOKEN]:pe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.BODY?(e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=C):n===v.FRAMESET?(e._insertElement(t,g.HTML),e.insertionMode=F):n===v.BASE||n===v.BASEFONT||n===v.BGSOUND||n===v.LINK||n===v.META||n===v.NOFRAMES||n===v.SCRIPT||n===v.STYLE||n===v.TEMPLATE||n===v.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),ue(e,t),e.openElements.remove(e.headElement)):n===v.HEAD?e._err(p.misplacedStartTagForHeadElement):pe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.BODY||n===v.HTML||n===v.BR?pe(e,t):n===v.TEMPLATE?le(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:pe},[C]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Oe,[r.END_TAG_TOKEN]:Me,[r.EOF_TOKEN]:Ie},[A]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:oe,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ee,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[S]:{[r.CHARACTER_TOKEN]:Pe,[r.NULL_CHARACTER_TOKEN]:Pe,[r.WHITESPACE_CHARACTER_TOKEN]:Pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Ne,[r.END_TAG_TOKEN]:Re,[r.EOF_TOKEN]:Ie},[M]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:De,[r.DOCTYPE_TOKEN]:De,[r.START_TAG_TOKEN]:De,[r.END_TAG_TOKEN]:De,[r.EOF_TOKEN]:De},[I]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TD||n===v.TFOOT||n===v.TH||n===v.THEAD||n===v.TR?e.openElements.hasInTableScope(v.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S,e._processToken(t)):Oe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.TABLE?e.openElements.hasInTableScope(v.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=S,n===v.TABLE&&e._processToken(t)):n!==v.BODY&&n!==v.COL&&n!==v.COLGROUP&&n!==v.HTML&&n!==v.TBODY&&n!==v.TD&&n!==v.TFOOT&&n!==v.TH&&n!==v.THEAD&&n!==v.TR&&Me(e,t)},[r.EOF_TOKEN]:Ie},[P]:{[r.CHARACTER_TOKEN]:je,[r.NULL_CHARACTER_TOKEN]:je,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.COL?(e._appendElement(t,g.HTML),t.ackSelfClosing=!0):n===v.TEMPLATE?ue(e,t):je(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.COLGROUP?e.openElements.currentTagName===v.COLGROUP&&(e.openElements.pop(),e.insertionMode=S):n===v.TEMPLATE?le(e,t):n!==v.COL&&je(e,t)},[r.EOF_TOKEN]:Ie},[N]:{[r.CHARACTER_TOKEN]:Pe,[r.NULL_CHARACTER_TOKEN]:Pe,[r.WHITESPACE_CHARACTER_TOKEN]:Pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,g.HTML),e.insertionMode=R):n===v.TH||n===v.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(v.TR),e.insertionMode=R,e._processToken(t)):n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TFOOT||n===v.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S,e._processToken(t)):Ne(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TBODY||n===v.TFOOT||n===v.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S):n===v.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=S,e._processToken(t)):(n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP||n!==v.HTML&&n!==v.TD&&n!==v.TH&&n!==v.TR)&&Re(e,t)},[r.EOF_TOKEN]:Ie},[R]:{[r.CHARACTER_TOKEN]:Pe,[r.NULL_CHARACTER_TOKEN]:Pe,[r.WHITESPACE_CHARACTER_TOKEN]:Pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TH||n===v.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,g.HTML),e.insertionMode=L,e.activeFormattingElements.insertMarker()):n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR?e.openElements.hasInTableScope(v.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):Ne(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TR?e.openElements.hasInTableScope(v.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N):n===v.TABLE?e.openElements.hasInTableScope(v.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):n===v.TBODY||n===v.TFOOT||n===v.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(v.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=N,e._processToken(t)):(n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP||n!==v.HTML&&n!==v.TD&&n!==v.TH)&&Re(e,t)},[r.EOF_TOKEN]:Ie},[L]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.COL||n===v.COLGROUP||n===v.TBODY||n===v.TD||n===v.TFOOT||n===v.TH||n===v.THEAD||n===v.TR?(e.openElements.hasInTableScope(v.TD)||e.openElements.hasInTableScope(v.TH))&&(e._closeTableCell(),e._processToken(t)):Oe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.TD||n===v.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R):n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP&&n!==v.HTML&&Me(e,t)},[r.EOF_TOKEN]:Ie},[D]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:He,[r.END_TAG_TOKEN]:Be,[r.EOF_TOKEN]:Ie},[j]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR||n===v.TD||n===v.TH?(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),e._processToken(t)):He(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.CAPTION||n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR||n===v.TD||n===v.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),e._processToken(t)):Be(e,t)},[r.EOF_TOKEN]:Ie},[H]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===v.BASE||n===v.BASEFONT||n===v.BGSOUND||n===v.LINK||n===v.META||n===v.NOFRAMES||n===v.SCRIPT||n===v.STYLE||n===v.TEMPLATE||n===v.TITLE)ue(e,t);else{const r=W[n]||C;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.TEMPLATE&&le(e,t)},[r.EOF_TOKEN]:Fe},[B]:{[r.CHARACTER_TOKEN]:Ue,[r.NULL_CHARACTER_TOKEN]:Ue,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?Oe(e,t):Ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?e.fragmentContext||(e.insertionMode=z):Ue(e,t)},[r.EOF_TOKEN]:ie},[F]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.FRAMESET?e._insertElement(t,g.HTML):n===v.FRAME?(e._appendElement(t,g.HTML),t.ackSelfClosing=!0):n===v.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==v.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===v.FRAMESET||(e.insertionMode=U))},[r.EOF_TOKEN]:ie},[U]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:oe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===v.HTML&&(e.insertionMode=V)},[r.EOF_TOKEN]:ie},[z]:{[r.CHARACTER_TOKEN]:ze,[r.NULL_CHARACTER_TOKEN]:ze,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===v.HTML?Oe(e,t):ze(e,t)},[r.END_TAG_TOKEN]:ze,[r.EOF_TOKEN]:ie},[V]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ie}};function q(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Se(e,t),n}function Y(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o)&&(n=o)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Z(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let i=0,a=o;a!==n;i++,a=o){o=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=$(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function $(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function X(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),o=e.treeAdapter.getNamespaceURI(t);r===v.TEMPLATE&&o===g.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Q(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),o=n.token,i=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function J(e,t){let n;for(let r=0;r<8&&(n=q(e,t),n);r++){const t=Y(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=Z(e,t,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),X(e,o,r),Q(e,t,n)}}function ee(){}function te(e){e._err(p.misplacedDoctype)}function ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function re(e,t){e._appendCommentNode(t,e.document)}function oe(e,t){e._insertCharacters(t)}function ie(e){e.stopped=!0}function ae(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=T,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=w,e._processToken(t)}function ce(e,t){e._insertFakeElement(v.HEAD),e.headElement=e.openElements.current,e.insertionMode=k,e._processToken(t)}function ue(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.BASE||n===v.BASEFONT||n===v.BGSOUND||n===v.LINK||n===v.META?(e._appendElement(t,g.HTML),t.ackSelfClosing=!0):n===v.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===v.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,g.HTML),e.insertionMode=x):n===v.NOFRAMES||n===v.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===v.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===v.TEMPLATE?(e._insertTemplate(t,g.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=H,e._pushTmplInsertionMode(H)):n===v.HEAD?e._err(p.misplacedStartTagForHeadElement):de(e,t)}function le(e,t){const n=t.tagName;n===v.HEAD?(e.openElements.pop(),e.insertionMode=O):n===v.BODY||n===v.BR||n===v.HTML?de(e,t):n===v.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==v.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(v.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function de(e,t){e.openElements.pop(),e.insertionMode=O,e._processToken(t)}function fe(e,t){const n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=k,e._processToken(t)}function pe(e,t){e._insertFakeElement(v.BODY),e.insertionMode=C,e._processToken(t)}function he(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ve(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML)}function ge(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function be(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _e(e,t){e._appendElement(t,g.HTML),t.ackSelfClosing=!0}function Te(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function we(e,t){e.openElements.currentTagName===v.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function ke(e,t){e.openElements.hasInScope(v.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,g.HTML)}function xe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function Oe(e,t){const n=t.tagName;switch(n.length){case 1:n===v.I||n===v.S||n===v.B||n===v.U?ye(e,t):n===v.P?ve(e,t):n===v.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(v.A);n&&(J(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):xe(e,t);break;case 2:n===v.DL||n===v.OL||n===v.UL?ve(e,t):n===v.H1||n===v.H2||n===v.H3||n===v.H4||n===v.H5||n===v.H6?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==v.H1&&n!==v.H2&&n!==v.H3&&n!==v.H4&&n!==v.H5&&n!==v.H6||e.openElements.pop(),e._insertElement(t,g.HTML)}(e,t):n===v.LI||n===v.DD||n===v.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.items[r],o=e.treeAdapter.getTagName(t);let i=null;if(n===v.LI&&o===v.LI?i=v.LI:n!==v.DD&&n!==v.DT||o!==v.DD&&o!==v.DT||(i=o),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(o!==v.ADDRESS&&o!==v.DIV&&o!==v.P&&e._isSpecialElement(t))break}e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML)}(e,t):n===v.EM||n===v.TT?ye(e,t):n===v.BR?Ee(e,t):n===v.HR?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===v.RB?ke(e,t):n===v.RT||n===v.RP?function(e,t){e.openElements.hasInScope(v.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(v.RTC),e._insertElement(t,g.HTML)}(e,t):n!==v.TH&&n!==v.TD&&n!==v.TR&&xe(e,t);break;case 3:n===v.DIV||n===v.DIR||n===v.NAV?ve(e,t):n===v.PRE?ge(e,t):n===v.BIG?ye(e,t):n===v.IMG||n===v.WBR?Ee(e,t):n===v.XMP?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===v.SVG?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenSVGAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,g.SVG):e._insertElement(t,g.SVG),t.ackSelfClosing=!0}(e,t):n===v.RTC?ke(e,t):n!==v.COL&&xe(e,t);break;case 4:n===v.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===v.BASE||n===v.LINK||n===v.META?ue(e,t):n===v.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===v.MAIN||n===v.MENU?ve(e,t):n===v.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===v.CODE||n===v.FONT?ye(e,t):n===v.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(v.NOBR)&&(J(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===v.AREA?Ee(e,t):n===v.MATH?function(e,t){e._reconstructActiveFormattingElements(),f.adjustTokenMathMLAttrs(t),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,g.MATHML):e._insertElement(t,g.MATHML),t.ackSelfClosing=!0}(e,t):n===v.MENU?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML)}(e,t):n!==v.HEAD&&xe(e,t);break;case 5:n===v.STYLE||n===v.TITLE?ue(e,t):n===v.ASIDE?ve(e,t):n===v.SMALL?ye(e,t):n===v.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=S}(e,t):n===v.EMBED?Ee(e,t):n===v.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===v.PARAM||n===v.TRACK?_e(e,t):n===v.IMAGE?function(e,t){t.tagName=v.IMG,Ee(e,t)}(e,t):n!==v.FRAME&&n!==v.TBODY&&n!==v.TFOOT&&n!==v.THEAD&&xe(e,t);break;case 6:n===v.SCRIPT?ue(e,t):n===v.CENTER||n===v.FIGURE||n===v.FOOTER||n===v.HEADER||n===v.HGROUP||n===v.DIALOG?ve(e,t):n===v.BUTTON?function(e,t){e.openElements.hasInScope(v.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(v.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1}(e,t):n===v.STRIKE||n===v.STRONG?ye(e,t):n===v.APPLET||n===v.OBJECT?be(e,t):n===v.KEYGEN?Ee(e,t):n===v.SOURCE?_e(e,t):n===v.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===v.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode===S||e.insertionMode===I||e.insertionMode===N||e.insertionMode===R||e.insertionMode===L?e.insertionMode=j:e.insertionMode=D}(e,t):n===v.OPTION?we(e,t):xe(e,t);break;case 7:n===v.BGSOUND?ue(e,t):n===v.DETAILS||n===v.ADDRESS||n===v.ARTICLE||n===v.SECTION||n===v.SUMMARY?ve(e,t):n===v.LISTING?ge(e,t):n===v.MARQUEE?be(e,t):n===v.NOEMBED?Te(e,t):n!==v.CAPTION&&xe(e,t);break;case 8:n===v.BASEFONT?ue(e,t):n===v.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,g.HTML),e.insertionMode=F)}(e,t):n===v.FIELDSET?ve(e,t):n===v.TEXTAREA?function(e,t){e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=A}(e,t):n===v.TEMPLATE?ue(e,t):n===v.NOSCRIPT?e.options.scriptingEnabled?Te(e,t):xe(e,t):n===v.OPTGROUP?we(e,t):n!==v.COLGROUP&&xe(e,t);break;case 9:n===v.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(v.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):xe(e,t);break;case 10:n===v.BLOCKQUOTE||n===v.FIGCAPTION?ve(e,t):xe(e,t);break;default:xe(e,t)}}function Ce(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Ae(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Se(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const t=e.openElements.items[r];if(e.treeAdapter.getTagName(t)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(t);break}if(e._isSpecialElement(t))break}}function Me(e,t){const n=t.tagName;switch(n.length){case 1:n===v.A||n===v.B||n===v.I||n===v.S||n===v.U?J(e,t):n===v.P?function(e){e.openElements.hasInButtonScope(v.P)||e._insertFakeElement(v.P),e._closePElement()}(e):Se(e,t);break;case 2:n===v.DL||n===v.UL||n===v.OL?Ce(e,t):n===v.LI?function(e){e.openElements.hasInListItemScope(v.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(v.LI),e.openElements.popUntilTagNamePopped(v.LI))}(e):n===v.DD||n===v.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===v.H1||n===v.H2||n===v.H3||n===v.H4||n===v.H5||n===v.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===v.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(v.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===v.EM||n===v.TT?J(e,t):Se(e,t);break;case 3:n===v.BIG?J(e,t):n===v.DIR||n===v.DIV||n===v.NAV||n===v.PRE?Ce(e,t):Se(e,t);break;case 4:n===v.BODY?function(e){e.openElements.hasInScope(v.BODY)&&(e.insertionMode=B)}(e):n===v.HTML?function(e,t){e.openElements.hasInScope(v.BODY)&&(e.insertionMode=B,e._processToken(t))}(e,t):n===v.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(v.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(v.FORM):e.openElements.remove(n))}(e):n===v.CODE||n===v.FONT||n===v.NOBR?J(e,t):n===v.MAIN||n===v.MENU?Ce(e,t):Se(e,t);break;case 5:n===v.ASIDE?Ce(e,t):n===v.SMALL?J(e,t):Se(e,t);break;case 6:n===v.CENTER||n===v.FIGURE||n===v.FOOTER||n===v.HEADER||n===v.HGROUP||n===v.DIALOG?Ce(e,t):n===v.APPLET||n===v.OBJECT?Ae(e,t):n===v.STRIKE||n===v.STRONG?J(e,t):Se(e,t);break;case 7:n===v.ADDRESS||n===v.ARTICLE||n===v.DETAILS||n===v.SECTION||n===v.SUMMARY||n===v.LISTING?Ce(e,t):n===v.MARQUEE?Ae(e,t):Se(e,t);break;case 8:n===v.FIELDSET?Ce(e,t):n===v.TEMPLATE?le(e,t):Se(e,t);break;case 10:n===v.BLOCKQUOTE||n===v.FIGCAPTION?Ce(e,t):Se(e,t);break;default:Se(e,t)}}function Ie(e,t){e.tmplInsertionModeStackTop>-1?Fe(e,t):e.stopped=!0}function Pe(e,t){const n=e.openElements.currentTagName;n===v.TABLE||n===v.TBODY||n===v.TFOOT||n===v.THEAD||n===v.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=M,e._processToken(t)):Le(e,t)}function Ne(e,t){const n=t.tagName;switch(n.length){case 2:n===v.TD||n===v.TH||n===v.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.TBODY),e.insertionMode=N,e._processToken(t)}(e,t):Le(e,t);break;case 3:n===v.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.COLGROUP),e.insertionMode=P,e._processToken(t)}(e,t):Le(e,t);break;case 4:n===v.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,g.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Le(e,t);break;case 5:n===v.TABLE?function(e,t){e.openElements.hasInTableScope(v.TABLE)&&(e.openElements.popUntilTagNamePopped(v.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===v.STYLE?ue(e,t):n===v.TBODY||n===v.TFOOT||n===v.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=N}(e,t):n===v.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===E?e._appendElement(t,g.HTML):Le(e,t),t.ackSelfClosing=!0}(e,t):Le(e,t);break;case 6:n===v.SCRIPT?ue(e,t):Le(e,t);break;case 7:n===v.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,g.HTML),e.insertionMode=I}(e,t):Le(e,t);break;case 8:n===v.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=P}(e,t):n===v.TEMPLATE?ue(e,t):Le(e,t);break;default:Le(e,t)}}function Re(e,t){const n=t.tagName;n===v.TABLE?e.openElements.hasInTableScope(v.TABLE)&&(e.openElements.popUntilTagNamePopped(v.TABLE),e._resetInsertionMode()):n===v.TEMPLATE?le(e,t):n!==v.BODY&&n!==v.CAPTION&&n!==v.COL&&n!==v.COLGROUP&&n!==v.HTML&&n!==v.TBODY&&n!==v.TD&&n!==v.TFOOT&&n!==v.TH&&n!==v.THEAD&&n!==v.TR&&Le(e,t)}function Le(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function De(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Le(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function je(e,t){e.openElements.currentTagName===v.COLGROUP&&(e.openElements.pop(),e.insertionMode=S,e._processToken(t))}function He(e,t){const n=t.tagName;n===v.HTML?Oe(e,t):n===v.OPTION?(e.openElements.currentTagName===v.OPTION&&e.openElements.pop(),e._insertElement(t,g.HTML)):n===v.OPTGROUP?(e.openElements.currentTagName===v.OPTION&&e.openElements.pop(),e.openElements.currentTagName===v.OPTGROUP&&e.openElements.pop(),e._insertElement(t,g.HTML)):n===v.INPUT||n===v.KEYGEN||n===v.TEXTAREA||n===v.SELECT?e.openElements.hasInSelectScope(v.SELECT)&&(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode(),n!==v.SELECT&&e._processToken(t)):n!==v.SCRIPT&&n!==v.TEMPLATE||ue(e,t)}function Be(e,t){const n=t.tagName;if(n===v.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===v.OPTION&&n===v.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===v.OPTGROUP&&e.openElements.pop()}else n===v.OPTION?e.openElements.currentTagName===v.OPTION&&e.openElements.pop():n===v.SELECT&&e.openElements.hasInSelectScope(v.SELECT)?(e.openElements.popUntilTagNamePopped(v.SELECT),e._resetInsertionMode()):n===v.TEMPLATE&&le(e,t)}function Fe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(v.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Ue(e,t){e.insertionMode=C,e._processToken(t)}function ze(e,t){e.insertionMode=C,e._processToken(t)}e.exports=class{constructor(e){this.options=l(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&c.install(this,a),this.options.onParseError&&c.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(v.TEMPLATE,g.HTML,[]));const n=this.treeAdapter.createElement("documentmock",g.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===v.TEMPLATE&&this._pushTmplInsertionMode(H),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,o),o}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=_,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new o(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==g.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,g.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=A}switchToPlaintextParsing(){this.insertionMode=A,this.originalInsertionMode=C,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===v.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===g.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===v.TITLE||e===v.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===v.STYLE||e===v.XMP||e===v.IFRAME||e===v.NOEMBED||e===v.NOFRAMES||e===v.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===v.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===v.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,g.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,g.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(v.HTML,g.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===g.HTML)return!1;if(this.treeAdapter.getTagName(t)===v.ANNOTATION_XML&&n===g.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===v.SVG)return!1;const o=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===r.START_TAG_TOKEN&&e.tagName!==v.MGLYPH&&e.tagName!==v.MALIGNMARK)&&!o||!this._isIntegrationPoint(t,g.MATHML))&&((e.type!==r.START_TAG_TOKEN&&!o||!this._isIntegrationPoint(t,g.HTML))&&e.type!==r.EOF_TOKEN)}_processToken(e){K[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){K.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?oe(this,e):e.type===r.COMMENT_TOKEN?ne(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(f.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==g.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===g.MATHML?f.adjustTokenMathMLAttrs(t):r===g.SVG&&(f.adjustTokenSVGTagName(t),f.adjustTokenSVGAttrs(t)),f.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===g.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return f.isIntegrationPoint(n,r,o,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r<e;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=R}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(v.P),this.openElements.popUntilTagNamePopped(v.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),o=G[r];if(o){this.insertionMode=o;break}if(!(t||r!==v.TD&&r!==v.TH)){this.insertionMode=L;break}if(!t&&r===v.HEAD){this.insertionMode=k;break}if(r===v.SELECT){this._resetInsertionModeForSelect(e);break}if(r===v.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===v.HTML){this.insertionMode=this.headElement?O:w;break}if(t){this.insertionMode=C;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===v.TEMPLATE)break;if(n===v.TABLE)return void(this.insertionMode=j)}this.insertionMode=D}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===v.TABLE||t===v.TBODY||t===v.TFOOT||t===v.THEAD||t===v.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),o=this.treeAdapter.getNamespaceURI(n);if(r===v.TEMPLATE&&o===g.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===v.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},46519:function(e,t,n){"use strict";const r=n(16152),o=r.TAG_NAMES,i=r.NAMESPACES;function a(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI;case 3:return e===o.RTC;case 6:return e===o.OPTION;case 8:return e===o.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===o.P;case 2:return e===o.RB||e===o.RP||e===o.RT||e===o.DD||e===o.DT||e===o.LI||e===o.TD||e===o.TH||e===o.TR;case 3:return e===o.RTC;case 5:return e===o.TBODY||e===o.TFOOT||e===o.THEAD;case 6:return e===o.OPTION;case 7:return e===o.CAPTION;case 8:return e===o.OPTGROUP||e===o.COLGROUP}return!1}function c(e,t){switch(e.length){case 2:if(e===o.TD||e===o.TH)return t===i.HTML;if(e===o.MI||e===o.MO||e===o.MN||e===o.MS)return t===i.MATHML;break;case 4:if(e===o.HTML)return t===i.HTML;if(e===o.DESC)return t===i.SVG;break;case 5:if(e===o.TABLE)return t===i.HTML;if(e===o.MTEXT)return t===i.MATHML;if(e===o.TITLE)return t===i.SVG;break;case 6:return(e===o.APPLET||e===o.OBJECT)&&t===i.HTML;case 7:return(e===o.CAPTION||e===o.MARQUEE)&&t===i.HTML;case 8:return e===o.TEMPLATE&&t===i.HTML;case 13:return e===o.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===o.ANNOTATION_XML&&t===i.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===o.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.H1||e===o.H2||e===o.H3||e===o.H4||e===o.H5||e===o.H6&&t===i.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===o.TD||e===o.TH&&t===i.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==o.TABLE&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==o.TBODY&&this.currentTagName!==o.TFOOT&&this.currentTagName!==o.THEAD&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==o.TR&&this.currentTagName!==o.TEMPLATE&&this.currentTagName!==o.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===o.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===o.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if(c(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===o.H1||t===o.H2||t===o.H3||t===o.H4||t===o.H5||t===o.H6)&&n===i.HTML)return!0;if(c(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if((n===o.UL||n===o.OL)&&r===i.HTML||c(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===i.HTML)return!0;if(n===o.BUTTON&&r===i.HTML||c(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n===o.TABLE||n===o.TEMPLATE||n===o.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===i.HTML){if(t===o.TBODY||t===o.THEAD||t===o.TFOOT)return!0;if(t===o.TABLE||t===o.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n!==o.OPTION&&n!==o.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},55763:function(e,t,n){"use strict";const r=n(77118),o=n(54284),i=n(5482),a=n(41734),s=o.CODE_POINTS,c=o.CODE_POINT_SEQUENCES,u={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},l="DATA_STATE",d="RCDATA_STATE",f="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",h="PLAINTEXT_STATE",m="TAG_OPEN_STATE",v="END_TAG_OPEN_STATE",g="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",E="RCDATA_END_TAG_NAME_STATE",_="RAWTEXT_LESS_THAN_SIGN_STATE",T="RAWTEXT_END_TAG_OPEN_STATE",w="RAWTEXT_END_TAG_NAME_STATE",k="SCRIPT_DATA_LESS_THAN_SIGN_STATE",x="SCRIPT_DATA_END_TAG_OPEN_STATE",O="SCRIPT_DATA_END_TAG_NAME_STATE",C="SCRIPT_DATA_ESCAPE_START_STATE",A="SCRIPT_DATA_ESCAPE_START_DASH_STATE",S="SCRIPT_DATA_ESCAPED_STATE",M="SCRIPT_DATA_ESCAPED_DASH_STATE",I="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",P="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",N="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",R="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",L="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",D="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",H="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",U="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",V="AFTER_ATTRIBUTE_NAME_STATE",G="BEFORE_ATTRIBUTE_VALUE_STATE",W="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",K="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",q="ATTRIBUTE_VALUE_UNQUOTED_STATE",Y="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Z="SELF_CLOSING_START_TAG_STATE",$="BOGUS_COMMENT_STATE",X="MARKUP_DECLARATION_OPEN_STATE",Q="COMMENT_START_STATE",J="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_STATE",re="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",oe="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ie="COMMENT_END_DASH_STATE",ae="COMMENT_END_STATE",se="COMMENT_END_BANG_STATE",ce="DOCTYPE_STATE",ue="BEFORE_DOCTYPE_NAME_STATE",le="DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_NAME_STATE",fe="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",pe="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",he="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",ve="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ge="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ye="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",be="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ee="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",_e="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Te="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",we="BOGUS_DOCTYPE_STATE",ke="CDATA_SECTION_STATE",xe="CDATA_SECTION_BRACKET_STATE",Oe="CDATA_SECTION_END_STATE",Ce="CHARACTER_REFERENCE_STATE",Ae="NAMED_CHARACTER_REFERENCE_STATE",Se="AMBIGUOS_AMPERSAND_STATE",Me="NUMERIC_CHARACTER_REFERENCE_STATE",Ie="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Pe="DECIMAL_CHARACTER_REFERENCE_START_STATE",Ne="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Re="DECIMAL_CHARACTER_REFERENCE_STATE",Le="NUMERIC_CHARACTER_REFERENCE_END_STATE";function De(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function je(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function He(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function Be(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function Fe(e){return Be(e)||He(e)}function Ue(e){return Fe(e)||je(e)}function ze(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function Ve(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function Ge(e){return e+32}function We(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function Ke(e){return String.fromCharCode(Ge(e))}function qe(e,t){const n=i[++e];let r=++e,o=r+n-1;for(;r<=o;){const e=r+o>>>1,a=i[e];if(a<t)r=e+1;else{if(!(a>t))return i[e+n];o=e-1}}return-1}class Ye{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=l,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ye.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,o=!0;const i=e.length;let a,c=0,u=t;for(;c<i;c++){if(c>0&&(u=this._consume(),r++),u===s.EOF){o=!1;break}if(a=e[c],u!==a&&(n||u!==Ge(a))){o=!1;break}}if(!o)for(;r--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==c.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==c.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:Ye.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:Ye.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:Ye.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:Ye.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:Ye.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===Ye.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===Ye.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===Ye.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ye.CHARACTER_TOKEN;De(e)?t=Ye.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=Ye.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,We(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(Ye.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,r=qe(0,e);for(this.tempBuff.push(e);r>-1;){const e=i[r],o=e<7;o&&1&e&&(t=2&e?[i[++r],i[++r]]:[i[++r]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;r=o?4&e?qe(r,a):-1:a===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===W||this.returnState===K||this.returnState===q}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||Ue(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=We(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[l](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=m:e===s.AMPERSAND?(this.returnState=l,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[d](e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState=d,this.state=Ce):e===s.LESS_THAN_SIGN?this.state=y:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[f](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=_:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[p](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state=k:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[h](e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}[m](e){e===s.EXCLAMATION_MARK?this.state=X:e===s.SOLIDUS?this.state=v:Fe(e)?(this._createStartTagToken(),this._reconsumeInState(g)):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState($)):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(l))}[v](e){Fe(e)?(this._createEndTagToken(),this._reconsumeInState(g)):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=l):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState($))}[g](e){De(e)?this.state=U:e===s.SOLIDUS?this.state=Z:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):He(e)?this.currentToken.tagName+=Ke(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=We(e)}[y](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=b):(this._emitChars("<"),this._reconsumeInState(d))}[b](e){Fe(e)?(this._createEndTagToken(),this._reconsumeInState(E)):(this._emitChars("</"),this._reconsumeInState(d))}[E](e){if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(De(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this.state=l,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(d)}}[_](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=T):(this._emitChars("<"),this._reconsumeInState(f))}[T](e){Fe(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChars("</"),this._reconsumeInState(f))}[w](e){if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(De(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}}[k](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=x):e===s.EXCLAMATION_MARK?(this.state=C,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(p))}[x](e){Fe(e)?(this._createEndTagToken(),this._reconsumeInState(O)):(this._emitChars("</"),this._reconsumeInState(p))}[O](e){if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(De(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}}[C](e){e===s.HYPHEN_MINUS?(this.state=A,this._emitChars("-")):this._reconsumeInState(p)}[A](e){e===s.HYPHEN_MINUS?(this.state=I,this._emitChars("-")):this._reconsumeInState(p)}[S](e){e===s.HYPHEN_MINUS?(this.state=M,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=P:e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[M](e){e===s.HYPHEN_MINUS?(this.state=I,this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state=P:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=S,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=S,this._emitCodePoint(e))}[I](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state=P:e===s.GREATER_THAN_SIGN?(this.state=p,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=S,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=S,this._emitCodePoint(e))}[P](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=N):Fe(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(L)):(this._emitChars("<"),this._reconsumeInState(S))}[N](e){Fe(e)?(this._createEndTagToken(),this._reconsumeInState(R)):(this._emitChars("</"),this._reconsumeInState(S))}[R](e){if(He(e))this.currentToken.tagName+=Ke(e),this.tempBuff.push(e);else if(Be(e))this.currentToken.tagName+=We(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(De(e))return void(this.state=U);if(e===s.SOLIDUS)return void(this.state=Z);if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=l)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(S)}}[L](e){De(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?D:S,this._emitCodePoint(e)):He(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(S)}[D](e){e===s.HYPHEN_MINUS?(this.state=j,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}[j](e){e===s.HYPHEN_MINUS?(this.state=H,this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=D,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=D,this._emitCodePoint(e))}[H](e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state=B,this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state=p,this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state=D,this._emitChars(o.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=D,this._emitCodePoint(e))}[B](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=F,this._emitChars("/")):this._reconsumeInState(D)}[F](e){De(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?S:D,this._emitCodePoint(e)):He(e)?(this.tempBuff.push(Ge(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(D)}[U](e){De(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(V):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](e){De(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(V),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(G):He(e)?this.currentAttr.name+=Ke(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=We(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=o.REPLACEMENT_CHARACTER):this.currentAttr.name+=We(e)}[V](e){De(e)||(e===s.SOLIDUS?this.state=Z:e===s.EQUALS_SIGN?this.state=G:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[G](e){De(e)||(e===s.QUOTATION_MARK?this.state=W:e===s.APOSTROPHE?this.state=K:e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=l,this._emitCurrentToken()):this._reconsumeInState(q))}[W](e){e===s.QUOTATION_MARK?this.state=Y:e===s.AMPERSAND?(this.returnState=W,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[K](e){e===s.APOSTROPHE?this.state=Y:e===s.AMPERSAND?(this.returnState=K,this.state=Ce):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[q](e){De(e)?this._leaveAttrValue(U):e===s.AMPERSAND?(this.returnState=q,this.state=Ce):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=We(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=We(e)}[Y](e){De(e)?this._leaveAttrValue(U):e===s.SOLIDUS?this._leaveAttrValue(Z):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(l),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState(U))}[Z](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState(U))}[$](e){e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):this.currentToken.data+=We(e)}[X](e){this._consumeSequenceIfMatch(c.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=Q):this._consumeSequenceIfMatch(c.DOCTYPE_STRING,e,!1)?this.state=ce:this._consumeSequenceIfMatch(c.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=ke:(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=$):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState($))}[Q](e){e===s.HYPHEN_MINUS?this.state=J:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=l,this._emitCurrentToken()):this._reconsumeInState(ee)}[J](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ie:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=We(e)}[te](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ne):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ne](e){e===s.HYPHEN_MINUS?this.state=re:this._reconsumeInState(ee)}[re](e){e===s.HYPHEN_MINUS?this.state=oe:this._reconsumeInState(ie)}[oe](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState(ae)}[ie](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ae](e){e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=se:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[se](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ie):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[ce](e){De(e)?this.state=ue:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ue):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ue))}[ue](e){De(e)||(He(e)?(this._createDoctypeToken(Ke(e)),this.state=le):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(o.REPLACEMENT_CHARACTER),this.state=le):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(We(e)),this.state=le))}[le](e){De(e)?this.state=de:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):He(e)?this.currentToken.name+=Ke(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=o.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=We(e)}[de](e){De(e)||(e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(c.PUBLIC_STRING,e,!1)?this.state=fe:this._consumeSequenceIfMatch(c.SYSTEM_STRING,e,!1)?this.state=ye:this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[fe](e){De(e)?this.state=pe:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[pe](e){De(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[he](e){e===s.QUOTATION_MARK?this.state=ve:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=We(e)}[me](e){e===s.APOSTROPHE?this.state=ve:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=We(e)}[ve](e){De(e)?this.state=ge:e===s.GREATER_THAN_SIGN?(this.state=l,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[ge](e){De(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[ye](e){De(e)?this.state=be:e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we))}[be](e){De(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Ee):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=_e):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=l,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(we)))}[Ee](e){e===s.QUOTATION_MARK?this.state=Te:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=We(e)}[_e](e){e===s.APOSTROPHE?this.state=Te:e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=We(e)}[Te](e){De(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(we)))}[we](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=l):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[ke](e){e===s.RIGHT_SQUARE_BRACKET?this.state=xe:e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[xe](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Oe:(this._emitChars("]"),this._reconsumeInState(ke))}[Oe](e){e===s.GREATER_THAN_SIGN?this.state=l:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(ke))}[Ce](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Me):Ue(e)?this._reconsumeInState(Ae):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ae](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Se}[Se](e){Ue(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=We(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Me](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Ie):this._reconsumeInState(Pe)}[Ie](e){!function(e){return je(e)||ze(e)||Ve(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Ne)}[Pe](e){je(e)?this._reconsumeInState(Re):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Ne](e){ze(e)?this.charRefCode=16*this.charRefCode+e-55:Ve(e)?this.charRefCode=16*this.charRefCode+e-87:je(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Le:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Le))}[Re](e){je(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Le:(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState(Le))}[Le](){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(o.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(o.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(o.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Ye.CHARACTER_TOKEN="CHARACTER_TOKEN",Ye.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ye.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ye.START_TAG_TOKEN="START_TAG_TOKEN",Ye.END_TAG_TOKEN="END_TAG_TOKEN",Ye.COMMENT_TOKEN="COMMENT_TOKEN",Ye.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ye.EOF_TOKEN="EOF_TOKEN",Ye.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ye.MODE={DATA:l,RCDATA:d,RAWTEXT:f,SCRIPT_DATA:p,PLAINTEXT:h},Ye.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=Ye},5482:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},77118:function(e,t,n){"use strict";const r=n(54284),o=n(41734),i=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(o.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===i.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===i.CARRIAGE_RETURN)return this.skipNextNewLine=!0,i.LINE_FEED;this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(o.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(o.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},17296:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(16152);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const o=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let o=null;for(let i=0;i<e.childNodes.length;i++)if("#documentType"===e.childNodes[i].nodeName){o=e.childNodes[i];break}o?(o.name=t,o.publicId=n,o.systemId=r):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,o(t))},t.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&"#text"===r.nodeName?r.value+=t:a(e,o(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)-1===n.indexOf(t[r].name)&&e.attrs.push(t[r])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},t.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}},8904:function(e){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce(((e,t)=>(Object.keys(t).forEach((n=>{e[n]=t[n]})),e)),Object.create(null))}},81704:function(e){"use strict";class t{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"===typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let o=0;o<e.__mixins.length;o++)if(e.__mixins[o].constructor===t)return e.__mixins[o];const r=new t(e,n);return e.__mixins.push(r),r},e.exports=t},75:function(e,t,n){var r=n(34155);(function(){var t,n,o,i,a,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof r&&null!==r&&r.hrtime?(e.exports=function(){return(t()-a)/1e6},n=r.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),s=1e9*r.uptime(),a=i-s):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)},87236:function(e){var t=null,n=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var r=t.style;if(e in r)return e;for(var o=e.charAt(0).toUpperCase()+e.slice(1),i=n.length;i>=0;i--){var a=n[i]+o;if(a in r)return a}return!1}},34155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},99560:function(e,t,n){"use strict";var r=n(66632),o=n(98805),i=n(57643),a="data";e.exports=function(e,t){var n=r(t),f=t,p=i;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===a&&s.test(t)&&("-"===t.charAt(4)?f=function(e){var t=e.slice(5).replace(c,d);return a+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(c.test(t))return e;"-"!==(t=t.replace(u,l)).charAt(0)&&(t="-"+t);return a+t}(t),p=o);return new p(f,t)};var s=/^data[-\w.:]+$/i,c=/-[a-z]/g,u=/[A-Z]/g;function l(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},93934:function(e){"use strict";e.exports=JSON.parse('{"classId":"classID","dataType":"datatype","itemId":"itemID","strokeDashArray":"strokeDasharray","strokeDashOffset":"strokeDashoffset","strokeLineCap":"strokeLinecap","strokeLineJoin":"strokeLinejoin","strokeMiterLimit":"strokeMiterlimit","typeOf":"typeof","xLinkActuate":"xlinkActuate","xLinkArcRole":"xlinkArcrole","xLinkHref":"xlinkHref","xLinkRole":"xlinkRole","xLinkShow":"xlinkShow","xLinkTitle":"xlinkTitle","xLinkType":"xlinkType","xmlnsXLink":"xmlnsXlink"}')},97247:function(e,t,n){"use strict";var r=n(19940),o=n(8289),i=n(5812),a=n(94397),s=n(67716),c=n(61805);e.exports=r([i,o,a,s,c])},67716:function(e,t,n){"use strict";var r=n(17e3),o=n(17596),i=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:i,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},61805:function(e,t,n){"use strict";var r=n(17e3),o=n(17596),i=n(10855),a=r.boolean,s=r.overloadedBoolean,c=r.booleanish,u=r.number,l=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:l,accessKey:l,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:l,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:l,cols:u,colSpan:null,content:null,contentEditable:c,controls:a,controlsList:l,coords:u|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:c,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:l,height:u,hidden:a,high:u,href:null,hrefLang:null,htmlFor:l,httpEquiv:l,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:l,itemRef:l,itemScope:a,itemType:l,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:u,pattern:null,ping:l,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:l,required:a,reversed:a,rows:u,rowSpan:u,sandbox:l,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:c,src:null,srcDoc:null,srcLang:null,srcSet:d,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:c,width:u,wrap:null,align:null,aLink:null,archive:l,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:c,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:u,security:null,unselectable:null}})},45789:function(e,t,n){"use strict";var r=n(17e3),o=n(17596),i=n(28740),a=r.boolean,s=r.number,c=r.spaceSeparated,u=r.commaSeparated,l=r.commaOrSpaceSeparated;e.exports=o({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:i,properties:{about:l,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:c,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:u,g2:u,glyphName:u,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:l,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:c,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:l,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:l,rev:l,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:l,requiredFeatures:l,requiredFonts:l,requiredFormats:l,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:l,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:l,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:l,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},10855:function(e,t,n){"use strict";var r=n(28740);e.exports=function(e,t){return r(e,t.toLowerCase())}},28740:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},17596:function(e,t,n){"use strict";var r=n(66632),o=n(99607),i=n(98805);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],c=e.attributes||{},u=e.properties,l=e.transform,d={},f={};for(t in u)n=new i(t,l(c,t),u[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new o(d,f,a)}},98805:function(e,t,n){"use strict";var r=n(57643),o=n(17e3);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=i.length;function s(e,t,n,s){var u,l=-1;for(c(this,"space",s),r.call(this,e,t);++l<a;)c(this,u=i[l],(n&o[u])===o[u])}function c(e,t,n){n&&(e[t]=n)}},57643:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},19940:function(e,t,n){"use strict";var r=n(47529),o=n(99607);e.exports=function(e){var t,n,i=e.length,a=[],s=[],c=-1;for(;++c<i;)t=e[c],a.push(t.property),s.push(t.normal),n=t.space;return new o(r.apply(null,a),r.apply(null,s),n)}},99607:function(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},17e3:function(e,t){"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},8289:function(e,t,n){"use strict";var r=n(17596);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},5812:function(e,t,n){"use strict";var r=n(17596);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},94397:function(e,t,n){"use strict";var r=n(17596),o=n(10855);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:o,properties:{xmlns:null,xmlnsXLink:null}})},66632:function(e){"use strict";e.exports=function(e){return e.toLowerCase()}},11218:function(e,t,n){"use strict";var r=n(19940),o=n(8289),i=n(5812),a=n(94397),s=n(67716),c=n(45789);e.exports=r([i,o,a,s,c])},54087:function(e,t,n){for(var r=n(75),o="undefined"===typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],u=0;!s&&u<i.length;u++)s=o[i[u]+"Request"+a],c=o[i[u]+"Cancel"+a]||o[i[u]+"CancelRequest"+a];if(!s||!c){var l=0,d=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,16.666666666666668-(t-l));l=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},c=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){c.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}},33485:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.renderViewDefault=function(e){return a.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))};var o,i=n(67294),a=(o=i)&&o.__esModule?o:{default:o};function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},36164:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(54087),a=g(i),s=g(n(53879)),c=n(67294),u=g(n(45697)),l=g(n(77928)),d=g(n(66445)),f=g(n(18309)),p=g(n(51608)),h=g(n(43840)),m=n(58285),v=n(33485);function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var E=function(e){function t(e){var n;y(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=b(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(o)));return a.getScrollLeft=a.getScrollLeft.bind(a),a.getScrollTop=a.getScrollTop.bind(a),a.getScrollWidth=a.getScrollWidth.bind(a),a.getScrollHeight=a.getScrollHeight.bind(a),a.getClientWidth=a.getClientWidth.bind(a),a.getClientHeight=a.getClientHeight.bind(a),a.getValues=a.getValues.bind(a),a.getThumbHorizontalWidth=a.getThumbHorizontalWidth.bind(a),a.getThumbVerticalHeight=a.getThumbVerticalHeight.bind(a),a.getScrollLeftForOffset=a.getScrollLeftForOffset.bind(a),a.getScrollTopForOffset=a.getScrollTopForOffset.bind(a),a.scrollLeft=a.scrollLeft.bind(a),a.scrollTop=a.scrollTop.bind(a),a.scrollToLeft=a.scrollToLeft.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.scrollToRight=a.scrollToRight.bind(a),a.scrollToBottom=a.scrollToBottom.bind(a),a.handleTrackMouseEnter=a.handleTrackMouseEnter.bind(a),a.handleTrackMouseLeave=a.handleTrackMouseLeave.bind(a),a.handleHorizontalTrackMouseDown=a.handleHorizontalTrackMouseDown.bind(a),a.handleVerticalTrackMouseDown=a.handleVerticalTrackMouseDown.bind(a),a.handleHorizontalThumbMouseDown=a.handleHorizontalThumbMouseDown.bind(a),a.handleVerticalThumbMouseDown=a.handleVerticalThumbMouseDown.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleScroll=a.handleScroll.bind(a),a.handleDrag=a.handleDrag.bind(a),a.handleDragEnd=a.handleDragEnd.bind(a),a.state={didMountUniversal:!1},a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r,i=e.scrollWidth,a=void 0===i?0:i,s=e.scrollHeight,c=void 0===s?0:s,u=e.clientWidth,l=void 0===u?0:u,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(a-l)||0,top:o/(c-f)||0,scrollLeft:n,scrollTop:o,scrollWidth:a,scrollHeight:c,clientWidth:l,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollWidth,i=r.clientWidth,a=(0,p.default)(this.trackHorizontal),s=Math.ceil(i/o*a);return a<=s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollHeight,i=r.clientHeight,a=(0,h.default)(this.trackVertical),s=Math.ceil(i/o*a);return a<=s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,p.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,h.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,d.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),i=Math.abs(r-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,m.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,o=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(o)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,d.default)()){var i=o.scrollLeft,a=o.clientWidth,c=o.scrollWidth,u=(0,p.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),f={width:l,transform:"translateX("+i/(c-a)*(u-l)+"px)"},m=o.scrollTop,v=o.clientHeight,g=o.scrollHeight,y=(0,h.default)(this.trackVertical),b=this.getThumbVerticalHeight(),E={height:b,transform:"translateY("+m/(g-v)*(y-b)+"px)"};if(r){var _={visibility:c>a?"visible":"hidden"},T={visibility:g>v?"visible":"hidden"};(0,s.default)(this.trackHorizontal,_),(0,s.default)(this.trackVertical,T)}(0,s.default)(this.thumbHorizontal,f),(0,s.default)(this.thumbVertical,E)}n&&n(o),"function"===typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,o=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,u=n.renderThumbVertical,f=n.tagName,p=(n.hideTracksWhenNotNeeded,n.autoHide),h=(n.autoHideTimeout,n.autoHideDuration),v=(n.thumbSize,n.thumbMinSize,n.universal),g=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,E=n.style,_=n.children,T=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),w=this.state.didMountUniversal,k=r({},m.containerStyleDefault,g&&r({},m.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),E),x=r({},m.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},g&&r({},m.viewStyleAutoHeight,{minHeight:(0,l.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,l.default)(b)?"calc("+b+" + "+t+"px)":b+t}),g&&v&&!w&&{minHeight:y,maxHeight:b},v&&!w&&m.viewStyleUniversalInitial),O={transition:"opacity "+h+"ms",opacity:0},C=r({},m.trackHorizontalStyleDefault,p&&O,(!t||v&&!w)&&{display:"none"}),A=r({},m.trackVerticalStyleDefault,p&&O,(!t||v&&!w)&&{display:"none"});return(0,c.createElement)(f,r({},T,{style:k,ref:function(t){e.container=t}}),[(0,c.cloneElement)(o({style:x}),{key:"view",ref:function(t){e.view=t}},_),(0,c.cloneElement)(i({style:C}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,c.cloneElement)(s({style:m.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,c.cloneElement)(a({style:A}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,c.cloneElement)(u({style:m.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(c.Component);t.default=E,E.propTypes={onScroll:u.default.func,onScrollFrame:u.default.func,onScrollStart:u.default.func,onScrollStop:u.default.func,onUpdate:u.default.func,renderView:u.default.func,renderTrackHorizontal:u.default.func,renderTrackVertical:u.default.func,renderThumbHorizontal:u.default.func,renderThumbVertical:u.default.func,tagName:u.default.string,thumbSize:u.default.number,thumbMinSize:u.default.number,hideTracksWhenNotNeeded:u.default.bool,autoHide:u.default.bool,autoHideTimeout:u.default.number,autoHideDuration:u.default.number,autoHeight:u.default.bool,autoHeightMin:u.default.oneOfType([u.default.number,u.default.string]),autoHeightMax:u.default.oneOfType([u.default.number,u.default.string]),universal:u.default.bool,style:u.default.object,children:u.default.node},E.defaultProps={renderView:v.renderViewDefault,renderTrackHorizontal:v.renderTrackHorizontalDefault,renderTrackVertical:v.renderTrackVerticalDefault,renderThumbHorizontal:v.renderThumbHorizontalDefault,renderThumbVertical:v.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},58285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},86658:function(e,t,n){"use strict";t.$B=void 0;var r,o=n(36164),i=(r=o)&&r.__esModule?r:{default:r};t.ZP=i.default,t.$B=i.default},43840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}},51608:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}},66445:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e&&!1!==a)return a;if("undefined"!==typeof document){var t=document.createElement("div");(0,i.default)(t,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}else a=0;return a||0};var r,o=n(53879),i=(r=o)&&r.__esModule?r:{default:r};var a=!1},77928:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e}},18309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},69590:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(!i(e[c],a[c]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(c=s;0!==c--;)if(e[c]!==a[c])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(c=s;0!==c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(t&&e instanceof Element)return!1;for(c=s;0!==c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!i(e[u[c]],a[u[c]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},61957:function(e,n,r){"use strict";r.d(n,{f$:function(){return Fi},s6:function(){return Bi}});var o=r(67294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(e,t){var n=new Set(t);return Object.assign.apply(Object,[{}].concat(s(Object.entries(e).filter((function(e){var t=a(e,1)[0];return!n.has(t)})).map((function(e){var t=a(e,2);return i({},t[0],t[1])})))))},d=r(23405),f=r.n(d);function p(e){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"===typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y=function(e,t){var n="object"===p(t)?t:{wrapperElementType:t,methodNames:(arguments.length<=2?void 0:arguments[2])||void 0,initPropNames:(arguments.length<=3?void 0:arguments[3])||void 0},r=n.wrapperElementType,i=void 0===r?"div":r,a=n.nodeMapper,s=void 0===a?function(e){return e}:a,c=n.methodNames,u=void 0===c?[]:c,d=n.initPropNames,v=void 0===d?[]:d;return(0,o.forwardRef)((function(t,n){var r=(0,o.useRef)(),a=h((0,o.useState)({}),2),c=a[0],d=a[1];(0,o.useEffect)((function(){return d(t)}));var p=(0,o.useMemo)((function(){var n=f()(v.filter((function(e){return t.hasOwnProperty(e)})).map((function(e){return[e,t[e]]})));return e(n)}),[]);(0,o.useLayoutEffect)((function(){p(s(r.current))}),[]),(0,o.useEffect)((function(){return p._destructor instanceof Function?p._destructor:void 0}),[]);var g=(0,o.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return p[e]instanceof Function?p[e].apply(p,n):void 0}),[p]),y=l(t,[].concat(m(u),m(v)));return Object.keys(y).filter((function(e){return c[e]!==t[e]})).forEach((function(e){return g(e,t[e])})),(0,o.useImperativeHandle)(n,(function(){return f()(u.map((function(e){return[e,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g.apply(void 0,[e].concat(n))}]})))})),o.createElement(i,{ref:r})}))},b=(r(75569),r(60401),r(31359),r(44858)),E=r(92539);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".graph-nav-info {\n  position: absolute;\n  bottom: 5px;\n  width: 100%;\n  text-align: center;\n  color: slategrey;\n  opacity: 0.7;\n  font-size: 10px;\n  font-family: Sans-serif;\n  z-index: 1000;\n}");var A=(0,b.Z)({props:{width:{default:window.innerWidth,triggerUpdate:!1,onChange:function(e,t){t.container&&(t.container.style.width=e)}},height:{default:window.innerHeight,triggerUpdate:!1,onChange:function(e,t){t.container&&(t.container.style.height=e)}},jsonUrl:{},graphData:{default:{nodes:[],links:[]}},numDimensions:{default:3},dagMode:{},dagLevelDistance:{},dagNodeFilter:{default:function(){return!0}},onDagError:{default:void 0},backgroundColor:{default:"#002"},showNavInfo:{default:!0},nodeRelSize:{default:4},nodeId:{default:"id"},nodeLabel:{default:"name"},nodeDesc:{default:"desc"},onNodeHover:{},onNodeClick:{},nodeVal:{default:"val"},nodeResolution:{default:8},nodeVisibility:{default:!0},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkLabel:{default:"name"},linkDesc:{default:"desc"},onLinkHover:{},onLinkClick:{},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{default:0},linkResolution:{default:6},linkCurvature:{default:0},linkCurveRotation:{default:0},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228},d3VelocityDecay:{default:.4},ngraphPhysics:{},warmupTicks:{default:0},cooldownTicks:{},cooldownTime:{default:15e3},onEngineTick:{},onEngineStop:{}},methods:T(T({},Object.assign.apply(Object,[{}].concat(x(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return w({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=n[e].apply(n,o);return a===n?this:a}))})))))),{},{_destructor:function(){this.graphData({nodes:[],links:[]})}}),init:function(e,t){e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container),t.container.style.position="relative",t.container.style.width=t.width,t.container.style.height=t.height,t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="graph-nav-info",t.navInfo.textContent="Mouse drag: look, gamepad/arrow/wasd keys: move";var n,r,o,i,a,s=document.createElement("a-scene");s.setAttribute("embedded",""),s.appendChild(t.sky=document.createElement("a-sky")),t.sky.setAttribute("radius",3e3),s.appendChild(n=document.createElement("a-entity")),n.setAttribute("position","0 0 300"),n.setAttribute("movement-controls","fly: true; speed: 7"),n.appendChild(r=document.createElement("a-entity")),r.setAttribute("camera",""),r.setAttribute("position","0 0 0"),r.setAttribute("look-controls","reverseMouseDrag: false; pointerLockEnabled: false"),r.appendChild(o=document.createElement("a-text")),o.setAttribute("position","0 -0.3 -1"),o.setAttribute("width",2),o.setAttribute("align","center"),o.setAttribute("color","lavender"),o.setAttribute("value",""),r.appendChild(i=document.createElement("a-text")),i.setAttribute("position","0 -0.4 -1"),i.setAttribute("width",1.3),i.setAttribute("align","center"),i.setAttribute("color","lavender"),i.setAttribute("value",""),s.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor","rayOrigin: mouse; mouseCursorStylesEnabled: true"),a.setAttribute("raycaster","objects: [forcegraph]; interval: 100"),["left","right"].forEach((function(e){var t;n.appendChild(t=document.createElement("a-entity")),t.setAttribute("laser-controls","hand: ".concat(e)),t.setAttribute("raycaster","objects: [forcegraph]; interval: 100; lineColor: steelblue; lineOpacity: 0.85")})),s.appendChild(t.forcegraph=document.createElement("a-entity")),t.forcegraph.setAttribute("forcegraph",null),t.container.appendChild(s),t.forcegraph.setAttribute("forcegraph",Object.assign.apply(Object,x(["node","link"].map((function(e){var n={node:"Node",link:"Link"}[e];return w({},"on".concat(n,"Hover"),(function(r,a){var s=r&&(0,E.default)(t["".concat(e,"Label")])(r)||"",c=r&&(0,E.default)(t["".concat(e,"Desc")])(r)||"";o.setAttribute("value",s),i.setAttribute("value",c),t["on".concat(n,"Hover")]&&t["on".concat(n,"Hover")](r,a)}))})))))},update:function(e,t){t.hasOwnProperty("backgroundColor")&&e.sky.setAttribute("color",e.backgroundColor),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none");var n=["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","onNodeClick","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","onLinkClick","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"],r=Object.assign.apply(Object,[{}].concat(x(Object.entries(e).filter((function(e){var r=k(e,2),o=r[0],i=r[1];return t.hasOwnProperty(o)&&-1!==n.indexOf(o)&&void 0!==i&&null!==i})).map((function(e){var t=k(e,2);return w({},t[0],t[1])}))),x(Object.entries(e.graphData).map((function(e){var t=k(e,2);return w({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",r)}}),S=r(45697),M=r.n(S);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"===typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H=(0,b.Z)({props:{width:{},height:{},yOffset:{default:1.5},glScale:{default:200},jsonUrl:{},graphData:{default:{nodes:[],links:[]}},numDimensions:{default:3},dagMode:{},dagLevelDistance:{},dagNodeFilter:{default:function(){return!0}},onDagError:{default:void 0},nodeRelSize:{default:4},nodeId:{default:"id"},nodeVal:{default:"val"},nodeResolution:{default:8},nodeVisibility:{default:!0},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{default:0},linkResolution:{default:6},linkCurvature:{default:0},linkCurveRotation:{default:0},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},onNodeHover:{},onNodeClick:{},onLinkHover:{},onLinkClick:{},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228},d3VelocityDecay:{default:.4},ngraphPhysics:{},warmupTicks:{default:0},cooldownTicks:{},cooldownTime:{default:15e3},onEngineTick:{},onEngineStop:{}},methods:P(P({},Object.assign.apply(Object,[{}].concat(L(["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"].map((function(e){return N({},e,(function(t){for(var n=t.forcegraph.components.forcegraph,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=n[e].apply(n,o);return a===n?this:a}))})))))),{},{_destructor:function(){this.graphData({nodes:[],links:[]})}}),init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.markerAttrs,o=void 0===r?{preset:"hiro"}:r;e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container);var i=document.createElement("a-scene");i.setAttribute("embedded",""),i.setAttribute("arjs","debugUIEnabled: false;");var a,s=document.createElement("a-marker");Object.entries(o).forEach((function(e){var t=R(e,2),n=t[0],r=t[1];return s.setAttribute(n,r)})),i.appendChild(s),i.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor"),a.setAttribute("raycaster","objects: [forcegraph]"),t.forcegraph=document.createElement("a-entity"),t.forcegraph.setAttribute("forcegraph",null),s.appendChild(t.forcegraph);var c=document.createElement("a-entity");c.setAttribute("camera",""),i.appendChild(c),t.container.appendChild(i)},update:function(e,t){t.hasOwnProperty("width")&&e.width&&(e.container.style.width=e.width),t.hasOwnProperty("height")&&e.height&&(e.container.style.height=e.height),t.hasOwnProperty("glScale")&&e.forcegraph.setAttribute("scale",L(new Array(3)).map((function(){return 1/e.glScale})).join(" ")),t.hasOwnProperty("yOffset")&&e.forcegraph.setAttribute("position","0 ".concat(e.yOffset," 0"));var n=["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","onNodeHover","onNodeClick","onLinkHover","onLinkClick","forceEngine","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"],r=Object.assign.apply(Object,[{}].concat(L(Object.entries(e).filter((function(e){var r=R(e,2),o=r[0],i=r[1];return t.hasOwnProperty(o)&&-1!==n.indexOf(o)&&void 0!==i&&null!==i})).map((function(e){var t=R(e,2);return N({},t[0],t[1])}))),L(Object.entries(e.graphData).map((function(e){var t=R(e,2);return N({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",r)}}),B=r(2212);const F=new B.JOQ,U=new B.iMs,z=new B.FM8,V=new B.Pa4,G=new B.Pa4,W=new B.Pa4,K=new B.yGw;class q extends B.pBf{constructor(e,t,n){super(),n.style.touchAction="none";let r=null,o=null;const i=[],a=this;function s(){n.addEventListener("pointermove",u),n.addEventListener("pointerdown",l),n.addEventListener("pointerup",d),n.addEventListener("pointerleave",d)}function c(){n.removeEventListener("pointermove",u),n.removeEventListener("pointerdown",l),n.removeEventListener("pointerup",d),n.removeEventListener("pointerleave",d),n.style.cursor=""}function u(s){if(!1!==a.enabled){if(f(s),U.setFromCamera(z,t),r)return U.ray.intersectPlane(F,G)&&r.position.copy(G.sub(V).applyMatrix4(K)),void a.dispatchEvent({type:"drag",object:r});if("mouse"===s.pointerType||"pen"===s.pointerType)if(i.length=0,U.setFromCamera(z,t),U.intersectObjects(e,!0,i),i.length>0){const e=i[0].object;F.setFromNormalAndCoplanarPoint(t.getWorldDirection(F.normal),W.setFromMatrixPosition(e.matrixWorld)),o!==e&&null!==o&&(a.dispatchEvent({type:"hoveroff",object:o}),n.style.cursor="auto",o=null),o!==e&&(a.dispatchEvent({type:"hoveron",object:e}),n.style.cursor="pointer",o=e)}else null!==o&&(a.dispatchEvent({type:"hoveroff",object:o}),n.style.cursor="auto",o=null)}}function l(o){!1!==a.enabled&&(f(o),i.length=0,U.setFromCamera(z,t),U.intersectObjects(e,!0,i),i.length>0&&(r=!0===a.transformGroup?e[0]:i[0].object,F.setFromNormalAndCoplanarPoint(t.getWorldDirection(F.normal),W.setFromMatrixPosition(r.matrixWorld)),U.ray.intersectPlane(F,G)&&(K.copy(r.parent.matrixWorld).invert(),V.copy(G).sub(W.setFromMatrixPosition(r.matrixWorld))),n.style.cursor="move",a.dispatchEvent({type:"dragstart",object:r})))}function d(){!1!==a.enabled&&(r&&(a.dispatchEvent({type:"dragend",object:r}),r=null),n.style.cursor=o?"pointer":"auto")}function f(e){const t=n.getBoundingClientRect();z.x=(e.clientX-t.left)/t.width*2-1,z.y=-(e.clientY-t.top)/t.height*2+1}s(),this.enabled=!0,this.transformGroup=!1,this.activate=s,this.deactivate=c,this.dispose=function(){c()},this.getObjects=function(){return e}}}var Y=r(81398);const Z={type:"change"},$={type:"start"},X={type:"end"};class Q extends B.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.TrackballControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.TrackballControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.');const n=this,r=-1,o=0,i=1,a=2,s=3,c=4;this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:B.RsA.ROTATE,MIDDLE:B.RsA.DOLLY,RIGHT:B.RsA.PAN},this.target=new B.Pa4;const u=1e-6,l=new B.Pa4;let d=1,f=r,p=r,h=0,m=0,v=0;const g=new B.Pa4,y=new B.FM8,b=new B.FM8,E=new B.Pa4,_=new B.FM8,T=new B.FM8,w=new B.FM8,k=new B.FM8,x=[],O={};this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.up0=this.object.up.clone(),this.zoom0=this.object.zoom,this.handleResize=function(){const e=n.domElement.getBoundingClientRect(),t=n.domElement.ownerDocument.documentElement;n.screen.left=e.left+window.pageXOffset-t.clientLeft,n.screen.top=e.top+window.pageYOffset-t.clientTop,n.screen.width=e.width,n.screen.height=e.height};const C=function(){const e=new B.FM8;return function(t,r){return e.set((t-n.screen.left)/n.screen.width,(r-n.screen.top)/n.screen.height),e}}(),A=function(){const e=new B.FM8;return function(t,r){return e.set((t-.5*n.screen.width-n.screen.left)/(.5*n.screen.width),(n.screen.height+2*(n.screen.top-r))/n.screen.width),e}}();function S(e){!1!==n.enabled&&(0===x.length&&(n.domElement.ownerDocument.addEventListener("pointermove",M),n.domElement.ownerDocument.addEventListener("pointerup",I)),function(e){x.push(e)}(e),"touch"===e.pointerType?function(e){switch(H(e),x.length){case 1:f=s,b.copy(A(x[0].pageX,x[0].pageY)),y.copy(b);break;default:f=c;const e=x[0].pageX-x[1].pageX,t=x[0].pageY-x[1].pageY;m=h=Math.sqrt(e*e+t*t);const n=(x[0].pageX+x[1].pageX)/2,r=(x[0].pageY+x[1].pageY)/2;w.copy(C(n,r)),k.copy(w)}n.dispatchEvent($)}(e):function(e){if(f===r)switch(e.button){case n.mouseButtons.LEFT:f=o;break;case n.mouseButtons.MIDDLE:f=i;break;case n.mouseButtons.RIGHT:f=a;break;default:f=r}const t=p!==r?p:f;t!==o||n.noRotate?t!==i||n.noZoom?t!==a||n.noPan||(w.copy(C(e.pageX,e.pageY)),k.copy(w)):(_.copy(C(e.pageX,e.pageY)),T.copy(_)):(b.copy(A(e.pageX,e.pageY)),y.copy(b));n.domElement.ownerDocument.addEventListener("pointermove",M),n.domElement.ownerDocument.addEventListener("pointerup",I),n.dispatchEvent($)}(e))}function M(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(H(e),x.length){case 1:y.copy(b),b.copy(A(e.pageX,e.pageY));break;default:const t=function(e){const t=e.pointerId===x[0].pointerId?x[1]:x[0];return O[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;m=Math.sqrt(n*n+r*r);const o=(e.pageX+t.x)/2,i=(e.pageY+t.y)/2;k.copy(C(o,i))}}(e):function(e){const t=p!==r?p:f;t!==o||n.noRotate?t!==i||n.noZoom?t!==a||n.noPan||k.copy(C(e.pageX,e.pageY)):T.copy(C(e.pageX,e.pageY)):(y.copy(b),b.copy(A(e.pageX,e.pageY)))}(e))}function I(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(x.length){case 0:f=r;break;case 1:f=s,b.copy(A(e.pageX,e.pageY)),y.copy(b)}n.dispatchEvent(X)}(e):(f=r,n.domElement.ownerDocument.removeEventListener("pointermove",M),n.domElement.ownerDocument.removeEventListener("pointerup",I),n.dispatchEvent(X)),j(e),0===x.length&&(n.domElement.ownerDocument.removeEventListener("pointermove",M),n.domElement.ownerDocument.removeEventListener("pointerup",I)))}function P(e){j(e)}function N(e){!1!==n.enabled&&(window.removeEventListener("keydown",N),p===r&&(e.code!==n.keys[o]||n.noRotate?e.code!==n.keys[i]||n.noZoom?e.code!==n.keys[a]||n.noPan||(p=a):p=i:p=o))}function R(){!1!==n.enabled&&(p=r,window.addEventListener("keydown",N))}function L(e){if(!1!==n.enabled&&!0!==n.noZoom){switch(e.preventDefault(),e.deltaMode){case 2:_.y-=.025*e.deltaY;break;case 1:_.y-=.01*e.deltaY;break;default:_.y-=25e-5*e.deltaY}n.dispatchEvent($),n.dispatchEvent(X)}}function D(e){!1!==n.enabled&&e.preventDefault()}function j(e){delete O[e.pointerId];for(let t=0;t<x.length;t++)if(x[t].pointerId==e.pointerId)return void x.splice(t,1)}function H(e){let t=O[e.pointerId];void 0===t&&(t=new B.FM8,O[e.pointerId]=t),t.set(e.pageX,e.pageY)}this.rotateCamera=function(){const e=new B.Pa4,t=new B._fP,r=new B.Pa4,o=new B.Pa4,i=new B.Pa4,a=new B.Pa4;return function(){a.set(b.x-y.x,b.y-y.y,0);let s=a.length();s?(g.copy(n.object.position).sub(n.target),r.copy(g).normalize(),o.copy(n.object.up).normalize(),i.crossVectors(o,r).normalize(),o.setLength(b.y-y.y),i.setLength(b.x-y.x),a.copy(o.add(i)),e.crossVectors(a,g).normalize(),s*=n.rotateSpeed,t.setFromAxisAngle(e,s),g.applyQuaternion(t),n.object.up.applyQuaternion(t),E.copy(e),v=s):!n.staticMoving&&v&&(v*=Math.sqrt(1-n.dynamicDampingFactor),g.copy(n.object.position).sub(n.target),t.setFromAxisAngle(E,v),g.applyQuaternion(t),n.object.up.applyQuaternion(t)),y.copy(b)}}(),this.zoomCamera=function(){let e;f===c?(e=h/m,h=m,n.object.isPerspectiveCamera?g.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom*=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(e=1+(T.y-_.y)*n.zoomSpeed,1!==e&&e>0&&(n.object.isPerspectiveCamera?g.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom/=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),n.staticMoving?_.copy(T):_.y+=(T.y-_.y)*this.dynamicDampingFactor)},this.panCamera=function(){const e=new B.FM8,t=new B.Pa4,r=new B.Pa4;return function(){if(e.copy(k).sub(w),e.lengthSq()){if(n.object.isOrthographicCamera){const t=(n.object.right-n.object.left)/n.object.zoom/n.domElement.clientWidth,r=(n.object.top-n.object.bottom)/n.object.zoom/n.domElement.clientWidth;e.x*=t,e.y*=r}e.multiplyScalar(g.length()*n.panSpeed),r.copy(g).cross(n.object.up).setLength(e.x),r.add(t.copy(n.object.up).setLength(e.y)),n.object.position.add(r),n.target.add(r),n.staticMoving?w.copy(k):w.add(e.subVectors(k,w).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(g.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,g.setLength(n.maxDistance)),_.copy(T)),g.lengthSq()<n.minDistance*n.minDistance&&(n.object.position.addVectors(n.target,g.setLength(n.minDistance)),_.copy(T)))},this.update=function(){g.subVectors(n.object.position,n.target),n.noRotate||n.rotateCamera(),n.noZoom||n.zoomCamera(),n.noPan||n.panCamera(),n.object.position.addVectors(n.target,g),n.object.isPerspectiveCamera?(n.checkDistances(),n.object.lookAt(n.target),l.distanceToSquared(n.object.position)>u&&(n.dispatchEvent(Z),l.copy(n.object.position))):n.object.isOrthographicCamera?(n.object.lookAt(n.target),(l.distanceToSquared(n.object.position)>u||d!==n.object.zoom)&&(n.dispatchEvent(Z),l.copy(n.object.position),d=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){f=r,p=r,n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.up.copy(n.up0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),g.subVectors(n.object.position,n.target),n.object.lookAt(n.target),n.dispatchEvent(Z),l.copy(n.object.position),d=n.object.zoom},this.dispose=function(){n.domElement.removeEventListener("contextmenu",D),n.domElement.removeEventListener("pointerdown",S),n.domElement.removeEventListener("pointercancel",P),n.domElement.removeEventListener("wheel",L),window.removeEventListener("keydown",N),window.removeEventListener("keyup",R)},this.domElement.addEventListener("contextmenu",D),this.domElement.addEventListener("pointerdown",S),this.domElement.addEventListener("pointercancel",P),this.domElement.addEventListener("wheel",L,{passive:!1}),window.addEventListener("keydown",N),window.addEventListener("keyup",R),this.handleResize(),this.update()}}const J={type:"change"},ee={type:"start"},te={type:"end"};class ne extends B.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new B.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:B.RsA.ROTATE,MIDDLE:B.RsA.DOLLY,RIGHT:B.RsA.PAN},this.touches={ONE:B.QmN.ROTATE,TWO:B.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.listenToKeyEvents=function(e){e.addEventListener("keydown",G),this._domElementKeyEvents=e},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(J),n.update(),o=r.NONE},this.update=function(){const t=new B.Pa4,d=(new B._fP).setFromUnitVectors(e.up,new B.Pa4(0,1,0)),f=d.clone().invert(),p=new B.Pa4,h=new B._fP,m=2*Math.PI;return function(){const e=n.object.position;t.copy(e).sub(n.target),t.applyQuaternion(d),a.setFromVector3(t),n.autoRotate&&o===r.NONE&&w(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(a.theta+=s.theta*n.dampingFactor,a.phi+=s.phi*n.dampingFactor):(a.theta+=s.theta,a.phi+=s.phi);let v=n.minAzimuthAngle,g=n.maxAzimuthAngle;return isFinite(v)&&isFinite(g)&&(v<-Math.PI?v+=m:v>Math.PI&&(v-=m),g<-Math.PI?g+=m:g>Math.PI&&(g-=m),a.theta=v<=g?Math.max(v,Math.min(g,a.theta)):a.theta>(v+g)/2?Math.max(v,a.theta):Math.min(g,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),a.radius*=c,a.radius=Math.max(n.minDistance,Math.min(n.maxDistance,a.radius)),!0===n.enableDamping?n.target.addScaledVector(u,n.dampingFactor):n.target.add(u),t.setFromSpherical(a),t.applyQuaternion(f),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(s.theta*=1-n.dampingFactor,s.phi*=1-n.dampingFactor,u.multiplyScalar(1-n.dampingFactor)):(s.set(0,0,0),u.set(0,0,0)),c=1,!!(l||p.distanceToSquared(n.object.position)>i||8*(1-h.dot(n.object.quaternion))>i)&&(n.dispatchEvent(J),p.copy(n.object.position),h.copy(n.object.quaternion),l=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",W),n.domElement.removeEventListener("pointerdown",H),n.domElement.removeEventListener("pointercancel",z),n.domElement.removeEventListener("wheel",V),n.domElement.ownerDocument.removeEventListener("pointermove",F),n.domElement.ownerDocument.removeEventListener("pointerup",U),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",G)};const n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let o=r.NONE;const i=1e-6,a=new B.$V,s=new B.$V;let c=1;const u=new B.Pa4;let l=!1;const d=new B.FM8,f=new B.FM8,p=new B.FM8,h=new B.FM8,m=new B.FM8,v=new B.FM8,g=new B.FM8,y=new B.FM8,b=new B.FM8,E=[],_={};function T(){return Math.pow(.95,n.zoomSpeed)}function w(e){s.theta-=e}function k(e){s.phi-=e}const x=function(){const e=new B.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),u.add(e)}}(),O=function(){const e=new B.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),u.add(e)}}(),C=function(){const e=new B.Pa4;return function(t,r){const o=n.domElement;if(n.object.isPerspectiveCamera){const i=n.object.position;e.copy(i).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),x(2*t*a/o.clientHeight,n.object.matrix),O(2*r*a/o.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(x(t*(n.object.right-n.object.left)/n.object.zoom/o.clientWidth,n.object.matrix),O(r*(n.object.top-n.object.bottom)/n.object.zoom/o.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function A(e){n.object.isPerspectiveCamera?c/=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function S(e){n.object.isPerspectiveCamera?c*=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function M(e){d.set(e.clientX,e.clientY)}function I(e){h.set(e.clientX,e.clientY)}function P(){if(1===E.length)d.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);d.set(e,t)}}function N(){if(1===E.length)h.set(E[0].pageX,E[0].pageY);else{const e=.5*(E[0].pageX+E[1].pageX),t=.5*(E[0].pageY+E[1].pageY);h.set(e,t)}}function R(){const e=E[0].pageX-E[1].pageX,t=E[0].pageY-E[1].pageY,n=Math.sqrt(e*e+t*t);g.set(0,n)}function L(e){if(1==E.length)f.set(e.pageX,e.pageY);else{const t=Y(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}p.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;w(2*Math.PI*p.x/t.clientHeight),k(2*Math.PI*p.y/t.clientHeight),d.copy(f)}function D(e){if(1===E.length)m.set(e.pageX,e.pageY);else{const t=Y(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);m.set(n,r)}v.subVectors(m,h).multiplyScalar(n.panSpeed),C(v.x,v.y),h.copy(m)}function j(e){const t=Y(e),r=e.pageX-t.x,o=e.pageY-t.y,i=Math.sqrt(r*r+o*o);y.set(0,i),b.set(0,Math.pow(y.y/g.y,n.zoomSpeed)),A(b.y),g.copy(y)}function H(e){!1!==n.enabled&&(0===E.length&&(n.domElement.ownerDocument.addEventListener("pointermove",F),n.domElement.ownerDocument.addEventListener("pointerup",U)),function(e){E.push(e)}(e),"touch"===e.pointerType?function(e){switch(q(e),E.length){case 1:switch(n.touches.ONE){case B.QmN.ROTATE:if(!1===n.enableRotate)return;P(),o=r.TOUCH_ROTATE;break;case B.QmN.PAN:if(!1===n.enablePan)return;N(),o=r.TOUCH_PAN;break;default:o=r.NONE}break;case 2:switch(n.touches.TWO){case B.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&R(),n.enablePan&&N(),o=r.TOUCH_DOLLY_PAN;break;case B.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&R(),n.enableRotate&&P(),o=r.TOUCH_DOLLY_ROTATE;break;default:o=r.NONE}break;default:o=r.NONE}o!==r.NONE&&n.dispatchEvent(ee)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case B.RsA.DOLLY:if(!1===n.enableZoom)return;!function(e){g.set(e.clientX,e.clientY)}(e),o=r.DOLLY;break;case B.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;I(e),o=r.PAN}else{if(!1===n.enableRotate)return;M(e),o=r.ROTATE}break;case B.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;M(e),o=r.ROTATE}else{if(!1===n.enablePan)return;I(e),o=r.PAN}break;default:o=r.NONE}o!==r.NONE&&n.dispatchEvent(ee)}(e))}function F(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(q(e),o){case r.TOUCH_ROTATE:if(!1===n.enableRotate)return;L(e),n.update();break;case r.TOUCH_PAN:if(!1===n.enablePan)return;D(e),n.update();break;case r.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&j(e),n.enablePan&&D(e)}(e),n.update();break;case r.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&j(e),n.enableRotate&&L(e)}(e),n.update();break;default:o=r.NONE}}(e):function(e){if(!1===n.enabled)return;switch(o){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){f.set(e.clientX,e.clientY),p.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;w(2*Math.PI*p.x/t.clientHeight),k(2*Math.PI*p.y/t.clientHeight),d.copy(f),n.update()}(e);break;case r.DOLLY:if(!1===n.enableZoom)return;!function(e){y.set(e.clientX,e.clientY),b.subVectors(y,g),b.y>0?A(T()):b.y<0&&S(T()),g.copy(y),n.update()}(e);break;case r.PAN:if(!1===n.enablePan)return;!function(e){m.set(e.clientX,e.clientY),v.subVectors(m,h).multiplyScalar(n.panSpeed),C(v.x,v.y),h.copy(m),n.update()}(e)}}(e))}function U(e){!1!==n.enabled&&(e.pointerType,n.dispatchEvent(te),o=r.NONE,K(e),0===E.length&&(n.domElement.ownerDocument.removeEventListener("pointermove",F),n.domElement.ownerDocument.removeEventListener("pointerup",U)))}function z(e){K(e)}function V(e){!1===n.enabled||!1===n.enableZoom||o!==r.NONE&&o!==r.ROTATE||(e.preventDefault(),n.dispatchEvent(ee),function(e){e.deltaY<0?S(T()):e.deltaY>0&&A(T()),n.update()}(e),n.dispatchEvent(te))}function G(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:C(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:C(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:C(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:C(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function W(e){!1!==n.enabled&&e.preventDefault()}function K(e){delete _[e.pointerId];for(let t=0;t<E.length;t++)if(E[t].pointerId==e.pointerId)return void E.splice(t,1)}function q(e){let t=_[e.pointerId];void 0===t&&(t=new B.FM8,_[e.pointerId]=t),t.set(e.pageX,e.pageY)}function Y(e){const t=e.pointerId===E[0].pointerId?E[1]:E[0];return _[t.pointerId]}n.domElement.addEventListener("contextmenu",W),n.domElement.addEventListener("pointerdown",H),n.domElement.addEventListener("pointercancel",z),n.domElement.addEventListener("wheel",V,{passive:!1}),this.update()}}const re={type:"change"};class oe extends B.pBf{constructor(e,t){super(),void 0===t&&(console.warn('THREE.FlyControls: The second parameter "domElement" is now mandatory.'),t=document),this.object=e,this.domElement=t,this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1;const n=this,r=1e-6,o=new B._fP,i=new B.Pa4;this.tmpQuaternion=new B._fP,this.mouseStatus=0,this.moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this.moveVector=new B.Pa4(0,0,0),this.rotationVector=new B.Pa4(0,0,0),this.keydown=function(e){if(!e.altKey){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this.moveState.forward=1;break;case"KeyS":this.moveState.back=1;break;case"KeyA":this.moveState.left=1;break;case"KeyD":this.moveState.right=1;break;case"KeyR":this.moveState.up=1;break;case"KeyF":this.moveState.down=1;break;case"ArrowUp":this.moveState.pitchUp=1;break;case"ArrowDown":this.moveState.pitchDown=1;break;case"ArrowLeft":this.moveState.yawLeft=1;break;case"ArrowRight":this.moveState.yawRight=1;break;case"KeyQ":this.moveState.rollLeft=1;break;case"KeyE":this.moveState.rollRight=1}this.updateMovementVector(),this.updateRotationVector()}},this.keyup=function(e){switch(e.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this.moveState.forward=0;break;case"KeyS":this.moveState.back=0;break;case"KeyA":this.moveState.left=0;break;case"KeyD":this.moveState.right=0;break;case"KeyR":this.moveState.up=0;break;case"KeyF":this.moveState.down=0;break;case"ArrowUp":this.moveState.pitchUp=0;break;case"ArrowDown":this.moveState.pitchDown=0;break;case"ArrowLeft":this.moveState.yawLeft=0;break;case"ArrowRight":this.moveState.yawRight=0;break;case"KeyQ":this.moveState.rollLeft=0;break;case"KeyE":this.moveState.rollRight=0}this.updateMovementVector(),this.updateRotationVector()},this.mousedown=function(e){if(this.dragToLook)this.mouseStatus++;else{switch(e.button){case 0:this.moveState.forward=1;break;case 2:this.moveState.back=1}this.updateMovementVector()}},this.mousemove=function(e){if(!this.dragToLook||this.mouseStatus>0){const t=this.getContainerDimensions(),n=t.size[0]/2,r=t.size[1]/2;this.moveState.yawLeft=-(e.pageX-t.offset[0]-n)/n,this.moveState.pitchDown=(e.pageY-t.offset[1]-r)/r,this.updateRotationVector()}},this.mouseup=function(e){if(this.dragToLook)this.mouseStatus--,this.moveState.yawLeft=this.moveState.pitchDown=0;else{switch(e.button){case 0:this.moveState.forward=0;break;case 2:this.moveState.back=0}this.updateMovementVector()}this.updateRotationVector()},this.update=function(e){const t=e*n.movementSpeed,a=e*n.rollSpeed;n.object.translateX(n.moveVector.x*t),n.object.translateY(n.moveVector.y*t),n.object.translateZ(n.moveVector.z*t),n.tmpQuaternion.set(n.rotationVector.x*a,n.rotationVector.y*a,n.rotationVector.z*a,1).normalize(),n.object.quaternion.multiply(n.tmpQuaternion),(i.distanceToSquared(n.object.position)>r||8*(1-o.dot(n.object.quaternion))>r)&&(n.dispatchEvent(re),o.copy(n.object.quaternion),i.copy(n.object.position))},this.updateMovementVector=function(){const e=this.moveState.forward||this.autoForward&&!this.moveState.back?1:0;this.moveVector.x=-this.moveState.left+this.moveState.right,this.moveVector.y=-this.moveState.down+this.moveState.up,this.moveVector.z=-e+this.moveState.back},this.updateRotationVector=function(){this.rotationVector.x=-this.moveState.pitchDown+this.moveState.pitchUp,this.rotationVector.y=-this.moveState.yawRight+this.moveState.yawLeft,this.rotationVector.z=-this.moveState.rollRight+this.moveState.rollLeft},this.getContainerDimensions=function(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}},this.dispose=function(){this.domElement.removeEventListener("contextmenu",ie),this.domElement.removeEventListener("mousedown",s),this.domElement.removeEventListener("mousemove",a),this.domElement.removeEventListener("mouseup",c),window.removeEventListener("keydown",u),window.removeEventListener("keyup",l)};const a=this.mousemove.bind(this),s=this.mousedown.bind(this),c=this.mouseup.bind(this),u=this.keydown.bind(this),l=this.keyup.bind(this);this.domElement.addEventListener("contextmenu",ie),this.domElement.addEventListener("mousemove",a),this.domElement.addEventListener("mousedown",s),this.domElement.addEventListener("mouseup",c),window.addEventListener("keydown",u),window.addEventListener("keyup",l),this.updateMovementVector(),this.updateRotationVector()}}function ie(e){e.preventDefault()}var ae={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\t\t}"};class se{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const ce=new B.iKG(-1,1,1,-1,0,1),ue=new B.u9r;ue.setAttribute("position",new B.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),ue.setAttribute("uv",new B.a$l([0,2,0,0,2,0],2));class le{constructor(e){this._mesh=new B.Kj0(ue,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,ce)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}class de extends se{constructor(e,t){super(),this.textureID=void 0!==t?t:"tDiffuse",e instanceof B.jyz?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=B.rDY.clone(e.uniforms),this.material=new B.jyz({defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new le(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}}class fe extends se{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){const r=e.getContext(),o=e.state;let i,a;o.buffers.color.setMask(!1),o.buffers.depth.setMask(!1),o.buffers.color.setLocked(!0),o.buffers.depth.setLocked(!0),this.inverse?(i=0,a=1):(i=1,a=0),o.buffers.stencil.setTest(!0),o.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),o.buffers.stencil.setFunc(r.ALWAYS,i,4294967295),o.buffers.stencil.setClear(a),o.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),o.buffers.color.setLocked(!1),o.buffers.depth.setLocked(!1),o.buffers.stencil.setLocked(!1),o.buffers.stencil.setFunc(r.EQUAL,1,4294967295),o.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),o.buffers.stencil.setLocked(!0)}}class pe extends se{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class he{constructor(e,t){if(this.renderer=e,void 0===t){const n={minFilter:B.wem,magFilter:B.wem,format:B.wk1},r=e.getSize(new B.FM8);this._pixelRatio=e.getPixelRatio(),this._width=r.width,this._height=r.height,(t=new B.dd2(this._width*this._pixelRatio,this._height*this._pixelRatio,n)).texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],void 0===ae&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===de&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new de(ae),this.clock=new B.SUY}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t<this.passes.length;t++)if(this.passes[t].enabled)return!1;return!0}render(e){void 0===e&&(e=this.clock.getDelta());const t=this.renderer.getRenderTarget();let n=!1;for(let r=0,o=this.passes.length;r<o;r++){const t=this.passes[r];if(!1!==t.enabled){if(t.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(r),t.render(this.renderer,this.writeBuffer,this.readBuffer,e,n),t.needsSwap){if(n){const t=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(t.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,e),n.setFunc(t.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==fe&&(t instanceof fe?n=!0:t instanceof pe&&(n=!1))}}this.renderer.setRenderTarget(t)}reset(e){if(void 0===e){const t=this.renderer.getSize(new B.FM8);this._pixelRatio=this.renderer.getPixelRatio(),this._width=t.width,this._height=t.height,(e=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=e,this.renderTarget2=e.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(e,t){this._width=e,this._height=t;const n=this._width*this._pixelRatio,r=this._height*this._pixelRatio;this.renderTarget1.setSize(n,r),this.renderTarget2.setSize(n,r);for(let o=0;o<this.passes.length;o++)this.passes[o].setSize(n,r)}setPixelRatio(e){this._pixelRatio=e,this.setSize(this._width,this._height)}}new B.iKG(-1,1,1,-1,0,1);const me=new B.u9r;me.setAttribute("position",new B.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),me.setAttribute("uv",new B.a$l([0,2,0,0,2,0],2));class ve extends se{constructor(e,t,n,r,o){super(),this.scene=e,this.camera=t,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=void 0!==o?o:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new B.Ilk}render(e,t,n){const r=e.autoClear;let o,i;e.autoClear=!1,void 0!==this.overrideMaterial&&(i=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(e.getClearColor(this._oldClearColor),o=e.getClearAlpha(),e.setClearColor(this.clearColor,this.clearAlpha)),this.clearDepth&&e.clearDepth(),e.setRenderTarget(this.renderToScreen?null:n),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),e.render(this.scene,this.camera),this.clearColor&&e.setClearColor(this._oldClearColor,o),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=i),e.autoClear=r}}function ge(){return(ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(e){return(be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ee(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _e(e,t,n){return(_e=Ee()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ye(o,n.prototype),o}).apply(null,arguments)}function Te(e){var t="function"===typeof Map?new Map:void 0;return(Te=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _e(e,arguments,be(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ye(r,e)})(e)}var we=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ye(t,n),r}(Te(Error));function ke(e){return Math.round(255*e)}function xe(e,t,n){return ke(e)+","+ke(t)+","+ke(n)}function Oe(e,t,n,r){if(void 0===r&&(r=xe),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,c=0,u=0;o>=0&&o<1?(s=i,c=a):o>=1&&o<2?(s=a,c=i):o>=2&&o<3?(c=i,u=a):o>=3&&o<4?(c=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);var l=n-i/2;return r(s+l,c+l,u+l)}var Ce={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Ae=/^#[a-fA-F0-9]{6}$/,Se=/^#[a-fA-F0-9]{8}$/,Me=/^#[a-fA-F0-9]{3}$/,Ie=/^#[a-fA-F0-9]{4}$/,Pe=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Ne=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Re=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Le=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function De(e){if("string"!==typeof e)throw new we(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return Ce[t]?"#"+Ce[t]:e}(e);if(t.match(Ae))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Se)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Me))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Ie)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=Pe.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Ne.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=Re.exec(t);if(a){var s="rgb("+Oe(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",c=Pe.exec(s);if(!c)throw new we(4,t,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=Le.exec(t.substring(0,50));if(u){var l="rgb("+Oe(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",d=Pe.exec(l);if(!d)throw new we(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+u[4])}}throw new we(5)}var je=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function He(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Be(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return je("#"+He(e)+He(t)+He(n));if("object"===typeof e&&void 0===t&&void 0===n)return je("#"+He(e.red)+He(e.green)+He(e.blue));throw new we(6)}function Fe(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var o=De(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?Be(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Be(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new we(7)}function Ue(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ue(e,t,r)}}function ze(e){return Ue(e,e.length,[])}function Ve(e,t,n){return Math.max(e,Math.min(t,n))}function Ge(e,t){if("transparent"===t)return t;var n=De(t);return Fe(ge({},n,{alpha:Ve(0,1,(100*("number"===typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}var We=ze(Ge);var Ke=r(36194);function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||$e(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e){return function(e){if(Array.isArray(e))return Xe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$e(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e,t){if(e){if("string"===typeof e)return Xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xe(e,t):void 0}}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".scene-nav-info {\n  bottom: 5px;\n  width: 100%;\n  text-align: center;\n  color: slategrey;\n  opacity: 0.7;\n  font-size: 10px;\n}\n\n.scene-tooltip {\n  color: lavender;\n  font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n  position: absolute;\n  font-family: sans-serif;\n  pointer-events: none;\n}\n\n.scene-container canvas:focus {\n  outline: none;\n}");var Qe=window.THREE?window.THREE:{WebGLRenderer:B.CP7,Scene:B.xsS,PerspectiveCamera:B.cPb,Raycaster:B.iMs,TextureLoader:B.dpR,Vector2:B.FM8,Vector3:B.Pa4,Box3:B.ZzF,Color:B.Ilk,Mesh:B.Kj0,SphereGeometry:B.xo$,MeshBasicMaterial:B.vBJ,BackSide:B._Li,EventDispatcher:B.pBf,MOUSE:B.RsA,Quaternion:B._fP,Spherical:B.$V,Clock:B.SUY},Je=(0,b.Z)({props:{width:{default:window.innerWidth,onChange:function(e,t,n){isNaN(e)&&(t.width=n)}},height:{default:window.innerHeight,onChange:function(e,t,n){isNaN(e)&&(t.height=n)}},backgroundColor:{default:"#000011"},backgroundImageUrl:{},onBackgroundImageLoaded:{},showNavInfo:{default:!0},skyRadius:{default:5e4},objects:{default:[]},enablePointerInteraction:{default:!0,onChange:function(e,t){t.hoverObj=null,t.toolTipElem&&(t.toolTipElem.innerHTML="")},triggerUpdate:!1},lineHoverPrecision:{default:1,triggerUpdate:!1},hoverOrderComparator:{default:function(){return-1},triggerUpdate:!1},hoverFilter:{default:function(){return!0},triggerUpdate:!1},tooltipContent:{triggerUpdate:!1},hoverDuringDrag:{default:!1,triggerUpdate:!1},clickAfterDrag:{default:!1,triggerUpdate:!1},onHover:{default:function(){},triggerUpdate:!1},onClick:{default:function(){},triggerUpdate:!1},onRightClick:{triggerUpdate:!1}},methods:{tick:function(e){if(e.initialised){if(e.controls.update&&e.controls.update(e.clock.getDelta()),e.postProcessingComposer?e.postProcessingComposer.render():e.renderer.render(e.scene,e.camera),e.extraRenderers.forEach((function(t){return t.render(e.scene,e.camera)})),e.enablePointerInteraction){var t=null;if(e.hoverDuringDrag||!e.isPointerDragging){var n=this.intersectingObjects(e.pointerPos.x,e.pointerPos.y).filter((function(t){return e.hoverFilter(t.object)})).sort((function(t,n){return e.hoverOrderComparator(t.object,n.object)})),r=n.length?n[0]:null;t=r?r.object:null,e.intersectionPoint=r?r.point:null}t!==e.hoverObj&&(e.onHover(t,e.hoverObj),e.toolTipElem.innerHTML=t&&(0,E.default)(e.tooltipContent)(t)||"",e.hoverObj=t)}Ke.ZP.update()}return this},getPointerPos:function(e){var t=e.pointerPos;return{x:t.x,y:t.y}},cameraPosition:function(e,t,n,r){var o=e.camera;if(t&&e.initialised){var i=t,a=n||{x:0,y:0,z:0};if(r){var s=Object.assign({},o.position),c=d();new Ke.ZP.Tween(s).to(i,r).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate(u).start(),new Ke.ZP.Tween(c).to(a,r/3).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate(l).start()}else u(i),l(a);return this}return Object.assign({},o.position,{lookAt:d()});function u(e){var t=e.x,n=e.y,r=e.z;void 0!==t&&(o.position.x=t),void 0!==n&&(o.position.y=n),void 0!==r&&(o.position.z=r)}function l(t){e.controls.target=new Qe.Vector3(t.x,t.y,t.z)}function d(){return Object.assign(new Qe.Vector3(0,0,-1e3).applyQuaternion(o.quaternion).add(o.position))}},zoomToFit:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];return this.fitToBbox(this.getBbox.apply(this,o),t,n)},fitToBbox:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=e.camera;if(t){var i=new Qe.Vector3(0,0,0),a=2*Math.max.apply(Math,Ze(Object.entries(t).map((function(e){var t=Ye(e,2),n=t[0],r=t[1];return Math.max.apply(Math,Ze(r.map((function(e){return Math.abs(i[n]-e)}))))})))),s=(1-2*r/e.height)*o.fov,c=a/Math.atan(s*Math.PI/180),u=c/o.aspect,l=Math.max(c,u);if(l>0){var d=i.clone().sub(o.position).normalize().multiplyScalar(-l);this.cameraPosition(d,i,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new Qe.Box3(new Qe.Vector3(0,0,0),new Qe.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach((function(e){return n.expandByObject(e)})),Object.assign.apply(Object,Ze(["x","y","z"].map((function(e){return qe({},e,[n.min[e],n.max[e]])}))))):null},getScreenCoords:function(e,t,n,r){var o=new Qe.Vector3(t,n,r);return o.project(this.camera()),{x:(o.x+1)*e.width/2,y:-(o.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=new Qe.Vector2(t/e.width*2-1,-n/e.height*2+1),i=new Qe.Raycaster;return i.setFromCamera(o,e.camera),Object.assign({},i.ray.at(r,new Qe.Vector3))},intersectingObjects:function(e,t,n){var r=new Qe.Vector2(t/e.width*2-1,-n/e.height*2+1),o=new Qe.Raycaster;return o.params.Line.threshold=e.lineHoverPrecision,o.setFromCamera(r,e.camera),o.intersectObjects(e.objects,!0)},renderer:function(e){return e.renderer},scene:function(e){return e.scene},camera:function(e){return e.camera},postProcessingComposer:function(e){return e.postProcessingComposer},controls:function(e){return e.controls},tbControls:function(e){return e.controls}},stateInit:function(){return{scene:new Qe.Scene,camera:new Qe.PerspectiveCamera,clock:new Qe.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,o=void 0===r?"trackball":r,i=n.rendererConfig,a=void 0===i?{}:i,s=n.extraRenderers,c=void 0===s?[]:s,u=n.waitForLoadComplete,l=void 0===u||u;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.className="scene-container",t.container.style.position="relative",t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="scene-nav-info",t.navInfo.textContent={orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"}[o]||"",t.navInfo.style.display=t.showNavInfo?null:"none",t.toolTipElem=document.createElement("div"),t.toolTipElem.classList.add("scene-tooltip"),t.container.appendChild(t.toolTipElem),t.pointerPos=new Qe.Vector2,t.pointerPos.x=-2,t.pointerPos.y=-2,["pointermove","pointerdown"].forEach((function(e){return t.container.addEventListener(e,(function(n){if("pointerdown"===e&&(t.isPointerPressed=!0),!t.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||t.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0),t.enablePointerInteraction){var r=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(t.container);t.pointerPos.x=n.pageX-r.left,t.pointerPos.y=n.pageY-r.top,t.toolTipElem.style.top="".concat(t.pointerPos.y,"px"),t.toolTipElem.style.left="".concat(t.pointerPos.x,"px"),t.toolTipElem.style.transform="translate(-".concat(t.pointerPos.x/t.width*100,"%, 21px)")}}),{passive:!0})})),t.container.addEventListener("pointerup",(function(e){t.isPointerPressed=!1,t.isPointerDragging&&(t.isPointerDragging=!1,!t.clickAfterDrag)||requestAnimationFrame((function(){0===e.button&&t.onClick(t.hoverObj||null,e,t.intersectionPoint),2===e.button&&t.onRightClick&&t.onRightClick(t.hoverObj||null,e,t.intersectionPoint)}))}),{passive:!0,capture:!0}),t.container.addEventListener("contextmenu",(function(e){t.onRightClick&&e.preventDefault()})),t.renderer=new Qe.WebGLRenderer(Object.assign({antialias:!0,alpha:!0},a)),t.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),t.container.appendChild(t.renderer.domElement),t.extraRenderers=c,t.extraRenderers.forEach((function(e){e.domElement.style.position="absolute",e.domElement.style.top="0px",e.domElement.style.pointerEvents="none",t.container.appendChild(e.domElement)})),t.postProcessingComposer=new he(t.renderer),t.postProcessingComposer.addPass(new ve(t.scene,t.camera)),t.controls=new{trackball:Q,orbit:ne,fly:oe}[o](t.camera,t.renderer.domElement),"fly"===o&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),"trackball"!==o&&"orbit"!==o||(t.controls.minDistance=.1,t.controls.maxDistance=t.skyRadius,t.controls.addEventListener("start",(function(){t.controlsEngaged=!0})),t.controls.addEventListener("change",(function(){t.controlsEngaged&&(t.controlsDragging=!0)})),t.controls.addEventListener("end",(function(){t.controlsEngaged=!1,t.controlsDragging=!1}))),[t.renderer,t.postProcessingComposer].concat(Ze(t.extraRenderers)).forEach((function(e){return e.setSize(t.width,t.height)})),t.camera.aspect=t.width/t.height,t.camera.updateProjectionMatrix(),t.camera.position.z=1e3,t.scene.add(t.skysphere=new Qe.Mesh),t.skysphere.visible=!1,t.loadComplete=t.scene.visible=!l,window.scene=t.scene},update:function(e,t){if(e.width&&e.height&&(t.hasOwnProperty("width")||t.hasOwnProperty("height"))&&(e.container.style.width=e.width,e.container.style.height=e.height,[e.renderer,e.postProcessingComposer].concat(Ze(e.extraRenderers)).forEach((function(t){return t.setSize(e.width,e.height)})),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix()),t.hasOwnProperty("skyRadius")&&e.skyRadius&&(e.controls.hasOwnProperty("maxDistance")&&t.skyRadius&&(e.controls.maxDistance=e.skyRadius),e.camera.far=2.5*e.skyRadius,e.camera.updateProjectionMatrix(),e.skysphere.geometry=new Qe.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=De(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new Qe.Color(We(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?(new Qe.TextureLoader).load(e.backgroundImageUrl,(function(t){e.skysphere.material=new Qe.MeshBasicMaterial({map:t,side:Qe.BackSide}),e.skysphere.visible=!0,e.onBackgroundImageLoaded&&setTimeout(e.onBackgroundImageLoaded),!e.loadComplete&&r()})):(e.skysphere.visible=!1,e.skysphere.material.map=null,!e.loadComplete&&r())),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none"),t.hasOwnProperty("objects")&&((t.objects||[]).forEach((function(t){return e.scene.remove(t)})),e.objects.forEach((function(t){return e.scene.add(t)})))}});function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rt(e){return function(e){if(Array.isArray(e))return ot(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ot(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function it(e,t){var n=new t;return{linkProp:function(t){return{default:n[t](),onChange:function(n,r){r[e][t](n)},triggerUpdate:!1}},linkMethod:function(t){return function(n){for(var r=n[e],o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];var s=r[t].apply(r,i);return s===r?this:s}}}}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".graph-info-msg {\n  top: 50%;\n  width: 100%;\n  text-align: center;\n  color: lavender;\n  opacity: 0.7;\n  font-size: 22px;\n  position: absolute;\n  font-family: Sans-serif;\n}\n\n.scene-container .clickable {\n  cursor: pointer;\n}\n\n.scene-container .grabbable {\n  cursor: move;\n  cursor: grab;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n}\n\n.scene-container .grabbable:active {\n  cursor: grabbing;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n}");var at=window.THREE?window.THREE:{AmbientLight:B.Mig,DirectionalLight:B.Ox3,Vector3:B.Pa4},st=it("forceGraph",Y.default),ct=Object.assign.apply(Object,rt(["jsonUrl","graphData","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeColor","nodeAutoColorBy","nodeOpacity","nodeVisibility","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaDecay","d3VelocityDecay","d3AlphaMin","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map((function(e){return nt({},e,st.linkProp(e))})))),ut=Object.assign.apply(Object,rt(["refresh","getGraphBbox","d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return nt({},e,st.linkMethod(e))})))),lt=it("renderObjs",Je),dt=Object.assign.apply(Object,rt(["width","height","backgroundColor","showNavInfo","enablePointerInteraction"].map((function(e){return nt({},e,lt.linkProp(e))})))),ft=Object.assign.apply(Object,rt(["cameraPosition","postProcessingComposer"].map((function(e){return nt({},e,lt.linkMethod(e))}))).concat([{graph2ScreenCoords:lt.linkMethod("getScreenCoords"),screen2GraphCoords:lt.linkMethod("getSceneCoords")}]));function pt(e){for(var t=e;t&&!t.hasOwnProperty("__graphObjType");)t=t.parent;return t}var ht=(0,b.Z)({props:tt(tt({nodeLabel:{default:"name",triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:1,onChange:function(e,t){return t.renderObjs.lineHoverPrecision(e)},triggerUpdate:!1},enableNavigationControls:{default:!0,onChange:function(e,t){var n=t.renderObjs.controls();n&&(n.enabled=e)},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1}},ct),dt),methods:tt(tt({zoomToFit:function(e,t,n){for(var r,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return e.renderObjs.fitToBbox((r=e.forceGraph).getGraphBbox.apply(r,i),t,n),this},pauseAnimation:function(e){return null!==e.animationFrameRequestId&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),this},resumeAnimation:function(e){return null===e.animationFrameRequestId&&this._animationCycle(),this},_animationCycle:function(e){e.enablePointerInteraction&&(this.renderer().domElement.style.cursor=null),e.forceGraph.tickFrame(),e.renderObjs.tick(),e.animationFrameRequestId=requestAnimationFrame(this._animationCycle)},scene:function(e){return e.renderObjs.scene()},camera:function(e){return e.renderObjs.camera()},renderer:function(e){return e.renderObjs.renderer()},controls:function(e){return e.renderObjs.controls()},tbControls:function(e){return e.renderObjs.tbControls()},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},ut),ft),stateInit:function(e){var t=e.controlType,n=e.rendererConfig,r=e.extraRenderers;return{forceGraph:new Y.default,renderObjs:Je({controlType:t,rendererConfig:n,extraRenderers:r})}},init:function(e,t){e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.style.position="relative";var n=document.createElement("div");t.container.appendChild(n),t.renderObjs(n);var r,o=t.renderObjs.camera(),i=t.renderObjs.renderer(),a=t.renderObjs.controls();a.enabled=!!t.enableNavigationControls,t.lastSetCameraZ=o.position.z,t.container.appendChild(r=document.createElement("div")),r.className="graph-info-msg",r.textContent="",t.forceGraph.onLoading((function(){r.textContent="Loading..."})).onFinishLoading((function(){r.textContent=""})).onUpdate((function(){t.graphData=t.forceGraph.graphData(),0===o.position.x&&0===o.position.y&&o.position.z===t.lastSetCameraZ&&t.graphData.nodes.length&&(o.lookAt(t.forceGraph.position),t.lastSetCameraZ=o.position.z=170*Math.cbrt(t.graphData.nodes.length))})).onFinishUpdate((function(){if(t._dragControls){var e=t.graphData.nodes.find((function(e){return e.__initialFixedPos&&!e.__disposeControlsAfterDrag}));e?e.__disposeControlsAfterDrag=!0:t._dragControls.dispose(),t._dragControls=void 0}if(t.enableNodeDrag&&t.enablePointerInteraction&&"d3"===t.forceEngine){var n=t._dragControls=new q(t.graphData.nodes.map((function(e){return e.__threeObj})).filter((function(e){return e})),o,i.domElement);n.addEventListener("dragstart",(function(e){a.enabled=!1,e.object.__initialPos=e.object.position.clone(),e.object.__prevPos=e.object.position.clone();var t=pt(e.object).__data;!t.__initialFixedPos&&(t.__initialFixedPos={fx:t.fx,fy:t.fy,fz:t.fz}),!t.__initialPos&&(t.__initialPos={x:t.x,y:t.y,z:t.z}),["x","y","z"].forEach((function(e){return t["f".concat(e)]=t[e]})),i.domElement.classList.add("grabbable")})),n.addEventListener("drag",(function(e){var n=pt(e.object);if(!e.object.hasOwnProperty("__graphObjType")){var r=e.object.__initialPos,o=e.object.__prevPos,i=e.object.position;n.position.add(i.clone().sub(o)),o.copy(i),i.copy(r)}var a=n.__data,s=n.position,c={x:s.x-a.x,y:s.y-a.y,z:s.z-a.z};["x","y","z"].forEach((function(e){return a["f".concat(e)]=a[e]=s[e]})),t.forceGraph.d3AlphaTarget(.3).resetCountdown(),a.__dragged=!0,t.onNodeDrag(a,c)})),n.addEventListener("dragend",(function(e){delete e.object.__initialPos,delete e.object.__prevPos;var r=pt(e.object).__data;r.__disposeControlsAfterDrag&&(n.dispose(),delete r.__disposeControlsAfterDrag);var o=r.__initialFixedPos,s=r.__initialPos,c={x:s.x-r.x,y:s.y-r.y,z:s.z-r.z};o&&(["x","y","z"].forEach((function(e){var t="f".concat(e);void 0===o[t]&&delete r[t]})),delete r.__initialFixedPos,delete r.__initialPos,r.__dragged&&(delete r.__dragged,t.onNodeDragEnd(r,c))),t.forceGraph.d3AlphaTarget(0).resetCountdown(),t.enableNavigationControls&&(a.enabled=!0,a.domElement&&a.domElement.ownerDocument&&a.domElement.ownerDocument.dispatchEvent(new PointerEvent("pointerup",{pointerType:"touch"}))),i.domElement.classList.remove("grabbable")}))}})),t.renderObjs.objects([new at.AmbientLight(12303291),new at.DirectionalLight(16777215,.6),t.forceGraph]).hoverOrderComparator((function(e,t){var n=pt(e);if(!n)return 1;var r=pt(t);if(!r)return-1;var o=function(e){return"node"===e.__graphObjType};return o(r)-o(n)})).tooltipContent((function(e){var n=pt(e);return n&&(0,E.default)(t["".concat(n.__graphObjType,"Label")])(n.__data)||""})).hoverDuringDrag(!1).onHover((function(e){var n=pt(e);if(n!==t.hoverObj){var r=t.hoverObj?t.hoverObj.__graphObjType:null,o=t.hoverObj?t.hoverObj.__data:null,a=n?n.__graphObjType:null,s=n?n.__data:null;if(r&&r!==a){var c=t["on".concat("node"===r?"Node":"Link","Hover")];c&&c(null,o)}if(a){var u=t["on".concat("node"===a?"Node":"Link","Hover")];u&&u(s,r===a?o:null)}i.domElement.classList[n&&t["on".concat("node"===a?"Node":"Link","Click")]||!n&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=n}})).clickAfterDrag(!1).onClick((function(e,n){var r=pt(e);if(r){var o=t["on".concat("node"===r.__graphObjType?"Node":"Link","Click")];o&&o(r.__data,n)}else t.onBackgroundClick&&t.onBackgroundClick(n)})).onRightClick((function(e,n){var r=pt(e);if(r){var o=t["on".concat("node"===r.__graphObjType?"Node":"Link","RightClick")];o&&o(r.__data,n)}else t.onBackgroundRightClick&&t.onBackgroundRightClick(n)})),this._animationCycle()}}),mt=r(96156);function vt(){}function gt(e){return null==e?vt:function(){return this.querySelector(e)}}function yt(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function bt(){return[]}function Et(e){return null==e?bt:function(){return this.querySelectorAll(e)}}function _t(e){return function(){return this.matches(e)}}function Tt(e){return function(t){return t.matches(e)}}var wt=Array.prototype.find;function kt(){return this.firstElementChild}var xt=Array.prototype.filter;function Ot(){return Array.from(this.children)}function Ct(e){return new Array(e.length)}function At(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function St(e){return function(){return e}}function Mt(e,t,n,r,o,i){for(var a,s=0,c=t.length,u=i.length;s<u;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new At(e,i[s]);for(;s<c;++s)(a=t[s])&&(o[s]=a)}function It(e,t,n,r,o,i,a){var s,c,u,l=new Map,d=t.length,f=i.length,p=new Array(d);for(s=0;s<d;++s)(c=t[s])&&(p[s]=u=a.call(c,c.__data__,s,t)+"",l.has(u)?o[s]=c:l.set(u,c));for(s=0;s<f;++s)u=a.call(e,i[s],s,i)+"",(c=l.get(u))?(r[s]=c,c.__data__=i[s],l.delete(u)):n[s]=new At(e,i[s]);for(s=0;s<d;++s)(c=t[s])&&l.get(p[s])===c&&(o[s]=c)}function Pt(e){return e.__data__}function Nt(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Rt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Lt(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dt(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}At.prototype={constructor:At,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var jt="http://www.w3.org/1999/xhtml",Ht={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Bt(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ht.hasOwnProperty(t)?{space:Ht[t],local:e}:e}function Ft(e){return function(){this.removeAttribute(e)}}function Ut(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zt(e,t){return function(){this.setAttribute(e,t)}}function Vt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Gt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Wt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Kt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qt(e){return function(){this.style.removeProperty(e)}}function Yt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Zt(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function $t(e,t){return e.style.getPropertyValue(t)||Kt(e).getComputedStyle(e,null).getPropertyValue(t)}function Xt(e){return function(){delete this[e]}}function Qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function en(e){return e.trim().split(/^|\s+/)}function tn(e){return e.classList||new nn(e)}function nn(e){this._node=e,this._names=en(e.getAttribute("class")||"")}function rn(e,t){for(var n=tn(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function on(e,t){for(var n=tn(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function an(e){return function(){rn(this,e)}}function sn(e){return function(){on(this,e)}}function cn(e,t){return function(){(t.apply(this,arguments)?rn:on)(this,e)}}function un(){this.textContent=""}function ln(e){return function(){this.textContent=e}}function dn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function fn(){this.innerHTML=""}function pn(e){return function(){this.innerHTML=e}}function hn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function vn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===jt&&t.documentElement.namespaceURI===jt?t.createElement(e):t.createElementNS(n,e)}}function yn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function bn(e){var t=Bt(e);return(t.local?yn:gn)(t)}function En(){return null}function _n(){var e=this.parentNode;e&&e.removeChild(this)}function Tn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kn(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function xn(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function On(e,t,n){return function(){var r,o=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var a=0,s=o.length;a<s;++a)if((r=o[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function Cn(e,t,n){var r=Kt(e),o=r.CustomEvent;"function"===typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function An(e,t){return function(){return Cn(this,e,t)}}function Sn(e,t){return function(){return Cn(this,e,t.apply(this,arguments))}}nn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Mn=r(87757),In=r.n(Mn),Pn=In().mark(Nn);function Nn(){var e,t,n,r,o,i,a;return In().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){s.next=13;break}r=e[t],o=0,i=r.length;case 3:if(!(o<i)){s.next=10;break}if(!(a=r[o])){s.next=7;break}return s.next=7,a;case 7:++o,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}}),Pn,this)}var Rn=[null];function Ln(e,t){this._groups=e,this._parents=t}function Dn(){return new Ln([[document.documentElement]],Rn)}Ln.prototype=Dn.prototype=(0,mt.Z)({constructor:Ln,select:function(e){"function"!==typeof e&&(e=gt(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,s=t[o],c=s.length,u=r[o]=new Array(c),l=0;l<c;++l)(i=s[l])&&(a=e.call(i,i.__data__,l,s))&&("__data__"in i&&(a.__data__=i.__data__),u[l]=a);return new Ln(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return yt(e.apply(this,arguments))}}(e):Et(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,s=t[i],c=s.length,u=0;u<c;++u)(a=s[u])&&(r.push(e.call(a,a.__data__,u,s)),o.push(a));return new Ln(r,o)},selectChild:function(e){return this.select(null==e?kt:function(e){return function(){return wt.call(this.children,e)}}("function"===typeof e?e:Tt(e)))},selectChildren:function(e){return this.selectAll(null==e?Ot:function(e){return function(){return xt.call(this.children,e)}}("function"===typeof e?e:Tt(e)))},filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,c=r[o]=[],u=0;u<s;++u)(i=a[u])&&e.call(i,i.__data__,u,a)&&c.push(i);return new Ln(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Pt);var n=t?It:Mt,r=this._parents,o=this._groups;"function"!==typeof e&&(e=St(e));for(var i=o.length,a=new Array(i),s=new Array(i),c=new Array(i),u=0;u<i;++u){var l=r[u],d=o[u],f=d.length,p=Nt(e.call(l,l&&l.__data__,u,r)),h=p.length,m=s[u]=new Array(h),v=a[u]=new Array(h),g=c[u]=new Array(f);n(l,d,m,v,g,p,t);for(var y,b,E=0,_=0;E<h;++E)if(y=m[E]){for(E>=_&&(_=E+1);!(b=v[_])&&++_<h;);y._next=b||null}}return(a=new Ln(a,r))._enter=s,a._exit=c,a},enter:function(){return new Ln(this._enter||this._groups.map(Ct),this._parents)},exit:function(){return new Ln(this._exit||this._groups.map(Ct),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),s=new Array(o),c=0;c<a;++c)for(var u,l=n[c],d=r[c],f=l.length,p=s[c]=new Array(f),h=0;h<f;++h)(u=l[h]||d[h])&&(p[h]=u);for(;c<o;++c)s[c]=n[c];return new Ln(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Rt);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,s=n[i],c=s.length,u=o[i]=new Array(c),l=0;l<c;++l)(a=s[l])&&(u[l]=a);u.sort(t)}return new Ln(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){var e,t=0,n=Lt(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,i=t[n],a=0,s=i.length;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=Bt(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Ut:Ft:"function"===typeof t?n.local?Wt:Gt:n.local?Vt:zt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?qt:"function"===typeof t?Zt:Yt)(e,t,null==n?"":n)):$t(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Xt:"function"===typeof t?Jt:Qt)(e,t)):this.node()[e]},classed:function(e,t){var n=en(e+"");if(arguments.length<2){for(var r=tn(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"===typeof t?cn:t?an:sn)(n,t))},text:function(e){return arguments.length?this.each(null==e?un:("function"===typeof e?dn:ln)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?fn:("function"===typeof e?hn:pn)(e)):this.node().innerHTML},raise:function(){return this.each(mn)},lower:function(){return this.each(vn)},append:function(e){var t="function"===typeof e?e:bn(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:bn(e),r=null==t?En:"function"===typeof t?t:gt(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(_n)},clone:function(e){return this.select(e?wn:Tn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=kn(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?On:xn,r=0;r<a;++r)this.each(s(i[r],t,n));return this}var s=this.node().__on;if(s)for(var c,u=0,l=s.length;u<l;++u)for(r=0,c=s[u];r<a;++r)if((o=i[r]).type===c.type&&o.name===c.name)return c.value},dispatch:function(e,t){return this.each(("function"===typeof t?Sn:An)(e,t))}},Symbol.iterator,Nn);var jn=Dn;function Hn(e){return"string"===typeof e?new Ln([[document.querySelector(e)]],[document.documentElement]):new Ln([[e]],Rn)}var Bn=r(77137),Fn={passive:!1},Un={capture:!0,passive:!1};function zn(e){e.stopImmediatePropagation()}function Vn(e){e.preventDefault(),e.stopImmediatePropagation()}function Gn(e){var t=e.document.documentElement,n=Hn(e).on("dragstart.drag",Vn,Un);"onselectstart"in t?n.on("selectstart.drag",Vn,Un):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Wn(e,t){var n=e.document.documentElement,r=Hn(e).on("dragstart.drag",null);t&&(r.on("click.drag",Vn,Un),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Kn(e){return((e=Math.exp(e))+1/e)/2}var qn=function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],d=o[1],f=o[2],p=l-s,h=d-c,m=p*p+h*h;if(m<1e-12)a=Math.log(f/u)/t,i=function(e){return[s+e*p,c+e*h,u*Math.exp(t*e*a)]};else{var v=Math.sqrt(m),g=(f*f-u*u+r*m)/(2*u*n*v),y=(f*f-u*u-r*m)/(2*f*n*v),b=Math.log(Math.sqrt(g*g+1)-g),E=Math.log(Math.sqrt(y*y+1)-y);a=(E-b)/t,i=function(e){var r,o=e*a,i=Kn(b),l=u/(n*v)*(i*(r=t*o+b,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+l*p,c+l*h,u*i/Kn(t*o+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4);function Yn(e,t){if(e=function(e){for(var t;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Zn=r(513);function $n(e,t,n){var r=new Zn.B7;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}var Xn=(0,Bn.Z)("start","end","cancel","interrupt"),Qn=[];function Jn(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(i){var u,l,d,f;if(1!==n.state)return c();for(u in o)if((f=o[u]).name===n.name){if(3===f.state)return $n(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[u]):+u<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[u])}if($n((function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(i))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),u=0,l=-1;u<d;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=(0,Zn.HT)(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:Xn,tween:Qn,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function er(e,t){var n=nr(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function tr(e,t){var n=nr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function nr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function rr(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete e.__transition}}var or,ir=r(16033),ar=180/Math.PI,sr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function cr(e,t,n,r,o,i){var a,s,c;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*ar,skewX:Math.atan(c)*ar,scaleX:a,scaleY:s}}function ur(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var s=[],c=[];return i=e(i),a=e(a),function(e,r,o,i,a,s){if(e!==o||r!==i){var c=a.push("translate(",null,t,null,n);s.push({i:c-4,x:(0,ir.Z)(e,o)},{i:c-2,x:(0,ir.Z)(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,s,c),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:(0,ir.Z)(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,c),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:(0,ir.Z)(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,c),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,ir.Z)(e,n)},{i:s-2,x:(0,ir.Z)(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,c),i=a=null,function(e){for(var t,n=-1,r=c.length;++n<r;)s[(t=c[n]).i]=t.x(e);return s.join("")}}}var lr=ur((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?sr:cr(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),dr=ur((function(e){return null==e?sr:(or||(or=document.createElementNS("http://www.w3.org/2000/svg","g")),or.setAttribute("transform",e),(e=or.transform.baseVal.consolidate())?cr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):sr)}),", ",")",")");function fr(e,t){var n,r;return function(){var o=tr(this,e),i=o.tween;if(i!==n)for(var a=0,s=(r=n=i).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}o.tween=r}}function pr(e,t,n){var r,o;if("function"!==typeof n)throw new Error;return function(){var i=tr(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var s={name:t,value:n},c=0,u=o.length;c<u;++c)if(o[c].name===t){o[c]=s;break}c===u&&o.push(s)}i.tween=o}}function hr(e,t,n){var r=e._id;return e.each((function(){var e=tr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return nr(e,r).value[t]}}var mr=r(76374),vr=r(73028),gr=r(10370);function yr(e,t){var n;return("number"===typeof t?ir.Z:t instanceof mr.ZP?vr.ZP:(n=(0,mr.ZP)(t))?(t=n,vr.ZP):gr.Z)(e,t)}function br(e){return function(){this.removeAttribute(e)}}function Er(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _r(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Tr(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function wr(e,t,n){var r,o,i;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttribute(e))===(s=c+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,c));this.removeAttribute(e)}}function kr(e,t,n){var r,o,i;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttributeNS(e.space,e.local))===(s=c+"")?null:a===r&&s===o?i:(o=s,i=t(r=a,c));this.removeAttributeNS(e.space,e.local)}}function xr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Or(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Cr(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Or(e,o)),n}return o._value=t,o}function Ar(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&xr(e,o)),n}return o._value=t,o}function Sr(e,t){return function(){er(this,e).delay=+t.apply(this,arguments)}}function Mr(e,t){return t=+t,function(){er(this,e).delay=t}}function Ir(e,t){return function(){tr(this,e).duration=+t.apply(this,arguments)}}function Pr(e,t){return t=+t,function(){tr(this,e).duration=t}}function Nr(e,t){if("function"!==typeof t)throw new Error;return function(){tr(this,e).ease=t}}function Rr(e,t,n){var r,o,i=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?er:tr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}var Lr=jn.prototype.constructor;function Dr(e){return function(){this.style.removeProperty(e)}}function jr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Hr(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&jr(e,i,n)),r}return i._value=t,i}function Br(e){return function(t){this.textContent=e.call(this,t)}}function Fr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Br(r)),t}return r._value=e,r}var Ur=0;function zr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Vr(){return++Ur}var Gr=jn.prototype;zr.prototype=function(e){return jn().transition(e)}.prototype=(0,mt.Z)({constructor:zr,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=gt(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var s,c,u=r[a],l=u.length,d=i[a]=new Array(l),f=0;f<l;++f)(s=u[f])&&(c=e.call(s,s.__data__,f,u))&&("__data__"in s&&(c.__data__=s.__data__),d[f]=c,Jn(d[f],t,n,f,d,nr(s,n)));return new zr(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Et(e));for(var r=this._groups,o=r.length,i=[],a=[],s=0;s<o;++s)for(var c,u=r[s],l=u.length,d=0;d<l;++d)if(c=u[d]){for(var f,p=e.call(c,c.__data__,d,u),h=nr(c,n),m=0,v=p.length;m<v;++m)(f=p[m])&&Jn(f,t,n,m,p,h);i.push(p),a.push(c)}return new zr(i,a,t,n)},selectChild:Gr.selectChild,selectChildren:Gr.selectChildren,filter:function(e){"function"!==typeof e&&(e=_t(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,c=r[o]=[],u=0;u<s;++u)(i=a[u])&&e.call(i,i.__data__,u,a)&&c.push(i);return new zr(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var c,u=t[s],l=n[s],d=u.length,f=a[s]=new Array(d),p=0;p<d;++p)(c=u[p]||l[p])&&(f[p]=c);for(;s<r;++s)a[s]=t[s];return new zr(a,this._parents,this._name,this._id)},selection:function(){return new Lr(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Vr(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],c=s.length,u=0;u<c;++u)if(a=s[u]){var l=nr(a,t);Jn(a,e,n,u,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new zr(r,this._parents,e,n)},call:Gr.call,nodes:Gr.nodes,node:Gr.node,size:Gr.size,empty:Gr.empty,each:Gr.each,on:function(e,t){var n=this._id;return arguments.length<2?nr(this.node(),n).on.on(e):this.each(Rr(n,e,t))},attr:function(e,t){var n=Bt(e),r="transform"===n?dr:yr;return this.attrTween(e,"function"===typeof t?(n.local?kr:wr)(n,r,hr(this,"attr."+e,t)):null==t?(n.local?Er:br)(n):(n.local?Tr:_r)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Bt(e);return this.tween(n,(r.local?Cr:Ar)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?lr:yr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=$t(this,e),a=(this.style.removeProperty(e),$t(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,Dr(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=$t(this,e),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(e),c=s=$t(this,e)),a===c?null:a===r&&c===o?i:(o=c,i=t(r=a,s))}}(e,r,hr(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,s="end."+a;return function(){var c=tr(this,e),u=c.on,l=null==c.value[a]?i||(i=Dr(t)):void 0;u===n&&o===l||(r=(n=u).copy()).on(s,o=l),c.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=$t(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Hr(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(hr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Fr(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=nr(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===e)return r.value;return null}return this.each((null==t?fr:pr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Sr:Mr)(t,e)):nr(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Ir:Pr)(t,e)):nr(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Nr(t,e)):nr(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;tr(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(i,a){var s={value:a},c={value:function(){0===--o&&i()}};n.each((function(){var n=tr(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t})),0===o&&i()}))}},Symbol.iterator,Gr[Symbol.iterator]);var Wr={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Kr(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}jn.prototype.interrupt=function(e){return this.each((function(){rr(this,e)}))},jn.prototype.transition=function(e){var t,n;e instanceof zr?(t=e._id,e=e._name):(t=Vr(),(n=Wr).time=(0,Zn.zO)(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,s=r[i],c=s.length,u=0;u<c;++u)(a=s[u])&&Jn(a,e,t,u,s,n||Kr(a,t));return new zr(r,this._parents,e,t)};var qr=function(e){return function(){return e}};function Yr(e,t){var n=t.sourceEvent,r=t.target,o=t.transform,i=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function Zr(e,t,n){this.k=e,this.x=t,this.y=n}Zr.prototype={constructor:Zr,scale:function(e){return 1===e?this:new Zr(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Zr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var $r=new Zr(1,0,0);function Xr(e){for(;!e.__zoom;)if(!(e=e.parentNode))return $r;return e.__zoom}function Qr(e){e.stopImmediatePropagation()}function Jr(e){e.preventDefault(),e.stopImmediatePropagation()}function eo(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function to(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function no(){return this.__zoom||$r}function ro(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function oo(){return navigator.maxTouchPoints||"ontouchstart"in this}function io(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function ao(){var e,t,n,r=eo,o=to,i=io,a=ro,s=oo,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,d=qn,f=(0,Bn.Z)("start","zoom","end"),p=500,h=0,m=10;function v(e){e.property("__zoom",no).on("wheel.zoom",w,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",x).filter(s).on("touchstart.zoom",O).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(c[0],Math.min(c[1],t)))===e.k?e:new Zr(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new Zr(e.k,r,o)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function E(e,t,n,r){e.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=_(e,i).event(r),s=o.apply(e,i),c=null==n?b(s):"function"===typeof n?n.apply(e,i):n,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=e.__zoom,f="function"===typeof t?t.apply(e,i):t,p=d(l.invert(c).concat(u/l.k),f.invert(c).concat(u/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=u/t[2];e=new Zr(n,c[0]-t[0]*n,c[1]-t[1]*n)}a.zoom(null,e)}}))}function _(e,t,n){return!n&&e.__zooming||new T(e,t)}function T(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function w(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(r.apply(this,arguments)){var s=_(this,n).event(e),l=this.__zoom,d=Math.max(c[0],Math.min(c[1],l.k*Math.pow(2,a.apply(this,arguments)))),f=Yn(e);if(s.wheel)s.mouse[0][0]===f[0]&&s.mouse[0][1]===f[1]||(s.mouse[1]=l.invert(s.mouse[0]=f)),clearTimeout(s.wheel);else{if(l.k===d)return;s.mouse=[f,l.invert(f)],rr(this),s.start()}Jr(e),s.wheel=setTimeout(p,150),s.zoom("mouse",i(y(g(l,d),s.mouse[0],s.mouse[1]),s.extent,u))}function p(){s.wheel=null,s.end()}}function k(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var s=e.currentTarget,c=_(this,o,!0).event(e),l=Hn(e.view).on("mousemove.zoom",m,!0).on("mouseup.zoom",v,!0),d=Yn(e,s),f=e.clientX,p=e.clientY;Gn(e.view),Qr(e),c.mouse=[d,this.__zoom.invert(d)],rr(this),c.start()}function m(e){if(Jr(e),!c.moved){var t=e.clientX-f,n=e.clientY-p;c.moved=t*t+n*n>h}c.event(e).zoom("mouse",i(y(c.that.__zoom,c.mouse[0]=Yn(e,s),c.mouse[1]),c.extent,u))}function v(e){l.on("mousemove.zoom mouseup.zoom",null),Wn(e.view,c.moved),Jr(e),c.event(e).end()}}function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var s=this.__zoom,c=Yn(e.changedTouches?e.changedTouches[0]:e,this),d=s.invert(c),f=s.k*(e.shiftKey?.5:2),p=i(y(g(s,f),c,d),o.apply(this,n),u);Jr(e),l>0?Hn(this).transition().duration(l).call(E,p,c,e):Hn(this).call(v.transform,p,c,e)}}function O(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(r.apply(this,arguments)){var s,c,u,l,d=n.touches,f=d.length,h=_(this,i,n.changedTouches.length===f).event(n);for(Qr(n),c=0;c<f;++c)l=[l=Yn(u=d[c],this),this.__zoom.invert(l),u.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),rr(this),h.start())}}function C(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o,a,s,c,l=_(this,n).event(e),d=e.changedTouches,f=d.length;for(Jr(e),o=0;o<f;++o)s=Yn(a=d[o],this),l.touch0&&l.touch0[2]===a.identifier?l.touch0[0]=s:l.touch1&&l.touch1[2]===a.identifier&&(l.touch1[0]=s);if(a=l.that.__zoom,l.touch1){var p=l.touch0[0],h=l.touch0[1],m=l.touch1[0],v=l.touch1[1],b=(b=m[0]-p[0])*b+(b=m[1]-p[1])*b,E=(E=v[0]-h[0])*E+(E=v[1]-h[1])*E;a=g(a,Math.sqrt(b/E)),s=[(p[0]+m[0])/2,(p[1]+m[1])/2],c=[(h[0]+v[0])/2,(h[1]+v[1])/2]}else{if(!l.touch0)return;s=l.touch0[0],c=l.touch0[1]}l.zoom("touch",i(y(a,s,c),l.extent,u))}}function A(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.__zooming){var a,s,c=_(this,o).event(e),u=e.changedTouches,l=u.length;for(Qr(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),a=0;a<l;++a)s=u[a],c.touch0&&c.touch0[2]===s.identifier?delete c.touch0:c.touch1&&c.touch1[2]===s.identifier&&delete c.touch1;if(c.touch1&&!c.touch0&&(c.touch0=c.touch1,delete c.touch1),c.touch0)c.touch0[1]=this.__zoom.invert(c.touch0[0]);else if(c.end(),2===c.taps&&(s=Yn(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<m)){var d=Hn(this).on("dblclick.zoom");d&&d.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",no),e!==o?E(e,t,n,r):o.interrupt().each((function(){_(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==n?b(e):"function"===typeof n?n.apply(this,arguments):n,s=r.invert(a),c="function"===typeof t?t.apply(this,arguments):t;return i(y(g(r,c),a,s),e,u)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return i(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),o.apply(this,arguments),u)}),null,r)},v.translateTo=function(e,t,n,r,a){v.transform(e,(function(){var e=o.apply(this,arguments),a=this.__zoom,s=null==r?b(e):"function"===typeof r?r.apply(this,arguments):r;return i($r.translate(s[0],s[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,u)}),r,a)},T.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Hn(this.that).datum();f.call(e,this.that,new Yr(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:f}),t)}},v.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:qr(+e),v):a},v.filter=function(e){return arguments.length?(r="function"===typeof e?e:qr(!!e),v):r},v.touchable=function(e){return arguments.length?(s="function"===typeof e?e:qr(!!e),v):s},v.extent=function(e){return arguments.length?(o="function"===typeof e?e:qr([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(c[0]=+e[0],c[1]=+e[1],v):[c[0],c[1]]},v.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],v):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},v.constrain=function(e){return arguments.length?(i=e,v):i},v.duration=function(e){return arguments.length?(l=+e,v):l},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=f.on.apply(f,arguments);return e===f?v:e},v.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,v):Math.sqrt(h)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}Xr.prototype=Zr.prototype;var so=function(e){return function(){return e}};function co(e,t){var n=t.sourceEvent,r=t.subject,o=t.target,i=t.identifier,a=t.active,s=t.x,c=t.y,u=t.dx,l=t.dy,d=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:c,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:d}})}function uo(e){return!e.ctrlKey&&!e.button}function lo(){return this.parentNode}function fo(e,t){return null==t?{x:e.x,y:e.y}:t}function po(){return navigator.maxTouchPoints||"ontouchstart"in this}co.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var ho=r(86701),mo=r(3752),vo=r(93096),go=r.n(vo),yo=r(17621),bo=r.n(yo);function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function To(e){return function(e){if(Array.isArray(e))return wo(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ko=function(e,t,n){return(e<<16)+(t<<8)+n},xo=function(e,t){return 123*e%Math.pow(2,t)},Oo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;Eo(this,e),this.csBits=t,this.registry=["__reserved for background__"]}var t,n,r;return t=e,(n=[{key:"register",value:function(e){if(this.registry.length>=Math.pow(2,24-this.csBits))return null;var t,n=this.registry.length,r=xo(n,this.csBits),o=(t=n+(r<<24-this.csBits),"#".concat(Math.min(t,Math.pow(2,24)).toString(16).padStart(6,"0")));return this.registry.push(e),o}},{key:"lookup",value:function(e){var t="string"===typeof e?function(e){var t=bo()(e).toRgb(),n=t.r,r=t.g,o=t.b;return ko(n,r,o)}(e):ko.apply(void 0,To(e));if(!t)return null;var n=t&Math.pow(2,24-this.csBits)-1,r=t>>24-this.csBits&Math.pow(2,this.csBits)-1;return xo(n,this.csBits)!==r||n>=this.registry.length?null:this.registry[n]}}])&&_o(t.prototype,n),r&&_o(t,r),e}(),Co=r(54505),Ao=r(15560),So=r(92405),Mo=r(20216),Io=r(16917);const{abs:Po,cos:No,sin:Ro,acos:Lo,atan2:Do,sqrt:jo,pow:Ho}=Math;function Bo(e){return e<0?-Ho(-e,1/3):Ho(e,1/3)}const Fo=Math.PI,Uo=2*Fo,zo=Fo/2,Vo=Number.MAX_SAFE_INTEGER||9007199254740991,Go=Number.MIN_SAFE_INTEGER||-9007199254740991,Wo={x:0,y:0,z:0},Ko={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,t){const n=t(e);let r=n.x*n.x+n.y*n.y;return"undefined"!==typeof n.z&&(r+=n.z*n.z),jo(r)},compute:function(e,t,n){if(0===e)return t[0].t=0,t[0];const r=t.length-1;if(1===e)return t[r].t=1,t[r];const o=1-e;let i=t;if(0===r)return t[0].t=e,t[0];if(1===r){const t={x:o*i[0].x+e*i[1].x,y:o*i[0].y+e*i[1].y,t:e};return n&&(t.z=o*i[0].z+e*i[1].z),t}if(r<4){let t,a,s,c=o*o,u=e*e,l=0;2===r?(i=[i[0],i[1],i[2],Wo],t=c,a=o*e*2,s=u):3===r&&(t=c*o,a=c*e*3,s=o*u*3,l=e*u);const d={x:t*i[0].x+a*i[1].x+s*i[2].x+l*i[3].x,y:t*i[0].y+a*i[1].y+s*i[2].y+l*i[3].y,t:e};return n&&(d.z=t*i[0].z+a*i[1].z+s*i[2].z+l*i[3].z),d}const a=JSON.parse(JSON.stringify(t));for(;a.length>1;){for(let t=0;t<a.length-1;t++)a[t]={x:a[t].x+(a[t+1].x-a[t].x)*e,y:a[t].y+(a[t+1].y-a[t].y)*e},"undefined"!==typeof a[t].z&&(a[t]=a[t].z+(a[t+1].z-a[t].z)*e);a.splice(a.length-1,1)}return a[0].t=e,a[0]},computeWithRatios:function(e,t,n,r){const o=1-e,i=n,a=t;let s,c=i[0],u=i[1],l=i[2],d=i[3];return c*=o,u*=e,2===a.length?(s=c+u,{x:(c*a[0].x+u*a[1].x)/s,y:(c*a[0].y+u*a[1].y)/s,z:!!r&&(c*a[0].z+u*a[1].z)/s,t:e}):(c*=o,u*=2*o,l*=e*e,3===a.length?(s=c+u+l,{x:(c*a[0].x+u*a[1].x+l*a[2].x)/s,y:(c*a[0].y+u*a[1].y+l*a[2].y)/s,z:!!r&&(c*a[0].z+u*a[1].z+l*a[2].z)/s,t:e}):(c*=o,u*=1.5*o,l*=3*o,d*=e*e*e,4===a.length?(s=c+u+l+d,{x:(c*a[0].x+u*a[1].x+l*a[2].x+d*a[3].x)/s,y:(c*a[0].y+u*a[1].y+l*a[2].y+d*a[3].y)/s,z:!!r&&(c*a[0].z+u*a[1].z+l*a[2].z+d*a[3].z)/s,t:e}):void 0))},derive:function(e,t){const n=[];for(let r=e,o=r.length,i=o-1;o>1;o--,i--){const e=[];for(let n,o=0;o<i;o++)n={x:i*(r[o+1].x-r[o].x),y:i*(r[o+1].y-r[o].y)},t&&(n.z=i*(r[o+1].z-r[o].z)),e.push(n);n.push(e),r=e}return n},between:function(e,t,n){return t<=e&&e<=n||Ko.approximately(e,t)||Ko.approximately(e,n)},approximately:function(e,t,n){return Po(e-t)<=(n||1e-6)},length:function(e){const t=Ko.Tvalues.length;let n=0;for(let r,o=0;o<t;o++)r=.5*Ko.Tvalues[o]+.5,n+=Ko.Cvalues[o]*Ko.arcfn(r,e);return.5*n},map:function(e,t,n,r,o){return r+(o-r)*((e-t)/(n-t))},lerp:function(e,t,n){const r={x:t.x+e*(n.x-t.x),y:t.y+e*(n.y-t.y)};return void 0!==t.z&&void 0!==n.z&&(r.z=t.z+e*(n.z-t.z)),r},pointToString:function(e){let t=e.x+"/"+e.y;return"undefined"!==typeof e.z&&(t+="/"+e.z),t},pointsToString:function(e){return"["+e.map(Ko.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,t,n){const r=t.x-e.x,o=t.y-e.y,i=n.x-e.x,a=n.y-e.y;return Do(r*a-o*i,r*i+o*a)},round:function(e,t){const n=""+e,r=n.indexOf(".");return parseFloat(n.substring(0,r+1+t))},dist:function(e,t){const n=e.x-t.x,r=e.y-t.y;return jo(n*n+r*r)},closest:function(e,t){let n,r,o=Ho(2,63);return e.forEach((function(e,i){r=Ko.dist(t,e),r<o&&(o=r,n=i)})),{mdist:o,mpos:n}},abcratio:function(e,t){if(2!==t&&3!==t)return!1;if("undefined"===typeof e)e=.5;else if(0===e||1===e)return e;const n=Ho(e,t)+Ho(1-e,t);return Po((n-1)/n)},projectionratio:function(e,t){if(2!==t&&3!==t)return!1;if("undefined"===typeof e)e=.5;else if(0===e||1===e)return e;const n=Ho(1-e,t);return n/(Ho(e,t)+n)},lli8:function(e,t,n,r,o,i,a,s){const c=(e-n)*(i-s)-(t-r)*(o-a);return 0!=c&&{x:((e*r-t*n)*(o-a)-(e-n)*(o*s-i*a))/c,y:((e*r-t*n)*(i-s)-(t-r)*(o*s-i*a))/c}},lli4:function(e,t,n,r){const o=e.x,i=e.y,a=t.x,s=t.y,c=n.x,u=n.y,l=r.x,d=r.y;return Ko.lli8(o,i,a,s,c,u,l,d)},lli:function(e,t){return Ko.lli4(e,e.c,t,t.c)},makeline:function(e,t){const n=e.x,r=e.y,o=t.x,i=t.y,a=(o-n)/3,s=(i-r)/3;return new ni(n,r,n+a,r+s,n+2*a,r+2*s,o,i)},findbbox:function(e){let t=Vo,n=Vo,r=Go,o=Go;return e.forEach((function(e){const i=e.bbox();t>i.x.min&&(t=i.x.min),n>i.y.min&&(n=i.y.min),r<i.x.max&&(r=i.x.max),o<i.y.max&&(o=i.y.max)})),{x:{min:t,mid:(t+r)/2,max:r,size:r-t},y:{min:n,mid:(n+o)/2,max:o,size:o-n}}},shapeintersections:function(e,t,n,r,o){if(!Ko.bboxoverlap(t,r))return[];const i=[],a=[e.startcap,e.forward,e.back,e.endcap],s=[n.startcap,n.forward,n.back,n.endcap];return a.forEach((function(t){t.virtual||s.forEach((function(r){if(r.virtual)return;const a=t.intersects(r,o);a.length>0&&(a.c1=t,a.c2=r,a.s1=e,a.s2=n,i.push(a))}))})),i},makeshape:function(e,t,n){const r=t.points.length,o=e.points.length,i=Ko.makeline(t.points[r-1],e.points[0]),a=Ko.makeline(e.points[o-1],t.points[0]),s={startcap:i,forward:e,back:t,endcap:a,bbox:Ko.findbbox([i,e,t,a]),intersections:function(e){return Ko.shapeintersections(s,s.bbox,e,e.bbox,n)}};return s},getminmax:function(e,t,n){if(!n)return{min:0,max:0};let r,o,i=Vo,a=Go;-1===n.indexOf(0)&&(n=[0].concat(n)),-1===n.indexOf(1)&&n.push(1);for(let s=0,c=n.length;s<c;s++)r=n[s],o=e.get(r),o[t]<i&&(i=o[t]),o[t]>a&&(a=o[t]);return{min:i,mid:(i+a)/2,max:a,size:a-i}},align:function(e,t){const n=t.p1.x,r=t.p1.y,o=-Do(t.p2.y-r,t.p2.x-n);return e.map((function(e){return{x:(e.x-n)*No(o)-(e.y-r)*Ro(o),y:(e.x-n)*Ro(o)+(e.y-r)*No(o)}}))},roots:function(e,t){t=t||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,r=Ko.align(e,t),o=function(e){return 0<=e&&e<=1};if(2===n){const e=r[0].y,t=r[1].y,n=r[2].y,i=e-2*t+n;if(0!==i){const r=-jo(t*t-e*n),a=-e+t;return[-(r+a)/i,-(-r+a)/i].filter(o)}return t!==n&&0===i?[(2*t-n)/(2*t-2*n)].filter(o):[]}const i=r[0].y,a=r[1].y,s=r[2].y;let c=3*a-i-3*s+r[3].y,u=3*i-6*a+3*s,l=-3*i+3*a,d=i;if(Ko.approximately(c,0)){if(Ko.approximately(u,0))return Ko.approximately(l,0)?[]:[-d/l].filter(o);const e=jo(l*l-4*u*d),t=2*u;return[(e-l)/t,(-l-e)/t].filter(o)}u/=c,l/=c,d/=c;const f=(3*l-u*u)/3,p=f/3,h=(2*u*u*u-9*u*l+27*d)/27,m=h/2,v=m*m+p*p*p;let g,y,b,E,_;if(v<0){const e=-f/3,t=jo(e*e*e),n=-h/(2*t),r=Lo(n<-1?-1:n>1?1:n),i=2*Bo(t);return b=i*No(r/3)-u/3,E=i*No((r+Uo)/3)-u/3,_=i*No((r+2*Uo)/3)-u/3,[b,E,_].filter(o)}if(0===v)return g=m<0?Bo(-m):-Bo(m),b=2*g-u/3,E=-g-u/3,[b,E].filter(o);{const e=jo(v);return g=Bo(-m+e),y=Bo(m+e),[g-y-u/3].filter(o)}},droots:function(e){if(3===e.length){const t=e[0],n=e[1],r=e[2],o=t-2*n+r;if(0!==o){const e=-jo(n*n-t*r),i=-t+n;return[-(e+i)/o,-(-e+i)/o]}return n!==r&&0===o?[(2*n-r)/(2*(n-r))]:[]}if(2===e.length){const t=e[0],n=e[1];return t!==n?[t/(t-n)]:[]}return[]},curvature:function(e,t,n,r,o){let i,a,s,c,u=0,l=0;const d=Ko.compute(e,t),f=Ko.compute(e,n),p=d.x*d.x+d.y*d.y;if(r?(i=jo(Ho(d.y*f.z-f.y*d.z,2)+Ho(d.z*f.x-f.z*d.x,2)+Ho(d.x*f.y-f.x*d.y,2)),a=Ho(p+d.z*d.z,1.5)):(i=d.x*f.y-d.y*f.x,a=Ho(p,1.5)),0===i||0===a)return{k:0,r:0};if(u=i/a,l=a/i,!o){const o=Ko.curvature(e-.001,t,n,r,!0).k,i=Ko.curvature(e+.001,t,n,r,!0).k;c=(i-u+(u-o))/2,s=(Po(i-u)+Po(u-o))/2}return{k:u,r:l,dk:c,adk:s}},inflections:function(e){if(e.length<4)return[];const t=Ko.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=t[2].x*t[1].y,r=t[3].x*t[1].y,o=t[1].x*t[2].y,i=18*(-3*n+2*r+3*o-t[3].x*t[2].y),a=18*(3*n-r-3*o),s=18*(o-n);if(Ko.approximately(i,0)){if(!Ko.approximately(a,0)){let e=-s/a;if(0<=e&&e<=1)return[e]}return[]}const c=a*a-4*i*s,u=Math.sqrt(c),l=2*i;return Ko.approximately(l,0)?[]:[(u-a)/l,-(a+u)/l].filter((function(e){return 0<=e&&e<=1}))},bboxoverlap:function(e,t){const n=["x","y"],r=n.length;for(let o,i,a,s,c=0;c<r;c++)if(o=n[c],i=e[o].mid,a=t[o].mid,s=(e[o].size+t[o].size)/2,Po(i-a)>=s)return!1;return!0},expandbox:function(e,t){t.x.min<e.x.min&&(e.x.min=t.x.min),t.y.min<e.y.min&&(e.y.min=t.y.min),t.z&&t.z.min<e.z.min&&(e.z.min=t.z.min),t.x.max>e.x.max&&(e.x.max=t.x.max),t.y.max>e.y.max&&(e.y.max=t.y.max),t.z&&t.z.max>e.z.max&&(e.z.max=t.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,t,n){const r=e.bbox(),o=t.bbox(),i=1e5,a=n||.5;if(r.x.size+r.y.size<a&&o.x.size+o.y.size<a)return[(i*(e._t1+e._t2)/2|0)/i+"/"+(i*(t._t1+t._t2)/2|0)/i];let s=e.split(.5),c=t.split(.5),u=[{left:s.left,right:c.left},{left:s.left,right:c.right},{left:s.right,right:c.right},{left:s.right,right:c.left}];u=u.filter((function(e){return Ko.bboxoverlap(e.left.bbox(),e.right.bbox())}));let l=[];return 0===u.length||(u.forEach((function(e){l=l.concat(Ko.pairiteration(e.left,e.right,a))})),l=l.filter((function(e,t){return l.indexOf(e)===t}))),l},getccenter:function(e,t,n){const r=t.x-e.x,o=t.y-e.y,i=n.x-t.x,a=n.y-t.y,s=r*No(zo)-o*Ro(zo),c=r*Ro(zo)+o*No(zo),u=i*No(zo)-a*Ro(zo),l=i*Ro(zo)+a*No(zo),d=(e.x+t.x)/2,f=(e.y+t.y)/2,p=(t.x+n.x)/2,h=(t.y+n.y)/2,m=d+s,v=f+c,g=p+u,y=h+l,b=Ko.lli8(d,f,m,v,p,h,g,y),E=Ko.dist(b,e);let _,T=Do(e.y-b.y,e.x-b.x),w=Do(t.y-b.y,t.x-b.x),k=Do(n.y-b.y,n.x-b.x);return T<k?((T>w||w>k)&&(T+=Uo),T>k&&(_=k,k=T,T=_)):k<w&&w<T?(_=k,k=T,T=_):k+=Uo,b.s=T,b.e=k,b.r=E,b},numberSort:function(e,t){return e-t}};class qo{constructor(e){this.curves=[],this._3d=!1,e&&(this.curves=e,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map((function(e){return Ko.pointsToString(e.points)})).join(", ")+"]"}addCurve(e){this.curves.push(e),this._3d=this._3d||e._3d}length(){return this.curves.map((function(e){return e.length()})).reduce((function(e,t){return e+t}))}curve(e){return this.curves[e]}bbox(){const e=this.curves;for(var t=e[0].bbox(),n=1;n<e.length;n++)Ko.expandbox(t,e[n].bbox());return t}offset(e){const t=[];return this.curves.forEach((function(n){t.push(...n.offset(e))})),new qo(t)}}const{abs:Yo,min:Zo,max:$o,cos:Xo,sin:Qo,acos:Jo,sqrt:ei}=Math,ti=Math.PI;class ni{constructor(e){let t=e&&e.forEach?e:Array.from(arguments).slice(),n=!1;if("object"===typeof t[0]){n=t.length;const e=[];t.forEach((function(t){["x","y","z"].forEach((function(n){"undefined"!==typeof t[n]&&e.push(t[n])}))})),t=e}let r=!1;const o=t.length;if(n){if(n>4){if(1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");r=!0}}else if(6!==o&&8!==o&&9!==o&&12!==o&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const i=this._3d=!r&&(9===o||12===o)||e&&e[0]&&"undefined"!==typeof e[0].z,a=this.points=[];for(let d=0,f=i?3:2;d<o;d+=f){var s={x:t[d],y:t[d+1]};i&&(s.z=t[d+2]),a.push(s)}const c=this.order=a.length-1,u=this.dims=["x","y"];i&&u.push("z"),this.dimlen=u.length;const l=Ko.align(a,{p1:a[0],p2:a[c]});this._linear=!l.some((e=>Yo(e.y)>1e-4)),this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(e,t,n,r){if("undefined"===typeof r&&(r=.5),0===r)return new ni(t,t,n);if(1===r)return new ni(e,t,t);const o=ni.getABC(2,e,t,n,r);return new ni(e,o.A,n)}static cubicFromPoints(e,t,n,r,o){"undefined"===typeof r&&(r=.5);const i=ni.getABC(3,e,t,n,r);"undefined"===typeof o&&(o=Ko.dist(t,i.C));const a=o*(1-r)/r,s=Ko.dist(e,n),c=(n.x-e.x)/s,u=(n.y-e.y)/s,l=o*c,d=o*u,f=a*c,p=a*u,h=t.x-l,m=t.y-d,v=t.x+f,g=t.y+p,y=i.A,b=y.x+(h-y.x)/(1-r),E=y.y+(m-y.y)/(1-r),_=y.x+(v-y.x)/r,T=y.y+(g-y.y)/r,w={x:e.x+(b-e.x)/r,y:e.y+(E-e.y)/r},k={x:n.x+(_-n.x)/(1-r),y:n.y+(T-n.y)/(1-r)};return new ni(e,w,k,n)}static getUtils(){return Ko}getUtils(){return ni.getUtils()}static get PolyBezier(){return qo}valueOf(){return this.toString()}toString(){return Ko.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const e=this.points,t=["M",e[0].x,e[0].y,2===this.order?"Q":"C"];for(let n=1,r=e.length;n<r;n++)t.push(e[n].x),t.push(e[n].y);return t.join(" ")}setRatios(e){if(e.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=e,this._lut=[]}verify(){const e=this.coordDigest();e!==this._print&&(this._print=e,this.update())}coordDigest(){return this.points.map((function(e,t){return""+t+e.x+e.y+(e.z?e.z:0)})).join("")}update(){this._lut=[],this.dpoints=Ko.derive(this.points,this._3d),this.computedirection()}computedirection(){const e=this.points,t=Ko.angle(e[0],e[this.order],e[1]);this.clockwise=t>0}length(){return Ko.length(this.derivative.bind(this))}static getABC(e=2,t,n,r,o=.5){const i=Ko.projectionratio(o,e),a=1-i,s={x:i*t.x+a*r.x,y:i*t.y+a*r.y},c=Ko.abcratio(o,e);return{A:{x:n.x+(n.x-s.x)/c,y:n.y+(n.y-s.y)/c},B:n,C:s,S:t,E:r}}getABC(e,t){t=t||this.get(e);let n=this.points[0],r=this.points[this.order];return ni.getABC(this.order,n,t,r,e)}getLUT(e){if(this.verify(),e=e||100,this._lut.length===e)return this._lut;this._lut=[],e--;for(let t,n,r=0;r<e;r++)n=r/(e-1),t=this.compute(n),t.t=n,this._lut.push(t);return this._lut}on(e,n){n=n||5;const r=this.getLUT(),o=[];for(let t,i=0,a=0;i<r.length;i++)t=r[i],Ko.dist(t,e)<n&&(o.push(t),a+=i/r.length);return!!o.length&&(t/=o.length)}project(e){const t=this.getLUT(),n=t.length-1,r=Ko.closest(t,e),o=r.mpos,i=(o-1)/n,a=(o+1)/n,s=.1/n;let c,u,l=r.mdist,d=i,f=d;for(l+=1;d<a+s;d+=s)c=this.compute(d),u=Ko.dist(e,c),u<l&&(l=u,f=d);return f=f<0?0:f>1?1:f,c=this.compute(f),c.t=f,c.d=l,c}get(e){return this.compute(e)}point(e){return this.points[e]}compute(e){return this.ratios?Ko.computeWithRatios(e,this.points,this.ratios,this._3d):Ko.compute(e,this.points,this._3d,this.ratios)}raise(){const e=this.points,t=[e[0]],n=e.length;for(let r,o,i=1;i<n;i++)r=e[i],o=e[i-1],t[i]={x:(n-i)/n*r.x+i/n*o.x,y:(n-i)/n*r.y+i/n*o.y};return t[n]=e[n-1],new ni(t)}derivative(e){return Ko.compute(e,this.dpoints[0],this._3d)}dderivative(e){return Ko.compute(e,this.dpoints[1],this._3d)}align(){let e=this.points;return new ni(Ko.align(e,{p1:e[0],p2:e[e.length-1]}))}curvature(e){return Ko.curvature(e,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return Ko.inflections(this.points)}normal(e){return this._3d?this.__normal3(e):this.__normal2(e)}__normal2(e){const t=this.derivative(e),n=ei(t.x*t.x+t.y*t.y);return{x:-t.y/n,y:t.x/n}}__normal3(e){const t=this.derivative(e),n=this.derivative(e+.01),r=ei(t.x*t.x+t.y*t.y+t.z*t.z),o=ei(n.x*n.x+n.y*n.y+n.z*n.z);t.x/=r,t.y/=r,t.z/=r,n.x/=o,n.y/=o,n.z/=o;const i={x:n.y*t.z-n.z*t.y,y:n.z*t.x-n.x*t.z,z:n.x*t.y-n.y*t.x},a=ei(i.x*i.x+i.y*i.y+i.z*i.z);i.x/=a,i.y/=a,i.z/=a;const s=[i.x*i.x,i.x*i.y-i.z,i.x*i.z+i.y,i.x*i.y+i.z,i.y*i.y,i.y*i.z-i.x,i.x*i.z-i.y,i.y*i.z+i.x,i.z*i.z];return{x:s[0]*t.x+s[1]*t.y+s[2]*t.z,y:s[3]*t.x+s[4]*t.y+s[5]*t.z,z:s[6]*t.x+s[7]*t.y+s[8]*t.z}}hull(e){let t=this.points,n=[],r=[],o=0;for(r[o++]=t[0],r[o++]=t[1],r[o++]=t[2],3===this.order&&(r[o++]=t[3]);t.length>1;){n=[];for(let i,a=0,s=t.length-1;a<s;a++)i=Ko.lerp(e,t[a],t[a+1]),r[o++]=i,n.push(i);t=n}return r}split(e,t){if(0===e&&t)return this.split(t).left;if(1===t)return this.split(e).right;const n=this.hull(e),r={left:2===this.order?new ni([n[0],n[3],n[5]]):new ni([n[0],n[4],n[7],n[9]]),right:2===this.order?new ni([n[5],n[4],n[2]]):new ni([n[9],n[8],n[6],n[3]]),span:n};return r.left._t1=Ko.map(0,0,1,this._t1,this._t2),r.left._t2=Ko.map(e,0,1,this._t1,this._t2),r.right._t1=Ko.map(e,0,1,this._t1,this._t2),r.right._t2=Ko.map(1,0,1,this._t1,this._t2),t?(t=Ko.map(t,e,1,0,1),r.right.split(t).left):r}extrema(){const e={};let t=[];return this.dims.forEach(function(n){let r=function(e){return e[n]},o=this.dpoints[0].map(r);e[n]=Ko.droots(o),3===this.order&&(o=this.dpoints[1].map(r),e[n]=e[n].concat(Ko.droots(o))),e[n]=e[n].filter((function(e){return e>=0&&e<=1})),t=t.concat(e[n].sort(Ko.numberSort))}.bind(this)),e.values=t.sort(Ko.numberSort).filter((function(e,n){return t.indexOf(e)===n})),e}bbox(){const e=this.extrema(),t={};return this.dims.forEach(function(n){t[n]=Ko.getminmax(this,n,e[n])}.bind(this)),t}overlaps(e){const t=this.bbox(),n=e.bbox();return Ko.bboxoverlap(t,n)}offset(e,t){if("undefined"!==typeof t){const n=this.get(e),r=this.normal(e),o={c:n,n:r,x:n.x+r.x*t,y:n.y+r.y*t};return this._3d&&(o.z=n.z+r.z*t),o}if(this._linear){const t=this.normal(0),n=this.points.map((function(n){const r={x:n.x+e*t.x,y:n.y+e*t.y};return n.z&&t.z&&(r.z=n.z+e*t.z),r}));return[new ni(n)]}return this.reduce().map((function(t){return t._linear?t.offset(e)[0]:t.scale(e)}))}simple(){if(3===this.order){const e=Ko.angle(this.points[0],this.points[3],this.points[1]),t=Ko.angle(this.points[0],this.points[3],this.points[2]);if(e>0&&t<0||e<0&&t>0)return!1}const e=this.normal(0),t=this.normal(1);let n=e.x*t.x+e.y*t.y;return this._3d&&(n+=e.z*t.z),Yo(Jo(n))<ti/3}reduce(){let e,t,n=0,r=0,o=.01,i=[],a=[],s=this.extrema().values;for(-1===s.indexOf(0)&&(s=[0].concat(s)),-1===s.indexOf(1)&&s.push(1),n=s[0],e=1;e<s.length;e++)r=s[e],t=this.split(n,r),t._t1=n,t._t2=r,i.push(t),n=r;return i.forEach((function(e){for(n=0,r=0;r<=1;)for(r=n+o;r<=1.01;r+=o)if(t=e.split(n,r),!t.simple()){if(r-=o,Yo(n-r)<o)return[];t=e.split(n,r),t._t1=Ko.map(n,0,1,e._t1,e._t2),t._t2=Ko.map(r,0,1,e._t1,e._t2),a.push(t),n=r;break}n<1&&(t=e.split(n,1),t._t1=Ko.map(n,0,1,e._t1,e._t2),t._t2=e._t2,a.push(t))})),a}scale(e){const t=this.order;let n=!1;if("function"===typeof e&&(n=e),n&&2===t)return this.raise().scale(n);const r=this.clockwise,o=n?n(0):e,i=n?n(1):e,a=[this.offset(0,10),this.offset(1,10)],s=this.points,c=[],u=Ko.lli4(a[0],a[0].c,a[1],a[1].c);if(!u)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach((function(e){const n=c[e*t]=Ko.copy(s[e*t]);n.x+=(e?i:o)*a[e].n.x,n.y+=(e?i:o)*a[e].n.y})),n?([0,1].forEach((function(o){if(2!==t||!o){var i=s[o+1],a={x:i.x-u.x,y:i.y-u.y},l=n?n((o+1)/t):e;n&&!r&&(l=-l);var d=ei(a.x*a.x+a.y*a.y);a.x/=d,a.y/=d,c[o+1]={x:i.x+l*a.x,y:i.y+l*a.y}}})),new ni(c)):([0,1].forEach((e=>{if(2===t&&e)return;const n=c[e*t],r=this.derivative(e),o={x:n.x+r.x,y:n.y+r.y};c[e+1]=Ko.lli4(n,o,u,s[e+1])})),new ni(c))}outline(e,t,n,r){t="undefined"===typeof t?e:t;const o=this.reduce(),i=o.length,a=[];let s,c=[],u=0,l=this.length();const d="undefined"!==typeof n&&"undefined"!==typeof r;function f(e,t,n,r,o){return function(i){const a=r/n,s=(r+o)/n,c=t-e;return Ko.map(i,0,1,e+a*c,e+s*c)}}o.forEach((function(o){const i=o.length();d?(a.push(o.scale(f(e,n,l,u,i))),c.push(o.scale(f(-t,-r,l,u,i)))):(a.push(o.scale(e)),c.push(o.scale(-t))),u+=i})),c=c.map((function(e){return s=e.points,s[3]?e.points=[s[3],s[2],s[1],s[0]]:e.points=[s[2],s[1],s[0]],e})).reverse();const p=a[0].points[0],h=a[i-1].points[a[i-1].points.length-1],m=c[i-1].points[c[i-1].points.length-1],v=c[0].points[0],g=Ko.makeline(m,p),y=Ko.makeline(h,v),b=[g].concat(a).concat([y]).concat(c);b.length;return new qo(b)}outlineshapes(e,t,n){t=t||e;const r=this.outline(e,t).curves,o=[];for(let i=1,a=r.length;i<a/2;i++){const e=Ko.makeshape(r[i],r[a-i],n);e.startcap.virtual=i>1,e.endcap.virtual=i<a/2-1,o.push(e)}return o}intersects(e,t){return e?e.p1&&e.p2?this.lineIntersects(e):(e instanceof ni&&(e=e.reduce()),this.curveintersects(this.reduce(),e,t)):this.selfintersects(t)}lineIntersects(e){const t=Zo(e.p1.x,e.p2.x),n=Zo(e.p1.y,e.p2.y),r=$o(e.p1.x,e.p2.x),o=$o(e.p1.y,e.p2.y);return Ko.roots(this.points,e).filter((e=>{var i=this.get(e);return Ko.between(i.x,t,r)&&Ko.between(i.y,n,o)}))}selfintersects(e){const t=this.reduce(),n=t.length-2,r=[];for(let o,i,a,s=0;s<n;s++)i=t.slice(s,s+1),a=t.slice(s+2),o=this.curveintersects(i,a,e),r.push(...o);return r}curveintersects(e,t,n){const r=[];e.forEach((function(e){t.forEach((function(t){e.overlaps(t)&&r.push({left:e,right:t})}))}));let o=[];return r.forEach((function(e){const t=Ko.pairiteration(e.left,e.right,n);t.length>0&&(o=o.concat(t))})),o}arcs(e){return e=e||.5,this._iterate(e,[])}_error(e,t,n,r){const o=(r-n)/4,i=this.get(n+o),a=this.get(r-o),s=Ko.dist(e,t),c=Ko.dist(e,i),u=Ko.dist(e,a);return Yo(c-s)+Yo(u-s)}_iterate(e,t){let n,r=0,o=1;do{n=0,o=1;let i,a,s,c,u,l=this.get(r),d=!1,f=!1,p=o,h=1,m=0;do{if(f=d,c=s,p=(r+o)/2,m++,i=this.get(p),a=this.get(o),s=Ko.getccenter(l,i,a),s.interval={start:r,end:o},d=this._error(s,l,r,o)<=e,u=f&&!d,u||(h=o),d){if(o>=1){if(s.interval.end=h=1,c=s,o>1){let e={x:s.x+s.r*Xo(s.e),y:s.y+s.r*Qo(s.e)};s.e+=Ko.angle({x:s.x,y:s.y},e,this.get(1))}break}o+=(o-r)/2}else o=p}while(!u&&n++<100);if(n>=100)break;c=c||s,t.push(c),r=h}while(o<1);return t}}var ri=r(1527),oi=r(72462),ii=r(47646);function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(Object(n),!0).forEach((function(t){ui(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(e){return(ci="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function li(e,t){return(li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function di(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function fi(e,t,n){return(fi=di()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&li(o,n.prototype),o}).apply(null,arguments)}function pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||mi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(e){return function(e){if(Array.isArray(e))return vi(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mi(e,t){if(e){if("string"===typeof e)return vi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vi(e,t):void 0}}function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".force-graph-container canvas {\n  display: block;\n  user-select: none;\n  outline: none;\n  -webkit-tap-highlight-color: transparent;\n}\n\n.force-graph-container .graph-tooltip {\n  position: absolute;\n  transform: translate(-50%, 25px);\n  font-family: sans-serif;\n  font-size: 16px;\n  padding: 4px;\n  border-radius: 3px;\n  color: #eee;\n  background: rgba(0,0,0,0.65);\n  visibility: hidden; /* by default */\n}\n\n.force-graph-container .clickable {\n  cursor: pointer;\n}\n\n.force-graph-container .grabbable {\n  cursor: move;\n  cursor: grab;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n}\n\n.force-graph-container .grabbable:active {\n  cursor: grabbing;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n}\n");var gi=(0,oi.Z)(ii.Z);function yi(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=gi(t(e))}))}var bi=function(e,t){return t.onNeedsRedraw&&t.onNeedsRedraw()},Ei=(0,b.Z)({props:{graphData:{default:{nodes:[],links:[]},onChange:function(e,t){t.engineRunning=!1}},dagMode:{onChange:function(e,t){!e&&(t.graphData.nodes||[]).forEach((function(e){return e.fx=e.fy=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(e){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:bi},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:bi},nodeColor:{default:"color",triggerUpdate:!1,onChange:bi},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:bi},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:bi},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:bi},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:bi},linkColor:{default:"color",triggerUpdate:!1,onChange:bi},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:bi},linkWidth:{default:1,triggerUpdate:!1,onChange:bi},linkCurvature:{default:0,triggerUpdate:!1,onChange:bi},linkCanvasObject:{triggerUpdate:!1,onChange:bi},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:bi},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:bi},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:bi},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:bi},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.alphaDecay(e)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.alphaTarget(e)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(e,t){t.forceLayout.velocityDecay(e)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(e,t,n){return void 0===n?e.forceLayout.force(t):(e.forceLayout.force(t,n),this)},d3ReheatSimulation:function(e){return e.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(e){return e.cntTicks=0,e.startTickTime=new Date,e.engineRunning=!0,this},isEngineRunning:function(e){return!!e.engineRunning},tickFrame:function(e){return!e.isShadow&&e.engineRunning&&(++e.cntTicks>e.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||e.d3AlphaMin>0&&e.forceLayout.alpha()<e.d3AlphaMin?(e.engineRunning=!1,e.onEngineStop()):(e.forceLayout.tick(),e.onEngineTick())),function(){var t=(0,E.default)(e.linkVisibility),n=(0,E.default)(e.linkColor),r=(0,E.default)(e.linkWidth),o=(0,E.default)(e.linkLineDash),i=(0,E.default)(e.linkCurvature),a=(0,E.default)(e.linkCanvasObjectMode),s=e.ctx,c=2*e.isShadow,u=e.graphData.links.filter(t);u.forEach((function(e){var t=i(e);if(!t)return void(e.__controlPoints=null);var n=e.source,r=e.target;if(!n||!r||!n.hasOwnProperty("x")||!r.hasOwnProperty("x"))return;var o=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2));if(o>0){var a=Math.atan2(r.y-n.y,r.x-n.x),s=o*t,c={x:(n.x+r.x)/2+s*Math.cos(a-Math.PI/2),y:(n.y+r.y)/2+s*Math.sin(a-Math.PI/2)};e.__controlPoints=[c.x,c.y]}else{var u=70*t;e.__controlPoints=[r.x,r.y-u,r.x+u,r.y]}}));var l=[],d=[],f=u;if(e.linkCanvasObject){var p=[],h=[];u.forEach((function(e){return({before:l,after:d,replace:p}[a(e)]||h).push(e)})),f=[].concat(hi(l),d,h),l=l.concat(p)}s.save(),l.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore();var m=(0,ri.Z)(f,[n,r,o]);s.save(),Object.entries(m).forEach((function(t){var n=pi(t,2),r=n[0],i=n[1],a=r&&"undefined"!==r?r:"rgba(0,0,0,0.15)";Object.entries(i).forEach((function(t){var n=pi(t,2),r=n[0],i=n[1],u=(r||1)/e.globalScale+c;Object.entries(i).forEach((function(e){var t=pi(e,2);t[0];var n=t[1],r=o(n[0]);s.beginPath(),n.forEach((function(e){var t=e.source,n=e.target;if(t&&n&&t.hasOwnProperty("x")&&n.hasOwnProperty("x")){s.moveTo(t.x,t.y);var r=e.__controlPoints;r?s[2===r.length?"quadraticCurveTo":"bezierCurveTo"].apply(s,hi(r).concat([n.x,n.y])):s.lineTo(n.x,n.y)}})),s.strokeStyle=a,s.lineWidth=u,s.setLineDash(r||[]),s.stroke()}))}))})),s.restore(),s.save(),d.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore()}(),!e.isShadow&&function(){var t=(0,E.default)(e.linkDirectionalArrowLength),n=(0,E.default)(e.linkDirectionalArrowRelPos),r=(0,E.default)(e.linkVisibility),o=(0,E.default)(e.linkDirectionalArrowColor||e.linkColor),i=(0,E.default)(e.nodeVal),a=e.ctx;a.save(),e.graphData.links.filter(r).forEach((function(r){var s=t(r);if(s&&!(s<0)){var c=r.source,u=r.target;if(c&&u&&c.hasOwnProperty("x")&&u.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,i(c)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,i(u)||1))*e.nodeRelSize,f=Math.min(1,Math.max(0,n(r))),p=o(r)||"rgba(0,0,0,0.28)",h=s/1.6/2,m=r.__controlPoints&&fi(ni,[c.x,c.y].concat(hi(r.__controlPoints),[u.x,u.y])),v=m?function(e){return m.get(e)}:function(e){return{x:c.x+(u.x-c.x)*e||0,y:c.y+(u.y-c.y)*e||0}},g=m?m.length():Math.sqrt(Math.pow(u.x-c.x,2)+Math.pow(u.y-c.y,2)),y=l+s+(g-l-d-s)*f,b=v(y/g),E=v((y-s)/g),_=v((y-.8*s)/g),T=Math.atan2(b.y-E.y,b.x-E.x)-Math.PI/2;a.beginPath(),a.moveTo(b.x,b.y),a.lineTo(E.x+h*Math.cos(T),E.y+h*Math.sin(T)),a.lineTo(_.x,_.y),a.lineTo(E.x-h*Math.cos(T),E.y-h*Math.sin(T)),a.fillStyle=p,a.fill()}}})),a.restore()}(),!e.isShadow&&function(){var t=(0,E.default)(e.linkDirectionalParticles),n=(0,E.default)(e.linkDirectionalParticleSpeed),r=(0,E.default)(e.linkDirectionalParticleWidth),o=(0,E.default)(e.linkVisibility),i=(0,E.default)(e.linkDirectionalParticleColor||e.linkColor),a=e.ctx;a.save(),e.graphData.links.filter(o).forEach((function(o){var s=t(o);if(o.hasOwnProperty("__photons")&&o.__photons.length){var c=o.source,u=o.target;if(c&&u&&c.hasOwnProperty("x")&&u.hasOwnProperty("x")){var l=n(o),d=o.__photons||[],f=Math.max(0,r(o)/2)/Math.sqrt(e.globalScale),p=i(o)||"rgba(0,0,0,0.28)";a.fillStyle=p;var h=o.__controlPoints?fi(ni,[c.x,c.y].concat(hi(o.__controlPoints),[u.x,u.y])):null,m=0,v=!1;d.forEach((function(e){var t=!!e.__singleHop;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=t?0:m/s),!t&&m++,e.__progressRatio+=l,e.__progressRatio>=1){if(t)return void(v=!0);e.__progressRatio=e.__progressRatio%1}var n=e.__progressRatio,r=h?h.get(n):{x:c.x+(u.x-c.x)*n||0,y:c.y+(u.y-c.y)*n||0};a.beginPath(),a.arc(r.x,r.y,f,0,2*Math.PI,!1),a.fill()})),v&&(o.__photons=o.__photons.filter((function(e){return!e.__singleHop||e.__progressRatio<=1})))}}})),a.restore()}(),function(){var t=(0,E.default)(e.nodeVisibility),n=(0,E.default)(e.nodeVal),r=(0,E.default)(e.nodeColor),o=(0,E.default)(e.nodeCanvasObjectMode),i=e.ctx,a=e.isShadow/e.globalScale,s=e.graphData.nodes.filter(t);i.save(),s.forEach((function(t){var s=o(t);if(!e.nodeCanvasObject||"before"!==s&&"replace"!==s||(e.nodeCanvasObject(t,i,e.globalScale),"replace"!==s)){var c=Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize+a;i.beginPath(),i.arc(t.x,t.y,c,0,2*Math.PI,!1),i.fillStyle=r(t)||"rgba(31, 120, 180, 0.92)",i.fill(),e.nodeCanvasObject&&"after"===s&&e.nodeCanvasObject(t,e.ctx,e.globalScale)}else i.restore()})),i.restore()}(),this},emitParticle:function(e,t){return t&&(!t.__photons&&(t.__photons=[]),t.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:(0,Co.Z)().force("link",(0,Ao.Z)()).force("charge",(0,So.Z)()).force("center",(0,Mo.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.ctx=e},update:function(e){if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&yi(e.graphData.nodes,(0,E.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&yi(e.graphData.links,(0,E.default)(e.linkAutoColorBy),e.linkColor),e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]})),!e.isShadow){var t=(0,E.default)(e.linkDirectionalParticles);e.graphData.links.forEach((function(e){var n=Math.round(Math.abs(t(e)));n?e.__photons=hi(Array(n)).map((function(){return{}})):delete e.__photons}))}e.forceLayout.stop().alpha(1).nodes(e.graphData.nodes);var n=e.forceLayout.force("link");n&&n.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var r=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.nodeFilter,a=void 0===i?function(){return!0}:i,s=o.onLoopError,c=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,u={};n.forEach((function(e){return u[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,o=c(n),i=c(r);if(!u.hasOwnProperty(o))throw"Missing source node with id: ".concat(o);if(!u.hasOwnProperty(i))throw"Missing target node with id: ".concat(i);var a=u[o],s=u[i];function c(e){return"object"===ci(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(u)),Object.assign.apply(Object,[{}].concat(hi(Object.entries(u).filter((function(e){return!pi(e,2)[1].skip})).map((function(e){var t=pi(e,2);return ui({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=0,i=e.length;o<i;o++){var a=e[o];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(hi(n.slice(n.indexOf(a))),[a]).map((function(e){return t(e.data)}));return l.some((function(t){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}))||(l.push(e),c(e)),"continue"}())continue;r>a.depth&&(a.depth=r,d(a.out,[].concat(hi(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),o=Math.max.apply(Math,hi(Object.values(r||[]))),i=e.dagLevelDistance||e.graphData.nodes.length/(o||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var a=function(t,n){return function(a){return t?(r[a[e.nodeId]]-o/2)*i*(n?-1:1):void 0}},s=a(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),c=a(-1!==["td","bu"].indexOf(e.dagMode),"bu"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=s(e),e.fy=c(e)}))}e.forceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,Io.Z)((function(t){var n=r[t[e.nodeId]]||-1;return("radialin"===e.dagMode?o-n:n)*i})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null);for(var u=0;u<e.warmupTicks&&!(e.d3AlphaMin>0&&e.forceLayout.alpha()<e.d3AlphaMin);u++)e.forceLayout.tick();this.resetCountdown(),e.onFinishUpdate()}});function _i(e,t){var n=e instanceof Array?e:[e],r=new t;return{linkProp:function(e){return{default:r[e](),onChange:function(t,r){n.forEach((function(n){return r[n][e](t)}))},triggerUpdate:!1}},linkMethod:function(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=[];return n.forEach((function(n){var r=t[n],i=r[e].apply(r,o);i!==r&&a.push(i)})),a.length?a[0]:this}}}}var Ti=_i("forceGraph",Ei),wi=_i(["forceGraph","shadowGraph"],Ei),ki=Object.assign.apply(Object,hi(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map((function(e){return ui({},e,Ti.linkProp(e))}))).concat(hi(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map((function(e){return ui({},e,wi.linkProp(e))}))))),xi=Object.assign.apply(Object,hi(["d3Force","d3ReheatSimulation","emitParticle"].map((function(e){return ui({},e,Ti.linkMethod(e))}))));function Oi(e){if(e.canvas){var t=e.canvas.width,n=e.canvas.height;300===t&&150===n&&(t=n=0);var r=window.devicePixelRatio;t/=r,n/=r,[e.canvas,e.shadowCanvas].forEach((function(o){o.style.width="".concat(e.width,"px"),o.style.height="".concat(e.height,"px"),o.width=e.width*r,o.height=e.height*r,t||n||o.getContext("2d").scale(r,r)}));var o=Xr(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-t)/2/o,(e.height-n)/2/o),e.needsRedraw=!0}}function Ci(e){var t=window.devicePixelRatio;e.setTransform(t,0,0,t,0,0)}function Ai(e,t,n){e.save(),Ci(e),e.clearRect(0,0,t,n),e.restore()}var Si=(0,b.Z)({props:si({width:{default:window.innerWidth,onChange:function(e,t){return Oi(t)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(e,t){return Oi(t)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(e,t){[{type:"Node",objs:e.nodes},{type:"Link",objs:e.links}].forEach((function(e){var n=e.type;e.objs.filter((function(e){if(!e.hasOwnProperty("__indexColor"))return!0;var n=t.colorTracker.lookup(e.__indexColor);return!n||!n.hasOwnProperty("d")||n.d!==e})).forEach((function(e){e.__indexColor=t.colorTracker.register({type:n,d:e})}))})),t.forceGraph.graphData(e),t.shadowGraph.graphData(e)},triggerUpdate:!1},backgroundColor:{onChange:function(e,t){t.canvas&&e&&(t.canvas.style.background=e)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(e,t){t.shadowGraph.nodeCanvasObject(e?function(t,n,r){return e(t,t.__indexColor,n,r)}:null)},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(e,t){t.shadowGraph.linkCanvasObject(e?function(t,n,r){return e(t,t.__indexColor,n,r)}:null)},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(e,t){t.zoom.scaleExtent([e,t.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(e,t){t.zoom.scaleExtent([t.zoom.scaleExtent()[0],e])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(e,t){t.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{default:function(){},triggerUpdate:!1},onZoomEnd:{default:function(){},triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},ki),aliases:{stopAnimation:"pauseAnimation"},methods:si({graph2ScreenCoords:function(e,t,n){var r=Xr(e.canvas);return{x:t*r.k+r.x,y:n*r.k+r.y}},screen2GraphCoords:function(e,t,n){var r=Xr(e.canvas);return{x:(t-r.x)/r.k,y:(n-r.y)/r.k}},centerAt:function(e,t,n,r){if(!e.canvas)return null;if(void 0!==t||void 0!==n){var o=Object.assign({},void 0!==t?{x:t}:{},void 0!==n?{y:n}:{});return r?new Ke.ZP.Tween(i()).to(o,r).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate(a).start():a(o),this}return i();function i(){var t=Xr(e.canvas);return{x:(e.width/2-t.x)/t.k,y:(e.height/2-t.y)/t.k}}function a(t){var n=t.x,r=t.y;e.zoom.translateTo(e.zoom.__baseElem,void 0===n?i().x:n,void 0===r?i().y:r),e.needsRedraw=!0}},zoom:function(e,t,n){return e.canvas?void 0!==t?(n?new Ke.ZP.Tween({k:r()}).to({k:t},n).easing(Ke.ZP.Easing.Quadratic.Out).onUpdate((function(e){return o(e.k)})).start():o(t),this):r():null;function r(){return Xr(e.canvas).k}function o(t){e.zoom.scaleTo(e.zoom.__baseElem,t),e.needsRedraw=!0}},zoomToFit:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a=this.getGraphBbox.apply(this,o);if(a){var s={x:(a.x[0]+a.x[1])/2,y:(a.y[0]+a.y[1])/2},c=Math.max(1e-12,Math.min(1e12,(e.width-2*n)/(a.x[1]-a.x[0]),(e.height-2*n)/(a.y[1]-a.y[0])));this.centerAt(s.x,s.y,t),this.zoom(c,t)}return this},getGraphBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=(0,E.default)(e.nodeVal),r=function(t){return Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize},o=e.graphData.nodes.filter(t).map((function(e){return{x:e.x,y:e.y,r:r(e)}}));return o.length?{x:[(0,ho.Z)(o,(function(e){return e.x-e.r})),(0,mo.Z)(o,(function(e){return e.x+e.r}))],y:[(0,ho.Z)(o,(function(e){return e.y-e.r})),(0,mo.Z)(o,(function(e){return e.y+e.r}))]}:null},pauseAnimation:function(e){return e.animationFrameRequestId&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),this},resumeAnimation:function(e){return e.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},xi),stateInit:function(){return{lastSetZoom:1,zoom:ao(),forceGraph:new Ei,shadowGraph:(new Ei).cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Oo}},init:function(e,t){e.innerHTML="";var n=document.createElement("div");n.classList.add("force-graph-container"),n.style.position="relative",e.appendChild(n),t.canvas=document.createElement("canvas"),t.backgroundColor&&(t.canvas.style.background=t.backgroundColor),n.appendChild(t.canvas),t.shadowCanvas=document.createElement("canvas");var r=t.canvas.getContext("2d"),o=t.shadowCanvas.getContext("2d"),i={x:-1e12,y:-1e12},a=function(){var e=null,n=window.devicePixelRatio,r=i.x>0&&i.y>0?o.getImageData(i.x*n,i.y*n,1,1):null;return r&&(e=t.colorTracker.lookup(r.data)),e};Hn(t.canvas).call(function(){var e,t,n,r,o=uo,i=lo,a=fo,s=po,c={},u=(0,Bn.Z)("start","drag","end"),l=0,d=0;function f(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",v).on("touchmove.drag",g,Fn).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,s){if(!r&&o.call(this,a,s)){var c=b(this,i.call(this,a,s),a,s,"mouse");c&&(Hn(a.view).on("mousemove.drag",h,Un).on("mouseup.drag",m,Un),Gn(a.view),zn(a),n=!1,e=a.clientX,t=a.clientY,c("start",a))}}function h(r){if(Vn(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>d}c.mouse("drag",r)}function m(e){Hn(e.view).on("mousemove.drag mouseup.drag",null),Wn(e.view,n),Vn(e),c.mouse("end",e)}function v(e,t){if(o.call(this,e,t)){var n,r,a=e.changedTouches,s=i.call(this,e,t),c=a.length;for(n=0;n<c;++n)(r=b(this,s,e,t,a[n].identifier,a[n]))&&(zn(e),r("start",e,a[n]))}}function g(e){var t,n,r=e.changedTouches,o=r.length;for(t=0;t<o;++t)(n=c[r[t].identifier])&&(Vn(e),n("drag",e,r[t]))}function y(e){var t,n,o=e.changedTouches,i=o.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(n=c[o[t].identifier])&&(zn(e),n("end",e,o[t]))}function b(e,t,n,r,o,i){var s,d,p,h=u.copy(),m=Yn(i||n,t);if(null!=(p=a.call(e,new co("beforestart",{sourceEvent:n,target:f,identifier:o,active:l,x:m[0],y:m[1],dx:0,dy:0,dispatch:h}),r)))return s=p.x-m[0]||0,d=p.y-m[1]||0,function n(i,a,u){var v,g=m;switch(i){case"start":c[o]=n,v=l++;break;case"end":delete c[o],--l;case"drag":m=Yn(u||a,t),v=l}h.call(i,e,new co(i,{sourceEvent:a,subject:p,target:f,identifier:o,active:v,x:m[0]+s,y:m[1]+d,dx:m[0]-g[0],dy:m[1]-g[1],dispatch:h}),r)}}return f.filter=function(e){return arguments.length?(o="function"===typeof e?e:so(!!e),f):o},f.container=function(e){return arguments.length?(i="function"===typeof e?e:so(e),f):i},f.subject=function(e){return arguments.length?(a="function"===typeof e?e:so(e),f):a},f.touchable=function(e){return arguments.length?(s="function"===typeof e?e:so(!!e),f):s},f.on=function(){var e=u.on.apply(u,arguments);return e===u?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}().subject((function(){if(!t.enableNodeDrag)return null;var e=a();return e&&"Node"===e.type?e.d:null})).on("start",(function(e){var n=e.subject;n.__initialDragPos={x:n.x,y:n.y,fx:n.fx,fy:n.fy},e.active||(n.fx=n.x,n.fy=n.y),t.canvas.classList.add("grabbable")})).on("drag",(function(e){var n=e.subject,r=n.__initialDragPos,o=e,i=Xr(t.canvas).k,a={x:r.x+(o.x-r.x)/i-n.x,y:r.y+(o.y-r.y)/i-n.y};["x","y"].forEach((function(e){return n["f".concat(e)]=n[e]=r[e]+(o[e]-r[e])/i})),t.forceGraph.d3AlphaTarget(.3).resetCountdown(),t.isPointerDragging=!0,n.__dragged=!0,t.onNodeDrag(n,a)})).on("end",(function(e){var n=e.subject,r=n.__initialDragPos,o={x:n.x-r.x,y:n.y-r.y};void 0===r.fx&&(n.fx=void 0),void 0===r.fy&&(n.fy=void 0),delete n.__initialDragPos,t.forceGraph.d3AlphaTarget(0).resetCountdown(),t.canvas.classList.remove("grabbable"),t.isPointerDragging=!1,n.__dragged&&(delete n.__dragged,t.onNodeDragEnd(n,o))}))),t.zoom(t.zoom.__baseElem=Hn(t.canvas)),t.zoom.__baseElem.on("dblclick.zoom",null),t.zoom.filter((function(e){return!e.button&&t.enableZoomPanInteraction&&(t.enableZoomInteraction||"wheel"!==e.type)&&(t.enablePanInteraction||"wheel"===e.type)})).on("zoom",(function(e){var n=e.transform;[r,o].forEach((function(e){Ci(e),e.translate(n.x,n.y),e.scale(n.k,n.k)})),t.onZoom(si({},n)),t.needsRedraw=!0})).on("end",(function(e){return t.onZoomEnd(si({},e.transform))})),Oi(t),t.forceGraph.onNeedsRedraw((function(){return t.needsRedraw=!0})).onFinishUpdate((function(){Xr(t.canvas).k===t.lastSetZoom&&t.graphData.nodes.length&&(t.zoom.scaleTo(t.zoom.__baseElem,t.lastSetZoom=4/Math.cbrt(t.graphData.nodes.length)),t.needsRedraw=!0)}));var s=document.createElement("div");s.classList.add("graph-tooltip"),n.appendChild(s),["pointermove","pointerdown"].forEach((function(e){return n.addEventListener(e,(function(r){"pointerdown"===e&&(t.isPointerPressed=!0,t.pointerDownEvent=r),!t.isPointerDragging&&"pointermove"===r.type&&t.onBackgroundClick&&(r.pressure>0||t.isPointerPressed)&&("touch"!==r.pointerType||void 0===r.movementX||[r.movementX,r.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0);var o=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(n);i.x=r.pageX-o.left,i.y=r.pageY-o.top,s.style.top="".concat(i.y,"px"),s.style.left="".concat(i.x,"px")}),{passive:!0})})),n.addEventListener("pointerup",(function(e){if(t.isPointerPressed=!1,t.isPointerDragging)t.isPointerDragging=!1;else{var n=[e,t.pointerDownEvent];requestAnimationFrame((function(){if(0===e.button)if(t.hoverObj){var r=t["on".concat(t.hoverObj.type,"Click")];r&&r.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundClick&&t.onBackgroundClick.apply(t,n);if(2===e.button)if(t.hoverObj){var o=t["on".concat(t.hoverObj.type,"RightClick")];o&&o.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundRightClick&&t.onBackgroundRightClick.apply(t,n)}))}}),{passive:!0}),n.addEventListener("contextmenu",(function(e){return!(t.onBackgroundRightClick||t.onNodeRightClick||t.onLinkRightClick)||(e.preventDefault(),!1)})),t.forceGraph(r),t.shadowGraph(o);var c=go()((function(){Ai(o,t.width,t.height),t.shadowGraph.linkWidth((function(e){return(0,E.default)(t.linkWidth)(e)+t.linkHoverPrecision}));var e=Xr(t.canvas);t.shadowGraph.globalScale(e.k).tickFrame()}),800);(this._animationCycle=function e(){var n=!t.autoPauseRedraw||!!t.needsRedraw||t.forceGraph.isEngineRunning()||t.graphData.links.some((function(e){return e.__photons&&e.__photons.length}));if(t.needsRedraw=!1,t.enablePointerInteraction){var o=t.isPointerDragging?null:a();if(o!==t.hoverObj){var i=t.hoverObj,u=i?i.type:null,l=o?o.type:null;if(u&&u!==l){var d=t["on".concat(u,"Hover")];d&&d(null,i.d)}if(l){var f=t["on".concat(l,"Hover")];f&&f(o.d,u===l?i.d:null)}var p=o&&(0,E.default)(t["".concat(o.type.toLowerCase(),"Label")])(o.d)||"";s.style.visibility=p?"visible":"hidden",s.innerHTML=p,t.canvas.classList[o&&t["on".concat(l,"Click")]||!o&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=o}n&&c()}if(n){Ai(r,t.width,t.height);var h=Xr(t.canvas).k;t.onRenderFramePre&&t.onRenderFramePre(r,h),t.forceGraph.globalScale(h).tickFrame(),t.onRenderFramePost&&t.onRenderFramePost(r,h)}Ke.ZP.update(),t.animationFrameRequestId=requestAnimationFrame(e)})()},update:function(e){}}),Mi={width:M().number,height:M().number,graphData:M().shape({nodes:M().arrayOf(M().object).isRequired,links:M().arrayOf(M().object).isRequired}),backgroundColor:M().string,nodeRelSize:M().number,nodeId:M().string,nodeLabel:M().oneOfType([M().string,M().func]),nodeVal:M().oneOfType([M().number,M().string,M().func]),nodeVisibility:M().oneOfType([M().bool,M().string,M().func]),nodeColor:M().oneOfType([M().string,M().func]),nodeAutoColorBy:M().oneOfType([M().string,M().func]),onNodeHover:M().func,onNodeClick:M().func,linkSource:M().string,linkTarget:M().string,linkLabel:M().oneOfType([M().string,M().func]),linkVisibility:M().oneOfType([M().bool,M().string,M().func]),linkColor:M().oneOfType([M().string,M().func]),linkAutoColorBy:M().oneOfType([M().string,M().func]),linkWidth:M().oneOfType([M().number,M().string,M().func]),linkCurvature:M().oneOfType([M().number,M().string,M().func]),linkDirectionalArrowLength:M().oneOfType([M().number,M().string,M().func]),linkDirectionalArrowColor:M().oneOfType([M().string,M().func]),linkDirectionalArrowRelPos:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticles:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticleSpeed:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticleWidth:M().oneOfType([M().number,M().string,M().func]),linkDirectionalParticleColor:M().oneOfType([M().string,M().func]),onLinkHover:M().func,onLinkClick:M().func,dagMode:M().oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:M().number,dagNodeFilter:M().func,onDagError:M().func,d3AlphaMin:M().number,d3AlphaDecay:M().number,d3VelocityDecay:M().number,warmupTicks:M().number,cooldownTicks:M().number,cooldownTime:M().number,onEngineTick:M().func,onEngineStop:M().func,getGraphBbox:M().func},Ii={zoomToFit:M().func,onNodeRightClick:M().func,onNodeDrag:M().func,onNodeDragEnd:M().func,onLinkRightClick:M().func,linkHoverPrecision:M().number,onBackgroundClick:M().func,onBackgroundRightClick:M().func,enablePointerInteraction:M().bool,enableNodeDrag:M().bool},Pi={showNavInfo:M().bool,nodeOpacity:M().number,nodeResolution:M().number,nodeThreeObject:M().oneOfType([M().object,M().string,M().func]),nodeThreeObjectExtend:M().oneOfType([M().bool,M().string,M().func]),linkOpacity:M().number,linkResolution:M().number,linkCurveRotation:M().oneOfType([M().number,M().string,M().func]),linkMaterial:M().oneOfType([M().object,M().string,M().func]),linkThreeObject:M().oneOfType([M().object,M().string,M().func]),linkThreeObjectExtend:M().oneOfType([M().bool,M().string,M().func]),linkPositionUpdate:M().func,linkDirectionalArrowResolution:M().number,linkDirectionalParticleResolution:M().number,forceEngine:M().oneOf(["d3","ngraph"]),ngraphPhysics:M().object,numDimensions:M().oneOf([1,2,3])},Ni=Object.assign({},Mi,Ii,{linkLineDash:M().oneOfType([M().arrayOf(M().number),M().string,M().func]),nodeCanvasObjectMode:M().oneOfType([M().string,M().func]),nodeCanvasObject:M().func,nodePointerAreaPaint:M().func,linkCanvasObjectMode:M().oneOfType([M().string,M().func]),linkCanvasObject:M().func,linkPointerAreaPaint:M().func,autoPauseRedraw:M().bool,minZoom:M().number,maxZoom:M().number,enableZoomInteraction:M().bool,enablePanInteraction:M().bool,onZoom:M().func,onZoomEnd:M().func,onRenderFramePre:M().func,onRenderFramePost:M().func}),Ri=Object.assign({},Mi,Ii,Pi,{enableNavigationControls:M().bool,controlType:M().oneOf(["trackball","orbit","fly"]),rendererConfig:M().object,extraRenderers:M().arrayOf(M().shape({render:M().func.isRequired}))}),Li=Object.assign({},Mi,Pi,{nodeDesc:M().oneOfType([M().string,M().func]),linkDesc:M().oneOfType([M().string,M().func])}),Di=Object.assign({},Mi,Pi,{markerAttrs:M().object,yOffset:M().number,glScale:M().number});const ji=y(A,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"]});ji.displayName="ForceGraphVR",ji.propTypes=Li;const Hi=y(H,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"],initPropNames:["markerAttrs"]});Hi.displayName="ForceGraphAR",Hi.propTypes=Di;const Bi=y(ht,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","cameraPosition","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords","postProcessingComposer","scene","camera","renderer","controls","refresh"],initPropNames:["controlType","rendererConfig","extraRenderers"]});Bi.displayName="ForceGraph3D",Bi.propTypes=Ri;const Fi=y(Si,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Fi.displayName="ForceGraph2D",Fi.propTypes=Ni},37763:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e){return e&&e.__esModule?e:{default:e}}t.default=u;var i=n(3),a=o(n(4)),s=n(14),c=o(n(15));function u(e){var t=e.activeClassName,n=void 0===t?"":t,o=e.activeIndex,a=void 0===o?-1:o,u=e.activeStyle,l=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,p=e.className,h=e.findChunks,m=e.highlightClassName,v=void 0===m?"":m,g=e.highlightStyle,y=void 0===g?{}:g,b=e.highlightTag,E=void 0===b?"mark":b,_=e.sanitize,T=e.searchWords,w=e.textToHighlight,k=e.unhighlightClassName,x=void 0===k?"":k,O=e.unhighlightStyle,C=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),A=(0,i.findAll)({autoEscape:l,caseSensitive:f,findChunks:h,sanitize:_,searchWords:T,textToHighlight:w}),S=E,M=-1,I="",P=void 0,N=(0,c.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",r({className:p},C,{children:A.map((function(e,t){var r=w.substr(e.start,e.end-e.start);if(e.highlight){M++;var o=void 0;o="object"===typeof v?f?v[r]:(v=N(v))[r.toLowerCase()]:v;var i=M===+a;I=o+" "+(i?n:""),P=!0===i&&null!=u?Object.assign({},y,u):y;var c={children:r,className:I,key:t,style:P};return"string"!==typeof S&&(c.highlightIndex=M),(0,s.createElement)(S,c)}return(0,s.createElement)("span",{children:r,className:x,key:t,style:O})}))}))}u.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,c=void 0===s?r:s,u=e.sanitize,l=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:a,sanitize:u,searchWords:l,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var c=a.index,u=i.lastIndex;u>c&&e.push({start:c,end:u}),a.index==i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(7),o=n(8),i=n(9),a=n(10),s=n(11),c=n(12);e.exports=function(e,n){var u="function"===typeof Symbol&&Symbol.iterator;var l="<<anonymous>>",d={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(r.thatReturnsNull),arrayOf:function(e){return h((function(t,n,r,o,i){if("function"!==typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var u=e(a,c,r,o,i+"["+c+"]",s);if(u instanceof Error)return u}return null}))},element:h((function(t,n,r,o,i){var a=t[n];return e(a)?null:new p("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||l;return new p("Invalid "+o+" `"+i+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:l)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,n,r,o){return v(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,r,o,i){if("function"!==typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=g(a);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var l=e(a,u,r,o,i+"."+u,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull;return h((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(f(a,e[s]))return null;return new p("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!==typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(o),n),r.thatReturnsNull}return h((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new p("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return h((function(t,n,r,o,i){var a=t[n],c=g(a);if("object"!==c)return new p("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var l=e[u];if(l){var d=l(a,u,r,o,i+"."+u,s);if(d)return d}}return null}))},exact:function(e){return h((function(t,n,r,o,i){var c=t[n],u=g(c);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var l=a({},t[n],e);for(var d in l){var f=e[d];if(!f)return new p("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var h=f(c,d,r,o,i+"."+d,s);if(h)return h}return null}))}};function f(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function h(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,u,d,f,h,m,v){if(f=f||l,m=m||d,v!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var g=f+":"+d;!r[g]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,f),r[g]=!0,a++)}return null==u[d]?c?null===u[d]?new p("The "+h+" `"+m+"` is marked as required in `"+f+"`, but its value is `null`."):new p("The "+h+" `"+m+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(u,d,f,h,m)}var u=c.bind(null,!1);return u.isRequired=c.bind(null,!0),u}function m(e){return h((function(t,n,r,o,i,a){var s=t[n];return g(s)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(u&&e[u]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!v(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if("undefined"===typeof e||null===e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,d.checkPropTypes=c,d.PropTypes=d,d}}).call(t,n(5))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,c){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,c],d=0;(u=new Error(t.replace(/%s/g,(function(){return l[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(5))},function(e,t,n){(function(t){"use strict";var r=n(7);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!==typeof console&&console.error(i);try{throw new Error(i)}catch(a){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(5))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var a,s,c=i(e),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))r.call(a,l)&&(c[l]=a[l]);if(n){s=n(a);for(var d=0;d<s.length;d++)o.call(a,s[d])&&(c[s[d]]=a[s[d]])}}return c}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var r=n(8),o=n(9),i=n(11),a={};e.exports=function(e,n,s,c,u){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var d;try{r("function"===typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,l,typeof e[l]),d=e[l](n,l,c,s,null,i)}catch(p){d=p}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,l,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";o(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var r=n(7),o=n(8),i=n(11);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){e.exports=n(67294)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,o=[],i=void 0,a=!1,s=function(e,n){return t(e,o[n])},c=function(){for(var t=arguments.length,n=Array(t),c=0;c<t;c++)n[c]=arguments[c];return a&&r===this&&n.length===o.length&&n.every(s)?i:(a=!0,r=this,o=n,i=e.apply(this,n))};return c}}])},69921:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,c=60110,u=60112,l=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),c=b("react.context"),u=b("react.forward_ref"),l=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case l:case d:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case f:case s:return e;default:return t}}case r:return t}}}},59864:function(e,t,n){"use strict";n(69921)},49909:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(67294);t.default=function(e,t,n){var o=r.useRef(void 0);o.current&&n(t,o.current)||(o.current=t),r.useEffect(e,o.current)}},96705:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5272),o=n(85987),i=r.__importDefault(n(49909));t.default=function(e,t){i.default(e,t,o.isDeepEqual)}},85987:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeepEqual=t.off=t.on=t.isClient=void 0;var r=n(5272).__importDefault(n(38252));t.isClient="object"===typeof window,t.on=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.addEventListener.apply(e,t)},t.off=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.removeEventListener.apply(e,t)},t.isDeepEqual=r.default},5272:function(e,t,n){"use strict";n.r(t),n.d(t,{__extends:function(){return o},__assign:function(){return i},__rest:function(){return a},__decorate:function(){return s},__param:function(){return c},__metadata:function(){return u},__awaiter:function(){return l},__generator:function(){return d},__createBinding:function(){return f},__exportStar:function(){return p},__values:function(){return h},__read:function(){return m},__spread:function(){return v},__spreadArrays:function(){return g},__spreadArray:function(){return y},__await:function(){return b},__asyncGenerator:function(){return E},__asyncDelegator:function(){return _},__asyncValues:function(){return T},__makeTemplateObject:function(){return w},__importStar:function(){return x},__importDefault:function(){return O},__classPrivateFieldGet:function(){return C},__classPrivateFieldSet:function(){return A}});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function h(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(r){l(i[0][3],r)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return k(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function A(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},22003:function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function i(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}var a=function(e,t){this.target=t,this.type=e},s=function(e){function t(t,n){var r=e.call(this,"error",n)||this;return r.message=t.message,r.error=t,r}return r(t,e),t}(a),c=function(e){function t(t,n,r){void 0===t&&(t=1e3),void 0===n&&(n="");var o=e.call(this,"close",r)||this;return o.wasClean=!0,o.code=t,o.reason=n,o}return r(t,e),t}(a),u=function(){if("undefined"!==typeof WebSocket)return WebSocket},l={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},d=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(e){r._debug("open event");var t=r._options.minUptime,n=void 0===t?l.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout((function(){return r._acceptOpen()}),n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach((function(e){return r._ws.send(e)})),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach((function(t){return r._callEventListener(e,t)}))},this._handleMessage=function(e){r._debug("message event"),r.onmessage&&r.onmessage(e),r._listeners.message.forEach((function(t){return r._callEventListener(e,t)}))},this._handleError=function(e){r._debug("error event",e.message),r._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),r.onerror&&r.onerror(e),r._debug("exec error listeners"),r._listeners.error.forEach((function(t){return r._callEventListener(e,t)})),r._connect()},this._handleClose=function(e){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach((function(t){return r._callEventListener(e,t)}))},this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this._messageQueue.reduce((function(e,t){return"string"===typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e}),0)+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=void 0===t?l.maxEnqueuedMessages:t;this._messageQueue.length<n&&(this._debug("enqueue",e),this._messageQueue.push(e))}},e.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},e.prototype.dispatchEvent=function(e){var t,n,r=this._listeners[e.type];if(r)try{for(var o=function(e){var t="function"===typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),i=o.next();!i.done;i=o.next()){var a=i.value;this._callEventListener(e,a)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,i(["RWS>"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?l.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?l.minReconnectionDelay:r,i=e.maxReconnectionDelay,a=void 0===i?l.maxReconnectionDelay:i,s=0;return this._retryCount>0&&(s=o*Math.pow(n,this._retryCount-1))>a&&(s=a),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"===typeof e)return Promise.resolve(e);if("function"===typeof e){var t=e();if("string"===typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?l.maxRetries:n,o=t.connectionTimeout,i=void 0===o?l.connectionTimeout:o,a=t.WebSocket,s=void 0===a?u():a;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),"undefined"===typeof(c=s)||!c||2!==c.CLOSING)throw Error("No valid WebSocket class provided");var c;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),i))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new s(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new c(e,t,this))}catch(n){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();t.Z=d},71167:function(e,t,n){const r=n(62854),o=n(20527).renderToString,i=n(18835),a=n(13322),s=n(85330);e.exports=function(e){const t=e||{},n=t.throwOnError||!1;return function(e,i){function a(e){const r=e.properties.className||[],a=r.includes("math-inline"),d=r.includes("math-display");if(!a&&!d)return;const f=s(e);let p;try{p=o(f,c({},t,{displayMode:d,throwOnError:!0}))}catch(h){const r=n?"fail":"message",a=[l,h.name.toLowerCase()].join(":");i[r](h.message,e.position,a),p=o(f,c({},t,{displayMode:d,throwOnError:!1,strict:"ignore"}))}e.children=u.parse(p).children}r(e,"element",a)}};const c=Object.assign,u=i().use(a,{fragment:!0,position:!1}),l="rehype-katex"},67172:function(e){"use strict";e.exports=JSON.parse('{"abandonedHeadElementChild":{"reason":"Unexpected metadata element after head","description":"Unexpected element after head. Expected the element before `</head>`","url":false},"abruptClosingOfEmptyComment":{"reason":"Unexpected abruptly closed empty comment","description":"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},"abruptDoctypePublicIdentifier":{"reason":"Unexpected abruptly closed public identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the public identifier"},"abruptDoctypeSystemIdentifier":{"reason":"Unexpected abruptly closed system identifier","description":"Unexpected `>`. Expected a closing `\\"` or `\'` after the identifier identifier"},"absenceOfDigitsInNumericCharacterReference":{"reason":"Unexpected non-digit at start of numeric character reference","description":"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},"cdataInHtmlContent":{"reason":"Unexpected CDATA section in HTML","description":"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},"characterReferenceOutsideUnicodeRange":{"reason":"Unexpected too big numeric character reference","description":"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},"closingOfElementWithOpenChildElements":{"reason":"Unexpected closing tag with open child elements","description":"Unexpectedly closing tag. Expected other tags to be closed first","url":false},"controlCharacterInInputStream":{"reason":"Unexpected control character","description":"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},"controlCharacterReference":{"reason":"Unexpected control character reference","description":"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},"disallowedContentInNoscriptInHead":{"reason":"Disallowed content inside `<noscript>` in `<head>`","description":"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`","url":false},"duplicateAttribute":{"reason":"Unexpected duplicate attribute","description":"Unexpectedly double attribute. Expected attributes to occur only once"},"endTagWithAttributes":{"reason":"Unexpected attribute on closing tag","description":"Unexpected attribute. Expected `>` instead"},"endTagWithTrailingSolidus":{"reason":"Unexpected slash at end of closing tag","description":"Unexpected `%c-1`. Expected `>` instead"},"endTagWithoutMatchingOpenElement":{"reason":"Unexpected unopened end tag","description":"Unexpected end tag. Expected no end tag or another end tag","url":false},"eofBeforeTagName":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected tag name instead"},"eofInCdata":{"reason":"Unexpected end of file in CDATA","description":"Unexpected end of file. Expected `]]>` to close the CDATA"},"eofInComment":{"reason":"Unexpected end of file in comment","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInDoctype":{"reason":"Unexpected end of file in doctype","description":"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},"eofInElementThatCanContainOnlyText":{"reason":"Unexpected end of file in element that can only contain text","description":"Unexpected end of file. Expected text or a closing tag","url":false},"eofInScriptHtmlCommentLikeText":{"reason":"Unexpected end of file in comment inside script","description":"Unexpected end of file. Expected `--\x3e` to close the comment"},"eofInTag":{"reason":"Unexpected end of file in tag","description":"Unexpected end of file. Expected `>` to close the tag"},"incorrectlyClosedComment":{"reason":"Incorrectly closed comment","description":"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},"incorrectlyOpenedComment":{"reason":"Incorrectly opened comment","description":"Unexpected `%c`. Expected `\x3c!--` to open the comment"},"invalidCharacterSequenceAfterDoctypeName":{"reason":"Invalid sequence after doctype name","description":"Unexpected sequence at `%c`. Expected `public` or `system`"},"invalidFirstCharacterOfTagName":{"reason":"Invalid first character in tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"misplacedDoctype":{"reason":"Misplaced doctype","description":"Unexpected doctype. Expected doctype before head","url":false},"misplacedStartTagForHeadElement":{"reason":"Misplaced `<head>` start tag","description":"Unexpected start tag `<head>`. Expected `<head>` directly after doctype","url":false},"missingAttributeValue":{"reason":"Missing attribute value","description":"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},"missingDoctype":{"reason":"Missing doctype before other content","description":"Expected a `<!doctype html>` before anything else","url":false},"missingDoctypeName":{"reason":"Missing doctype name","description":"Unexpected doctype end at `%c`. Expected `html` instead"},"missingDoctypePublicIdentifier":{"reason":"Missing public identifier in doctype","description":"Unexpected `%c`. Expected identifier for `public` instead"},"missingDoctypeSystemIdentifier":{"reason":"Missing system identifier in doctype","description":"Unexpected `%c`. Expected identifier for `system` instead (suggested: `\\"about:legacy-compat\\"`)"},"missingEndTagName":{"reason":"Missing name in end tag","description":"Unexpected `%c`. Expected an ASCII letter instead"},"missingQuoteBeforeDoctypePublicIdentifier":{"reason":"Missing quote before public identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingQuoteBeforeDoctypeSystemIdentifier":{"reason":"Missing quote before system identifier in doctype","description":"Unexpected `%c`. Expected `\\"` or `\'` instead"},"missingSemicolonAfterCharacterReference":{"reason":"Missing semicolon after character reference","description":"Unexpected `%c`. Expected `;` instead"},"missingWhitespaceAfterDoctypePublicKeyword":{"reason":"Missing whitespace after public identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceAfterDoctypeSystemKeyword":{"reason":"Missing whitespace after system identifier in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBeforeDoctypeName":{"reason":"Missing whitespace before doctype name","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenAttributes":{"reason":"Missing whitespace between attributes","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers":{"reason":"Missing whitespace between public and system identifiers in doctype","description":"Unexpected `%c`. Expected ASCII whitespace instead"},"nestedComment":{"reason":"Unexpected nested comment","description":"Unexpected `\x3c!--`. Expected `--\x3e`"},"nestedNoscriptInHead":{"reason":"Unexpected nested `<noscript>` in `<head>`","description":"Unexpected `<noscript>`. Expected a closing tag or a meta element","url":false},"nonConformingDoctype":{"reason":"Unexpected non-conforming doctype declaration","description":"Expected `<!doctype html>` or `<!doctype html system \\"about:legacy-compat\\">`","url":false},"nonVoidHtmlElementStartTagWithTrailingSolidus":{"reason":"Unexpected trailing slash on start tag of non-void element","description":"Unexpected `/`. Expected `>` instead"},"noncharacterCharacterReference":{"reason":"Unexpected noncharacter code point referenced by character reference","description":"Unexpected code point. Do not use noncharacters in HTML"},"noncharacterInInputStream":{"reason":"Unexpected noncharacter character","description":"Unexpected code point `%x`. Do not use noncharacters in HTML"},"nullCharacterReference":{"reason":"Unexpected NULL character referenced by character reference","description":"Unexpected code point. Do not use NULL characters in HTML"},"openElementsLeftAfterEof":{"reason":"Unexpected end of file","description":"Unexpected end of file. Expected closing tag instead","url":false},"surrogateCharacterReference":{"reason":"Unexpected surrogate character referenced by character reference","description":"Unexpected code point. Do not use lone surrogate characters in HTML"},"surrogateInInputStream":{"reason":"Unexpected surrogate character","description":"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},"unexpectedCharacterAfterDoctypeSystemIdentifier":{"reason":"Invalid character after system identifier in doctype","description":"Unexpected character at `%c`. Expected `>`"},"unexpectedCharacterInAttributeName":{"reason":"Unexpected character in attribute name","description":"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},"unexpectedCharacterInUnquotedAttributeValue":{"reason":"Unexpected character in unquoted attribute value","description":"Unexpected `%c`. Quote the attribute value to include it"},"unexpectedEqualsSignBeforeAttributeName":{"reason":"Unexpected equals sign before attribute name ","description":"Unexpected `%c`. Add an attribute name before it"},"unexpectedNullCharacter":{"reason":"Unexpected NULL character","description":"Unexpected code point `%x`. Do not use NULL characters in HTML"},"unexpectedQuestionMarkInsteadOfTagName":{"reason":"Unexpected question mark instead of tag name","description":"Unexpected `%c`. Expected an ASCII letter instead"},"unexpectedSolidusInTag":{"reason":"Unexpected slash in tag","description":"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},"unknownNamedCharacterReference":{"reason":"Unexpected unknown named character reference","description":"Unexpected character reference. Expected known named character references"}}')},13322:function(e,t,n){"use strict";var r=n(92114),o=n(7045),i=n(67172),a={2:!0,1:!1,0:null};function s(e){return e.charAt(1).toUpperCase()}e.exports=function(e){var t=Object.assign({},e,this.data("settings")),n=t.position;n="boolean"!==typeof n||n,this.Parser=function(e,c){var u=t.fragment?"parseFragment":"parse",l=t.emitParseErrors?function(n){var r,o,u=n.code,l=u.replace(/-[a-z]/g,s),d=t[l],f=void 0===d||null===d||d,p="number"===typeof f?f:f?1:0,h={line:n.startLine,column:n.startCol,offset:n.startOffset},m={line:n.endLine,column:n.endCol,offset:n.endOffset};function v(e){return e.replace(/%c(?:-(\d+))?/g,g).replace(/%x/g,y)}function g(t,r){var o=r?-parseInt(r,10):0,i=e.charAt(n.startOffset+o);return"`"===i?"` ` `":i}function y(){return"0x"+e.charCodeAt(n.startOffset).toString(16).toUpperCase()}p&&(r=i[l]||{reason:"",description:""},(o=c.message(v(r.reason),{start:h,end:m})).source="parse-error",o.ruleId=u,o.fatal=a[p],o.note=v(r.description),o.url=!1===r.url?null:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+u)}:null,d=new o({sourceCodeLocationInfo:n,onParseError:l,scriptingEnabled:!1});return r(d[u](e),{space:t.space,file:c,verbose:t.verbose})}}},27431:function(e,t,n){"use strict";var r=n(76331),o=n(90478);e.exports=function(e){var t=e||{},n=t.createElement;function s(e,r,o){var s=e;return o&&a.has(e)&&(o=o.filter((function(e){return"\n"!==e}))),t.components&&i.call(t.components,e)&&(s=t.components[e],t.passNode&&(r.node=this)),n(s,r,o)}this.Compiler=function(e){var i=r(s,o(e),t.prefix);return"root"===e.type?(i="div"!==i.type||1===e.children.length&&"element"===e.children[0].type?[i]:i.props.children,n(t.Fragment||"div",{},i)):i}};var i={}.hasOwnProperty,a=new Set(["table","thead","tbody","tfoot","tr","th","td"])},76826:function(e){var t={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\u1ea4":"A","\u1eae":"A","\u1eb2":"A","\u1eb4":"A","\u1eb6":"A","\xc6":"AE","\u1ea6":"A","\u1eb0":"A","\u0202":"A","\xc7":"C","\u1e08":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\u1ebe":"E","\u1e16":"E","\u1ec0":"E","\u1e14":"E","\u1e1c":"E","\u0206":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u020a":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\u1ed0":"O","\u1e4c":"O","\u1e52":"O","\u020e":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\u1ea5":"a","\u1eaf":"a","\u1eb3":"a","\u1eb5":"a","\u1eb7":"a","\xe6":"ae","\u1ea7":"a","\u1eb1":"a","\u0203":"a","\xe7":"c","\u1e09":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\u1ebf":"e","\u1e17":"e","\u1ec1":"e","\u1e15":"e","\u1e1d":"e","\u0207":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u020b":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\u1ed1":"o","\u1e4d":"o","\u1e53":"o","\u020f":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u0108":"C","\u0109":"c","\u010a":"C","\u010b":"c","\u010c":"C","\u010d":"c","C\u0306":"C","c\u0306":"c","\u010e":"D","\u010f":"d","\u0110":"D","\u0111":"d","\u0112":"E","\u0113":"e","\u0114":"E","\u0115":"e","\u0116":"E","\u0117":"e","\u0118":"E","\u0119":"e","\u011a":"E","\u011b":"e","\u011c":"G","\u01f4":"G","\u011d":"g","\u01f5":"g","\u011e":"G","\u011f":"g","\u0120":"G","\u0121":"g","\u0122":"G","\u0123":"g","\u0124":"H","\u0125":"h","\u0126":"H","\u0127":"h","\u1e2a":"H","\u1e2b":"h","\u0128":"I","\u0129":"i","\u012a":"I","\u012b":"i","\u012c":"I","\u012d":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0132":"IJ","\u0133":"ij","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u1e30":"K","\u1e31":"k","K\u0306":"K","k\u0306":"k","\u0139":"L","\u013a":"l","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u013f":"L","\u0140":"l","\u0141":"l","\u0142":"l","\u1e3e":"M","\u1e3f":"m","M\u0306":"M","m\u0306":"m","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u0149":"n","N\u0306":"N","n\u0306":"n","\u014c":"O","\u014d":"o","\u014e":"O","\u014f":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","P\u0306":"P","p\u0306":"p","\u0154":"R","\u0155":"r","\u0156":"R","\u0157":"r","\u0158":"R","\u0159":"r","R\u0306":"R","r\u0306":"r","\u0212":"R","\u0213":"r","\u015a":"S","\u015b":"s","\u015c":"S","\u015d":"s","\u015e":"S","\u0218":"S","\u0219":"s","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u021b":"t","\u021a":"T","\u0164":"T","\u0165":"t","\u0166":"T","\u0167":"t","T\u0306":"T","t\u0306":"t","\u0168":"U","\u0169":"u","\u016a":"U","\u016b":"u","\u016c":"U","\u016d":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0216":"U","\u0217":"u","V\u0306":"V","v\u0306":"v","\u0174":"W","\u0175":"w","\u1e82":"W","\u1e83":"w","X\u0306":"X","x\u0306":"x","\u0176":"Y","\u0177":"y","\u0178":"Y","Y\u0306":"Y","y\u0306":"y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u017f":"s","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01cd":"A","\u01ce":"a","\u01cf":"I","\u01d0":"i","\u01d1":"O","\u01d2":"o","\u01d3":"U","\u01d4":"u","\u01d5":"U","\u01d6":"u","\u01d7":"U","\u01d8":"u","\u01d9":"U","\u01da":"u","\u01db":"U","\u01dc":"u","\u1ee8":"U","\u1ee9":"u","\u1e78":"U","\u1e79":"u","\u01fa":"A","\u01fb":"a","\u01fc":"AE","\u01fd":"ae","\u01fe":"O","\u01ff":"o","\xde":"TH","\xfe":"th","\u1e54":"P","\u1e55":"p","\u1e64":"S","\u1e65":"s","X\u0301":"X","x\u0301":"x","\u0403":"\u0413","\u0453":"\u0433","\u040c":"\u041a","\u045c":"\u043a","A\u030b":"A","a\u030b":"a","E\u030b":"E","e\u030b":"e","I\u030b":"I","i\u030b":"i","\u01f8":"N","\u01f9":"n","\u1ed2":"O","\u1ed3":"o","\u1e50":"O","\u1e51":"o","\u1eea":"U","\u1eeb":"u","\u1e80":"W","\u1e81":"w","\u1ef2":"Y","\u1ef3":"y","\u0200":"A","\u0201":"a","\u0204":"E","\u0205":"e","\u0208":"I","\u0209":"i","\u020c":"O","\u020d":"o","\u0210":"R","\u0211":"r","\u0214":"U","\u0215":"u","B\u030c":"B","b\u030c":"b","\u010c\u0323":"C","\u010d\u0323":"c","\xca\u030c":"E","\xea\u030c":"e","F\u030c":"F","f\u030c":"f","\u01e6":"G","\u01e7":"g","\u021e":"H","\u021f":"h","J\u030c":"J","\u01f0":"j","\u01e8":"K","\u01e9":"k","M\u030c":"M","m\u030c":"m","P\u030c":"P","p\u030c":"p","Q\u030c":"Q","q\u030c":"q","\u0158\u0329":"R","\u0159\u0329":"r","\u1e66":"S","\u1e67":"s","V\u030c":"V","v\u030c":"v","W\u030c":"W","w\u030c":"w","X\u030c":"X","x\u030c":"x","Y\u030c":"Y","y\u030c":"y","A\u0327":"A","a\u0327":"a","B\u0327":"B","b\u0327":"b","\u1e10":"D","\u1e11":"d","\u0228":"E","\u0229":"e","\u0190\u0327":"E","\u025b\u0327":"e","\u1e28":"H","\u1e29":"h","I\u0327":"I","i\u0327":"i","\u0197\u0327":"I","\u0268\u0327":"i","M\u0327":"M","m\u0327":"m","O\u0327":"O","o\u0327":"o","Q\u0327":"Q","q\u0327":"q","U\u0327":"U","u\u0327":"u","X\u0327":"X","x\u0327":"x","Z\u0327":"Z","z\u0327":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),i=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i},96464:function(e){"use strict";var t,n="";e.exports=function(e,r){if("string"!==typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var o=e.length*r;if(t!==e||"undefined"===typeof t)t=e,n="";else if(n.length>=o)return n.substr(0,o);for(;o>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,o)}},36582:function(e,t){"use strict";t.parse=function(e){var t=String(e||"").trim();return""===t?[]:t.split(n)},t.stringify=function(e){return e.join(" ").trim()};var n=/[ \t\n\r\f]+/g},57848:function(e,t,n){var r=n(18139);e.exports=function(e,t){var n,o=null;if(!e||"string"!==typeof e)return o;for(var i,a,s=r(e),c="function"===typeof t,u=0,l=s.length;u<l;u++)i=(n=s[u]).property,a=n.value,c?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}},81398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ce}});var r=n(2212),o=n(54505),i=n(15560),a=n(92405),s=n(20216),c=n(16917),u=n(54736),l=n.n(u),d=n(16505),f=n.n(d),p=n(44858),h=n(92539),m=n(86701),v=n(3752),g=n(1527);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t,n){var r=n.objBindAttr,o=void 0===r?"__obj":r,i=n.dataBindAttr,a=void 0===i?"__data":i,s=n.idAccessor,c=n.purge,u=void 0!==c&&c,l=function(e){return e.hasOwnProperty(a)},d=t.filter((function(e){return!l(e)})),f=t.filter(l).map((function(e){return e[a]})),p=u?{enter:e,exit:f,update:[]}:function(e,t,n){var r={enter:[],update:[],exit:[]};if(n){var o=(0,g.Z)(e,n,!1),i=(0,g.Z)(t,n,!1),a=Object.assign({},o,i);Object.entries(a).forEach((function(e){var t=_(e,2),n=t[0],a=t[1],s=o.hasOwnProperty(n)?i.hasOwnProperty(n)?"update":"exit":"enter";r[s].push("update"===s?[o[n],i[n]]:a)}))}else{var s=new Set(e),c=new Set(t);new Set([].concat(T(s),T(c))).forEach((function(e){var t=s.has(e)?c.has(e)?"update":"exit":"enter";r[t].push("update"===t?[e,e]:e)}))}return r}(f,e,s);return p.update=p.update.map((function(e){var t=_(e,2),n=t[0],r=t[1];return n!==r&&(r[o]=n[o],r[o][a]=r),r})),p.exit=p.exit.concat(d.map((function(e){return b({},o,e)}))),p}var O=function(e,t,n,r,o){var i=o.createObj,a=void 0===i?function(e){return{}}:i,s=o.updateObj,c=void 0===s?function(e,t){}:s,u=o.exitObj,l=void 0===u?function(e){}:u,d=o.objBindAttr,f=void 0===d?"__obj":d,p=o.dataBindAttr,h=void 0===p?"__data":p,m=E(o,["createObj","updateObj","exitObj","objBindAttr","dataBindAttr"]),v=x(e,t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({objBindAttr:f,dataBindAttr:h},m)),g=v.enter,_=v.update;v.exit.forEach((function(e){var t=e[f];delete e[f],l(t),r(t)}));var w=function(e){var t=[];return e.forEach((function(e){var n=a(e);n&&(n[h]=e,e[f]=n,t.push(n))})),t}(g);!function(e){e.forEach((function(e){var t=e[f];t&&(t[h]=e,c(t,e))}))}([].concat(T(g),T(_))),w.forEach(n)},C=n(72462),A=n(47646),S=n(17621),M=n.n(S);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){return(N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function B(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function F(e,t,n){return(F=B()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&H(o,n.prototype),o}).apply(null,arguments)}function U(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?z(e):t}function G(e){var t=B();return function(){var n,r=j(e);if(t){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){if(e){if("string"===typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Z=function e(t){t instanceof Array?t.forEach(e):(t.map&&t.map.dispose(),t.dispose())},$=function e(t){t.geometry&&t.geometry.dispose(),t.material&&Z(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(e)},X=function(e){for(;e.children.length;){var t=e.children[0];e.remove(t),$(t)}},Q=["objFilter"];function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.objFilter,o=void 0===r?function(){return!0}:r,i=U(n,Q);return O(e,t.children.filter(o),(function(e){return t.add(e)}),(function(e){t.remove(e),X(e)}),P({objBindAttr:"__threeObj"},i))}var ee=function(e){return isNaN(e)?parseInt(M()(e).toHex(),16):e},te=function(e){return isNaN(e)?M()(e).getAlpha():1},ne=(0,C.Z)(A.Z);function re(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=ne(t(e))}))}var oe=window.THREE?window.THREE:{Group:r.ZAu,Mesh:r.Kj0,MeshLambertMaterial:r.YBo,Color:r.Ilk,BufferGeometry:r.u9r,BufferAttribute:r.TlE,Matrix4:r.yGw,Vector3:r.Pa4,SphereBufferGeometry:r.Aip,CylinderBufferGeometry:r.m_w,TubeBufferGeometry:r.Lcc,ConeBufferGeometry:r._3,Line:r.x12,LineBasicMaterial:r.nls,QuadraticBezierCurve3:r.mXe,CubicBezierCurve3:r.yj7,Box3:r.ZzF},ie={graph:l(),forcelayout:f()},ae=(new oe.BufferGeometry).setAttribute?"setAttribute":"addAttribute",se=(new oe.BufferGeometry).applyMatrix4?"applyMatrix4":"applyMatrix";var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(t){D(o,t);var r=G(o);function o(){var t;R(this,o);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return(t=r.call.apply(r,[this].concat(a))).__kapsuleInstance=e().apply(void 0,[].concat(K(n?[z(t)]:[]),a)),t}return o}(t);return Object.keys(e()).forEach((function(e){return r.prototype[e]=function(){var t,n=(t=this.__kapsuleInstance)[e].apply(t,arguments);return n===this.__kapsuleInstance?this:n}})),r}((0,p.Z)({props:{jsonUrl:{onChange:function(e,t){var n=this;e&&!t.fetchingJson&&(t.fetchingJson=!0,t.onLoading(),fetch(e).then((function(e){return e.json()})).then((function(e){t.fetchingJson=!1,t.onFinishLoading(e),n.graphData(e)})))},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(e,t){t.engineRunning=!1}},numDimensions:{default:3,onChange:function(e,t){var n=t.d3ForceLayout.force("charge");function r(e,t){e.forEach((function(e){delete e[t],delete e["v".concat(t)]}))}n&&n.strength(e>2?-60:-30),e<3&&r(t.graphData.nodes,"z"),e<2&&r(t.graphData.nodes,"y")}},dagMode:{onChange:function(e,t){!e&&"d3"===t.forceEngine&&(t.graphData.nodes||[]).forEach((function(e){return e.fx=e.fy=e.fz=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(e){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4},nodeId:{default:"id"},nodeVal:{default:"val"},nodeResolution:{default:8},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeVisibility:{default:!0},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{},linkResolution:{default:6},linkCurvature:{default:0,triggerUpdate:!1},linkCurveRotation:{default:0,triggerUpdate:!1},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{triggerUpdate:!1},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaDecay(e)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaTarget(e)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.velocityDecay(e)}},ngraphPhysics:{default:{timeStep:20,gravity:-1.2,theta:.8,springLength:30,springCoefficient:8e-4,dragCoefficient:.02}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onLoading:{default:function(){},triggerUpdate:!1},onFinishLoading:{default:function(){},triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1}},methods:{refresh:function(e){return e._flushObjects=!0,e._rerender(),this},d3Force:function(e,t,n){return void 0===n?e.d3ForceLayout.force(t):(e.d3ForceLayout.force(t,n),this)},d3ReheatSimulation:function(e){return e.d3ForceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(e){return e.cntTicks=0,e.startTickTime=new Date,e.engineRunning=!0,this},tickFrame:function(e){var t="ngraph"!==e.forceEngine;return e.engineRunning&&function(){++e.cntTicks>e.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||t&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()<e.d3AlphaMin?(e.engineRunning=!1,e.onEngineStop()):(e.layout[t?"tick":"step"](),e.onEngineTick());e.graphData.nodes.forEach((function(n){var r=n.__threeObj;if(r){var o=t?n:e.layout.getNodePosition(n[e.nodeId]);r.position.x=o.x,r.position.y=o.y||0,r.position.z=o.z||0}}));var n=(0,h.default)(e.linkWidth),r=(0,h.default)(e.linkCurvature),o=(0,h.default)(e.linkCurveRotation),i=(0,h.default)(e.linkThreeObjectExtend);function a(n){var i=t?n:e.layout.getLinkPosition(e.layout.graph.getLink(n.source,n.target).id),a=i[t?"source":"from"],s=i[t?"target":"to"];if(a&&s&&a.hasOwnProperty("x")&&s.hasOwnProperty("x")){var c=r(n);if(c){var u,l=new oe.Vector3(a.x,a.y||0,a.z||0),d=new oe.Vector3(s.x,s.y||0,s.z||0),f=l.distanceTo(d),p=o(n);if(f>0){var h=s.x-a.x,m=s.y-a.y||0,v=(new oe.Vector3).subVectors(d,l),g=v.clone().multiplyScalar(c).cross(0!==h||0!==m?new oe.Vector3(0,0,1):new oe.Vector3(0,1,0)).applyAxisAngle(v.normalize(),p).add((new oe.Vector3).addVectors(l,d).divideScalar(2));u=new oe.QuadraticBezierCurve3(l,g,d)}else{var y=70*c,b=-p,E=b+Math.PI/2;u=new oe.CubicBezierCurve3(l,new oe.Vector3(y*Math.cos(E),y*Math.sin(E),0).add(l),new oe.Vector3(y*Math.cos(b),y*Math.sin(b),0).add(l),d)}n.__curve=u}else n.__curve=null}}e.graphData.links.forEach((function(r){var o=r.__lineObj;if(o){var s=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),c=s[t?"source":"from"],u=s[t?"target":"to"];if(c&&u&&c.hasOwnProperty("x")&&u.hasOwnProperty("x")){a(r);var l=i(r);if(!e.linkPositionUpdate||!e.linkPositionUpdate(l?o.children[1]:o,{start:{x:c.x,y:c.y,z:c.z},end:{x:u.x,y:u.y,z:u.z}},r)||l){var d=30,f=r.__curve,p=o.children.length?o.children[0]:o;if("Line"===p.type){if(f)p.geometry.setFromPoints(f.getPoints(d));else{var h=p.geometry.getAttribute("position");h&&h.array&&6===h.array.length||p.geometry[ae]("position",h=new oe.BufferAttribute(new Float32Array(6),3)),h.array[0]=c.x,h.array[1]=c.y||0,h.array[2]=c.z||0,h.array[3]=u.x,h.array[4]=u.y||0,h.array[5]=u.z||0,h.needsUpdate=!0}p.geometry.computeBoundingSphere()}else if("Mesh"===p.type)if(f){p.geometry.type.match(/^Tube(Buffer)?Geometry$/)||(p.position.set(0,0,0),p.rotation.set(0,0,0),p.scale.set(1,1,1));var m=Math.ceil(10*n(r))/10/2,v=new oe.TubeBufferGeometry(f,d,m,e.linkResolution,!1);p.geometry.dispose(),p.geometry=v}else{if(!p.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)){var g=Math.ceil(10*n(r))/10/2,y=new oe.CylinderBufferGeometry(g,g,1,e.linkResolution,1,!1);y[se]((new oe.Matrix4).makeTranslation(0,.5,0)),y[se]((new oe.Matrix4).makeRotationX(Math.PI/2)),p.geometry.dispose(),p.geometry=y}var b=new oe.Vector3(c.x,c.y||0,c.z||0),E=new oe.Vector3(u.x,u.y||0,u.z||0),_=b.distanceTo(E);p.position.x=b.x,p.position.y=b.y,p.position.z=b.z,p.scale.z=_,p.parent.localToWorld(E),p.lookAt(E)}}}}}))}(),function(){var n=(0,h.default)(e.linkDirectionalArrowRelPos),r=(0,h.default)(e.linkDirectionalArrowLength),o=(0,h.default)(e.nodeVal);e.graphData.links.forEach((function(i){var a=i.__arrowObj;if(a){var s=t?i:e.layout.getLinkPosition(e.layout.graph.getLink(i.source,i.target).id),c=s[t?"source":"from"],u=s[t?"target":"to"];if(c&&u&&c.hasOwnProperty("x")&&u.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,o(c)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,o(u)||1))*e.nodeRelSize,f=r(i),p=n(i),h=i.__curve?function(e){return i.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",c,u,e),y:t("y",c,u,e),z:t("z",c,u,e)}},m=i.__curve?i.__curve.getLength():Math.sqrt(["x","y","z"].map((function(e){return Math.pow((u[e]||0)-(c[e]||0),2)})).reduce((function(e,t){return e+t}),0)),v=l+f+(m-l-d-f)*p,g=h(v/m),y=h((v-f)/m);["x","y","z"].forEach((function(e){return a.position[e]=y[e]}));var b=F(oe.Vector3,K(["x","y","z"].map((function(e){return g[e]}))));a.parent.localToWorld(b),a.lookAt(b)}}}))}(),function(){var n=(0,h.default)(e.linkDirectionalParticleSpeed);e.graphData.links.forEach((function(r){var o=r.__photonsObj&&r.__photonsObj.children,i=r.__singleHopPhotonsObj&&r.__singleHopPhotonsObj.children;if(i&&i.length||o&&o.length){var a=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),s=a[t?"source":"from"],c=a[t?"target":"to"];if(s&&c&&s.hasOwnProperty("x")&&c.hasOwnProperty("x")){var u=n(r),l=r.__curve?function(e){return r.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",s,c,e),y:t("y",s,c,e),z:t("z",s,c,e)}};[].concat(K(o||[]),K(i||[])).forEach((function(e,t){var n="singleHopPhotons"===e.parent.__linkThreeObjType;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=n?0:t/o.length),e.__progressRatio+=u,e.__progressRatio>=1){if(n)return e.parent.remove(e),void X(e);e.__progressRatio=e.__progressRatio%1}var r=e.__progressRatio,i=l(r);["x","y","z"].forEach((function(t){return e.position[t]=i[t]}))}))}}}))}(),this},emitParticle:function(e,t){if(t){if(!t.__singleHopPhotonsObj){var n=new oe.Group;n.__linkThreeObjType="singleHopPhotons",t.__singleHopPhotonsObj=n,e.graphScene.add(n)}var r=(0,h.default)(e.linkDirectionalParticleWidth),o=Math.ceil(10*r(t))/10/2,i=e.linkDirectionalParticleResolution,a=new oe.SphereBufferGeometry(o,i,i),s=(0,h.default)(e.linkColor),c=(0,h.default)(e.linkDirectionalParticleColor)(t)||s(t)||"#f0f0f0",u=new oe.Color(ee(c)),l=3*e.linkOpacity,d=new oe.MeshLambertMaterial({color:u,transparent:!0,opacity:l});t.__singleHopPhotonsObj.add(new oe.Mesh(a,d))}return this},getGraphBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(!e.initialised)return null;var n=function e(n){var r=[];if(n.geometry){n.geometry.computeBoundingBox();var o=new oe.Box3;o.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld),r.push(o)}return r.concat.apply(r,K((n.children||[]).filter((function(e){return!e.hasOwnProperty("__graphObjType")||"node"===e.__graphObjType&&t(e.__data)})).map(e)))}(e.graphScene);return n.length?Object.assign.apply(Object,K(["x","y","z"].map((function(e){return L({},e,[(0,m.Z)(n,(function(t){return t.min[e]})),(0,v.Z)(n,(function(t){return t.max[e]}))])})))):null}},stateInit:function(){return{d3ForceLayout:(0,o.Z)().force("link",(0,i.Z)()).force("charge",(0,a.Z)()).force("center",(0,s.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.graphScene=e},update:function(e,t){var n=function(e){return e.some((function(e){return t.hasOwnProperty(e)}))};if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&n(["nodeAutoColorBy","graphData","nodeColor"])&&re(e.graphData.nodes,(0,h.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&n(["linkAutoColorBy","graphData","linkColor"])&&re(e.graphData.links,(0,h.default)(e.linkAutoColorBy),e.linkColor),e._flushObjects||n(["graphData","nodeThreeObject","nodeThreeObjectExtend","nodeVal","nodeColor","nodeVisibility","nodeRelSize","nodeResolution","nodeOpacity"])){var r=(0,h.default)(e.nodeThreeObject),o=(0,h.default)(e.nodeThreeObjectExtend),i=(0,h.default)(e.nodeVal),a=(0,h.default)(e.nodeColor),s=(0,h.default)(e.nodeVisibility),u={},l={};J(e.graphData.nodes.filter(s),e.graphScene,{purge:e._flushObjects||n(["nodeThreeObject","nodeThreeObjectExtend"]),objFilter:function(e){return"node"===e.__graphObjType},createObj:function(t){var n,i=r(t),a=o(t);return i&&e.nodeThreeObject===i&&(i=i.clone()),i&&!a?n=i:((n=new oe.Mesh).__graphDefaultObj=!0,i&&a&&n.add(i)),n.__graphObjType="node",n},updateObj:function(t,n){if(t.__graphDefaultObj){var r=i(n)||1,o=Math.cbrt(r)*e.nodeRelSize,s=e.nodeResolution;t.geometry.type.match(/^Sphere(Buffer)?Geometry$/)&&t.geometry.parameters.radius===o&&t.geometry.parameters.widthSegments===s||(u.hasOwnProperty(r)||(u[r]=new oe.SphereBufferGeometry(o,s,s)),t.geometry.dispose(),t.geometry=u[r]);var c=a(n),d=new oe.Color(ee(c||"#ffffaa")),f=e.nodeOpacity*te(c);"MeshLambertMaterial"===t.material.type&&t.material.color.equals(d)&&t.material.opacity===f||(l.hasOwnProperty(c)||(l[c]=new oe.MeshLambertMaterial({color:d,transparent:!0,opacity:f})),t.material.dispose(),t.material=l[c])}}})}if(e._flushObjects||n(["graphData","linkThreeObject","linkThreeObjectExtend","linkMaterial","linkColor","linkWidth","linkVisibility","linkResolution","linkOpacity","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution"])){var d=(0,h.default)(e.linkThreeObject),f=(0,h.default)(e.linkThreeObjectExtend),p=(0,h.default)(e.linkMaterial),m=(0,h.default)(e.linkVisibility),v=(0,h.default)(e.linkColor),g=(0,h.default)(e.linkWidth),y={},b={},E={},_=e.graphData.links.filter(m);if(J(_,e.graphScene,{objBindAttr:"__lineObj",purge:e._flushObjects||n(["linkThreeObject","linkThreeObjectExtend","linkWidth"]),objFilter:function(e){return"link"===e.__graphObjType},createObj:function(t){var n,r,o=d(t),i=f(t);if(o&&e.linkThreeObject===o&&(o=o.clone()),!o||i)if(!!g(t))n=new oe.Mesh;else{var a=new oe.BufferGeometry;a[ae]("position",new oe.BufferAttribute(new Float32Array(6),3)),n=new oe.Line(a)}return o?i?((r=new oe.Group).__graphDefaultObj=!0,r.add(n),r.add(o)):r=o:(r=n).__graphDefaultObj=!0,r.renderOrder=10,r.__graphObjType="link",r},updateObj:function(t,n){if(t.__graphDefaultObj){var r=t.children.length?t.children[0]:t,o=Math.ceil(10*g(n))/10,i=!!o;if(i){var a=o/2,s=e.linkResolution;if(!r.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)||r.geometry.parameters.radiusTop!==a||r.geometry.parameters.radialSegments!==s){if(!y.hasOwnProperty(o)){var c=new oe.CylinderBufferGeometry(a,a,1,s,1,!1);c[se]((new oe.Matrix4).makeTranslation(0,.5,0)),c[se]((new oe.Matrix4).makeRotationX(Math.PI/2)),y[o]=c}r.geometry.dispose(),r.geometry=y[o]}}var u=p(n);if(u)r.material=u;else{var l=v(n),d=new oe.Color(ee(l||"#f0f0f0")),f=e.linkOpacity*te(l),h=i?"MeshLambertMaterial":"LineBasicMaterial";if(r.material.type!==h||!r.material.color.equals(d)||r.material.opacity!==f){var m=i?b:E;m.hasOwnProperty(l)||(m[l]=new oe[h]({color:d,transparent:f<1,opacity:f,depthWrite:f>=1})),r.material.dispose(),r.material=m[l]}}}}}),e.linkDirectionalArrowLength||t.hasOwnProperty("linkDirectionalArrowLength")){var T=(0,h.default)(e.linkDirectionalArrowLength),w=(0,h.default)(e.linkDirectionalArrowColor);J(_.filter(T),e.graphScene,{objBindAttr:"__arrowObj",objFilter:function(e){return"arrow"===e.__linkThreeObjType},createObj:function(){var e=new oe.Mesh(void 0,new oe.MeshLambertMaterial({transparent:!0}));return e.__linkThreeObjType="arrow",e},updateObj:function(t,n){var r=T(n),o=e.linkDirectionalArrowResolution;if(!t.geometry.type.match(/^Cone(Buffer)?Geometry$/)||t.geometry.parameters.height!==r||t.geometry.parameters.radialSegments!==o){var i=new oe.ConeBufferGeometry(.25*r,r,o);i.translate(0,r/2,0),i.rotateX(Math.PI/2),t.geometry.dispose(),t.geometry=i}t.material.color=new oe.Color(w(n)||v(n)||"#f0f0f0"),t.material.opacity=3*e.linkOpacity}})}if(e.linkDirectionalParticles||t.hasOwnProperty("linkDirectionalParticles")){var k=(0,h.default)(e.linkDirectionalParticles),x=(0,h.default)(e.linkDirectionalParticleWidth),O=(0,h.default)(e.linkDirectionalParticleColor),C={},A={};J(_.filter(k),e.graphScene,{objBindAttr:"__photonsObj",objFilter:function(e){return"photons"===e.__linkThreeObjType},createObj:function(){var e=new oe.Group;return e.__linkThreeObjType="photons",e},updateObj:function(t,n){var r,o=Math.round(Math.abs(k(n))),i=!!t.children.length&&t.children[0],a=Math.ceil(10*x(n))/10/2,s=e.linkDirectionalParticleResolution;i&&i.geometry.parameters.radius===a&&i.geometry.parameters.widthSegments===s?r=i.geometry:(A.hasOwnProperty(a)||(A[a]=new oe.SphereBufferGeometry(a,s,s)),r=A[a],i&&i.geometry.dispose());var c,u=O(n)||v(n)||"#f0f0f0",l=new oe.Color(ee(u)),d=3*e.linkOpacity;i&&i.material.color.equals(l)&&i.material.opacity===d?c=i.material:(C.hasOwnProperty(u)||(C[u]=new oe.MeshLambertMaterial({color:l,transparent:!0,opacity:d})),c=C[u],i&&i.material.dispose()),J(K(new Array(o)).map((function(e,t){return{idx:t}})),t,{idAccessor:function(e){return e.idx},createObj:function(){return new oe.Mesh(r,c)},updateObj:function(e){e.geometry=r,e.material=c}})}})}}if(e._flushObjects=!1,n(["graphData","nodeId","linkSource","linkTarget","numDimensions","forceEngine","dagMode","dagNodeFilter","dagLevelDistance"])){e.engineRunning=!1,e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]}));var S,M="ngraph"!==e.forceEngine;if(M){(S=e.d3ForceLayout).stop().alpha(1).numDimensions(e.numDimensions).nodes(e.graphData.nodes);var I=e.d3ForceLayout.force("link");I&&I.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var R=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.nodeFilter,a=void 0===i?function(){return!0}:i,s=o.onLoopError,c=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,u={};n.forEach((function(e){return u[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,o=c(n),i=c(r);if(!u.hasOwnProperty(o))throw"Missing source node with id: ".concat(o);if(!u.hasOwnProperty(i))throw"Missing target node with id: ".concat(i);var a=u[o],s=u[i];function c(e){return"object"===N(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(u)),Object.assign.apply(Object,[{}].concat(K(Object.entries(u).filter((function(e){return!W(e,2)[1].skip})).map((function(e){var t=W(e,2);return L({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=0,i=e.length;o<i;o++){var a=e[o];if(-1!==n.indexOf(a))if("continue"===function(){var e=[].concat(K(n.slice(n.indexOf(a))),[a]).map((function(e){return t(e.data)}));return l.some((function(t){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}))||(l.push(e),c(e)),"continue"}())continue;r>a.depth&&(a.depth=r,d(a.out,[].concat(K(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),D=Math.max.apply(Math,K(Object.values(R||[]))),j=e.dagLevelDistance||e.graphData.nodes.length/(D||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var H=function(t,n){return function(r){return t?(R[r[e.nodeId]]-D/2)*j*(n?-1:1):void 0}},B=H(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),F=H(-1!==["td","bu"].indexOf(e.dagMode),"td"===e.dagMode),U=H(-1!==["zin","zout"].indexOf(e.dagMode),"zout"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=B(e),e.fy=F(e),e.fz=U(e)}))}e.d3ForceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,c.Z)((function(t){var n=R[t[e.nodeId]]||-1;return("radialin"===e.dagMode?D-n:n)*j})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null)}else{var z=ie.graph();e.graphData.nodes.forEach((function(t){z.addNode(t[e.nodeId])})),e.graphData.links.forEach((function(e){z.addLink(e.source,e.target)})),(S=ie.forcelayout(z,P({dimensions:e.numDimensions},e.ngraphPhysics))).graph=z}for(var V=0;V<e.warmupTicks&&!(M&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()<e.d3AlphaMin);V++)S[M?"tick":"step"]();e.layout=S,this.resetCountdown()}e.engineRunning=!0,e.onFinishUpdate()}}),(window.THREE?window.THREE:{Group:r.ZAu}).Group,!0)},56594:function(e,t,n){"use strict";n.r(t),n.d(t,{Pathfinding:function(){return m}});var r=function(){};r.computeCentroids=function(e){var t,n,r;for(t=0,n=e.faces.length;t<n;t++)(r=e.faces[t]).centroid=new THREE.Vector3(0,0,0),r.centroid.add(e.vertices[r.a]),r.centroid.add(e.vertices[r.b]),r.centroid.add(e.vertices[r.c]),r.centroid.divideScalar(3)},r.roundNumber=function(e,t){return Number(e.toFixed(t))},r.sample=function(e){return e[Math.floor(Math.random()*e.length)]},r.mergeVertexIds=function(e,t){var n=[];if(e.forEach((function(e){t.indexOf(e)>=0&&n.push(e)})),n.length<2)return[];n.includes(e[0])&&n.includes(e[e.length-1])&&e.push(e.shift()),n.includes(t[0])&&n.includes(t[t.length-1])&&t.push(t.shift()),n=[],e.forEach((function(e){t.includes(e)&&n.push(e)}));for(var r=n[1],o=n[0],i=e.slice();i[0]!==r;)i.push(i.shift());for(var a=0,s=t.slice();s[0]!==o;)if(s.push(s.shift()),a++>10)throw new Error("Unexpected state");return s.shift(),s.pop(),i.concat(s)},r.setPolygonCentroid=function(e,t){var n=new THREE.Vector3,r=t.vertices;e.vertexIds.forEach((function(e){n.add(r[e])})),n.divideScalar(e.vertexIds.length),e.centroid.copy(n)},r.cleanPolygon=function(e,t){for(var n=[],r=t.vertices,o=0;o<e.vertexIds.length;o++){var i,a,s,c=r[e.vertexIds[o]];0===o?(i=e.vertexIds[1],a=e.vertexIds[e.vertexIds.length-1]):o===e.vertexIds.length-1?(i=e.vertexIds[0],a=e.vertexIds[e.vertexIds.length-2]):(i=e.vertexIds[o+1],a=e.vertexIds[o-1]),s=r[a];var u=r[i].clone().sub(c),l=s.clone().sub(c),d=u.angleTo(l);if(d>Math.PI-.01&&d<Math.PI+.01){var f=[];e.neighbours.forEach((function(t){t.vertexIds.includes(e.vertexIds[o])||f.push(t)})),e.neighbours=f}else n.push(e.vertexIds[o])}e.vertexIds=n,this.setPolygonCentroid(e,t)},r.isConvex=function(e,t){var n=t.vertices;if(e.vertexIds.length<3)return!1;for(var r=!0,o=[],i=0;i<e.vertexIds.length;i++){var a,s,c=n[e.vertexIds[i]];0===i?(a=n[e.vertexIds[1]],s=n[e.vertexIds[e.vertexIds.length-1]]):i===e.vertexIds.length-1?(a=n[e.vertexIds[0]],s=n[e.vertexIds[e.vertexIds.length-2]]):(a=n[e.vertexIds[i+1]],s=n[e.vertexIds[i-1]]);var u=a.clone().sub(c),l=s.clone().sub(c),d=u.angleTo(l);if(d===Math.PI||0===d)return!1;var f=u.cross(l).y;o.push(f)}return o.forEach((function(e){0===e&&(r=!1)})),o.forEach(o[0]>0?function(e){e<0&&(r=!1)}:function(e){e>0&&(r=!1)}),r},r.distanceToSquared=function(e,t){var n=e.x-t.x,r=e.y-t.y,o=e.z-t.z;return n*n+r*r+o*o},r.isPointInPoly=function(e,t){for(var n=!1,r=-1,o=e.length,i=o-1;++r<o;i=r)(e[r].z<=t.z&&t.z<e[i].z||e[i].z<=t.z&&t.z<e[r].z)&&t.x<(e[i].x-e[r].x)*(t.z-e[r].z)/(e[i].z-e[r].z)+e[r].x&&(n=!n);return n},r.isVectorInPolygon=function(e,t,n){var r=1e5,o=-1e5,i=[];return t.vertexIds.forEach((function(e){r=Math.min(n[e].y,r),o=Math.max(n[e].y,o),i.push(n[e])})),!!(e.y<o+.5&&e.y>r-.5&&this.isPointInPoly(i,e))},r.triarea2=function(e,t,n){return(n.x-e.x)*(t.z-e.z)-(t.x-e.x)*(n.z-e.z)},r.vequal=function(e,t){return this.distanceToSquared(e,t)<1e-5};var o=function(e){this.content=[],this.scoreFunction=e};o.prototype.push=function(e){this.content.push(e),this.sinkDown(this.content.length-1)},o.prototype.pop=function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.bubbleUp(0)),e},o.prototype.remove=function(e){var t=this.content.indexOf(e),n=this.content.pop();t!==this.content.length-1&&(this.content[t]=n,this.scoreFunction(n)<this.scoreFunction(e)?this.sinkDown(t):this.bubbleUp(t))},o.prototype.size=function(){return this.content.length},o.prototype.rescoreElement=function(e){this.sinkDown(this.content.indexOf(e))},o.prototype.sinkDown=function(e){for(var t=this.content[e];e>0;){var n=(e+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(t)<this.scoreFunction(r)))break;this.content[n]=t,this.content[e]=r,e=n}},o.prototype.bubbleUp=function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var o=e+1<<1,i=o-1,a=null,s=void 0;if(i<t&&(s=this.scoreFunction(this.content[i]))<r&&(a=i),o<t&&this.scoreFunction(this.content[o])<(null===a?r:s)&&(a=o),null===a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}};var i=function(){};i.init=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.f=0,n.g=0,n.h=0,n.cost=1,n.visited=!1,n.closed=!1,n.parent=null}},i.cleanUp=function(e){for(var t=0;t<e.length;t++){var n=e[t];delete n.f,delete n.g,delete n.h,delete n.cost,delete n.visited,delete n.closed,delete n.parent}},i.heap=function(){return new o((function(e){return e.f}))},i.search=function(e,t,n){this.init(e);var r=this.heap();for(r.push(t);r.size()>0;){var o=r.pop();if(o===n){for(var i=o,a=[];i.parent;)a.push(i),i=i.parent;return this.cleanUp(a),a.reverse()}o.closed=!0;for(var s=this.neighbours(e,o),c=0,u=s.length;c<u;c++){var l=s[c];if(!l.closed){var d=o.g+l.cost,f=l.visited;if(!f||d<l.g){if(l.visited=!0,l.parent=o,!l.centroid||!n.centroid)throw new Error("Unexpected state");l.h=l.h||this.heuristic(l.centroid,n.centroid),l.g=d,l.f=l.g+l.h,f?r.rescoreElement(l):r.push(l)}}}}return[]},i.heuristic=function(e,t){return r.distanceToSquared(e,t)},i.neighbours=function(e,t){for(var n=[],r=0;r<t.neighbours.length;r++)n.push(e[t.neighbours[r]]);return n};var a=1,s=function(){};s.buildZone=function(e){var t=this,n=this._buildNavigationMesh(e),o={};n.vertices.forEach((function(e){e.x=r.roundNumber(e.x,2),e.y=r.roundNumber(e.y,2),e.z=r.roundNumber(e.z,2)})),o.vertices=n.vertices;var i=this._buildPolygonGroups(n);o.groups=[];var a=function(e,t){for(var n=0;n<e.length;n++)if(t===e[n])return n};return i.forEach((function(e){var n=[];e.forEach((function(o){var i=o.neighbours.map((function(t){return a(e,t)})),s=o.neighbours.map((function(e){return t._getSharedVerticesInOrder(o,e)}));o.centroid.x=r.roundNumber(o.centroid.x,2),o.centroid.y=r.roundNumber(o.centroid.y,2),o.centroid.z=r.roundNumber(o.centroid.z,2),n.push({id:a(e,o),neighbours:i,vertexIds:o.vertexIds,centroid:o.centroid,portals:s})})),o.groups.push(n)})),o},s._buildNavigationMesh=function(e){return r.computeCentroids(e),e.mergeVertices(),this._buildPolygonsFromGeometry(e)},s._buildPolygonGroups=function(e){var t=[],n=0,r=function(e){e.neighbours.forEach((function(t){void 0===t.group&&(t.group=e.group,r(t))}))};return e.polygons.forEach((function(e){void 0===e.group&&(e.group=n++,r(e)),t[e.group]||(t[e.group]=[]),t[e.group].push(e)})),t},s._buildPolygonNeighbours=function(e,t,n){var r=new Set,o=n.get(e.vertexIds[0]),i=n.get(e.vertexIds[1]),a=n.get(e.vertexIds[2]);o.forEach((function(e){(i.has(e)||a.has(e))&&r.add(t.polygons[e])})),i.forEach((function(e){a.has(e)&&r.add(t.polygons[e])})),e.neighbours=Array.from(r)},s._buildPolygonsFromGeometry=function(e){for(var t=this,n=[],r=e.vertices,o=e.faceVertexUvs,i=new Map,s=0;s<r.length;s++)i.set(s,new Set);e.faces.forEach((function(e){n.push({id:a++,vertexIds:[e.a,e.b,e.c],centroid:e.centroid,normal:e.normal,neighbours:[]}),i.get(e.a).add(n.length-1),i.get(e.b).add(n.length-1),i.get(e.c).add(n.length-1)}));var c={polygons:n,vertices:r,faceVertexUvs:o};return n.forEach((function(e){t._buildPolygonNeighbours(e,c,i)})),c},s._getSharedVerticesInOrder=function(e,t){var n=e.vertexIds,r=t.vertexIds,o=new Set;if(n.forEach((function(e){r.includes(e)&&o.add(e)})),o.size<2)return[];o.has(n[0])&&o.has(n[n.length-1])&&n.push(n.shift()),o.has(r[0])&&o.has(r[r.length-1])&&r.push(r.shift());var i=[];return n.forEach((function(e){r.includes(e)&&i.push(e)})),i};var c=function(){this.portals=[]};c.prototype.push=function(e,t){void 0===t&&(t=e),this.portals.push({left:e,right:t})},c.prototype.stringPull=function(){var e,t,n,o=this.portals,i=[],a=0,s=0,c=0;t=o[0].left,n=o[0].right,i.push(e=o[0].left);for(var u=1;u<o.length;u++){var l=o[u].left,d=o[u].right;if(r.triarea2(e,n,d)<=0){if(!(r.vequal(e,n)||r.triarea2(e,t,d)>0)){i.push(t),t=e=t,n=e,s=a=s,c=a,u=a;continue}n=d,c=u}if(r.triarea2(e,t,l)>=0){if(!(r.vequal(e,t)||r.triarea2(e,n,l)<0)){i.push(n),t=e=n,n=e,s=a=c,c=a,u=a;continue}t=l,s=u}}return 0!==i.length&&r.vequal(i[i.length-1],o[o.length-1].left)||i.push(o[o.length-1].left),this.path=i,i};var u,l,d,f,p,h,m=function(){this.zones={}};m.createZone=function(e){return s.buildZone(e)},m.prototype.setZoneData=function(e,t){this.zones[e]=t},m.prototype.getGroup=function(e,t){if(!this.zones[e])return null;var n=null,o=Math.pow(50,2);return this.zones[e].groups.forEach((function(e,i){e.forEach((function(e){var a=r.distanceToSquared(e.centroid,t);a<o&&(n=i,o=a)}))})),n},m.prototype.getRandomNode=function(e,t,n,o){if(!this.zones[e])return new THREE.Vector3;n=n||null,o=o||0;var i=[];return this.zones[e].groups[t].forEach((function(e){n&&o?r.distanceToSquared(n,e.centroid)<o*o&&i.push(e.centroid):i.push(e.centroid)})),r.sample(i)||new THREE.Vector3},m.prototype.getClosestNode=function(e,t,n,o){void 0===o&&(o=!1);var i=this.zones[t].vertices,a=null,s=1/0;return this.zones[t].groups[n].forEach((function(t){var n=r.distanceToSquared(t.centroid,e);n<s&&(!o||r.isVectorInPolygon(e,t,i))&&(a=t,s=n)})),a},m.prototype.findPath=function(e,t,n,r){var o=this.zones[n].groups[r],a=this.zones[n].vertices,s=this.getClosestNode(e,n,r),u=this.getClosestNode(t,n,r,!0);if(!s||!u)return null;var l=i.search(o,s,u),d=function(e,t){for(var n=0;n<e.neighbours.length;n++)if(e.neighbours[n]===t.id)return e.portals[n]},f=new c;f.push(e);for(var p=0;p<l.length;p++){var h=l[p+1];if(h){var m=d(l[p],h);f.push(a[m[0]],a[m[1]])}}f.push(t),f.stringPull();var v=f.path.map((function(e){return new THREE.Vector3(e.x,e.y,e.z)}));return v.shift(),v},m.prototype.clampStep=(d=new THREE.Vector3,f=new THREE.Plane,p=new THREE.Triangle,h=new THREE.Vector3,function(e,t,n,r,o,i){var a=this.zones[r].vertices,s=this.zones[r].groups[o],c=[n],m={};m[n.id]=0,u=void 0,h.set(0,0,0),l=1/0,f.setFromCoplanarPoints(a[n.vertexIds[0]],a[n.vertexIds[1]],a[n.vertexIds[2]]),f.projectPoint(t,d),t.copy(d);for(var v=c.pop();v;v=c.pop()){p.set(a[v.vertexIds[0]],a[v.vertexIds[1]],a[v.vertexIds[2]]),p.closestPointToPoint(t,d),d.distanceToSquared(t)<l&&(u=v,h.copy(d),l=d.distanceToSquared(t));var g=m[v];if(!(g>2))for(var y=0;y<v.neighbours.length;y++){var b=s[v.neighbours[y]];b.id in m||(c.push(b),m[b.id]=g+1)}}return i.copy(h),u})},31122:function(e,t,n){"use strict";var r=n(2212);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h="undefined"!==typeof window&&window.THREE?window.THREE:{LinearFilter:r.wem,Sprite:r.jyi,SpriteMaterial:r.xeV,Texture:r.xEZ},m=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,n,r,a=u(c);function c(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 1)";return o(this,c),(e=a.call(this,new h.SpriteMaterial({map:new h.Texture})))._text="".concat(t),e._textHeight=n,e._color=r,e._backgroundColor=!1,e._padding=0,e._borderWidth=0,e._borderRadius=0,e._borderColor="white",e._strokeWidth=0,e._strokeColor="white",e._fontFace="Arial",e._fontSize=90,e._fontWeight="normal",e._canvas=document.createElement("canvas"),e._texture=e.material.map,e._texture.minFilter=h.LinearFilter,e._genCanvas(),e}return t=c,(n=[{key:"text",get:function(){return this._text},set:function(e){this._text=e,this._genCanvas()}},{key:"textHeight",get:function(){return this._textHeight},set:function(e){this._textHeight=e,this._genCanvas()}},{key:"color",get:function(){return this._color},set:function(e){this._color=e,this._genCanvas()}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._genCanvas()}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding=e,this._genCanvas()}},{key:"borderWidth",get:function(){return this._borderWidth},set:function(e){this._borderWidth=e,this._genCanvas()}},{key:"borderRadius",get:function(){return this._borderRadius},set:function(e){this._borderRadius=e,this._genCanvas()}},{key:"borderColor",get:function(){return this._borderColor},set:function(e){this._borderColor=e,this._genCanvas()}},{key:"fontFace",get:function(){return this._fontFace},set:function(e){this._fontFace=e,this._genCanvas()}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize=e,this._genCanvas()}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight=e,this._genCanvas()}},{key:"strokeWidth",get:function(){return this._strokeWidth},set:function(e){this._strokeWidth=e,this._genCanvas()}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(e){this._strokeColor=e,this._genCanvas()}},{key:"_genCanvas",value:function(){var e=this,t=this._canvas,n=t.getContext("2d"),r=Array.isArray(this.borderWidth)?this.borderWidth:[this.borderWidth,this.borderWidth],o=r.map((function(t){return t*e.fontSize*.1})),i=(Array.isArray(this.borderRadius)?this.borderRadius:[this.borderRadius,this.borderRadius,this.borderRadius,this.borderRadius]).map((function(t){return t*e.fontSize*.1})),a=Array.isArray(this.padding)?this.padding:[this.padding,this.padding],s=a.map((function(t){return t*e.fontSize*.1})),c=this.text.split("\n"),u="".concat(this.fontWeight," ").concat(this.fontSize,"px ").concat(this.fontFace);n.font=u;var f=Math.max.apply(Math,d(c.map((function(e){return n.measureText(e).width})))),p=this.fontSize*c.length;if(t.width=f+2*o[0]+2*s[0],t.height=p+2*o[1]+2*s[1],this.borderWidth){if(n.strokeStyle=this.borderColor,o[0]){var h=o[0]/2;n.lineWidth=o[0],n.beginPath(),n.moveTo(h,i[0]),n.lineTo(h,t.height-i[3]),n.moveTo(t.width-h,i[1]),n.lineTo(t.width-h,t.height-i[2]),n.stroke()}if(o[1]){var m=o[1]/2;n.lineWidth=o[1],n.beginPath(),n.moveTo(Math.max(o[0],i[0]),m),n.lineTo(t.width-Math.max(o[0],i[1]),m),n.moveTo(Math.max(o[0],i[3]),t.height-m),n.lineTo(t.width-Math.max(o[0],i[2]),t.height-m),n.stroke()}if(this.borderRadius){var v=Math.max.apply(Math,d(o)),g=v/2;n.lineWidth=v,n.beginPath(),[!!i[0]&&[i[0],g,g,i[0]],!!i[1]&&[t.width-i[1],t.width-g,g,i[1]],!!i[2]&&[t.width-i[2],t.width-g,t.height-g,t.height-i[2]],!!i[3]&&[i[3],g,t.height-g,t.height-i[3]]].filter((function(e){return e})).forEach((function(e){var t=l(e,4),r=t[0],o=t[1],i=t[2],a=t[3];n.moveTo(r,i),n.quadraticCurveTo(o,i,o,a)})),n.stroke()}}this.backgroundColor&&(n.fillStyle=this.backgroundColor,this.borderRadius?(n.beginPath(),n.moveTo(o[0],i[0]),[[o[0],i[0],t.width-i[1],o[1],o[1],o[1]],[t.width-o[0],t.width-o[0],t.width-o[0],o[1],i[1],t.height-i[2]],[t.width-o[0],t.width-i[2],i[3],t.height-o[1],t.height-o[1],t.height-o[1]],[o[0],o[0],o[0],t.height-o[1],t.height-i[3],i[0]]].forEach((function(e){var t=l(e,6),r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],c=t[5];n.quadraticCurveTo(r,a,o,s),n.lineTo(i,c)})),n.closePath(),n.fill()):n.fillRect(o[0],o[1],t.width-2*o[0],t.height-2*o[1])),n.translate.apply(n,d(o)),n.translate.apply(n,d(s)),n.font=u,n.fillStyle=this.color,n.textBaseline="bottom";var y=this.strokeWidth>0;y&&(n.lineWidth=this.strokeWidth*this.fontSize/10,n.strokeStyle=this.strokeColor),c.forEach((function(t,r){var o=(f-n.measureText(t).width)/2,i=(r+1)*e.fontSize;y&&n.strokeText(t,o,i),n.fillText(t,o,i)})),this._texture.image=t,this._texture.needsUpdate=!0;var b=this.textHeight*c.length+2*r[1]+2*a[1];this.scale.set(b*t.width/t.height,b,0)}},{key:"clone",value:function(){return new this.constructor(this.text,this.textHeight,this.color).copy(this)}},{key:"copy",value:function(e){return h.Sprite.prototype.copy.call(this,e),this.color=e.color,this.backgroundColor=e.backgroundColor,this.padding=e.padding,this.borderWidth=e.borderWidth,this.borderColor=e.borderColor,this.fontFace=e.fontFace,this.fontSize=e.fontSize,this.fontWeight=e.fontWeight,this.strokeWidth=e.strokeWidth,this.strokeColor=e.strokeColor,this}}])&&i(t.prototype,n),r&&i(t,r),c}(h.Sprite);t.Z=m},6189:function(e,t,n){var r=n(7966);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},71788:function(e){e.exports=function(e){return t.test(e)?e.toLowerCase():n.test(e)?(function(e){return e.replace(o,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(i,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,n=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;var o=/[\W_]+(.|$)/g;var i=/(.)([A-Z]+)/g},7966:function(e,t,n){var r=n(71788);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},28281:function(e,t,n){"use strict";var r=n(43368);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!==typeof i)throw new Error("Expected function as last argument, not "+i);function a(s){var c=e[++t],u=o.call(arguments,0),l=u.slice(1),d=n.length,f=-1;if(s)i(s);else{for(;++f<d;)null!==l[f]&&void 0!==l[f]||(l[f]=n[f]);n=l,c?r(c,a).apply(null,n):i.apply(null,[null].concat(n))}}a.apply(null,[null].concat(n))},use:function(n){if("function"!==typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},43368:function(e){"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,a=t.call(arguments,0),s=e.length>a.length;s&&a.push(o);try{n=e.apply(null,a)}catch(c){if(s&&r)throw c;return o(c)}s||(n&&"function"===typeof n.then?n.then(i,o):n instanceof Error?o(n):i(n))};function o(){r||(r=!0,n.apply(null,arguments))}function i(e){o(null,e)}}},70655:function(e,t,n){"use strict";n.d(t,{pi:function(){return r},_T:function(){return o}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}},18835:function(e,t,n){"use strict";var r=n(18869),o=n(73469),i=n(94470),a=n(33310),s=n(28281),c=n(10939);e.exports=function e(){var t,n=[],o=s(),y={},b=-1;return E.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(m("data",t),y[e]=n,E):l.call(y,e)&&y[e]||null;if(e)return m("data",t),y=e,E;return y},E.freeze=_,E.attachers=n,E.use=function(e){var r;if(m("use",t),null===e||void 0===e);else if("function"===typeof e)l.apply(null,arguments);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?c(e):o(e)}r&&(y.settings=i(y.settings||{},r));return E;function o(e){c(e.plugins),e.settings&&(r=i(r||{},e.settings))}function s(e){if("function"===typeof e)l(e);else{if("object"!==typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l.apply(null,e):o(e)}}function c(e){var t=-1;if(null===e||void 0===e);else{if("object"!==typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function l(e,t){var r=T(e);r?(a(r[1])&&a(t)&&(t=i(!0,r[1],t)),r[1]=t):n.push(u.call(arguments))}},E.parse=function(e){var t,n=c(e);if(_(),p("parse",t=E.Parser),f(t,"parse"))return new t(String(n),n).parse();return t(String(n),n)},E.stringify=function(e,t){var n,r=c(t);if(_(),h("stringify",n=E.Compiler),v(e),f(n,"compile"))return new n(e,r).compile();return n(e,r)},E.run=w,E.runSync=function(e,t){var n,o;return w(e,t,i),g("runSync","run",o),n;function i(e,t){o=!0,n=t,r(e)}},E.process=k,E.processSync=function(e){var t,n;return _(),p("processSync",E.Parser),h("processSync",E.Compiler),k(t=c(e),o),g("processSync","process",n),t;function o(e){n=!0,r(e)}},E;function E(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(i(!0,{},y)),t}function _(){var e,r;if(t)return E;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"===typeof(r=e[0].apply(E,e.slice(1)))&&o.use(r));return t=!0,b=1/0,E}function T(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}function w(e,t,n){if(v(e),_(),n||"function"!==typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,i){o.run(e,c(t),(function(t,o,a){o=o||e,t?i(t):r?r(o):n(null,o,a)}))}r(null,n)}function k(e,t){if(_(),p("process",E.Parser),h("process",E.Compiler),!t)return new Promise(n);function n(n,r){var o=c(e);d.run(E,{file:o},(function(e){e?r(e):n?n(o):t(null,o)}))}n(null,t)}}().freeze();var u=[].slice,l={}.hasOwnProperty,d=s().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,o){e?n(e):(t.tree=r,t.file=o,n())}))})).use((function(e,t){var n=e.stringify(t.tree,t.file);void 0===n||null===n||("string"===typeof n||o(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}));function f(e,t){return"function"===typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function p(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!==typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function m(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function v(e){if(!e||"string"!==typeof e.type)throw new Error("Expected node, got `"+e+"`")}function g(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},73469:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},89859:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrgEntity=void 0;t.getOrgEntity=e=>{const t=n.find((t=>t[0]===e));return t?{name:e,latex:t[1],requireLatexMath:t[2],html:t[3],ascii:t[4],latin1:t[5],utf8:t[6]}:null};const n=[["Agrave","\\`{A}",!1,"&Agrave;","A","\xc0","\xc0"],["agrave","\\`{a}",!1,"&agrave;","a","\xe0","\xe0"],["Aacute","\\'{A}",!1,"&Aacute;","A","\xc1","\xc1"],["aacute","\\'{a}",!1,"&aacute;","a","\xe1","\xe1"],["Acirc","\\^{A}",!1,"&Acirc;","A","\xc2","\xc2"],["acirc","\\^{a}",!1,"&acirc;","a","\xe2","\xe2"],["Amacr","\\bar{A}",!1,"&Amacr;","A","\xc3","\xc3"],["amacr","\\bar{a}",!1,"&amacr;","a","\xe3","\xe3"],["Atilde","\\~{A}",!1,"&Atilde;","A","\xc3","\xc3"],["atilde","\\~{a}",!1,"&atilde;","a","\xe3","\xe3"],["Auml",'\\"{A}',!1,"&Auml;","Ae","\xc4","\xc4"],["auml",'\\"{a}',!1,"&auml;","ae","\xe4","\xe4"],["Aring","\\AA{}",!1,"&Aring;","A","\xc5","\xc5"],["AA","\\AA{}",!1,"&Aring;","A","\xc5","\xc5"],["aring","\\aa{}",!1,"&aring;","a","\xe5","\xe5"],["AElig","\\AE{}",!1,"&AElig;","AE","\xc6","\xc6"],["aelig","\\ae{}",!1,"&aelig;","ae","\xe6","\xe6"],["Ccedil","\\c{C}",!1,"&Ccedil;","C","\xc7","\xc7"],["ccedil","\\c{c}",!1,"&ccedil;","c","\xe7","\xe7"],["Egrave","\\`{E}",!1,"&Egrave;","E","\xc8","\xc8"],["egrave","\\`{e}",!1,"&egrave;","e","\xe8","\xe8"],["Eacute","\\'{E}",!1,"&Eacute;","E","\xc9","\xc9"],["eacute","\\'{e}",!1,"&eacute;","e","\xe9","\xe9"],["Ecirc","\\^{E}",!1,"&Ecirc;","E","\xca","\xca"],["ecirc","\\^{e}",!1,"&ecirc;","e","\xea","\xea"],["Euml",'\\"{E}',!1,"&Euml;","E","\xcb","\xcb"],["euml",'\\"{e}',!1,"&euml;","e","\xeb","\xeb"],["Igrave","\\`{I}",!1,"&Igrave;","I","\xcc","\xcc"],["igrave","\\`{i}",!1,"&igrave;","i","\xec","\xec"],["Iacute","\\'{I}",!1,"&Iacute;","I","\xcd","\xcd"],["iacute","\\'{i}",!1,"&iacute;","i","\xed","\xed"],["Icirc","\\^{I}",!1,"&Icirc;","I","\xce","\xce"],["icirc","\\^{i}",!1,"&icirc;","i","\xee","\xee"],["Iuml",'\\"{I}',!1,"&Iuml;","I","\xcf","\xcf"],["iuml",'\\"{i}',!1,"&iuml;","i","\xef","\xef"],["Ntilde","\\~{N}",!1,"&Ntilde;","N","\xd1","\xd1"],["ntilde","\\~{n}",!1,"&ntilde;","n","\xf1","\xf1"],["Ograve","\\`{O}",!1,"&Ograve;","O","\xd2","\xd2"],["ograve","\\`{o}",!1,"&ograve;","o","\xf2","\xf2"],["Oacute","\\'{O}",!1,"&Oacute;","O","\xd3","\xd3"],["oacute","\\'{o}",!1,"&oacute;","o","\xf3","\xf3"],["Ocirc","\\^{O}",!1,"&Ocirc;","O","\xd4","\xd4"],["ocirc","\\^{o}",!1,"&ocirc;","o","\xf4","\xf4"],["Otilde","\\~{O}",!1,"&Otilde;","O","\xd5","\xd5"],["otilde","\\~{o}",!1,"&otilde;","o","\xf5","\xf5"],["Ouml",'\\"{O}',!1,"&Ouml;","Oe","\xd6","\xd6"],["ouml",'\\"{o}',!1,"&ouml;","oe","\xf6","\xf6"],["Oslash","\\O",!1,"&Oslash;","O","\xd8","\xd8"],["oslash","\\o{}",!1,"&oslash;","o","\xf8","\xf8"],["OElig","\\OE{}",!1,"&OElig;","OE","OE","\u0152"],["oelig","\\oe{}",!1,"&oelig;","oe","oe","\u0153"],["Scaron","\\v{S}",!1,"&Scaron;","S","S","\u0160"],["scaron","\\v{s}",!1,"&scaron;","s","s","\u0161"],["szlig","\\ss{}",!1,"&szlig;","ss","\xdf","\xdf"],["Ugrave","\\`{U}",!1,"&Ugrave;","U","\xd9","\xd9"],["ugrave","\\`{u}",!1,"&ugrave;","u","\xf9","\xf9"],["Uacute","\\'{U}",!1,"&Uacute;","U","\xda","\xda"],["uacute","\\'{u}",!1,"&uacute;","u","\xfa","\xfa"],["Ucirc","\\^{U}",!1,"&Ucirc;","U","\xdb","\xdb"],["ucirc","\\^{u}",!1,"&ucirc;","u","\xfb","\xfb"],["Uuml",'\\"{U}',!1,"&Uuml;","Ue","\xdc","\xdc"],["uuml",'\\"{u}',!1,"&uuml;","ue","\xfc","\xfc"],["Yacute","\\'{Y}",!1,"&Yacute;","Y","\xdd","\xdd"],["yacute","\\'{y}",!1,"&yacute;","y","\xfd","\xfd"],["Yuml",'\\"{Y}',!1,"&Yuml;","Y","Y","\u0178"],["yuml",'\\"{y}',!1,"&yuml;","y","\xff","\xff"],["fnof","\\textit{f}",!1,"&fnof;","f","f","\u0192"],["real","\\Re",!0,"&real;","R","R","\u211c"],["image","\\Im",!0,"&image;","I","I","\u2111"],["weierp","\\wp",!0,"&weierp;","P","P","\u2118"],["ell","\\ell",!0,"&ell;","ell","ell","\u2113"],["imath","\\imath",!0,"&imath;","[dotless i]","dotless i","\u0131"],["jmath","\\jmath",!0,"&jmath;","[dotless j]","dotless j","\u0237"],["Alpha","A",!1,"&Alpha;","Alpha","Alpha","\u0391"],["alpha","\\alpha",!0,"&alpha;","alpha","alpha","\u03b1"],["Beta","B",!1,"&Beta;","Beta","Beta","\u0392"],["beta","\\beta",!0,"&beta;","beta","beta","\u03b2"],["Gamma","\\Gamma",!0,"&Gamma;","Gamma","Gamma","\u0393"],["gamma","\\gamma",!0,"&gamma;","gamma","gamma","\u03b3"],["Delta","\\Delta",!0,"&Delta;","Delta","Delta","\u0394"],["delta","\\delta",!0,"&delta;","delta","delta","\u03b4"],["Epsilon","E",!1,"&Epsilon;","Epsilon","Epsilon","\u0395"],["epsilon","\\epsilon",!0,"&epsilon;","epsilon","epsilon","\u03b5"],["varepsilon","\\varepsilon",!0,"&epsilon;","varepsilon","varepsilon","\u03b5"],["Zeta","Z",!1,"&Zeta;","Zeta","Zeta","\u0396"],["zeta","\\zeta",!0,"&zeta;","zeta","zeta","\u03b6"],["Eta","H",!1,"&Eta;","Eta","Eta","\u0397"],["eta","\\eta",!0,"&eta;","eta","eta","\u03b7"],["Theta","\\Theta",!0,"&Theta;","Theta","Theta","\u0398"],["theta","\\theta",!0,"&theta;","theta","theta","\u03b8"],["thetasym","\\vartheta",!0,"&thetasym;","theta","theta","\u03d1"],["vartheta","\\vartheta",!0,"&thetasym;","theta","theta","\u03d1"],["Iota","I",!1,"&Iota;","Iota","Iota","\u0399"],["iota","\\iota",!0,"&iota;","iota","iota","\u03b9"],["Kappa","K",!1,"&Kappa;","Kappa","Kappa","\u039a"],["kappa","\\kappa",!0,"&kappa;","kappa","kappa","\u03ba"],["Lambda","\\Lambda",!0,"&Lambda;","Lambda","Lambda","\u039b"],["lambda","\\lambda",!0,"&lambda;","lambda","lambda","\u03bb"],["Mu","M",!1,"&Mu;","Mu","Mu","\u039c"],["mu","\\mu",!0,"&mu;","mu","mu","\u03bc"],["nu","\\nu",!0,"&nu;","nu","nu","\u03bd"],["Nu","N",!1,"&Nu;","Nu","Nu","\u039d"],["Xi","\\Xi",!0,"&Xi;","Xi","Xi","\u039e"],["xi","\\xi",!0,"&xi;","xi","xi","\u03be"],["Omicron","O",!1,"&Omicron;","Omicron","Omicron","\u039f"],["omicron","\\textit{o}",!1,"&omicron;","omicron","omicron","\u03bf"],["Pi","\\Pi",!0,"&Pi;","Pi","Pi","\u03a0"],["pi","\\pi",!0,"&pi;","pi","pi","\u03c0"],["Rho","P",!1,"&Rho;","Rho","Rho","\u03a1"],["rho","\\rho",!0,"&rho;","rho","rho","\u03c1"],["Sigma","\\Sigma",!0,"&Sigma;","Sigma","Sigma","\u03a3"],["sigma","\\sigma",!0,"&sigma;","sigma","sigma","\u03c3"],["sigmaf","\\varsigma",!0,"&sigmaf;","sigmaf","sigmaf","\u03c2"],["varsigma","\\varsigma",!0,"&sigmaf;","varsigma","varsigma","\u03c2"],["Tau","T",!1,"&Tau;","Tau","Tau","\u03a4"],["Upsilon","\\Upsilon",!0,"&Upsilon;","Upsilon","Upsilon","\u03a5"],["upsih","\\Upsilon",!0,"&upsih;","upsilon","upsilon","\u03d2"],["upsilon","\\upsilon",!0,"&upsilon;","upsilon","upsilon","\u03c5"],["Phi","\\Phi",!0,"&Phi;","Phi","Phi","\u03a6"],["phi","\\phi",!0,"&phi;","phi","phi","\u0278"],["varphi","\\varphi",!0,"&varphi;","varphi","varphi","\u03c6"],["Chi","X",!1,"&Chi;","Chi","Chi","\u03a7"],["chi","\\chi",!0,"&chi;","chi","chi","\u03c7"],["acutex","\\acute x",!0,"&acute;x","'x","'x","\ud835\udc65\u0301"],["Psi","\\Psi",!0,"&Psi;","Psi","Psi","\u03a8"],["psi","\\psi",!0,"&psi;","psi","psi","\u03c8"],["tau","\\tau",!0,"&tau;","tau","tau","\u03c4"],["Omega","\\Omega",!0,"&Omega;","Omega","Omega","\u03a9"],["omega","\\omega",!0,"&omega;","omega","omega","\u03c9"],["piv","\\varpi",!0,"&piv;","omega-pi","omega-pi","\u03d6"],["varpi","\\varpi",!0,"&piv;","omega-pi","omega-pi","\u03d6"],["partial","\\partial",!0,"&part;","[partial differential]","[partial differential]","\u2202"],["alefsym","\\aleph",!0,"&alefsym;","aleph","aleph","\u2135"],["aleph","\\aleph",!0,"&aleph;","aleph","aleph","\u2135"],["gimel","\\gimel",!0,"&gimel;","gimel","gimel","\u2137"],["beth","\\beth",!0,"&beth;","beth","beth","\u05d1"],["dalet","\\daleth",!0,"&daleth;","dalet","dalet","\u05d3"],["ETH","\\DH{}",!1,"&ETH;","D","\xd0","\xd0"],["eth","\\dh{}",!1,"&eth;","dh","\xf0","\xf0"],["THORN","\\TH{}",!1,"&THORN;","TH","\xde","\xde"],["thorn","\\th{}",!1,"&thorn;","th","\xfe","\xfe"],["dots","\\dots{}",!1,"&hellip;","...","...","\u2026"],["cdots","\\cdots{}",!0,"&ctdot;","...","...","\u22ef"],["hellip","\\dots{}",!1,"&hellip;","...","...","\u2026"],["middot","\\textperiodcentered{}",!1,"&middot;",".","\xb7","\xb7"],["iexcl","!`",!1,"&iexcl;","!","\xa1","\xa1"],["iquest","?`",!1,"&iquest;","?","\xbf","\xbf"],["shy","\\-",!1,"&shy;","","",""],["ndash","--",!1,"&ndash;","-","-","\u2013"],["mdash","---",!1,"&mdash;","--","--","\u2014"],["quot","\\textquotedbl{}",!1,"&quot;",'"','"','"'],["acute","\\textasciiacute{}",!1,"&acute;","'","\xb4","\xb4"],["ldquo","\\textquotedblleft{}",!1,"&ldquo;",'"','"',"\u201c"],["rdquo","\\textquotedblright{}",!1,"&rdquo;",'"','"',"\u201d"],["bdquo","\\quotedblbase{}",!1,"&bdquo;",'"','"',"\u201e"],["lsquo","\\textquoteleft{}",!1,"&lsquo;","`","`","\u2018"],["rsquo","\\textquoteright{}",!1,"&rsquo;","'","'","\u2019"],["sbquo","\\quotesinglbase{}",!1,"&sbquo;",",",",","\u201a"],["laquo","\\guillemotleft{}",!1,"&laquo;","<<","\xab","\xab"],["raquo","\\guillemotright{}",!1,"&raquo;",">>","\xbb","\xbb"],["lsaquo","\\guilsinglleft{}",!1,"&lsaquo;","<","<","\u2039"],["rsaquo","\\guilsinglright{}",!1,"&rsaquo;",">",">","\u203a"],["circ","\\^{}",!1,"&circ;","^","^","\u2218"],["vert","\\vert{}",!0,"&vert;","|","|","|"],["vbar","|",!1,"|","|","|","|"],["brvbar","\\textbrokenbar{}",!1,"&brvbar;","|","\xa6","\xa6"],["S","\\S",!1,"&sect;","paragraph","\xa7","\xa7"],["sect","\\S",!1,"&sect;","paragraph","\xa7","\xa7"],["amp","\\&",!1,"&amp;","&","&","&"],["lt","\\textless{}",!1,"&lt;","<","<","<"],["gt","\\textgreater{}",!1,"&gt;",">",">",">"],["tilde","\\textasciitilde{}",!1,"~","~","~","~"],["slash","/",!1,"/","/","/","/"],["plus","+",!1,"+","+","+","+"],["under","\\_",!1,"_","_","_","_"],["equal","=",!1,"=","=","=","="],["asciicirc","\\textasciicircum{}",!1,"^","^","^","^"],["dagger","\\textdagger{}",!1,"&dagger;","[dagger]","[dagger]","\u2020"],["dag","\\dag{}",!1,"&dagger;","[dagger]","[dagger]","\u2020"],["Dagger","\\textdaggerdbl{}",!1,"&Dagger;","[doubledagger]","[doubledagger]","\u2021"],["ddag","\\ddag{}",!1,"&Dagger;","[doubledagger]","[doubledagger]","\u2021"],["nbsp","~",!1,"&nbsp;"," ","\xa0","\xa0"],["ensp","\\hspace*{.5em}",!1,"&ensp;"," "," ","\u2002"],["emsp","\\hspace*{1em}",!1,"&emsp;"," "," ","\u2003"],["thinsp","\\hspace*{.2em}",!1,"&thinsp;"," "," ","\u2009"],["curren","\\textcurrency{}",!1,"&curren;","curr.","\xa4","\xa4"],["cent","\\textcent{}",!1,"&cent;","cent","\xa2","\xa2"],["pound","\\pounds{}",!1,"&pound;","pound","\xa3","\xa3"],["yen","\\textyen{}",!1,"&yen;","yen","\xa5","\xa5"],["euro","\\texteuro{}",!1,"&euro;","EUR","EUR","\u20ac"],["EUR","\\texteuro{}",!1,"&euro;","EUR","EUR","\u20ac"],["dollar","\\$",!1,"$","$","$","$"],["USD","\\$",!1,"$","$","$","$"],["copy","\\textcopyright{}",!1,"&copy;","(c)","\xa9","\xa9"],["reg","\\textregistered{}",!1,"&reg;","(r)","\xae","\xae"],["trade","\\texttrademark{}",!1,"&trade;","TM","TM","\u2122"],["minus","\\minus",!0,"&minus;","-","-","\u2212"],["pm","\\textpm{}",!1,"&plusmn;","+-","\xb1","\xb1"],["plusmn","\\textpm{}",!1,"&plusmn;","+-","\xb1","\xb1"],["times","\\texttimes{}",!1,"&times;","*","\xd7","\xd7"],["frasl","/",!1,"&frasl;","/","/","\u2044"],["colon","\\colon",!0,":",":",":",":"],["div","\\textdiv{}",!1,"&divide;","/","\xf7","\xf7"],["frac12","\\textonehalf{}",!1,"&frac12;","1/2","\xbd","\xbd"],["frac14","\\textonequarter{}",!1,"&frac14;","1/4","\xbc","\xbc"],["frac34","\\textthreequarters{}",!1,"&frac34;","3/4","\xbe","\xbe"],["permil","\\textperthousand{}",!1,"&permil;","per thousand","per thousand","\u2030"],["sup1","\\textonesuperior{}",!1,"&sup1;","^1","\xb9","\xb9"],["sup2","\\texttwosuperior{}",!1,"&sup2;","^2","\xb2","\xb2"],["sup3","\\textthreesuperior{}",!1,"&sup3;","^3","\xb3","\xb3"],["radic","\\sqrt{\\,}",!0,"&radic;","[square root]","[square root]","\u221a"],["sum","\\sum",!0,"&sum;","[sum]","[sum]","\u2211"],["prod","\\prod",!0,"&prod;","[product]","[n-ary product]","\u220f"],["micro","\\textmu{}",!1,"&micro;","micro","\xb5","\xb5"],["macr","\\textasciimacron{}",!1,"&macr;","[macron]","\xaf","\xaf"],["deg","\\textdegree{}",!1,"&deg;","degree","\xb0","\xb0"],["prime","\\prime",!0,"&prime;","'","'","\u2032"],["Prime","\\prime{}\\prime",!0,"&Prime;","''","''","\u2033"],["infin","\\infty",!0,"&infin;","[infinity]","[infinity]","\u221e"],["infty","\\infty",!0,"&infin;","[infinity]","[infinity]","\u221e"],["prop","\\propto",!0,"&prop;","[proportional to]","[proportional to]","\u221d"],["propto","\\propto",!0,"&prop;","[proportional to]","[proportional to]","\u221d"],["not","\\textlnot{}",!1,"&not;","[angled dash]","\xac","\xac"],["neg","\\neg{}",!0,"&not;","[angled dash]","\xac","\xac"],["land","\\land",!0,"&and;","[logical and]","[logical and]","\u2227"],["wedge","\\wedge",!0,"&and;","[logical and]","[logical and]","\u2227"],["lor","\\lor",!0,"&or;","[logical or]","[logical or]","\u2228"],["vee","\\vee",!0,"&or;","[logical or]","[logical or]","\u2228"],["cap","\\cap",!0,"&cap;","[intersection]","[intersection]","\u2229"],["cup","\\cup",!0,"&cup;","[union]","[union]","\u222a"],["smile","\\smile",!0,"&smile;","[cup product]","[cup product]","\u2323"],["frown","\\frown",!0,"&frown;","[Cap product]","[cap product]","\u2322"],["int","\\int",!0,"&int;","[integral]","[integral]","\u222b"],["therefore","\\therefore",!0,"&there4;","[therefore]","[therefore]","\u2234"],["there4","\\therefore",!0,"&there4;","[therefore]","[therefore]","\u2234"],["because","\\because",!0,"&because;","[because]","[because]","\u2235"],["sim","\\sim",!0,"&sim;","~","~","\u223c"],["cong","\\cong",!0,"&cong;","[approx. equal to]","[approx. equal to]","\u2245"],["simeq","\\simeq",!0,"&cong;","[approx. equal to]","[approx. equal to]","\u2245"],["asymp","\\asymp",!0,"&asymp;","[almost equal to]","[almost equal to]","\u2248"],["approx","\\approx",!0,"&asymp;","[almost equal to]","[almost equal to]","\u2248"],["ne","\\ne",!0,"&ne;","[not equal to]","[not equal to]","\u2260"],["neq","\\neq",!0,"&ne;","[not equal to]","[not equal to]","\u2260"],["equiv","\\equiv",!0,"&equiv;","[identical to]","[identical to]","\u2261"],["triangleq","\\triangleq",!0,"&triangleq;","[defined to]","[defined to]","\u225c"],["le","\\le",!0,"&le;","<=","<=","\u2264"],["leq","\\le",!0,"&le;","<=","<=","\u2264"],["ge","\\ge",!0,"&ge;",">=",">=","\u2265"],["geq","\\ge",!0,"&ge;",">=",">=","\u2265"],["lessgtr","\\lessgtr",!0,"&lessgtr;","[less than or greater than]","[less than or greater than]","\u2276"],["lesseqgtr","\\lesseqgtr",!0,"&lesseqgtr;","[less than or equal or greater than or equal]","[less than or equal or greater than or equal]","\u22da"],["ll","\\ll",!0,"&Lt;","<<","<<","\u226a"],["Ll","\\lll",!0,"&Ll;","<<<","<<<","\u22d8"],["lll","\\lll",!0,"&Ll;","<<<","<<<","\u22d8"],["gg","\\gg",!0,"&Gt;",">>",">>","\u226b"],["Gg","\\ggg",!0,"&Gg;",">>>",">>>","\u22d9"],["ggg","\\ggg",!0,"&Gg;",">>>",">>>","\u22d9"],["prec","\\prec",!0,"&pr;","[precedes]","[precedes]","\u227a"],["preceq","\\preceq",!0,"&prcue;","[precedes or equal]","[precedes or equal]","\u227c"],["preccurlyeq","\\preccurlyeq",!0,"&prcue;","[precedes or equal]","[precedes or equal]","\u227c"],["succ","\\succ",!0,"&sc;","[succeeds]","[succeeds]","\u227b"],["succeq","\\succeq",!0,"&sccue;","[succeeds or equal]","[succeeds or equal]","\u227d"],["succcurlyeq","\\succcurlyeq",!0,"&sccue;","[succeeds or equal]","[succeeds or equal]","\u227d"],["sub","\\subset",!0,"&sub;","[subset of]","[subset of]","\u2282"],["subset","\\subset",!0,"&sub;","[subset of]","[subset of]","\u2282"],["sup","\\supset",!0,"&sup;","[superset of]","[superset of]","\u2283"],["supset","\\supset",!0,"&sup;","[superset of]","[superset of]","\u2283"],["nsub","\\not\\subset",!0,"&nsub;","[not a subset of]","[not a subset of","\u2284"],["sube","\\subseteq",!0,"&sube;","[subset of or equal to]","[subset of or equal to]","\u2286"],["nsup","\\not\\supset",!0,"&nsup;","[not a superset of]","[not a superset of]","\u2285"],["supe","\\supseteq",!0,"&supe;","[superset of or equal to]","[superset of or equal to]","\u2287"],["setminus","\\setminus",!0,"&setminus;",'" ','"',"\u29f5"],["forall","\\forall",!0,"&forall;","[for all]","[for all]","\u2200"],["exist","\\exists",!0,"&exist;","[there exists]","[there exists]","\u2203"],["exists","\\exists",!0,"&exist;","[there exists]","[there exists]","\u2203"],["nexist","\\nexists",!0,"&exist;","[there does not exists]","[there does not  exists]","\u2204"],["nexists","\\nexists",!0,"&exist;","[there does not exists]","[there does not  exists]","\u2204"],["empty","\\emptyset",!0,"&empty;","[empty set]","[empty set]","\u2205"],["emptyset","\\emptyset",!0,"&empty;","[empty set]","[empty set]","\u2205"],["isin","\\in",!0,"&isin;","[element of]","[element of]","\u2208"],["in","\\in",!0,"&isin;","[element of]","[element of]","\u2208"],["notin","\\notin",!0,"&notin;","[not an element of]","[not an element of]","\u2209"],["ni","\\ni",!0,"&ni;","[contains as member]","[contains as member]","\u220b"],["nabla","\\nabla",!0,"&nabla;","[nabla]","[nabla]","\u2207"],["ang","\\angle",!0,"&ang;","[angle]","[angle]","\u2220"],["angle","\\angle",!0,"&ang;","[angle]","[angle]","\u2220"],["perp","\\perp",!0,"&perp;","[up tack]","[up tack]","\u22a5"],["parallel","\\parallel",!0,"&parallel;","||","||","\u2225"],["sdot","\\cdot",!0,"&sdot;","[dot]","[dot]","\u22c5"],["cdot","\\cdot",!0,"&sdot;","[dot]","[dot]","\u22c5"],["lceil","\\lceil",!0,"&lceil;","[left ceiling]","[left ceiling]","\u2308"],["rceil","\\rceil",!0,"&rceil;","[right ceiling]","[right ceiling]","\u2309"],["lfloor","\\lfloor",!0,"&lfloor;","[left floor]","[left floor]","\u230a"],["rfloor","\\rfloor",!0,"&rfloor;","[right floor]","[right floor]","\u230b"],["lang","\\langle",!0,"&lang;","<","<","\u27e8"],["rang","\\rangle",!0,"&rang;",">",">","\u27e9"],["langle","\\langle",!0,"&lang;","<","<","\u27e8"],["rangle","\\rangle",!0,"&rang;",">",">","\u27e9"],["hbar","\\hbar",!0,"&hbar;","hbar","hbar","\u210f"],["mho","\\mho",!0,"&mho;","mho","mho","\u2127"],["larr","\\leftarrow",!0,"&larr;","<-","<-","\u2190"],["leftarrow","\\leftarrow",!0,"&larr;","<-","<-","\u2190"],["gets","\\gets",!0,"&larr;","<-","<-","\u2190"],["lArr","\\Leftarrow",!0,"&lArr;","<=","<=","\u21d0"],["Leftarrow","\\Leftarrow",!0,"&lArr;","<=","<=","\u21d0"],["uarr","\\uparrow",!0,"&uarr;","[uparrow]","[uparrow]","\u2191"],["uparrow","\\uparrow",!0,"&uarr;","[uparrow]","[uparrow]","\u2191"],["uArr","\\Uparrow",!0,"&uArr;","[dbluparrow]","[dbluparrow]","\u21d1"],["Uparrow","\\Uparrow",!0,"&uArr;","[dbluparrow]","[dbluparrow]","\u21d1"],["rarr","\\rightarrow",!0,"&rarr;","->","->","\u2192"],["to","\\to",!0,"&rarr;","->","->","\u2192"],["rightarrow","\\rightarrow",!0,"&rarr;","->","->","\u2192"],["rArr","\\Rightarrow",!0,"&rArr;","=>","=>","\u21d2"],["Rightarrow","\\Rightarrow",!0,"&rArr;","=>","=>","\u21d2"],["darr","\\downarrow",!0,"&darr;","[downarrow]","[downarrow]","\u2193"],["downarrow","\\downarrow",!0,"&darr;","[downarrow]","[downarrow]","\u2193"],["dArr","\\Downarrow",!0,"&dArr;","[dbldownarrow]","[dbldownarrow]","\u21d3"],["Downarrow","\\Downarrow",!0,"&dArr;","[dbldownarrow]","[dbldownarrow]","\u21d3"],["harr","\\leftrightarrow",!0,"&harr;","<->","<->","\u2194"],["leftrightarrow","\\leftrightarrow",!0,"&harr;","<->","<->","\u2194"],["hArr","\\Leftrightarrow",!0,"&hArr;","<=>","<=>","\u21d4"],["Leftrightarrow","\\Leftrightarrow",!0,"&hArr;","<=>","<=>","\u21d4"],["crarr","\\hookleftarrow",!0,"&crarr;","<-'","<-'","\u21b5"],["hookleftarrow","\\hookleftarrow",!0,"&crarr;","<-'","<-'","\u21b5"],["arccos","\\arccos",!0,"arccos","arccos","arccos","arccos"],["arcsin","\\arcsin",!0,"arcsin","arcsin","arcsin","arcsin"],["arctan","\\arctan",!0,"arctan","arctan","arctan","arctan"],["arg","\\arg",!0,"arg","arg","arg","arg"],["cos","\\cos",!0,"cos","cos","cos","cos"],["cosh","\\cosh",!0,"cosh","cosh","cosh","cosh"],["cot","\\cot",!0,"cot","cot","cot","cot"],["coth","\\coth",!0,"coth","coth","coth","coth"],["csc","\\csc",!0,"csc","csc","csc","csc"],["deg","\\deg",!0,"&deg;","deg","deg","deg"],["det","\\det",!0,"det","det","det","det"],["dim","\\dim",!0,"dim","dim","dim","dim"],["exp","\\exp",!0,"exp","exp","exp","exp"],["gcd","\\gcd",!0,"gcd","gcd","gcd","gcd"],["hom","\\hom",!0,"hom","hom","hom","hom"],["inf","\\inf",!0,"inf","inf","inf","inf"],["ker","\\ker",!0,"ker","ker","ker","ker"],["lg","\\lg",!0,"lg","lg","lg","lg"],["lim","\\lim",!0,"lim","lim","lim","lim"],["liminf","\\liminf",!0,"liminf","liminf","liminf","liminf"],["limsup","\\limsup",!0,"limsup","limsup","limsup","limsup"],["ln","\\ln",!0,"ln","ln","ln","ln"],["log","\\log",!0,"log","log","log","log"],["max","\\max",!0,"max","max","max","max"],["min","\\min",!0,"min","min","min","min"],["Pr","\\Pr",!0,"Pr","Pr","Pr","Pr"],["sec","\\sec",!0,"sec","sec","sec","sec"],["sin","\\sin",!0,"sin","sin","sin","sin"],["sinh","\\sinh",!0,"sinh","sinh","sinh","sinh"],["sup","\\sup",!0,"&sup;","sup","sup","sup"],["tan","\\tan",!0,"tan","tan","tan","tan"],["tanh","\\tanh",!0,"tanh","tanh","tanh","tanh"],["bull","\\textbullet{}",!1,"&bull;","*","*","\u2022"],["bullet","\\textbullet{}",!1,"&bull;","*","*","\u2022"],["star","\\star",!0,"*","*","*","\u22c6"],["lowast","\\ast",!0,"&lowast;","*","*","\u2217"],["ast","\\ast",!0,"&lowast;","*","*","*"],["odot","\\odot",!0,"o","[circled dot]","[circled dot]","\u0298"],["oplus","\\oplus",!0,"&oplus;","[circled plus]","[circled plus]","\u2295"],["otimes","\\otimes",!0,"&otimes;","[circled times]","[circled times]","\u2297"],["check","\\checkmark",!0,"&checkmark;","[checkmark]","[checkmark]","\u2713"],["checkmark","\\checkmark",!0,"&check;","[checkmark]","[checkmark]","\u2713"],["para","\\P{}",!1,"&para;","[pilcrow]","\xb6","\xb6"],["ordf","\\textordfeminine{}",!1,"&ordf;","_a_","\xaa","\xaa"],["ordm","\\textordmasculine{}",!1,"&ordm;","_o_","\xba","\xba"],["cedil","\\c{}",!1,"&cedil;","[cedilla]","\xb8","\xb8"],["oline","\\overline{~}",!0,"&oline;","[overline]","\xaf","\u203e"],["uml","\\textasciidieresis{}",!1,"&uml;","[diaeresis]","\xa8","\xa8"],["zwnj","\\/{}",!1,"&zwnj;","","","\u200c"],["zwj","",!1,"&zwj;","","","\u200d"],["lrm","",!1,"&lrm;","","","\u200e"],["rlm","",!1,"&rlm;","","","\u200f"],["smiley","\\ddot\\smile",!0,"&#9786;",":-)",":-)","\u263a"],["blacksmile","\\ddot\\smile",!0,"&#9787;",":-)",":-)","\u263b"],["sad","\\ddot\\frown",!0,"&#9785;",":-(",":-(","\u2639"],["frowny","\\ddot\\frown",!0,"&#9785;",":-(",":-(","\u2639"],["clubs","\\clubsuit",!0,"&clubs;","[clubs]","[clubs]","\u2663"],["clubsuit","\\clubsuit",!0,"&clubs;","[clubs]","[clubs]","\u2663"],["spades","\\spadesuit",!0,"&spades;","[spades]","[spades]","\u2660"],["spadesuit","\\spadesuit",!0,"&spades;","[spades]","[spades]","\u2660"],["hearts","\\heartsuit",!0,"&hearts;","[hearts]","[hearts]","\u2665"],["heartsuit","\\heartsuit",!0,"&heartsuit;","[hearts]","[hearts]","\u2665"],["diams","\\diamondsuit",!0,"&diams;","[diamonds]","[diamonds]","\u25c6"],["diamondsuit","\\diamondsuit",!0,"&diams;","[diamonds]","[diamonds]","\u25c6"],["diamond","\\diamondsuit",!0,"&diamond;","[diamond]","[diamond]","\u25c6"],["Diamond","\\diamondsuit",!0,"&diamond;","[diamond]","[diamond]","\u25c6"],["loz","\\lozenge",!0,"&loz;","[lozenge]","[lozenge]","\u29eb"],["_ ","\\hspace*{0.5em}",!1,"&ensp;"," "," ","\u2002"],["_  ","\\hspace*{1.0em}",!1,"&ensp;&ensp;","  ","  ","\u2002\u2002"],["_   ","\\hspace*{1.5em}",!1,"&ensp;&ensp;&ensp;","   ","   ","\u2002\u2002\u2002"],["_    ","\\hspace*{2.0em}",!1,"&ensp;&ensp;&ensp;&ensp;","    ","    ","\u2002\u2002\u2002\u2002"],["_     ","\\hspace*{2.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;","     ","     ","\u2002\u2002\u2002\u2002\u2002"],["_      ","\\hspace*{3.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","      ","      ","\u2002\u2002\u2002\u2002\u2002\u2002"],["_       ","\\hspace*{3.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","       ","       ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_        ","\\hspace*{4.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","        ","        ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_         ","\\hspace*{4.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","         ","         ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_          ","\\hspace*{5.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","          ","          ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_           ","\\hspace*{5.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","           ","           ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_            ","\\hspace*{6.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","            ","            ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_             ","\\hspace*{6.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","             ","             ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_              ","\\hspace*{7.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","              ","              ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_               ","\\hspace*{7.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","               ","               ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                ","\\hspace*{8.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                ","                ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                 ","\\hspace*{8.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                 ","                 ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                  ","\\hspace*{9.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                  ","                  ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                   ","\\hspace*{9.5em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                   ","                   ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"],["_                    ","\\hspace*{10.0em}",!1,"&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;","                    ","                    ","\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002\u2002"]]},13816:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(23080));e.exports=r.default},56166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=void 0,t.defaultOptions={todoKeywords:["TODO","DONE"],emphasisRegexpComponents:{pre:"-\u2013\u2014\\s\\('\u2019\"\u201c\u201d\\{",post:"-\u2013\u2014\\s.,:!?;'\u2019\"\u201c\u201d\\)\\}\\[",border:"\\s",body:".",newline:1},linkTypes:["eww","rmail","mhe","irc","info","gnus","docview","bbdb","w3m","printindex","index","bibentry","Autocites","autocites","supercites","Textcites","textcites","Smartcites","smartcites","footcitetexts","footcites","Parencites","parencites","Cites","cites","fnotecite","Pnotecite","pnotecite","Notecite","notecite","footfullcite","fullcite","citeurl","citedate*","citedate","citetitle*","citetitle","Citeauthor*","Autocite*","autocite*","Autocite","autocite","supercite","parencite*","cite*","Smartcite","smartcite","Textcite","textcite","footcitetext","footcite","Parencite","parencite","Cite","Citeauthor","Citealp","Citealt","Citep","Citet","citeyearpar","citeyear*","citeyear","citeauthor*","citeauthor","citetext","citenum","citealp*","citealp","citealt*","citealt","citep*","citep","citet*","citet","nocite","cite","Cref","cref","autoref","eqref","nameref","pageref","ref","label","list-of-tables","list-of-figures","addbibresource","bibliographystyle","printbibliography","nobibliography","bibliography","Acp","acp","Ac","ac","acrfull","acrlong","acrshort","glslink","glsdesc","glssymbol","Glspl","Gls","glspl","gls","bibtex","roam","notmuch-tree","notmuch-search","notmuch","attachment","id","file+sys","file+emacs","shell","news","mailto","https","http","ftp","help","file","elisp","do"],matchSexpDepth:3}},82105:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;const o=r(n(10939)),i=r(n(50914)),a=n(89859),s=n(23875),c=n(56166),u=n(24314);var l;!function(e){e[e.TopComment=0]="TopComment",e[e.Headline=1]="Headline",e[e.Planning=2]="Planning",e[e.PropertyDrawer=3]="PropertyDrawer",e[e.NodeProperty=4]="NodeProperty",e[e.ListItem=5]="ListItem",e[e.TableRow=6]="TableRow",e[e.Default=7]="Default"}(l||(l={})),t.parse=function(e,t){return new d(o.default(e),t).parse()};class d{constructor(e,t={}){this.r=new u.Reader(e),this.options=Object.assign(Object.assign({},c.defaultOptions),t),this.re=new s.OrgRegexUtils(this.options)}parse(){this.parseEmptyLines();const e=this.parseElements(l.TopComment);return i.default("org-data",{contentsBegin:0,contentsEnd:this.r.endOffset()},e)}parseElements(e,t){const n=[];let r=-1;for(;!this.r.eof();){const o=this.r.offset();if(o===r)throw console.log("elements:",n,"rest:",JSON.stringify(this.r.rest())),new Error("no progress (elements)");r=o;const i=this.parseElement(e,t),a=i.type,c=i.contentsBegin,u=i.contentsEnd;if(void 0===c||void 0===u);else if(s.greaterElements.has(a)){const n=i.structure;this.r.narrow(c,u),w(i,this.parseElements(d.nextMode(e,a,!0),null!==t&&void 0!==t?t:n)),this.r.widen(),n&&delete i.structure}else this.r.narrow(c,u),w(i,this.parseObjects(s.restrictionFor(i.type))),this.r.widen();n.push(i),e=d.nextMode(e,a,!1)}return n}static nextMode(e,t,n){if(n){if("section"===t)return l.Headline;if("inlinetask"===t)return l.Headline;if("plain-list"===t)return l.ListItem;if("property-drawer"===t)return l.NodeProperty;if("table"===t)return l.TableRow}else{if(e===l.TopComment&&"comment"===t)return l.PropertyDrawer;if(e===l.Headline)return l.Planning;if(e===l.Planning&&"planning"===t)return l.PropertyDrawer;if(e===l.ListItem)return l.ListItem;if(e===l.TableRow)return l.TableRow;if(e===l.NodeProperty)return l.NodeProperty}return l.Default}parseElement(e,t){var n,r;if(e===l.ListItem)return this.parseListItem(t);if(e===l.TableRow)return this.parseTableRow();if(e===l.NodeProperty)return this.parseNodeProperty();if(e===l.Headline)return this.parseHeadline();if(this.atHeading())return this.parseSection();const o=0===this.r.offset()||"\n"===this.r.substring(this.r.offset()-1,this.r.offset());if(o&&this.r.lookingAt(/^[ \t]*#(?: |$)/m))return this.parseComment();if(e===l.Planning&&this.r.lookingAt(/^[ \t]*(CLOSED:|DEADLINE:|SCHEDULED:)/))return this.parsePlanning();if((e===l.Planning||(e===l.PropertyDrawer||e===l.TopComment)&&!this.r.lookingAt(/\s*$/m))&&this.r.lookingAt(/^[ \t]*:PROPERTIES:[ \t]*\n(?:[ \t]*:\S+:(?: .*)?[ \t]*\n)*?[ \t]*:END:[ \t]*$/m))return this.parsePropertyDrawer();if(!o)return this.parseParagraph({});if(this.r.lookingAt(/^[ \t]*CLOCK:/))return this.parseClock();const i=this.parseAffiliatedKeywords();if(this.r.lookingAt(p))return this.parseLatexEnvironment(i);if(this.r.lookingAt(f))return this.parseDrawer(i);if(this.r.lookingAt(/[ \t]*:( |$)/m))return this.parseFixedWidth(i);{const e=this.r.offset();if(this.r.advance(this.r.lookingAt(/^[ \t]*#\+/))){const t=this.r.lookingAt(/^begin_(\S+)/i);if(t){this.r.resetOffset(e);switch(t[1].toLowerCase()){case"center":return this.parseBlock("center-block","center",i);case"comment":return this.parseCommentBlock(i);case"example":return this.parseExampleBlock(i);case"export":return this.parseExportBlock(i);case"quote":return this.parseBlock("quote-block","quote",i);case"src":return this.parseSrcBlock(i);case"verse":return this.parseBlock("verse-block","verse",i);default:return this.parseSpecialBlock(i)}}return this.r.lookingAt(/^\S+:/)?(this.r.resetOffset(e),this.parseKeyword(i)):(this.r.resetOffset(e),this.parseParagraph(i))}}if(this.r.lookingAt(_))return this.parseFootnoteDefinition(i);if(this.r.lookingAt(/^[ \t]*-{5,}[ \t]*$/m))return this.parseHorizontalRule(i);if(this.r.lookingAt(/^%%\(/))return this.parseDiarySexp(i);const a=/[ \t]*\+(-+\+)+[ \t]*$/m;if(this.r.lookingAt(/^[ \t]*\|/))return this.parseTable(i);if(this.r.lookingAt(a)){const e=this.r.offset();this.r.advance(this.r.line());const t=this.r.offset(),o=null!==(r=null===(n=this.r.match(/^[ \t]*($|[^|])/m))||void 0===n?void 0:n.index)&&void 0!==r?r:null;this.r.advance(o);const s=this.r.offset()>t&&this.r.lookingAt(a);if(this.r.resetOffset(e),s)return this.parseTable(i)}if(this.r.lookingAt(this.re.listItemRe())){if(void 0===t){const e=this.r.offset();t=this.parseListStructure(),this.r.resetOffset(e)}return this.parseList(t,i)}return this.parseParagraph(i)}parseObjects(e){const t=[];let n=this.r.offset();for(;!this.r.eof();){const r=this.r.offset(),o=this.parseObject(e);if(!o)break;if(this.r.offset()===r)throw new Error(`no progress (parseObject): ${JSON.stringify(o)}, text: ${JSON.stringify(this.r.rest())}, objects: ${JSON.stringify(t,null,2)}`);const[a,c]=o;if(a!==n){const e=this.r.substring(n,a);t.push(i.default("text",{value:e}))}const u=c.contentsBegin,l=c.contentsEnd;void 0!==u&&void 0!==l&&(this.r.narrow(u,l),w(c,this.parseObjects(s.restrictionFor(c.type))),this.r.widen()),t.push(c),n=this.r.offset()}this.r.resetOffset(n);const r=this.r.rest();return this.r.advance(r.length),r.trim().length&&t.push(i.default("text",{value:r})),t}parseObject(e){if(e.has("table-cell"))return[this.r.offset(),this.parseTableCell()];const t=this.re.objectRe();for(;!this.r.eof();){const n=this.r.match(t);if(!n)return null;this.r.advance(n.index);const r=this.r.offset(),o=this.tryParseObject(e);if(o){if(r===this.r.offset())throw new Error("no progress (tryParseObject)");return[r,o]}this.r.resetOffset(r),this.r.advance(1)}return null}tryParseObject(e){const t=this.r.peek(2);switch(t[0]){case"^":if(e.has("superscript"))return this.parseSuperscript();break;case"_":const n=this.r.offset(),r=e.has("subscript")&&this.parseSubscript();if(r)return r;if(this.r.resetOffset(n),e.has("underline"))return this.parseUnderline();break;case"*":if(e.has("bold"))return this.parseBold();break;case"/":if(e.has("italic"))return this.parseItalic();break;case"~":if(e.has("code"))return this.parseCode();break;case"=":if(e.has("verbatim"))return this.parseVerbatim();break;case"+":if(e.has("strike-through"))return this.parseStrikeThrough();break;case"$":if(e.has("latex-fragment"))return this.parseLatexFragment();break;case"<":if("<"===t[1]);else{const t=this.r.offset(),n=e.has("timestamp")&&this.parseTimestamp();if(n)return n;this.r.resetOffset(t);const r=e.has("link")&&this.parseLink();if(r)return r;this.r.resetOffset(t)}break;case"\\":if("\\"===t[1]);else{const t=this.r.offset(),n=e.has("entity")&&this.parseEntity();if(n)return n;this.r.resetOffset(t);const r=e.has("latex-fragment")&&this.parseLatexFragment();if(r)return r;this.r.resetOffset(t)}break;case"[":if("["===t[1]){if(e.has("link"))return this.parseLink()}else if("f"===t[1]){if(e.has("footnote-reference"))return this.parseFootnoteReference()}else{const t=this.r.offset(),n=e.has("timestamp")&&this.parseTimestamp();if(n)return n;this.r.resetOffset(t)}break;default:if(e.has("link"))return this.parseLink()}return null}parseSection(){const e=this.r.offset(),t=this.r.forceLookingAt(/^(\*+)[ \t]/m)[1].length;this.r.advance(this.r.line());const n=this.r.match(new RegExp(`^\\*{1,${t}}[ \\t]`,"m")),r=n?this.r.offset()+n.index:this.r.endOffset();return this.r.resetOffset(r),i.default("section",{contentsBegin:e,contentsEnd:r},[])}parseHeadline(){var e,t,n;const r=this.r.offset();this.r.advance(this.r.line()),this.r.narrow(r,this.r.offset());const o=this.r.advance(this.r.forceLookingAt(/^(\*+)[ \t]+/))[1].length,a=this.r.advance(this.r.lookingAt(new RegExp("^"+this.options.todoKeywords.join("|")))),s=null!==(e=null===a||void 0===a?void 0:a[0])&&void 0!==e?e:null;this.r.advance(this.r.lookingAt(/^[ \t]*/));const c=this.r.advance(this.r.lookingAt(/^\[#.\]/)),u=null!==(t=null===c||void 0===c?void 0:c[0][2])&&void 0!==t?t:null;this.r.advance(this.r.lookingAt(/^[ \t]*/));const l=!!this.r.advance(this.r.lookingAt(/^COMMENT/));this.r.advance(this.r.lookingAt(/^[ \t]*/));const d=this.r.offset(),f=this.r.lookingAt(/^(.*?)[ \t]+:([\w@#%:]+):[ \t]*$/m),p=null!==(n=null===f||void 0===f?void 0:f[2].split(":"))&&void 0!==n?n:[],h=f?d+f.index+f[1].length:d+this.r.forceLookingAt(/.*/)[0].length,m=this.r.substring(d,h),v=d,g=h;return this.r.widen(),this.parseEmptyLines(),i.default("headline",{level:o,todoKeyword:s,priority:u,commented:l,rawValue:m,tags:p,contentsBegin:v,contentsEnd:g},[])}parsePlanning(){this.r.narrow(this.r.offset(),this.r.offset()+this.r.line().length);let e=null,t=null,n=null;for(;;){const r=this.r.match(/\b(SCHEDULED:|DEADLINE:|CLOSED:) *[\[<]([^\]>]+)[\]>]/);if(!r)break;this.r.advance(r.index+r[1].length),this.r.advance(this.r.match(/^[ \t]*/));const o=r[1],i=this.parseTimestamp();"SCHEDULED:"===o&&(e=i),"DEADLINE:"===o&&(t=i),"CLOSED:"===o&&(n=i)}return this.r.widen(),this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("planning",{scheduled:e,deadline:t,closed:n})}parsePropertyDrawer(){this.r.advance(this.r.line());const e=this.r.offset(),t=this.r.forceMatch(/^[ \t]*:END:[ \t]*$/m);this.r.advance(t.index);const n=this.r.offset();return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("property-drawer",{contentsBegin:e,contentsEnd:n},[])}parseBlock(e,t,n){const r=this.r.match(new RegExp(`^[ \\t]*#\\+end_${t}[ \\t]*$`,"im"));if(!r)return this.parseParagraph(n);const o=this.r.offset(),a=o+this.r.line().length,s=o+r.index;this.r.resetOffset(s),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default(e,{affiliated:n,contentsBegin:a,contentsEnd:s},[])}parseComment(){let e=[];for(this.r.advance(this.r.forceLookingAt(/^[ \t]*# ?/)),e.push(this.r.advance(this.r.line()));;){if(!this.r.advance(this.r.lookingAt(/^[ \t]*#( |$)/m)))break;e.push(this.r.advance(this.r.line()))}let t=e.join("");return"\n"===t[t.length-1]&&(t=t.substring(0,t.length-1)),i.default("comment",{value:t})}parseFixedWidth(e){let t=[];for(;;){const e=this.r.lookingAt(/^[ \t]*: ?(.*)$/m);if(!e)break;this.r.advance(this.r.line()),t.push(e[1])}const n=t.join("\n");return i.default("fixed-width",{affiliated:e,value:n})}parseCommentBlock(e){const t=this.parseBlock("comment-block","comment",e);if("comment-block"!==t.type)return t;const n=this.r.substring(t.contentsBegin,t.contentsEnd);return i.default("comment-block",{affiliated:e,value:n})}parseSrcBlock(e){const t=this.r.match(/^[ \t]*#\+end_src[ \t]*$/im);if(!t)return this.parseParagraph(e);const n=this.r.forceMatch(/^[ \t]*#\+begin_src(?: +(?<language>\S+))?(?<switches>(?: +(?:-(?:l ".+"|[ikr])|[-+]n(?: *[0-9]+)?))+)?(?<parameters>.*)[ \t]*$/im),{language:r,switches:o,parameters:a}=n.groups,c=this.r.offset(),u=c+this.r.line().length,l=c+t.index,d=s.unescapeCodeInString(this.r.substring(u,l));this.r.resetOffset(l),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default("src-block",{affiliated:e,language:r,value:d})}parseExampleBlock(e){const t=this.parseBlock("example-block","example",e);if("example-block"!==t.type)return t;const n=this.r.substring(t.contentsBegin,t.contentsEnd);return i.default("example-block",{affiliated:e,value:n})}parseExportBlock(e){var t;const n=this.r.match(/^[ \t]*#\+end_export[ \t]*$/im);if(!n)return this.parseParagraph(e);const r=null!==(t=this.r.forceMatch(/^[ \t]*#\+begin_export(?:[ \t]+(\S+))?[ \t]*$/im)[1])&&void 0!==t?t:null,o=this.r.offset(),a=o+this.r.line().length,c=o+n.index,u=s.unescapeCodeInString(this.r.substring(a,c));this.r.resetOffset(c),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default("export-block",{affiliated:e,backend:r,value:u})}parseSpecialBlock(e){const t=this.r.forceLookingAt(/[ \t]*#\+begin_(\S+)/i)[1],n=this.r.match(new RegExp(`^[ \\t]*#\\+end_${s.escapeRegExp(t)}[ \\t]*$`,"im"));if(!n)return this.r.message("incomplete block",this.r.offset(),"uniorg"),this.parseParagraph(e);const r=this.r.offset(),o=r+this.r.line().length,a=r+n.index;this.r.resetOffset(a),this.r.advance(this.r.line()),this.parseEmptyLines();this.r.offset();return i.default("special-block",{affiliated:e,blockType:t,contentsBegin:o,contentsEnd:a},[])}parseAffiliatedKeywords(){var e,t,n,r;const o=this.r.offset(),i={};for(;!this.r.eof();){const o=this.r.lookingAt(b);if(!o)break;const a=(null!==(t=null!==(e=o.groups.dualKeyword)&&void 0!==e?e:o.groups.regularKeyword)&&void 0!==t?t:o.groups.attributeKeyword).toUpperCase(),c=null!==(n=y[a])&&void 0!==n?n:a,u=v.has(c);this.r.advance(o),this.r.narrow(this.r.offset(),this.r.offset()+this.r.line().length);const l=u?this.parseObjects(s.restrictionFor("keyword")):this.r.rest().trim();this.r.widen(),this.r.advance(this.r.line());const d=m.has(c)&&null!==(r=o.groups.dualValue)&&void 0!==r?r:null,f=null===d?l:[l,d];g.has(c)||c.match(/^ATTR_/)?(i[c]=i[c]||[],i[c].push(f)):i[c]=f}return this.r.lookingAt(/^[ \t]*$/m)?(this.r.resetOffset(o),{}):i}parseKeyword(e){const t=this.r.forceLookingAt(/[ \t]*#\+(\S+):(.*)/),n=t[1].toUpperCase(),r=t[2].trim();return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("keyword",{affiliated:e,key:n,value:r})}parseLatexEnvironment(e){const t=this.r.offset(),n=this.r.advance(this.r.forceLookingAt(p))[1],r=this.r.match(h(n));if(!r)return this.r.resetOffset(t),this.parseParagraph(e);this.r.advance(r);const o=this.r.offset();this.parseEmptyLines();const a=this.r.substring(t,o);return i.default("latex-environment",{affiliated:e,value:a})}parseDrawer(e){const t=this.r.match(/^[ \t]*:END:[ \t]*$/m);if(!t)return this.r.message("incomplete drawer",this.r.offset(),"uniorg"),this.parseParagraph(e);const n=this.r.offset()+t.index,r=this.r.forceLookingAt(f)[1];this.r.advance(this.r.line());const o=this.r.offset();return this.r.resetOffset(n),this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("drawer",{affiliated:e,name:r,contentsBegin:o,contentsEnd:n},[])}parseClock(){this.r.advance(this.r.forceMatch(/^[ \t]*CLOCK:[ \t]*/));const e=this.parseTimestamp();this.r.advance(this.r.match(/^[ \t]+=>[ \t]*/));const t=this.r.advance(this.r.lookingAt(/^(\S+)[ \t]*$/m)),n=t?t[1]:null,r=n?"closed":"running";return this.parseEmptyLines(),i.default("clock",{value:e,duration:n,status:r})}parseNodeProperty(){var e;const t=this.r.forceLookingAt(/^[ \t]*:(?<key>\S+):(?:(?<value1>$)|[ \t]+(?<value2>.*?))[ \t]*$/m),n=t.groups.key,r=null!==(e=t.groups.value1)&&void 0!==e?e:t.groups.value2;return this.r.advance(this.r.line()),i.default("node-property",{key:n,value:r})}parseParagraph(e){const t=this.r.offset();this.r.advance(this.r.line());let n=null;for(;n=this.r.match(this.re.paragraphSeparateRe());){this.r.advance(n.index);const e=this.r.lookingAt(/[ \t]*#\+begin_(\S+)/i);if(e){if(!this.r.match(new RegExp(`^[ \\t]*#\\+end_${e[1]}[ \\t]*$`,"im"))){this.r.advance(this.r.line());continue}break}if(this.r.lookingAt(f)){if(!this.r.match(/^[ \t]*:END:[ \t]*$/m)){this.r.advance(this.r.line());continue}break}const t=this.r.lookingAt(p);if(t){const e=t[1];if(!this.r.match(h(e))){this.r.advance(this.r.line());continue}break}const r=this.r.lookingAt(/[ \t]*#\+(\S+)\[.*\]:/);if(r){if(!m.has(r[1].toLowerCase())){this.r.advance(this.r.line());continue}break}break}const r=n?this.r.offset():this.r.endOffset();return this.r.resetOffset(r),this.parseEmptyLines(),i.default("paragraph",{affiliated:e,contentsBegin:t,contentsEnd:r},[])}parseFootnoteDefinition(e){var t;const n=this.r.forceLookingAt(_)[1],r=this.r.offset();this.r.advance(this.r.line());const o=this.r.match(T);this.r.advance(null===o||void 0===o?void 0:o.index);let a=o?this.r.offset():this.r.endOffset();if(o&&"["===o[0][0]){let e=this.r.substring(r,this.r.offset()).split("\n");for(e=e.slice(1,e.length-1);e.length;){const n=e.pop();if(0!==(null===(t=n.match(b))||void 0===t?void 0:t.index))break;this.r.advance(-n.length-1)}a=this.r.offset()}this.r.narrow(r,a),this.r.advance(this.r.forceMatch(/\][ \r\t\n]*/m));const s=this.r.offset();return this.r.widen(),this.r.resetOffset(a),this.parseEmptyLines(),i.default("footnote-definition",{affiliated:e,label:n,contentsBegin:s,contentsEnd:a},[])}parseHorizontalRule(e){return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("horizontal-rule",{affiliated:e})}parseDiarySexp(e){const t=this.r.forceLookingAt(/^(%%\(.*)[ \t]*$/m)[1];return this.r.advance(this.r.line()),this.parseEmptyLines(),i.default("diary-sexp",{affiliated:e,value:t})}parseTable(e){const t=this.r.offset(),n=this.r.lookingAt(/^[ \t]*\|/)?"org":"table.el",r=new RegExp(`^[ \\t]*($|[^| \\t${"org"===n?"":"+"}])`,"m"),o=this.r.match(r),a=o?t+o.index:this.r.endOffset();this.r.resetOffset(a);let s="";for(;;){const e=this.r.lookingAt(/^[ \t]*#\+TBLFM: +(.*?)[ \t]*$/m);if(!e)break;s+=e[1],this.r.advance(this.r.line())}return this.parseEmptyLines(),"org"===n?i.default("table",{tableType:n,tblfm:s,contentsBegin:t,contentsEnd:a},[]):i.default("table",{affiliated:e,tableType:n,tblfm:s,value:this.r.substring(t,a)})}parseTableRow(){const e=this.r.lookingAt(/^[ \t]*\|-/)?"rule":"standard";this.r.advance(this.r.forceMatch(/\|/));const t=this.r.offset();this.r.advance(this.r.forceMatch(/^.*?[ \t]*$/m));const n="rule"===e?t:this.r.offset();return this.r.advance(this.r.line()),i.default("table-row",{rowType:e,contentsBegin:t,contentsEnd:n},[])}parseTableCell(){this.r.advance(this.r.forceLookingAt(/^[ \t]*/));const e=this.r.offset(),t=e+this.r.advance(this.r.forceLookingAt(/(.*?)[ \t]*(?:\||$)/m))[1].length;return i.default("table-cell",{contentsBegin:e,contentsEnd:t},[])}parseList(e,t){const n=this.r.offset(),r=e.find((e=>e.begin===n));if(!r)throw new Error(`parseList: cannot find item. contentsBegin: ${n}, structure: ${JSON.stringify(e,null,2)}`);const o=r.indent,a=r.tag?"descriptive":"-+*".includes(r.bullet[0])?"unordered":"ordered";let s=r.end;for(;;){const t=e.find((e=>e.begin===s&&e.indent===o));if(!t)break;s=t.end}const c=s;return this.r.resetOffset(c),i.default("plain-list",{affiliated:t,indent:o,listType:a,contentsBegin:n,contentsEnd:c,structure:e},[])}parseListItem(e){var t,n;const r=this.r.offset(),o=this.r.advance(this.r.forceMatch(this.re.fullListItemRe())),a=o.groups.bullet,s=null!==(t=o.groups.counter)&&void 0!==t?t:null,c="[ ]"===o.groups.checkbox?"off":"[x]"===(null===(n=o.groups.checkbox)||void 0===n?void 0:n.toLowerCase())?"on":"[-]"===o.groups.checkbox?"trans":null,u=e.find((e=>e.begin===r)),l=this.r.offset(),d=u.end;return this.r.resetOffset(d),i.default("list-item",{indent:u.indent,bullet:a,counter:s,checkbox:c,contentsBegin:l,contentsEnd:d},u.tag?[u.tag]:[])}parseListStructure(){var e,t,n,r,o,a,c,u,l;const d=[],f=[];for(;!this.r.eof()&&0!==(null===(e=this.r.match(this.re.listEndRe()))||void 0===e?void 0:e.index);){const e=this.r.match(this.re.listItemRe());if(e){const p=e.groups.indent.length;for(;d.length&&d[d.length-1].indent>=p;){const e=d.pop();e.end=this.r.offset(),f.push(e)}const h=this.r.forceMatch(this.re.fullListItemRe()),{bullet:m,counter:v,checkbox:g}=h.groups;let y=null;if(void 0!==h.groups.tag){const e=this.r.offset()+(null!==(n=null===(t=h.groups.indent)||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=h.groups.bullet)||void 0===r?void 0:r.length)&&void 0!==o?o:0)+(null!==(c=null===(a=h.groups.counter_group)||void 0===a?void 0:a.length)&&void 0!==c?c:0)+(null!==(l=null===(u=h.groups.checkbox_group)||void 0===u?void 0:u.length)&&void 0!==l?l:0),d=e+h.groups.tag.length;this.r.narrow(e,d),y=i.default("list-item-tag",{},this.parseObjects(s.restrictionFor("list-item"))),this.r.widen()}const b={begin:this.r.offset(),indent:p,bullet:m,counter:null!==v&&void 0!==v?v:null,checkbox:null!==g&&void 0!==g?g:null,tag:y,end:this.r.offset()};d.push(b),this.r.advance(this.r.line())}else if(this.r.match(/^[ \t]*\n/))this.r.advance(this.r.line());else{const e=this.r.forceLookingAt(/^[ \t]*/)[0].length;for(;d.length&&d[d.length-1].indent>=e;){const e=d.pop();e.end=this.r.offset(),f.push(e)}if(!d.length)break;this.r.advance(this.r.line())}}this.parseEmptyLines();const p=this.r.offset();return d.forEach((e=>{e.end=p})),f.push(...d),f.sort(((e,t)=>e.begin-t.begin))}parseSuperscript(){this.r.backoff(1);const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(this.re.subsuperscriptRe()));if(!t)return null;const n=t.groups.inBraces||t.groups.inBrackets,r=e+t[1].length,o=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return i.default("superscript",{contentsBegin:o,contentsEnd:a,children:[]})}parseSubscript(){this.r.backoff(1);const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(this.re.subsuperscriptRe()));if(!t)return null;const n=t.groups.inBraces||t.groups.inBrackets,r=e+t[1].length,o=r+t[2].length+(n?1:0),a=r+t[2].length+t[3].length-(n?1:0);this.r.offset();return i.default("subscript",{contentsBegin:o,contentsEnd:a,children:[]})}parseUnderline(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("underline",{contentsBegin:t,contentsEnd:n},[])}parseBold(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("bold",{contentsBegin:t,contentsEnd:n},[])}parseItalic(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("italic",{contentsBegin:t,contentsEnd:n},[])}parseCode(){this.r.backoff(1);const e=this.r.lookingAt(this.re.verbatimRe());if(!e)return null;const t=e[4],n=this.r.offset()+e.index+e[1].length+e[3].length+e[4].length;return this.r.resetOffset(n+1),i.default("code",{value:t},[])}parseVerbatim(){this.r.backoff(1);const e=this.r.lookingAt(this.re.verbatimRe());if(!e)return null;const t=e[4],n=this.r.offset()+e.index+e[1].length+e[3].length+e[4].length;return this.r.resetOffset(n+1),i.default("verbatim",{value:t},[])}parseStrikeThrough(){this.r.backoff(1);const e=this.r.lookingAt(this.re.emphRe());if(!e)return null;const t=this.r.offset()+e.index+e[1].length+e[3].length,n=t+e[4].length;return this.r.resetOffset(n+1),i.default("strike-through",{contentsBegin:t,contentsEnd:n},[])}parseEntity(){var e;const t=this.r.advance(this.r.lookingAt(/^\\(?:(?<value1>_ +)|(?<value2>there4|sup[123]|frac[13][24]|[a-zA-Z]+)(?<brackets>$|\{\}|\P{Letter}))/mu));if(!t)return null;const n="{}"===t.groups.brackets;n||this.r.backoff(t.groups.brackets.length);const r=a.getOrgEntity(null!==(e=t.groups.value1)&&void 0!==e?e:t.groups.value2);return r?i.default("entity",Object.assign({useBrackets:n},r)):null}parseLatexFragment(){var e;const t=this.r.offset(),n=this.r.peek(2);let r=null;if("$"!==n[0])switch(n[1]){case"(":this.r.advance(this.r.match(/\\\)/)),r=this.r.substring(t+2,this.r.offset()-2);break;case"[":this.r.advance(this.r.match(/\\\]/)),r=this.r.substring(t+2,this.r.offset()-2);break;default:{const e=this.r.advance(this.r.lookingAt(/^\\[a-zA-Z]+\*?((\[[^\]\[\n{}]*\])|(\{[^{}\n]*\}))*/));r=null===e||void 0===e?void 0:e[0]}}else if("$"===n[1]){const e=this.r.advance(this.r.match(/\$\$((?:.|\n)*?)\$\$/m));r=null===e||void 0===e?void 0:e[1]}else{if("$"===this.r.substring(this.r.offset()-1,this.r.offset())||" \t\n,.;".includes(n[1])||!(r=null===(e=this.r.advance(this.r.match(/\$((?:.|\n)*?)\$/m)))||void 0===e?void 0:e[1])||" \t\n,.".includes(this.r.substring(this.r.offset()-1,this.r.offset()))||!this.r.lookingAt(/^(\p{Punctuation}|\p{White_Space}|\p{Open_Punctuation}|\p{Close_Punctuation}|\\"|'|$)/mu))return null}const o=this.r.offset();if(t===o)return null;const a=this.r.substring(t,o);return i.default("latex-fragment",{value:a,contents:null!==r&&void 0!==r?r:a})}parseFootnoteReference(){var e;const t=this.r.offset(),n=this.r.match(E);if(!n)return null;const r=()=>{for(;;){const e=this.r.advance(this.r.match(/[\[\]]/));if(!e)return!1;if("["==e[0]){if(!r())return!1}return!0}};if(!r())return null;const o=this.r.offset(),a=t+n.index+n[0].length,s=o-1,c=n.groups.inline?"inline":"standard",u="inline"===c?null!==(e=n.groups.label_inline)&&void 0!==e?e:null:n.groups.label;return"inline"===c?i.default("footnote-reference",{label:u,footnoteType:c,contentsBegin:a,contentsEnd:s},[]):i.default("footnote-reference",{label:u,footnoteType:c},[])}parseLink(){const e=this.r.offset(),t=this.r.advance(this.r.lookingAt(/\[\[(?<link>([^\[\]]|\\(\\\\)*[\[\]]|\\+[^\[\]])+)\](\[(?<text>[\s\S]+?)\])?\]/m));if(t){const n=t,r={};if(n.groups.text){const t=r.contentsBegin=e+2+n.groups.link.length+2;r.contentsEnd=t+n.groups.text.length}const o=n.groups.link.replace(/[ \t]*\n[ \t]*/m," ").replace(/(\\+)([\[\]])/g,((e,t)=>"\\".repeat(e.length/2)+t)),{linkType:a,path:s}=this.linkType(o);return i.default("link",Object.assign({format:"bracket",linkType:a,rawLink:o,path:s},r),[])}const n=new RegExp(`\\b${this.re.linkTypesRe()}([^\\][ \\t\\n()<>]+(?:([\\w0-9_]+)|([^\\p{Punctuation} \\t\\n]|/)))`,"u"),r=this.r.advance(this.r.lookingAt(n));if(r){const e=r;return i.default("link",{format:"plain",linkType:e[1],rawLink:e[0],path:e[2]},[])}const o=new RegExp(`<${this.re.linkTypesRe()}([^>\\n]*(?:\\n[ \\t]*[^> \\t\\n][^>\\n]*)*)>`),a=this.r.advance(this.r.lookingAt(o));if(a){const e=a,t=e[1],n=e[0].substring(1,e[0].length-1),r=e[2].replace(/[ \t]*\n[ \t]*/g,"");return i.default("link",{format:"angle",linkType:t,rawLink:n,path:r},[])}return null}linkType(e){if(e.startsWith("/")||e.match(/^\.\.?\//))return{linkType:"file",path:e};const t=e.match(new RegExp(this.re.linkTypesRe()));return t?{linkType:t[1],path:e.slice(t[0].length)}:e.startsWith("(")&&e.endsWith(")")?{linkType:"coderef",path:e.slice(1,e.length-1)}:e.startsWith("#")?{linkType:"custom-id",path:e.slice(1)}:{linkType:"fuzzy",path:e}}parseTimestamp(){const e=new RegExp(["[\\[<](\\d{4}-\\d{2}-\\d{2}(:? .*?)?)[\\]>]","(?:<[0-9]+-[0-9]+-[0-9]+[^>\\n]+?\\+[0-9]+[dwmy]>)","(?:<%%(?:([^>\\n]+))>)"].join("|"));if(!this.r.lookingAt(e))return null;const t="<"===this.r.substring(this.r.offset(),this.r.offset()+1),n=this.r.advance(this.r.match(/^([<[](%%)?.*?)[\]>](?:--([<[].*?[\]>]))?/));if(!n)return null;const r=n[0],o=n[1],a=n[3],s=!!n[2];let c=null;if(!s){const e=o.match(/[012]?[0-9]:[0-5][0-9](-([012]?[0-9]):([0-5][0-9]))/);e&&(c={hour:Number(e[2]),minute:Number(e[3])})}const u=s?"diary":t&&(a||c)?"active-range":t?"active":a||c?"inactive-range":"inactive",l=s?null:d.parseDate(o),f=l?a?d.parseDate(a):c?Object.assign(Object.assign({},l),c):null:null;return i.default("timestamp",{timestampType:u,rawValue:r,start:l,end:f})}static parseDate(e){const t=e.match(/(([0-9]{4})-([0-9]{2})-([0-9]{2})( +[^\]+0-9>\r\n -]+)?( +([0-9]{1,2}):([0-9]{2}))?)/);return t?{year:Number(t[2]),month:Number(t[3]),day:Number(t[4]),hour:t[7]?Number(t[7]):null,minute:t[8]?Number(t[8]):null}:null}parseEmptyLines(){return d.parseMulti((()=>{const e=this.r.line();return 0===e.trim().length?(this.r.advance(e.length),e):null}))}static parseMulti(e){const t=[];for(let n=e();n;n=e())t.push(n);return t}atHeading(){return null!==this.r.lookingAt(/^\*+[ \t]/)}}const f=/^[ \t]*:((?:\w|[-_])+):[ \t]*$/m,p=/^[ \t]*\\begin\{([A-Za-z0-9*]+)\}/i,h=e=>new RegExp(`\\\\end\\{${s.escapeRegExp(e)}\\}[ \\t]*$`,"mi"),m=new Set(["RESULTS","CAPTION"]),v=new Set(["CAPTION"]),g=new Set(["CAPTION","HEADER"]),y={DATA:"NAME",LABEL:"NAME",RESNAME:"NAME",SOURCE:"NAME",SRCNAME:"NAME",TBLNAME:"NAME",RESULT:"RESULTS",HEADERS:"HEADER"},b=new RegExp(["[ \\t]*#\\+(?:",[`(?<dualKeyword>${[...m].join("|")})(?:\\[(?<dualValue>.*)\\])?`,`(?<regularKeyword>${["CAPTION","DATA","HEADER","HEADERS","LABEL","NAME","PLOT","RESNAME","RESULT","RESULTS","SOURCE","SRCNAME","TBLNAME"].filter((e=>!m.has(e))).join("|")})`,"(?<attributeKeyword>ATTR_[-_A-Za-z0-9]+)"].join("|"),"):[ \\t]*"].join(""),"i"),E=/\[fn:(?:(?<label_inline>[-_\w]+)?(?<inline>:)|(?<label>[-_\w]+)\])/,_=/^\[fn:([-_\w]+)\]/,T=/^\*|^\[fn:([-_\w]+)\]|^([ \t]*\n){2,}/m;function w(e,t){var n;if("children"in e){const r=[...null!==(n=e.children)&&void 0!==n?n:[],...t];e.children=r}}},24314:function(e,t,n){"use strict";var r,o,i,a,s,c,u,l=this&&this.__classPrivateFieldSet||function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},d=this&&this.__classPrivateFieldGet||function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=void 0;const p=f(n(14787));t.Reader=class{constructor(e){r.set(this,void 0),o.set(this,void 0),i.set(this,void 0),a.set(this,0),s.set(this,void 0),c.set(this,void 0),u.set(this,[]),l(this,r,e.toString()),l(this,s,0),l(this,c,d(this,r).length),l(this,o,e),l(this,i,p.default(e))}message(e,t,n){const r=void 0!==t?d(this,i).toPoint(t):void 0;d(this,o).message(e,r,n)}advance(e){return e&&("number"===typeof e?l(this,a,d(this,a)+e):"string"===typeof e?this.rest().startsWith(e)&&l(this,a,d(this,a)+e.length):l(this,a,d(this,a)+(e.index+e[0].length))),e}backoff(e){l(this,a,Math.max(d(this,s),d(this,a)-e))}match(e){return e.exec(this.rest())}lookingAt(e){const t=this.match(e);return 0===(null===t||void 0===t?void 0:t.index)?t:null}forceMatch(e){const t=this.match(e);if(!t)throw new Error(`match error: ${e} against ${JSON.stringify(this.rest())}`);return t}forceLookingAt(e){const t=this.lookingAt(e);if(!t)throw new Error(`match (lookingAt) error: ${e} against ${JSON.stringify(this.rest())}`);return t}peek(e){return d(this,r).substring(d(this,a),d(this,a)+e)}line(){const e=this.rest(),t=e.indexOf("\n");return e.substring(0,-1===t?e.length:t+1)}rest(){return d(this,r).substring(d(this,a),d(this,c))}substring(e,t){return d(this,r).substring(e,t)}eof(){return d(this,a)>=d(this,c)}offset(){return d(this,a)}endOffset(){return d(this,c)}resetOffset(e){l(this,a,e)}narrow(e,t,n=!1){d(this,u).push({prevLeft:d(this,s),prevRight:d(this,c),prevOffset:d(this,a)}),l(this,s,e),l(this,c,t),n||l(this,a,e)}widen(e=!1){const t=d(this,u).pop();t&&(l(this,s,t.prevLeft),l(this,c,t.prevRight),e||l(this,a,t.prevOffset))}},r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap,u=new WeakMap},23080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(82105);t.default=function(){this.Parser=(e,t)=>r.parse(t)}},23875:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeRegExp=t.unescapeCodeInString=t.greaterElements=t.restrictionFor=t.OrgRegexUtils=void 0;function n(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}t.OrgRegexUtils=class{constructor(e){this.options=e}linkPlainRe(){return`${this.linkTypesRe()}([^\\]\\[ \t\\n()<>]+(?:\\([\\w0-9_]+\\)|([^\\W \t\\n]|/)))`}linkTypesRe(){return"("+this.options.linkTypes.map(n).join("|")+"):"}objectRe(){return new RegExp(["(?:[_^][-{(*+.,\\p{Letter}\\p{Number}])",`[*~=+_/][^${this.options.emphasisRegexpComponents.border}]`,this.linkPlainRe(),["\\[(?:","fn:","|","\\[","|","[0-9]{4}-[0-9]{2}-[0-9]{2}","|","[0-9]*(?:%|/[0-9]*)\\]",")"].join(""),"@@","\\{\\{\\{",`<(?:%%|<|[0-9]|${this.linkTypesRe()})`,"\\$","\\\\(?:[a-zA-Z\\[\\(]|\\\\[ \\t]*$|_ +)","(?:call|src)_"].join("|"),"mu")}listItemRe(){return new RegExp("^(?<indent> *)(\\*|-|\\+|\\d+\\.|\\d+\\)|\\w\\.|\\w\\))( |\\n)")}fullListItemRe(){return/^(?<indent>[ \t]*)(?<bullet>(?:[-+*]|(?:[0-9]+|[A-Za-z])[.)])(?:[ \t]+|$))(?<counter_group>\[@(?:start:)?(?<counter>[0-9]+|[A-Za-z])\][ \t]*)?(?<checkbox_group>(?<checkbox>\[[ X-]\])(?:[ \t]+|$))?(?:(?<tag>.*?)[ \t]+::(?:[ \t]+|$))?/im}listEndRe(){return/^[ \t]*\n[ \t]*\n/m}paragraphSeparateRe(){const e=`[${[")","."].join("")}]`;return new RegExp(["^(?:",["\\*+ ","\\[fn:[-_\\w]+\\]","%%\\(","[ \\t]*(?:"+["$","\\|","\\+(?:-+\\+)+[ \t]*$","#(?: |$|\\+(?:begin_\\S+|\\S+(?:\\[.*\\])?:[ \\t]*))",":(?: |$|[-_\\w]+:[ \\t]*$)","-{5,}[ \\t]*$","\\\\begin\\{([A-Za-z0-9*]+)\\}","CLOCK:",`(?:[-+*]|(?:[0-9]+|[A-Za-z])${e})(?:[ \\t]|$)`].join("|")+")"].join("|"),")"].join(""),"mi")}subsuperscriptRe(){return new RegExp(`(\\S)([_^])((?:${e("\\{","\\}",this.options.matchSexpDepth,"inBraces")})|(?:${e("\\(","\\)",this.options.matchSexpDepth,"inBrackets")})|(?:\\*|[+-]?[\\p{L}\\d.,\\\\]*(?:\\p{L}|\\d)))`,"u");function e(e,t,n,r=""){const o=`[^${e}${t}]*?`;let i=`(?:${o}${e}${o}${t})+${o}`,a=o;for(let s=1;s<n;s++)a=`${a}|${i}`,i=`(?:${o}${e}${i}${t})+${o}`;return`${e}(${r?`?<${r}>`:""}${a})${t}`}}emphRe(){return this.emphTemplate("*/_+")}verbatimRe(){return this.emphTemplate("=~")}emphTemplate(e){const{pre:t,post:n,border:r,newline:o,body:i}=this.options.emphasisRegexpComponents;return new RegExp([`([${t}]|^)`,`(([${e}])([^${r}]|[^${r}]${o<=0?i:`${i}*?(?:\\n${i}*?){0,${o}}`}[^${r}])\\3)`,`([${n}]|$)`].join(""))}},t.restrictionFor=function(e){const t=new Set(["bold","code","entity","export-snippet","footnote-reference","inline-babel-call","inline-src-block","italic","line-break","latex-fragment","link","macro","radio-target","statistics-cookie","strike-through","subscript","superscript","table-cell","target","timestamp","underline","verbatim"]),n=new Set(["bold","code","entity","italic","latex-fragment","strike-through","subscript","superscript","underline","verbatim"]),r=new Set(t);r.delete("table-cell");const o=new Set(r);o.delete("line-break");const i=new Set(r);return i.delete("footnote-reference"),{bold:r,"footnote-reference":r,headline:o,inlinetask:o,italic:r,"list-item":o,keyword:i,link:new Set(["export-snippet","inline-babel-call","inline-src-block","macro","statistics-cookie",...n]),paragraph:r,"radio-target":n,"strike-through":r,subscript:r,superscript:r,"table-cell":new Set(["export-snippet","footnote-reference","link","macro","radio-target","target","timestamp",...n]),"table-row":new Set(["table-cell"]),underline:r,"verse-block":r}[e]},t.greaterElements=new Set(["center-block","drawer","dynamic-block","footnote-definition","inlinetask","list-item","plain-list","property-drawer","quote-block","section","special-block","table"]),t.unescapeCodeInString=function(e){return e.replace(/^[ \t]*,(,*)(\*|#\+)/gm,"$1$2")},t.escapeRegExp=n},42728:function(e,t,n){"use strict";const r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(10559));e.exports=r.default},65126:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.orgToHast=void 0;const o=r(n(50914)),i=r(n(31742)),a={imageFilenameExtensions:["png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm","pnm","svg"]},s=new Set(["article","aside","audio","canvas","details","figcaption","figure","footer","header","menu","meter","nav","output","progress","section","summary","video"]);function c(e,t,n,r){var o;const a=i.default(t,n||{},r||[]),s=null===(o=null===e||void 0===e?void 0:e.data)||void 0===o?void 0:o.hProperties;return s&&(a.properties=Object.assign({},a.properties,s)),a}t.orgToHast=function(e,t={}){const n=Object.assign(Object.assign({},a),t);return function e(t){var r;if(Array.isArray(t))return t.map(e).filter((e=>null!==e&&void 0!==e)).flatMap((e=>Array.isArray(e)?e:[e]));const i=t;switch(i.type){case"org-data":return{type:"root",children:e(i.children)};case"section":{const t=i.children[0];return t.commented||t.tags.includes("noexport")?null:e(i.children)}case"headline":{const t=(e,t)=>e.flatMap((e=>[t,e])).slice(1),n=i.todoKeyword?[c(i,"span",{className:["todo-keyword",i.todoKeyword]},i.todoKeyword)," "]:null,r=i.priority?[c(i,"span",{className:["priority",`priority-${i.priority}`]},`[${i.priority}]`)," "]:null,a=i.tags.length?[o.default("text",{value:"\xa0\xa0\xa0"}),c(i,"span.tags",{},t(i.tags.map((e=>c(i,"span.tag",{className:`tag-${e}`},e))),"\xa0"))]:null;return c(i,`h${i.level}`,{},[n,r,e(i.children),a].filter((e=>e)))}case"plain-list":return"unordered"===i.listType?c(i,"ul",{},e(i.children)):"ordered"===i.listType?c(i,"ol",{},e(i.children)):c(i,"dl",{},e(i.children));case"list-item":return"list-item-tag"===(null===(r=i.children[0])||void 0===r?void 0:r.type)?[c(i,"dt",{},e(i.children[0].children)),c(i,"dd",{},e(i.children.slice(1)))]:c(i,"li",{},e(i.children));case"quote-block":return c(i,"blockquote",{},e(i.children));case"src-block":return c(i,"pre.src-block",{},c(i,"code",{className:i.language?`language-${i.language}`:void 0},u(i.value)));case"verse-block":return c(i,"pre.verse",{},e(i.children));case"center-block":return c(i,"div.center",{},e(i.children));case"comment-block":return null;case"example-block":return c(i,"div.exampe",{},i.value);case"export-block":return"html"===i.backend?o.default("raw",i.value):null;case"special-block":return s.has(i.blockType)?c(i,i.blockType,e(i.children)):c(i,"div",{className:["special-block",`block-${i.blockType}`]},e(i.children));case"keyword":return"HTML"===i.key?o.default("raw",i.value):null;case"horizontal-rule":return c(i,"hr",{});case"diary-sexp":return null;case"footnote-reference":case"footnote-definition":return null;case"paragraph":return c(i,"p",{},e(i.children));case"bold":return c(i,"strong",{},e(i.children));case"italic":return c(i,"em",{},e(i.children));case"superscript":return c(i,"sup",{},e(i.children));case"subscript":return c(i,"sub",{},e(i.children));case"code":return c(i,"code.inline-code",{},i.value);case"verbatim":return c(i,"code.inline-verbatim",{},i.value);case"strike-through":return c(i,"del",{},e(i.children));case"underline":return c(i,"span.underline",{style:"text-decoration: underline;"},e(i.children));case"text":return i.value;case"link":{let t=i.rawLink;"file"===i.linkType&&(t=encodeURI(t));const r=new RegExp(`.(${n.imageFilenameExtensions.join("|")})$`);return t.match(r)?c(i,"img",{src:t}):c(i,"a",{href:t},i.children.length?e(i.children):i.rawLink)}case"timestamp":return c(i,"span.timestamp",{},i.rawValue);case"planning":case"property-drawer":case"drawer":case"comment":return null;case"fixed-width":return c(i,"pre.fixed-width",{},i.value);case"clock":return null;case"latex-environment":return c(i,"div.math.math-display",{},i.value);case"latex-fragment":return c(i,"span.math.math-inline",{},i.contents.trim());case"entity":return o.default("text",{value:i.utf8});case"table":{const t=c(i,"table",{},[]);let n=!1,r=[];return i.children.forEach((o=>{"rule"===o.rowType&&(n?t.children.push(c(i,"tbody",e(r))):(t.children.push(c(i,"thead",{},r.map((t=>c(t,"tr",{},t.children.map((t=>c(t,"th",e(t.children))))))))),n=!0),r=[]),r.push(o)})),r.length&&t.children.push(c(i,"tbody",e(r))),t}case"table-row":return"standard"===i.rowType?c(i,"tr",e(i.children)):null;case"table-cell":return c(i,"td",e(i.children));default:return i}}(e)};const u=e=>{const t=e.split(/\n/g),n=Math.min(...t.map((e=>{var t,n;return null!==(n=null===(t=e.match(/\S/))||void 0===t?void 0:t.index)&&void 0!==n?n:1/0}))),r=n===1/0?0:n;return t.map((e=>e.substring(r))).join("\n")}},10559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(65126);t.default=function(){return function(e){return r.orgToHast(e)}}},50914:function(e){"use strict";e.exports=function(e,t,n){var r;null!==n&&void 0!==n||"object"===typeof t&&!Array.isArray(t)||(n=t,t={});r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!==n&&void 0!==n&&(r.value=String(n));return r}},33262:function(e,t,n){"use strict";var r=n(48145);e.exports=function(e,t,n){var o,i,a,s=r(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");o=e.children,a=o.length,t&&t.type&&(t=o.indexOf(t));if(isNaN(t)||t<0||t===1/0)throw new Error("Expected positive finite index or child node");for(;++t<a;)if(i=o[t],s(i,t,e))return i;return null}},48145:function(e){"use strict";function t(e){if(null==e)return n;if("string"===typeof e)return function(e){return t;function t(t){return Boolean(t&&t.type===e)}}(e);if("object"===typeof e)return"length"in e?function(e){var n=[],r=-1;for(;++r<e.length;)n[r]=t(e[r]);return o;function o(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(e):function(e){return t;function t(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return e;throw new Error("Expected function, string, or object as test")}function n(){return!0}e.exports=t},75432:function(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"===typeof e||(e={}),o(e.line)+":"+o(e.column)}function r(e){return e&&"object"===typeof e||(e={}),n(e.start)+"-"+n(e.end)}function o(e){return e&&"number"===typeof e?e:1}e.exports=function(e){if(!e||"object"!==typeof e)return"";if(t.call(e,"position")||t.call(e,"type"))return r(e.position);if(t.call(e,"start")||t.call(e,"end"))return r(e);if(t.call(e,"line")||t.call(e,"column"))return n(e);return""}},66750:function(e){e.exports=function(e){return e}},99294:function(e,t,n){"use strict";e.exports=c;var r=n(48145),o=n(66750),i=!0,a="skip",s=!1;function c(e,t,n,c){var u,l;"function"===typeof t&&"function"!==typeof n&&(c=n,n=t,t=null),l=r(t),u=c?-1:1,function e(r,d,f){var p,h="object"===typeof r&&null!==r?r:{};"string"===typeof h.type&&(p="string"===typeof h.tagName?h.tagName:"string"===typeof h.name?h.name:void 0,m.displayName="node ("+o(h.type+(p?"<"+p+">":""))+")");return m;function m(){var o,p,h=f.concat(r),m=[];if((!t||l(r,d,f[f.length-1]||null))&&(m=function(e){if(null!==e&&"object"===typeof e&&"length"in e)return e;if("number"===typeof e)return[i,e];return[e]}(n(r,f)))[0]===s)return m;if(r.children&&m[0]!==a)for(p=(c?r.children.length:-1)+u;p>-1&&p<r.children.length;){if((o=e(r.children[p],p,h)())[0]===s)return o;p="number"===typeof o[1]?o[1]:p+u}return m}}(e,null,[])()}c.CONTINUE=true,c.SKIP=a,c.EXIT=s},62854:function(e,t,n){"use strict";e.exports=s;var r=n(99294),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function s(e,t,n,o){"function"===typeof t&&"function"!==typeof n&&(o=n,n=t,t=null),r(e,t,(function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)}),o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=a},14787:function(e){"use strict";e.exports=function(e){var t=String(e),n=[],r=/\r?\n|\r/g;for(;r.exec(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:o,toPosition:o,toOffset:function(e){var t,r=e&&e.line,o=e&&e.column;isNaN(r)||isNaN(o)||!(r-1 in n)||(t=(n[r-2]||0)+o-1||0);return t>-1&&t<n[n.length-1]?t:-1}};function o(e){var t=-1;if(e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{}}}},80734:function(e,t,n){"use strict";var r=n(75432);function o(){}e.exports=a,o.prototype=Error.prototype,a.prototype=new o;var i=a.prototype;function a(e,t,n){var o,i,a;"string"===typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];"string"===typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),i=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},10939:function(e,t,n){"use strict";e.exports=n(65905)},45442:function(e,t,n){"use strict";var r=n(28064),o=n(54228),i=n(70529);e.exports=c;var a={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function c(e){var t,n;if(e){if("string"===typeof e||i(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof c))return new c(e);for(this.data={},this.messages=[],this.history=[],this.cwd=o.cwd(),n=-1;++n<s.length;)t=s[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)s.indexOf(t)<0&&(this[t]=e[t])}function u(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function l(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}c.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(c.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){l(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(c.prototype,"dirname",{get:function(){return"string"===typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(c.prototype,"basename",{get:function(){return"string"===typeof this.path?r.basename(this.path):void 0},set:function(e){l(e,"basename"),u(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(c.prototype,"extname",{get:function(){return"string"===typeof this.path?r.extname(this.path):void 0},set:function(e){if(u(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(c.prototype,"stem",{get:function(){return"string"===typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){l(e,"stem"),u(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},65905:function(e,t,n){"use strict";var r=n(80734),o=n(45442);e.exports=o,o.prototype.message=function(e,t,n){var o=new r(e,t,n);this.path&&(o.name=this.path+":"+o.name,o.file=this.path);return o.fatal=!1,this.messages.push(o),o},o.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},28064:function(e,t){"use strict";function n(e){var t,n;return r(e),t=47===e.charCodeAt(0),(n=function(e,t){var n,r,o="",i=0,a=-1,s=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.charCodeAt(c);else{if(47===n)break;n=47}if(47===n){if(a===c-1||1===s);else if(a!==c-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=c,s=0;continue}}else if(o.length){o="",i=0,a=c,s=0;continue}t&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(a+1,c):o=e.slice(a+1,c),i=c-a-1;a=c,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t)).length||t||(n="."),n.length&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var n,o,i,a,s=0,c=-1;if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');if(r(e),n=e.length,void 0===t||!t.length||t.length>e.length){for(;n--;)if(47===e.charCodeAt(n)){if(i){s=n+1;break}}else c<0&&(i=!0,c=n+1);return c<0?"":e.slice(s,c)}if(t===e)return"";o=-1,a=t.length-1;for(;n--;)if(47===e.charCodeAt(n)){if(i){s=n+1;break}}else o<0&&(i=!0,o=n+1),a>-1&&(e.charCodeAt(n)===t.charCodeAt(a--)?a<0&&(c=n):(a=-1,c=o));s===c?c=o:c<0&&(c=e.length);return e.slice(s,c)},t.dirname=function(e){var t,n,o;if(r(e),!e.length)return".";t=-1,o=e.length;for(;--o;)if(47===e.charCodeAt(o)){if(n){t=o;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,n,o,i=-1,a=0,s=-1,c=0;r(e),o=e.length;for(;o--;)if(47!==(n=e.charCodeAt(o)))s<0&&(t=!0,s=o+1),46===n?i<0?i=o:1!==c&&(c=1):i>-1&&(c=-1);else if(t){a=o+1;break}if(i<0||s<0||0===c||1===c&&i===s-1&&i===a+1)return"";return e.slice(i,s)},t.join=function(){var e,t=-1;for(;++t<arguments.length;)r(arguments[t]),arguments[t]&&(e=void 0===e?arguments[t]:e+"/"+arguments[t]);return void 0===e?".":n(e)},t.sep="/"},54228:function(e,t){"use strict";t.cwd=function(){return"/"}},70529:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},54992:function(e){"use strict";e.exports=JSON.parse('{"html":"http://www.w3.org/1999/xhtml","mathml":"http://www.w3.org/1998/Math/MathML","svg":"http://www.w3.org/2000/svg","xlink":"http://www.w3.org/1999/xlink","xml":"http://www.w3.org/XML/1998/namespace","xmlns":"http://www.w3.org/2000/xmlns/"}')},22663:function(e){function t(e){return e}e.exports=function(e,n){if(null==e)return e;var r=(n=n||{}).width||50,o="string"===typeof n.indent?n.indent:"  ",i=n.newline||"\n"+o,a="function"===typeof n.escape?n.escape:t,s=".{1,"+r+"}";!0!==n.cut&&(s+="([\\s\u200b]+|$)|[^\\s\u200b]+?([\\s\u200b]+|$)");var c=new RegExp(s,"g"),u=o+(e.match(c)||[]).map((function(e){return"\n"===e.slice(-1)&&(e=e.slice(0,e.length-1)),a(e)})).join(i);return!0===n.trim&&(u=u.replace(/[ \t]*$/gm,"")),u}},47529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty}}]);
\ No newline at end of file
diff --git a/out/_next/static/chunks/pages/_app-85bcdbfb2d764277a926.js b/out/_next/static/chunks/pages/_app-85bcdbfb2d764277a926.js
new file mode 100644
index 0000000..00d1374
--- /dev/null
+++ b/out/_next/static/chunks/pages/_app-85bcdbfb2d764277a926.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{96156:function(r,e,t){"use strict";function n(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}t.d(e,{Z:function(){return n}})},24738:function(r,e,t){"use strict";t.d(e,{SG:function(){return x},If:function(){return y}});var n=t(73808),o=t(84461),a=t(80658),i=t(67294),s="chakra-ui-light",l="chakra-ui-dark",c={classList:{add:a.ZT,remove:a.ZT}};function u(r){var e=o.jU?document.body:c;e.classList.add(r?l:s),e.classList.remove(r?s:l)}var d="(prefers-color-scheme: dark)";function f(r){var e;return(null!=(e=function(r){var e=null==window.matchMedia?void 0:window.matchMedia(r);if(e)return!!e.media===e.matches}(d))?e:"dark"===r)?"dark":"light"}var p=()=>document.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),h=r=>{o.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",r)},b=()=>"undefined"!==typeof Storage,g="chakra-ui-color-mode",m={get(r){if(!b())return r;try{var e=localStorage.getItem(g);return null!=e?e:r}catch(t){return n.Ts&&console.log(t),r}},set(r){if(b())try{localStorage.setItem(g,r)}catch(e){n.Ts&&console.log(e)}},type:"localStorage"};var v=i.createContext({});n.Ts&&(v.displayName="ColorModeContext");var y=()=>{var r=i.useContext(v);if(void 0===r)throw new Error("useColorMode must be used within a ColorModeProvider");return r};function x(r){var{value:e,children:t,options:{useSystemColorMode:n,initialColorMode:s},colorModeManager:l=m}=r,[c,b]=i.useState("cookie"===l.type?l.get(s):s);i.useEffect((()=>{if(o.jU&&"localStorage"===l.type){var r=n?f(s):p()||l.get();r&&b(r)}}),[l,n,s]),i.useEffect((()=>{var r="dark"===c;u(r),h(r?"dark":"light")}),[c]);var g=i.useCallback((r=>{l.set(r),b(r)}),[l]),y=i.useCallback((()=>{g("light"===c?"dark":"light")}),[c,g]);i.useEffect((()=>{var r;return n&&(r=function(r){if(!("matchMedia"in window))return a.ZT;var e=window.matchMedia(d),t=()=>{r(e.matches?"dark":"light")};return t(),e.addListener(t),()=>{e.removeListener(t)}}(g)),()=>{r&&n&&r()}}),[g,n]);var x=i.useMemo((()=>({colorMode:null!=e?e:c,toggleColorMode:e?a.ZT:y,setColorMode:e?a.ZT:g})),[c,g,y,e]);return i.createElement(v.Provider,{value:x},t)}n.Ts&&(x.displayName="ColorModeProvider");n.Ts;n.Ts},94577:function(r,e,t){"use strict";t.d(e,{vc:function(){return i},Me:function(){return s},ZS:function(){return l}});var n=t(67294),o={prefix:Math.round(1e10*Math.random()),current:0},a=n.createContext(o),i=n.memo((r=>{var{children:e}=r,t=n.useContext(a),i=t===o,s=n.useMemo((()=>({prefix:i?0:++t.prefix,current:0})),[i,t]);return n.createElement(a.Provider,{value:s},e)}));function s(r,e){var t=n.useContext(a);return n.useMemo((()=>r||[e,t.prefix,++t.current].filter(Boolean).join("-")),[r,e])}function l(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];var a=s(r);return n.useMemo((()=>t.map((r=>r+"-"+a))),[a,t])}},34288:function(r,e,t){"use strict";t.d(e,{L:function(){return s},h:function(){return l}});var n=t(73808),o=t(28500),a=t(67294),[i,s]=(0,o.k)({strict:!1,name:"PortalManagerContext"});function l(r){var{children:e,zIndex:t}=r;return a.createElement(i,{value:{zIndex:t}},e)}n.Ts&&(l.displayName="PortalManager")},28500:function(r,e,t){"use strict";t.d(e,{k:function(){return o}});var n=t(67294);function o(r){void 0===r&&(r={});var{strict:e=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=r,a=n.createContext(void 0);return a.displayName=o,[a.Provider,function r(){var o=n.useContext(a);if(!o&&e){var i=new Error(t);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,r),i}return o},a]}},13205:function(r,e,t){"use strict";t.d(e,{Oq:function(){return B},Cg:function(){return j},$_:function(){return O},cE:function(){return T},hX:function(){return F},GQ:function(){return P},eC:function(){return I},Mw:function(){return M},bK:function(){return D},pb:function(){return W},o_:function(){return $},FK:function(){return Z},v_:function(){return V},Dh:function(){return q},QX:function(){return G},vs:function(){return Y},eR:function(){return X},cp:function(){return U}});var n=t(73808);function o(r){var{scale:e,transform:t,compose:o}=r;return(r,a)=>{var i,s=((r,e)=>t=>{var o=String(e),a=r?r+"."+o:o;return(0,n.Kn)(t.__cssMap)&&a in t.__cssMap?t.__cssMap[a].varRef:e})(e,r)(a),l=null!=(i=null==t?void 0:t(s,a))?i:s;return o&&(l=o(l,a)),l}}function a(r,e){return t=>{var n={property:t,scale:r};return n.transform=o({scale:r,transform:e}),n}}var i=r=>{var{rtl:e,ltr:t}=r;return r=>"rtl"===r.direction?e:t};var s=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var l={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},c={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var u={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},d="& > :not(style) ~ :not(style)",f={[d]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},p={[d]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}};function h(r,e){h=function(r,e){return new a(r,void 0,e)};var t=g(RegExp),n=RegExp.prototype,o=new WeakMap;function a(r,e,n){var a=t.call(this,r,e);return o.set(a,n||o.get(r)),a}function i(r,e){var t=o.get(e);return Object.keys(t).reduce((function(e,n){return e[n]=r[t[n]],e}),Object.create(null))}return b(a,t),a.prototype.exec=function(r){var e=n.exec.call(this,r);return e&&(e.groups=i(e,this)),e},a.prototype[Symbol.replace]=function(r,e){if("string"===typeof e){var t=o.get(this);return n[Symbol.replace].call(this,r,e.replace(/\$<([^>]+)>/g,(function(r,e){return"$"+t[e]})))}if("function"===typeof e){var a=this;return n[Symbol.replace].call(this,r,(function(){var r=[];return r.push.apply(r,arguments),"object"!==typeof r[r.length-1]&&r.push(i(r,a)),e.apply(this,r)}))}return n[Symbol.replace].call(this,r,e)},h.apply(this,arguments)}function b(r,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&y(r,e)}function g(r){var e="function"===typeof Map?new Map:void 0;return(g=function(r){if(null===r||(t=r,-1===Function.toString.call(t).indexOf("[native code]")))return r;var t;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return m(r,arguments,x(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,r)})(r)}function m(r,e,t){return(m=v()?Reflect.construct:function(r,e,t){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(r,n));return t&&y(o,t.prototype),o}).apply(null,arguments)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function y(r,e){return(y=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function x(r){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var w={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},k=new Set(Object.values(w)),S=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),_=r=>r.trim();var C=r=>e=>r+"("+e+")",A={filter:r=>"auto"!==r?r:l,backdropFilter:r=>"auto"!==r?r:c,ring:r=>function(r){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":r,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(A.px(r)),bgClip:r=>"text"===r?{color:"transparent",backgroundClip:"text"}:{backgroundClip:r},transform:r=>"auto"===r?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s].join(" "):"auto-gpu"===r?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s].join(" "):r,px(r){if(null==r)return r;var{unitless:e}=(r=>{var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}})(r);return e||(0,n.hj)(r)?r+"px":r},fraction:r=>!(0,n.hj)(r)||r>1?r:100*r+"%",float:(r,e)=>"rtl"===e.direction?{left:"right",right:"left"}[r]:r,degree(r){if((0,n.FS)(r)||null==r)return r;var e=(0,n.HD)(r)&&!r.endsWith("deg");return(0,n.hj)(r)||e?r+"deg":r},gradient:(r,e)=>function(r,e){var t,n;if(null==r||S.has(r))return r;var o=h(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:a,values:i}=null!=(t=null==(n=o.exec(r))?void 0:n.groups)?t:{};if(!a||!i)return r;var s=a.includes("-gradient")?a:a+"-gradient",[l,...c]=i.split(",").map(_).filter(Boolean);if(0===(null==c?void 0:c.length))return r;var u=l in w?w[l]:l;return c.unshift(u),s+"("+c.map((r=>{if(k.has(r))return r;var[t,n]=r.split(" "),o="colors."+t,a=o in e.__cssMap?e.__cssMap[o].varRef:t;return n?[a,n].join(" "):a})).join(", ")+")"}(r,null!=e?e:{}),blur:C("blur"),opacity:C("opacity"),brightness:C("brightness"),contrast:C("contrast"),dropShadow:C("drop-shadow"),grayscale:C("grayscale"),hueRotate:C("hue-rotate"),invert:C("invert"),saturate:C("saturate"),sepia:C("sepia"),bgImage:r=>null==r||E(r)||S.has(r)?r:"url("+r+")",outline(r){var e="0"===String(r)||"none"===String(r);return null!==r&&e?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:r}},flexDirection(r){var e,{space:t,divide:n}=null!=(e=u[r])?e:{},o={flexDirection:r};return t&&(o[t]=1),n&&(o[n]=1),o}},E=r=>(0,n.HD)(r)&&r.includes("(")&&r.includes(")");function z(){return(z=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var R={borderWidths:a("borderWidths"),borderStyles:a("borderStyles"),colors:a("colors"),borders:a("borders"),radii:a("radii",A.px),space:a("space",A.px),spaceT:a("space",A.px),degreeT:r=>({property:r,transform:A.degree}),prop:(r,e,t)=>z({property:r,scale:e},e&&{transform:o({scale:e,transform:t})}),propT:(r,e)=>({property:r,transform:e}),sizes:a("sizes",A.px),sizesT:a("sizes",A.fraction),shadows:a("shadows"),logical:function(r){var{property:e,scale:t,transform:n}=r;return{scale:t,property:i(e),transform:t?o({scale:t,compose:n}):n}},blur:a("blur",A.blur)},B={background:R.colors("background"),backgroundColor:R.colors("backgroundColor"),backgroundImage:R.propT("backgroundImage",A.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:R.prop("backgroundSize"),bgPosition:R.prop("backgroundPosition"),bg:R.colors("background"),bgColor:R.colors("backgroundColor"),bgPos:R.prop("backgroundPosition"),bgRepeat:R.prop("backgroundRepeat"),bgAttachment:R.prop("backgroundAttachment"),bgGradient:R.propT("backgroundImage",A.gradient),bgClip:{transform:A.bgClip}};Object.assign(B,{bgImage:B.backgroundImage,bgImg:B.backgroundImage});var j={border:R.borders("border"),borderWidth:R.borderWidths("borderWidth"),borderStyle:R.borderStyles("borderStyle"),borderColor:R.colors("borderColor"),borderRadius:R.radii("borderRadius"),borderTop:R.borders("borderTop"),borderBlockStart:R.borders("borderBlockStart"),borderTopLeftRadius:R.radii("borderTopLeftRadius"),borderStartStartRadius:R.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:R.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:R.radii("borderTopRightRadius"),borderStartEndRadius:R.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:R.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:R.borders("borderRight"),borderInlineEnd:R.borders("borderInlineEnd"),borderBottom:R.borders("borderBottom"),borderBlockEnd:R.borders("borderBlockEnd"),borderBottomLeftRadius:R.radii("borderBottomLeftRadius"),borderBottomRightRadius:R.radii("borderBottomRightRadius"),borderLeft:R.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:R.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:R.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:R.borders(["borderLeft","borderRight"]),borderInline:R.borders("borderInline"),borderY:R.borders(["borderTop","borderBottom"]),borderBlock:R.borders("borderBlock"),borderTopWidth:R.borderWidths("borderTopWidth"),borderBlockStartWidth:R.borderWidths("borderBlockStartWidth"),borderTopColor:R.colors("borderTopColor"),borderBlockStartColor:R.colors("borderBlockStartColor"),borderTopStyle:R.borderStyles("borderTopStyle"),borderBlockStartStyle:R.borderStyles("borderBlockStartStyle"),borderBottomWidth:R.borderWidths("borderBottomWidth"),borderBlockEndWidth:R.borderWidths("borderBlockEndWidth"),borderBottomColor:R.colors("borderBottomColor"),borderBlockEndColor:R.colors("borderBlockEndColor"),borderBottomStyle:R.borderStyles("borderBottomStyle"),borderBlockEndStyle:R.borderStyles("borderBlockEndStyle"),borderLeftWidth:R.borderWidths("borderLeftWidth"),borderInlineStartWidth:R.borderWidths("borderInlineStartWidth"),borderLeftColor:R.colors("borderLeftColor"),borderInlineStartColor:R.colors("borderInlineStartColor"),borderLeftStyle:R.borderStyles("borderLeftStyle"),borderInlineStartStyle:R.borderStyles("borderInlineStartStyle"),borderRightWidth:R.borderWidths("borderRightWidth"),borderInlineEndWidth:R.borderWidths("borderInlineEndWidth"),borderRightColor:R.colors("borderRightColor"),borderInlineEndColor:R.colors("borderInlineEndColor"),borderRightStyle:R.borderStyles("borderRightStyle"),borderInlineEndStyle:R.borderStyles("borderInlineEndStyle"),borderTopRadius:R.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:R.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:R.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:R.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(j,{rounded:j.borderRadius,roundedTop:j.borderTopRadius,roundedTopLeft:j.borderTopLeftRadius,roundedTopRight:j.borderTopRightRadius,roundedTopStart:j.borderStartStartRadius,roundedTopEnd:j.borderStartEndRadius,roundedBottom:j.borderBottomRadius,roundedBottomLeft:j.borderBottomLeftRadius,roundedBottomRight:j.borderBottomRightRadius,roundedBottomStart:j.borderEndStartRadius,roundedBottomEnd:j.borderEndEndRadius,roundedLeft:j.borderLeftRadius,roundedRight:j.borderRightRadius,roundedStart:j.borderInlineStartRadius,roundedEnd:j.borderInlineEndRadius,borderStart:j.borderInlineStart,borderEnd:j.borderInlineEnd,borderTopStartRadius:j.borderStartStartRadius,borderTopEndRadius:j.borderStartEndRadius,borderBottomStartRadius:j.borderEndStartRadius,borderBottomEndRadius:j.borderEndEndRadius,borderStartRadius:j.borderInlineStartRadius,borderEndRadius:j.borderInlineEndRadius,borderStartWidth:j.borderInlineStartWidth,borderEndWidth:j.borderInlineEndWidth,borderStartColor:j.borderInlineStartColor,borderEndColor:j.borderInlineEndColor,borderStartStyle:j.borderInlineStartStyle,borderEndStyle:j.borderInlineEndStyle});var O={color:R.colors("color"),textColor:R.colors("color"),fill:R.colors("fill"),stroke:R.colors("stroke")},T={boxShadow:R.shadows("boxShadow"),mixBlendMode:!0,blendMode:R.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:R.prop("backgroundBlendMode"),opacity:!0};Object.assign(T,{shadow:T.boxShadow});var F={filter:{transform:A.filter},blur:R.blur("--chakra-blur"),brightness:R.propT("--chakra-brightness",A.brightness),contrast:R.propT("--chakra-contrast",A.contrast),hueRotate:R.degreeT("--chakra-hue-rotate"),invert:R.propT("--chakra-invert",A.invert),saturate:R.propT("--chakra-saturate",A.saturate),dropShadow:R.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:R.blur("--chakra-backdrop-blur"),backdropBrightness:R.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:R.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:R.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:R.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:R.propT("--chakra-backdrop-saturate",A.saturate)},P={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},experimental_spaceX:{static:f,transform:o({scale:"space",transform:r=>null!==r?{"--chakra-space-x":r}:null})},experimental_spaceY:{static:p,transform:o({scale:"space",transform:r=>null!=r?{"--chakra-space-y":r}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:R.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(P,{flexDir:P.flexDirection});var I={gridGap:R.space("gridGap"),gridColumnGap:R.space("gridColumnGap"),gridRowGap:R.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},M={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:R.colors("outlineColor")},D={width:R.sizesT("width"),inlineSize:R.sizesT("inlineSize"),height:R.sizes("height"),blockSize:R.sizes("blockSize"),boxSize:R.sizes(["width","height"]),minWidth:R.sizes("minWidth"),minInlineSize:R.sizes("minInlineSize"),minHeight:R.sizes("minHeight"),minBlockSize:R.sizes("minBlockSize"),maxWidth:R.sizes("maxWidth"),maxInlineSize:R.sizes("maxInlineSize"),maxHeight:R.sizes("maxHeight"),maxBlockSize:R.sizes("maxBlockSize"),d:R.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:R.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(D,{w:D.width,h:D.height,minW:D.minWidth,maxW:D.maxWidth,minH:D.minHeight,maxH:D.maxHeight,overscroll:D.overscrollBehavior,overscrollX:D.overscrollBehaviorX,overscrollY:D.overscrollBehaviorY});var W={listStyleType:!0,listStylePosition:!0,listStylePos:R.prop("listStylePosition"),listStyleImage:!0,listStyleImg:R.prop("listStyleImage")},J=t(4651),N={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},L=(r,e,t)=>{var n={},o=(0,J.Wf)(r,e,{});for(var a in o){a in t&&null!=t[a]||(n[a]=o[a])}return n},$={srOnly:{transform:r=>!0===r?N:"focusable"===r?H:{}},layerStyle:{processResult:!0,transform:(r,e,t)=>L(e,"layerStyles."+r,t)},textStyle:{processResult:!0,transform:(r,e,t)=>L(e,"textStyles."+r,t)},apply:{processResult:!0,transform:(r,e,t)=>L(e,r,t)}},Z={position:!0,pos:R.prop("position"),zIndex:R.prop("zIndex","zIndices"),inset:R.spaceT(["top","right","bottom","left"]),insetX:R.spaceT(["left","right"]),insetInline:R.spaceT("insetInline"),insetY:R.spaceT(["top","bottom"]),insetBlock:R.spaceT("insetBlock"),top:R.spaceT("top"),insetBlockStart:R.spaceT("insetBlockStart"),bottom:R.spaceT("bottom"),insetBlockEnd:R.spaceT("insetBlockEnd"),left:R.spaceT("left"),insetInlineStart:R.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:R.spaceT("right"),insetInlineEnd:R.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var V={ring:{transform:A.ring},ringColor:R.colors("--chakra-ring-color"),ringOffset:R.prop("--chakra-ring-offset-width"),ringOffsetColor:R.colors("--chakra-ring-offset-color"),ringInset:R.prop("--chakra-ring-inset")},q={margin:R.spaceT("margin"),marginTop:R.spaceT("marginTop"),marginBlockStart:R.spaceT("marginBlockStart"),marginRight:R.spaceT("marginRight"),marginInlineEnd:R.spaceT("marginInlineEnd"),marginBottom:R.spaceT("marginBottom"),marginBlockEnd:R.spaceT("marginBlockEnd"),marginLeft:R.spaceT("marginLeft"),marginInlineStart:R.spaceT("marginInlineStart"),marginX:R.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:R.spaceT("marginInline"),marginY:R.spaceT(["marginTop","marginBottom"]),marginBlock:R.spaceT("marginBlock"),padding:R.space("padding"),paddingTop:R.space("paddingTop"),paddingBlockStart:R.space("paddingBlockStart"),paddingRight:R.space("paddingRight"),paddingBottom:R.space("paddingBottom"),paddingBlockEnd:R.space("paddingBlockEnd"),paddingLeft:R.space("paddingLeft"),paddingInlineStart:R.space("paddingInlineStart"),paddingInlineEnd:R.space("paddingInlineEnd"),paddingX:R.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:R.space("paddingInline"),paddingY:R.space(["paddingTop","paddingBottom"]),paddingBlock:R.space("paddingBlock")};Object.assign(q,{m:q.margin,mt:q.marginTop,mr:q.marginRight,me:q.marginInlineEnd,marginEnd:q.marginInlineEnd,mb:q.marginBottom,ml:q.marginLeft,ms:q.marginInlineStart,marginStart:q.marginInlineStart,mx:q.marginX,my:q.marginY,p:q.padding,pt:q.paddingTop,py:q.paddingY,px:q.paddingX,pb:q.paddingBottom,pl:q.paddingLeft,ps:q.paddingInlineStart,paddingStart:q.paddingInlineStart,pr:q.paddingRight,pe:q.paddingInlineEnd,paddingEnd:q.paddingInlineEnd});var G={textDecorationColor:R.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:R.shadows("textShadow")},Y={clipPath:!0,transform:R.propT("transform",A.transform),transformOrigin:!0,translateX:R.spaceT("--chakra-translate-x"),translateY:R.spaceT("--chakra-translate-y"),skewX:R.degreeT("--chakra-skew-x"),skewY:R.degreeT("--chakra-skew-y"),scaleX:R.prop("--chakra-scale-x"),scaleY:R.prop("--chakra-scale-y"),scale:R.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:R.degreeT("--chakra-rotate")},X={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:R.prop("transitionDuration","transition.duration"),transitionProperty:R.prop("transitionProperty","transition.property"),transitionTimingFunction:R.prop("transitionTimingFunction","transition.easing")},U={fontFamily:R.prop("fontFamily","fonts"),fontSize:R.prop("fontSize","fontSizes",A.px),fontWeight:R.prop("fontWeight","fontWeights"),lineHeight:R.prop("lineHeight","lineHeights"),letterSpacing:R.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform(r){if(!0===r)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}}},55608:function(r,e,t){"use strict";t.d(e,{c0:function(){return C}});var n=t(73808);function o(r){return(0,n.Kn)(r)&&r.reference?r.reference:String(r)}var a=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.map(o).join(" "+r+" ").replace(/calc/g,"")},i=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("+",...e)+")"},s=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("-",...e)+")"},l=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("*",...e)+")"},c=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("/",...e)+")"},u=r=>{var e=o(r);return null==e||Number.isNaN(parseFloat(e))?l(e,-1):String(e).startsWith("-")?String(e).slice(1):"-"+e},d=Object.assign((r=>({add:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(i(r,...t))},subtract:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(s(r,...t))},multiply:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(l(r,...t))},divide:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(c(r,...t))},negate:()=>d(u(r)),toString:()=>r.toString()})),{add:i,subtract:s,multiply:l,divide:c,negate:u}),f=t(88456);function p(r){var e=function(r,e){return void 0===e&&(e="-"),r.replace(/\s+/g,e)}(r.toString());return e.includes("\\.")?r:!Number.isInteger(parseFloat(r.toString()))?e.replace(".","\\."):r}function h(r,e){return"var("+p(r)+(e?", "+e:"")+")"}function b(r,e){return void 0===e&&(e=""),"--"+function(r,e){return void 0===e&&(e=""),[e,p(r)].filter(Boolean).join("-")}(r,e)}function g(r,e,t){var n=b(r,t);return{variable:n,reference:h(n,e)}}function m(){return(m=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function v(r,e){var t={cssMap:{},cssVars:{}};return function(r,e){(function r(t,o){return void 0===o&&(o=[]),(0,n.kJ)(t)?t.map(((e,t)=>r(e,[...o,String(t)]))):(0,n.Kn)(t)?Object.fromEntries(Object.entries(t).map((e=>{var[t,n]=e;return[t,r(n,[...o,t])]}))):e(t,o)})(r)}(r,((r,n)=>{var o,[a]=n,i=null!=(o=y[a])?o:y.defaultHandler,{cssVars:s,cssMap:l}=i(n,r,e);Object.assign(t.cssVars,s),Object.assign(t.cssMap,l)})),t}var y={space:(r,e,t)=>{var n=y.defaultHandler(r,e,t),[o,...a]=r,i=o+".-"+a.join("."),s=r.join("-"),{variable:l,reference:c}=g(s,void 0,t.cssVarPrefix),u=d.negate(e),f=d.negate(c);return{cssVars:n.cssVars,cssMap:m({},n.cssMap,{[i]:{value:""+u,var:""+l,varRef:f}})}},defaultHandler:(r,e,t)=>{var n=r.join("."),o=r.join("-"),{variable:a,reference:i}=g(o,void 0,t.cssVarPrefix);return{cssVars:{[a]:e},cssMap:{[n]:{value:e,var:a,varRef:i}}}}},x=t(4651);var w=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function k(r){var e=w;return(0,x.ei)(r,e)}function S(r){return function(r,e){if(null==r)return{};var t,n,o={},a=Object.keys(r);for(n=0;n<a.length;n++)t=a[n],e.indexOf(t)>=0||(o[t]=r[t]);return o}(r,["__cssMap","__cssVars","__breakpoints"])}function _(){return(_=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function C(r){var e,t=S(r),n=k(t),o=null==(e=t.config)?void 0:e.cssVarPrefix,{cssMap:a,cssVars:i}=v(n,{cssVarPrefix:o});return Object.assign(t,{__cssVars:_({},{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},i),__cssMap:a,__breakpoints:(0,f.y)(t.breakpoints)}),t}},33565:function(r,e,t){"use strict";t.d(e,{i:function(){return f}});var n=t(73808),o=t(80658),a=t(38554),i=t.n(a),s=t(28680),l=t(25503),c=(r,e)=>r.startsWith("--")&&(0,n.HD)(e)&&!(0,n.FS)(e),u=(r,e)=>{var t,n;if(null==e)return e;var o=e=>{var t,n;return null==(t=r.__cssMap)||null==(n=t[e])?void 0:n.varRef},a=r=>{var e;return null!=(e=o(r))?e:r},i=e.split(",").map((r=>r.trim())),[s,l]=i;return e=null!=(t=null!=(n=o(s))?n:a(l))?t:a(e)};function d(r){var{configs:e={},pseudos:t={},theme:a}=r;return function r(s,l){void 0===l&&(l=!1);var d=(0,o.Pu)(s,a),f=(r=>e=>{if(!e.__breakpoints)return r;var{isResponsive:t,toArrayValue:a,media:i}=e.__breakpoints,s={};for(var l in r){var c=(0,o.Pu)(r[l],e);if(null!=c)if(c=(0,n.Kn)(c)&&t(c)?a(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var f=null==i?void 0:i[d];f?(s[f]=s[f]||{},null!=c[d]&&(s[f][l]=c[d])):s[l]=c[d]}else s[l]=c}return s})(d)(a),p={};for(var h in f){var b,g,m,v,y,x=f[h],w=(0,o.Pu)(x,a);h in t&&(h=t[h]),c(h,w)&&(w=u(a,w));var k=e[h];if(!0===k&&(k={property:h}),(0,n.Kn)(w)){var S;p[h]=null!=(S=p[h])?S:{},p[h]=i()({},p[h],r(w,!0))}else{var _=null!=(b=null==(g=k)||null==g.transform?void 0:g.transform(w,a,d))?b:w;_=null!=(m=k)&&m.processResult?r(_,!0):_;var C=(0,o.Pu)(null==(v=k)?void 0:v.property,a);if(!l&&null!=(y=k)&&y.static){var A=(0,o.Pu)(k.static,a);p=i()({},p,A)}if(C&&Array.isArray(C))for(var E of C)p[E]=_;else C?"&"===C&&(0,n.Kn)(_)?p=i()({},p,_):p[C]=_:(0,n.Kn)(_)?p=i()({},p,_):p[h]=_}}return p}}var f=r=>e=>d({theme:e,pseudos:s.v,configs:l.Ul})(r)},9421:function(r,e,t){"use strict";t.d(e,{iv:function(){return n.i},isStyleProp:function(){return i.ZR},layoutPropNames:function(){return i.oE},propNames:function(){return i.cC},toCSSVar:function(){return s.c0}});t(13205);var n=t(33565),o=t(41664);t.o(o,"isStyleProp")&&t.d(e,{isStyleProp:function(){return o.isStyleProp}}),t.o(o,"layoutPropNames")&&t.d(e,{layoutPropNames:function(){return o.layoutPropNames}}),t.o(o,"propNames")&&t.d(e,{propNames:function(){return o.propNames}}),t.o(o,"toCSSVar")&&t.d(e,{toCSSVar:function(){return o.toCSSVar}}),t.o(o,"useTheme")&&t.d(e,{useTheme:function(){return o.useTheme}});var a=t(87759);t.o(a,"isStyleProp")&&t.d(e,{isStyleProp:function(){return a.isStyleProp}}),t.o(a,"layoutPropNames")&&t.d(e,{layoutPropNames:function(){return a.layoutPropNames}}),t.o(a,"propNames")&&t.d(e,{propNames:function(){return a.propNames}}),t.o(a,"toCSSVar")&&t.d(e,{toCSSVar:function(){return a.toCSSVar}}),t.o(a,"useTheme")&&t.d(e,{useTheme:function(){return a.useTheme}});var i=t(25503),s=t(55608)},28680:function(r,e,t){"use strict";t.d(e,{v:function(){return d},_:function(){return f}});var n=t(4651),o=r=>r+":focus &, "+r+"[data-focus] &",a=r=>r+":active &, "+r+"[data-active] &",i=r=>r+":disabled &, "+r+"[data-disabled] &",s=r=>r+":invalid &, "+r+"[data-invalid] &",l=r=>r+":checked &, "+r+"[data-checked] &",c=r=>u(r,"[role=group]","[data-group]",".group"),u=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.map(r).join(", ")},d={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:c((r=>r+":hover &, "+r+"[data-hover] &")),_groupFocus:c(o),_groupActive:c(a),_groupDisabled:c(i),_groupInvalid:c(s),_groupChecked:c(l),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},f=(0,n.Yd)(d)},25503:function(r,e,t){"use strict";t.d(e,{Ul:function(){return c},oE:function(){return d},cC:function(){return f},ZR:function(){return h}});var n=t(38554),o=t.n(n),a=t(4651),i=t(13205),s=t(28680);function l(){return(l=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var c=o()({},i.Oq,i.Cg,i.$_,i.GQ,i.bK,i.hX,i.v_,i.Mw,i.eC,i.o_,i.FK,i.cE,i.Dh,i.cp,i.QX,i.vs,i.pb,i.eR),u=Object.assign({},i.Dh,i.bK,i.GQ,i.eC,i.FK),d=(0,a.Yd)(u),f=[...(0,a.Yd)(c),...s._],p=l({},c,s.v),h=r=>r in p},41664:function(){},87759:function(){},29676:function(r,e,t){"use strict";t.d(e,{f6:function(){return d},Fg:function(){return f},Fo:function(){return p},yK:function(){return h},ZL:function(){return b}});var n=t(24738),o=t(9421),a=t(4651),i=t(80658),s=t(28500),l=t(65199),c=t(70917),u=t(67294),d=r=>{var{cssVarsRoot:e=":host, :root",theme:t,children:n}=r,a=u.useMemo((()=>(0,o.toCSSVar)(t)),[t]);return u.createElement(l.a,{theme:a},u.createElement(c.Global,{styles:r=>({[e]:r.__cssVars})}),n)};function f(){var r=u.useContext(l.T);if(!r)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return r}var[p,h]=(0,s.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),b=()=>{var{colorMode:r}=(0,n.If)();return u.createElement(c.Global,{styles:e=>{var t=(0,a.Wf)(e,"styles.global"),n=(0,i.Pu)(t,{theme:e,colorMode:r});if(n)return(0,o.iv)(n)(e)}})}},63108:function(r,e,t){"use strict";function n(r,e){return t=>"dark"===t.colorMode?e:r}function o(r){var{orientation:e,vertical:t,horizontal:n}=r;return e?"vertical"===e?t:n:{}}t.d(e,{xJ:function(){return n},fL:function(){return o}})},83035:function(r,e,t){"use strict";t.d(e,{Z:function(){return Be}});var n={parts:["container","button","panel","icon"],baseStyle:{container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}}},o=t(17621),a=t.n(o),i=t(4651),s=t(73808),l=(r,e,t)=>{var n=(0,i.Wf)(r,"colors."+e,e);return a()(n).isValid()?n:t},c=r=>e=>{var t=l(e,r);return a()(t).isDark()?"dark":"light"},u=(r,e)=>t=>{var n=l(t,r);return a()(n).setAlpha(e).toRgbString()};function d(r,e){return void 0===r&&(r="1rem"),void 0===e&&(e="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n    45deg,\n    "+e+" 25%,\n    transparent 25%,\n    transparent 50%,\n    "+e+" 50%,\n    "+e+" 75%,\n    transparent 75%,\n    transparent\n  )",backgroundSize:r+" "+r}}function f(r){var e=a().random().toHexString();return!r||(0,s.Qr)(r)?e:r.string&&r.colors?function(r,e){var t=0;if(0===r.length)return e[0];for(var n=0;n<r.length;n+=1)t=r.charCodeAt(n)+((t<<5)-t),t&=t;return t=(t%e.length+e.length)%e.length,e[t]}(r.string,r.colors):r.string&&!r.colors?function(r){var e=0;if(0===r.length)return e.toString();for(var t=0;t<r.length;t+=1)e=r.charCodeAt(t)+((e<<5)-e),e&=e;for(var n="#",o=0;o<3;o+=1){n+=("00"+(e>>8*o&255).toString(16)).substr(-2)}return n}(r.string):r.colors&&!r.string?function(r){return r[Math.floor(Math.random()*r.length)]}(r.colors):e}var p=t(63108);function h(r){var{theme:e,colorScheme:t}=r,n=l(e,t+".100",t),o=u(t+".200",.16)(e);return(0,p.xJ)(n,o)(r)}var b={parts:["container","title","description","icon"],baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:{subtle:function(r){var{colorScheme:e}=r;return{container:{bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},"left-accent":function(r){var{colorScheme:e}=r;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:(0,p.xJ)(e+".500",e+".200")(r),bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},"top-accent":function(r){var{colorScheme:e}=r;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:(0,p.xJ)(e+".500",e+".200")(r),bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},solid:function(r){var{colorScheme:e}=r;return{container:{bg:(0,p.xJ)(e+".500",e+".200")(r),color:(0,p.xJ)("white","gray.900")(r)}}}},defaultProps:{variant:"subtle",colorScheme:"blue"}},g=t(54681);function m(r){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:(0,p.xJ)("white","gray.800")(r)}}function v(r){return{bg:(0,p.xJ)("gray.200","whiteAlpha.400")(r)}}function y(r){var{name:e,theme:t}=r,n=e?f({string:e}):"gray.400",o=(r=>e=>"dark"===c(r)(e))(n)(t),a="white";return o||(a="gray.800"),{bg:n,color:a,borderColor:(0,p.xJ)("white","gray.800")(r),verticalAlign:"top"}}function x(r){var e=g.Z[r];return{container:{width:r,height:r,fontSize:"calc("+(null!=e?e:r)+" / 2.5)"},excessLabel:{width:r,height:r},label:{fontSize:"calc("+(null!=e?e:r)+" / 2.5)",lineHeight:"100%"!==r?null!=e?e:r:void 0}}}var w={parts:["container","excessLabel","badge","label"],baseStyle:r=>({badge:m(r),excessLabel:v(r),container:y(r)}),sizes:{"2xs":x("4"),xs:x("6"),sm:x("8"),md:x("12"),lg:x("16"),xl:x("24"),"2xl":x("32"),full:x("100%")},defaultProps:{size:"md"}};var k={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".500",.6)(t);return{bg:(0,p.xJ)(e+".500",n)(r),color:(0,p.xJ)("white","whiteAlpha.800")(r)}},subtle:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".200",.16)(t);return{bg:(0,p.xJ)(e+".100",n)(r),color:(0,p.xJ)(e+".800",e+".200")(r)}},outline:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".200",.8)(t),o=l(t,e+".500"),a=(0,p.xJ)(o,n)(r);return{color:a,boxShadow:"inset 0 0 0px 1px "+a}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},S={parts:["container","item","link","separator"],baseStyle:{link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}}};function _(){return(_=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function C(r){var{colorScheme:e,theme:t}=r;if("gray"===e)return{color:(0,p.xJ)("inherit","whiteAlpha.900")(r),_hover:{bg:(0,p.xJ)("gray.100","whiteAlpha.200")(r)},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r)}};var n=u(e+".200",.12)(t),o=u(e+".200",.24)(t);return{color:(0,p.xJ)(e+".600",e+".200")(r),bg:"transparent",_hover:{bg:(0,p.xJ)(e+".50",n)(r)},_active:{bg:(0,p.xJ)(e+".100",o)(r)}}}var A={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}};var E={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:C,outline:function(r){var{colorScheme:e}=r,t=(0,p.xJ)("gray.200","whiteAlpha.300")(r);return _({border:"1px solid",borderColor:"gray"===e?t:"currentColor"},C(r))},solid:function(r){var{colorScheme:e}=r;if("gray"===e){var t=(0,p.xJ)("gray.100","whiteAlpha.200")(r);return{bg:t,_hover:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r),_disabled:{bg:t}},_active:{bg:(0,p.xJ)("gray.300","whiteAlpha.400")(r)}}}var{bg:n=e+".500",color:o="white",hoverBg:a=e+".600",activeBg:i=e+".700"}=A[e]||{},s=(0,p.xJ)(n,e+".200")(r);return{bg:s,color:(0,p.xJ)(o,"gray.800")(r),_hover:{bg:(0,p.xJ)(a,e+".300")(r),_disabled:{bg:s}},_active:{bg:(0,p.xJ)(i,e+".400")(r)}}},link:function(r){var{colorScheme:e}=r;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:(0,p.xJ)(e+".500",e+".200")(r),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:(0,p.xJ)(e+".700",e+".500")(r)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:0,p:0}},sizes:{lg:{h:12,minW:12,fontSize:"lg",px:6},md:{h:10,minW:10,fontSize:"md",px:4},sm:{h:8,minW:8,fontSize:"sm",px:3},xs:{h:6,minW:6,fontSize:"xs",px:2}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}};function z(r){var{colorScheme:e}=r;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:(0,p.xJ)(e+".500",e+".200")(r),borderColor:(0,p.xJ)(e+".500",e+".200")(r),color:(0,p.xJ)("white","gray.900")(r),_hover:{bg:(0,p.xJ)(e+".600",e+".300")(r),borderColor:(0,p.xJ)(e+".600",e+".300")(r)},_disabled:{borderColor:(0,p.xJ)("gray.200","transparent")(r),bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r),color:(0,p.xJ)("gray.500","whiteAlpha.500")(r)}},_indeterminate:{bg:(0,p.xJ)(e+".500",e+".200")(r),borderColor:(0,p.xJ)(e+".500",e+".200")(r),color:(0,p.xJ)("white","gray.900")(r)},_disabled:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r),borderColor:(0,p.xJ)("gray.100","transparent")(r)},_focus:{boxShadow:"outline"},_invalid:{borderColor:(0,p.xJ)("red.500","red.300")(r)}}}var R={userSelect:"none",_disabled:{opacity:.4}},B={transitionProperty:"transform",transitionDuration:"normal"},j={parts:["container","control","label","icon"],baseStyle:r=>({icon:B,control:z(r),label:R}),sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};var O={baseStyle:function(r){return{borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:(0,p.xJ)("blackAlpha.100","whiteAlpha.100")(r)},_active:{bg:(0,p.xJ)("blackAlpha.200","whiteAlpha.200")(r)},_focus:{boxShadow:"outline"}}},sizes:{lg:{w:"40px",h:"40px",fontSize:"16px"},md:{w:"32px",h:"32px",fontSize:"12px"},sm:{w:"24px",h:"24px",fontSize:"10px"}},defaultProps:{size:"md"}},{variants:T,defaultProps:F}=k,P={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:T,defaultProps:F},I={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},M={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},D={bg:"blackAlpha.600",zIndex:"modal"};function W(r){var{isCentered:e,scrollBehavior:t}=r;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e?"center":"flex-start",overflow:"inside"===t?"hidden":"auto"}}function J(r){var{scrollBehavior:e}=r;return{borderRadius:"md",bg:(0,p.xJ)("white","gray.700")(r),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===e?"calc(100% - 7.5rem)":void 0,boxShadow:(0,p.xJ)("lg","dark-lg")(r)}}var N={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},H={position:"absolute",top:2,insetEnd:3};function L(r){var{scrollBehavior:e}=r;return{px:6,py:2,flex:1,overflow:"inside"===e?"auto":void 0}}var $={px:6,py:4};function Z(r){return"full"===r?{dialog:{maxW:"100vw",minH:"100vh"}}:{dialog:{maxW:r}}}var V={parts:["overlay","dialogContainer","dialog","header","closeButton","body","footer"],baseStyle:r=>({overlay:D,dialogContainer:W(r),dialog:J(r),header:N,closeButton:H,body:L(r),footer:$}),sizes:{xs:Z("xs"),sm:Z("sm"),md:Z("md"),lg:Z("lg"),xl:Z("xl"),"2xl":Z("2xl"),"3xl":Z("3xl"),"4xl":Z("4xl"),"5xl":Z("5xl"),"6xl":Z("6xl"),full:Z("full")},defaultProps:{size:"md"}};function q(){return(q=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function G(r){return"full"===r?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:r}}}var Y={bg:"blackAlpha.600",zIndex:"overlay"},X={display:"flex",zIndex:"modal",justifyContent:"center"};function U(r){var{isFullHeight:e}=r;return q({},e&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:(0,p.xJ)("white","gray.700")(r),color:"inherit",boxShadow:(0,p.xJ)("lg","dark-lg")(r)})}var K={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},Q={position:"absolute",top:2,insetEnd:3},rr={px:6,py:2,flex:1,overflow:"auto"},er={px:6,py:4},tr={parts:V.parts,baseStyle:r=>({overlay:Y,dialogContainer:X,dialog:U(r),header:K,closeButton:Q,body:rr,footer:er}),sizes:{xs:G("xs"),sm:G("md"),md:G("lg"),lg:G("2xl"),xl:G("4xl"),full:G("full")},defaultProps:{size:"xs"}},nr={parts:["preview","input"],baseStyle:{preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}}};function or(r){return{marginStart:1,color:(0,p.xJ)("red.500","red.300")(r)}}function ar(r){return{mt:2,color:(0,p.xJ)("gray.500","whiteAlpha.600")(r),lineHeight:"normal",fontSize:"sm"}}var ir={parts:["requiredIndicator","helperText"],baseStyle:r=>({requiredIndicator:or(r),helperText:ar(r)})},sr={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},lr={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},cr={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}};function ur(r){var{focusBorderColor:e,errorBorderColor:t}=r;return{focusBorderColor:e||(0,p.xJ)("blue.500","blue.300")(r),errorBorderColor:t||(0,p.xJ)("red.500","red.300")(r)}}var dr={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:cr.lg,addon:cr.lg},md:{field:cr.md,addon:cr.md},sm:{field:cr.sm,addon:cr.sm},xs:{field:cr.xs,addon:cr.xs}},variants:{outline:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,p.xJ)("gray.300","whiteAlpha.400")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(e,n),boxShadow:"0 0 0 1px "+l(e,n)},_focus:{zIndex:1,borderColor:l(e,t),boxShadow:"0 0 0 1px "+l(e,t)}},addon:{border:"1px solid",borderColor:(0,p.xJ)("inherit","whiteAlpha.50")(r),bg:(0,p.xJ)("gray.100","whiteAlpha.300")(r)}}},filled:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,p.xJ)("gray.100","whiteAlpha.50")(r),_hover:{bg:(0,p.xJ)("gray.200","whiteAlpha.100")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(e,n)},_focus:{bg:"transparent",borderColor:l(e,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,p.xJ)("gray.100","whiteAlpha.50")(r)}}},flushed:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:l(e,n),boxShadow:"0px 1px 0px 0px "+l(e,n)},_focus:{borderColor:l(e,t),boxShadow:"0px 1px 0px 0px "+l(e,t)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},defaultProps:{size:"md",variant:"outline"}};var fr={baseStyle:function(r){return{bg:(0,p.xJ)("gray.100","whiteAlpha")(r),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},pr={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},hr={parts:["container","item","icon"],baseStyle:{container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}}};function br(r){return{bg:(0,p.xJ)("#fff","gray.700")(r),boxShadow:(0,p.xJ)("sm","dark-lg")(r),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}}function gr(r){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r)},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.200")(r)},_expanded:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}var mr,vr={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},yr={opacity:.6},xr={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},wr={transitionProperty:"common",transitionDuration:"normal"},kr={parts:["item","command","list","button","groupTitle","divider"],baseStyle:r=>({button:wr,list:br(r),item:gr(r),groupTitle:vr,command:yr,divider:xr})},Sr=t(35268);function _r(){return(_r=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var{variants:Cr,defaultProps:Ar}=dr,Er={"--number-input-stepper-width":"24px","--number-input-field-padding":"calc(var(--number-input-stepper-width) + 0.5rem)"},zr=null==(mr=dr.baseStyle)?void 0:mr.field,Rr={width:"var(--number-input-stepper-width)"};function Br(r){return{borderStart:"1px solid",borderStartColor:(0,p.xJ)("inherit","whiteAlpha.300")(r),color:(0,p.xJ)("inherit","whiteAlpha.800")(r),_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}function jr(r){var e=dr.sizes[r],t={lg:"md",md:"md",sm:"sm",xs:"sm"},n=Sr.Z.fontSizes[e.field.fontSize];return{field:_r({},e.field,{paddingInlineEnd:"var(--number-input-field-padding)",verticalAlign:"top"}),stepper:{fontSize:"calc("+n+" * 0.75)",_first:{borderTopEndRadius:t[r]},_last:{borderBottomEndRadius:t[r],mt:"-1px",borderTopWidth:1}}}}var Or={parts:["root","field","stepper","stepperGroup"],baseStyle:r=>({root:Er,field:zr,stepperGroup:Rr,stepper:Br(r)}),sizes:{xs:jr("xs"),sm:jr("sm"),md:jr("md"),lg:jr("lg")},variants:Cr,defaultProps:Ar};function Tr(){return(Tr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var Fr={baseStyle:Tr({},dr.baseStyle.field,{textAlign:"center"}),sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:r=>dr.variants.outline(r).field,flushed:r=>dr.variants.flushed(r).field,filled:r=>dr.variants.filled(r).field,unstyled:dr.variants.unstyled.field},defaultProps:dr.defaultProps},Pr={zIndex:10};function Ir(r){return{"--popover-bg":"colors."+(0,p.xJ)("white","gray.700")(r),bg:"var(--popover-bg)","--popper-arrow-bg":"var(--popover-bg)","--popper-arrow-shadow-color":"colors."+(0,p.xJ)("gray.200","whiteAlpha.300")(r),width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}}var Mr={px:3,py:2,borderBottomWidth:"1px"},Dr={px:3,py:2},Wr={px:3,py:2,borderTopWidth:"1px"},Jr={parts:["popper","content","header","body","footer","arrow"],baseStyle:r=>({popper:Pr,content:Ir(r),header:Mr,body:Dr,footer:Wr,arrow:{}})};function Nr(){return(Nr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var Hr={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"};function Lr(r){return{bg:(0,p.xJ)("gray.100","whiteAlpha.300")(r)}}function $r(r){return Nr({transitionProperty:"common",transitionDuration:"slow"},function(r){var{colorScheme:e,theme:t,isIndeterminate:n,hasStripe:o}=r,a=(0,p.xJ)(d(),d("1rem","rgba(0,0,0,0.1)"))(r),i=(0,p.xJ)(e+".500",e+".200")(r),s="linear-gradient(\n    to right,\n    transparent 0%,\n    "+l(t,i)+" 50%,\n    transparent 100%\n  )";return Nr({},!n&&o&&a,n?{bgImage:s}:{bgColor:i})}(r))}var Zr={parts:["track","filledTrack","label"],sizes:{xs:{track:{h:"0.25rem"}},sm:{track:{h:"0.5rem"}},md:{track:{h:"0.75rem"}},lg:{track:{h:"1rem"}}},baseStyle:r=>({label:Hr,filledTrack:$r(r),track:Lr(r)}),defaultProps:{size:"md",colorScheme:"blue"}};function Vr(){return(Vr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function qr(r){var{control:e}=j.baseStyle(r);return Vr({},e,{borderRadius:"full",_checked:Vr({},e._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})}var Gr={parts:["container","control","label"],baseStyle:r=>({label:j.baseStyle(r).label,control:qr(r)}),sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Yr=t(38554);function Xr(){return(Xr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function Ur(r){return Xr({},dr.baseStyle.field,{appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:(0,p.xJ)("white","gray.700")(r)}})}var Kr={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Qr={parts:["field","icon"],baseStyle:r=>({field:Ur(r),icon:Kr}),sizes:t.n(Yr)()({},dr.sizes,{xs:{icon:{insetEnd:"0.25rem"}}}),variants:dr.variants,defaultProps:dr.defaultProps},re=t(70917),ee=(r,e)=>(0,re.keyframes)({from:{borderColor:r,background:r},to:{borderColor:e,background:e}}),te={baseStyle:r=>{var e=(0,p.xJ)("gray.100","gray.800")(r),t=(0,p.xJ)("gray.400","gray.600")(r),{startColor:n=e,endColor:o=t,speed:a,theme:i}=r,s=l(i,n),c=l(i,o);return{opacity:.7,borderRadius:"2px",borderColor:s,background:c,animation:a+"s linear infinite alternate "+ee(s,c)}}},ne={baseStyle:r=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:(0,p.xJ)("white","gray.700")(r)}})};function oe(){return(oe=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var ae=r=>{var{orientation:e}=r;return oe({_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},(0,p.fL)({orientation:e,vertical:{h:"100%"},horizontal:{w:"100%"}}))};function ie(r){return{borderRadius:"sm",bg:(0,p.xJ)("gray.200","whiteAlpha.200")(r),_disabled:{bg:(0,p.xJ)("gray.300","whiteAlpha.300")(r)}}}function se(r){return oe({zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(r){return(0,p.fL)({orientation:r.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(r))}function le(r){var{colorScheme:e}=r;return{bg:(0,p.xJ)(e+".500",e+".200")(r)}}var ce={parts:["container","thumb","track","filledTrack"],sizes:{lg:function(r){return{thumb:{w:"16px",h:"16px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(r){return{thumb:{w:"14px",h:"14px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(r){return{thumb:{w:"10px",h:"10px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},baseStyle:r=>({container:ae(r),track:ie(r),thumb:se(r),filledTrack:le(r)}),defaultProps:{size:"md",colorScheme:"blue"}},ue={baseStyle:{width:"var(--spinner-size)",height:"var(--spinner-size)"},sizes:{xs:{"--spinner-size":"0.75rem"},sm:{"--spinner-size":"1rem"},md:{"--spinner-size":"1.5rem"},lg:{"--spinner-size":"2rem"},xl:{"--spinner-size":"3rem"}},defaultProps:{size:"md"}},de={parts:["label","number","icon","helpText"],baseStyle:{label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}};function fe(r){var{colorScheme:e}=r;return{borderRadius:"full",p:"2px",width:"var(--slider-track-width)",height:"var(--slider-track-height)",transitionProperty:"common",transitionDuration:"fast",bg:(0,p.xJ)("gray.300","whiteAlpha.400")(r),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:(0,p.xJ)(e+".500",e+".200")(r)}}}var pe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:"var(--slider-track-height)",height:"var(--slider-track-height)",_checked:{transform:"translateX(var(--slider-thumb-x))"}},he={parts:["container","track","thumb"],baseStyle:r=>({container:{"--slider-track-diff":"calc(var(--slider-track-width) - var(--slider-track-height))","--slider-thumb-x":"var(--slider-track-diff)",_rtl:{"--slider-thumb-x":"calc(-1 * var(--slider-track-diff))"}},track:fe(r),thumb:pe}),sizes:{sm:{container:{"--slider-track-width":"1.375rem","--slider-track-height":"0.75rem"}},md:{container:{"--slider-track-width":"1.875rem","--slider-track-height":"1rem"}},lg:{container:{"--slider-track-width":"2.875rem","--slider-track-height":"1.5rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};function be(){return(be=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var ge={"&[data-is-numeric=true]":{textAlign:"end"}},me={parts:["table","thead","tbody","tr","th","td","caption"],baseStyle:{table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},variants:{simple:r=>{var{colorScheme:e}=r;return{th:be({color:(0,p.xJ)("gray.600","gray.400")(r),borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),td:be({borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),caption:{color:(0,p.xJ)("gray.600","gray.100")(r)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:r=>{var{colorScheme:e}=r;return{th:be({color:(0,p.xJ)("gray.600","gray.400")(r),borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),td:be({borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),caption:{color:(0,p.xJ)("gray.600","gray.100")(r)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},td:{background:(0,p.xJ)(e+".100",e+".700")(r)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}};function ve(r){var{orientation:e}=r;return{display:"vertical"===e?"flex":"block"}}function ye(r){var{isFitted:e}=r;return{flex:e?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function xe(r){var{align:e="start",orientation:t}=r;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[e],flexDirection:"vertical"===t?"column":"row"}}var we={p:4};var ke={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:r=>({root:ve(r),tab:ye(r),tablist:xe(r),tabpanel:we}),sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:{line:function(r){var{colorScheme:e,orientation:t}=r,n="vertical"===t?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",["vertical"===t?"marginStart":"marginBottom"]:"-2px",_selected:{color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"currentColor"},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(r){var{colorScheme:e}=r;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"inherit",borderBottomColor:(0,p.xJ)("white","gray.800")(r)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(r){var{colorScheme:e}=r;return{tab:{border:"1px solid",borderColor:"inherit",bg:(0,p.xJ)("gray.50","whiteAlpha.50")(r),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:(0,p.xJ)("#fff","gray.800")(r),color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(r){var{colorScheme:e,theme:t}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:l(t,e+".700"),bg:l(t,e+".100")}}}},"solid-rounded":function(r){var{colorScheme:e}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:(0,p.xJ)("gray.600","inherit")(r),_selected:{color:(0,p.xJ)("#fff","gray.800")(r),bg:(0,p.xJ)(e+".600",e+".300")(r)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Se={parts:["container","label","closeButton"],variants:{subtle:r=>({container:k.variants.subtle(r)}),solid:r=>({container:k.variants.solid(r)}),outline:r=>({container:k.variants.outline(r)})},baseStyle:{container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}};function _e(){return(_e=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var Ce=_e({},dr.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Ae={outline:r=>dr.variants.outline(r).field,flushed:r=>dr.variants.flushed(r).field,filled:r=>dr.variants.filled(r).field,unstyled:dr.variants.unstyled.field},Ee={xs:dr.sizes.xs.field,sm:dr.sizes.sm.field,md:dr.sizes.md.field,lg:dr.sizes.lg.field};function ze(r){return{color:(0,p.xJ)("red.500","red.300")(r),mt:2,fontSize:"sm"}}function Re(r){return{marginEnd:"0.5em",color:(0,p.xJ)("red.500","red.300")(r)}}var Be={Accordion:n,Alert:b,Avatar:w,Badge:k,Breadcrumb:S,Button:E,Checkbox:j,CloseButton:O,Code:P,Container:I,Divider:M,Drawer:tr,Editable:nr,Form:ir,FormLabel:sr,Heading:lr,Input:dr,Kbd:fr,Link:pr,List:hr,Menu:kr,Modal:V,NumberInput:Or,PinInput:Fr,Popover:Jr,Progress:Zr,Radio:Gr,Select:Qr,Skeleton:te,SkipLink:ne,Slider:ce,Spinner:ue,Stat:de,Switch:he,Table:me,Tabs:ke,Tag:Se,Textarea:{baseStyle:Ce,sizes:Ee,variants:Ae,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:function(r){return{"--tooltip-bg":"colors."+(0,p.xJ)("gray.700","gray.300")(r),px:"8px",py:"2px",bg:"var(--tooltip-bg)","--popper-arrow-bg":"var(--tooltip-bg)",color:(0,p.xJ)("whiteAlpha.900","gray.900")(r),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}}},FormError:{parts:["text","icon"],baseStyle:r=>({text:ze(r),icon:Re(r)})}}},42009:function(r,e,t){"use strict";t.d(e,{Z:function(){return b}});var n={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},o=t(80658);function a(){return(a=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var i,s=(i={sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},(0,o.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),a({base:"0em"},i)),l={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},c={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},u={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},d=t(54681),f=t(54514),p={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}};function h(){return(h=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var b=h({breakpoints:s,zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:c,blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:l},t(35268).Z,{sizes:d.Z,shadows:u,space:f.W,borders:n,transition:p})},54681:function(r,e,t){"use strict";function n(){return(n=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var o=n({},t(54514).W,{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem"},{container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}});e.Z=o},54514:function(r,e,t){"use strict";t.d(e,{W:function(){return n}});var n={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"}},35268:function(r,e){"use strict";e.Z={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}}},84806:function(r,e,t){"use strict";var n=t(83035),o=t(42009),a=t(41926),i=t(93025);function s(){return(s=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}t.o(i,"useTheme")&&t.d(e,{useTheme:function(){return i.useTheme}});var l=s({direction:"ltr"},o.Z,{components:n.Z,styles:a.Z,config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}});e.Z=l},41926:function(r,e,t){"use strict";var n=t(63108),o={global:r=>({body:{fontFamily:"body",color:(0,n.xJ)("gray.800","whiteAlpha.900")(r),bg:(0,n.xJ)("white","gray.800")(r),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:(0,n.xJ)("gray.400","whiteAlpha.400")(r)},"*, *::before, &::after":{borderColor:(0,n.xJ)("gray.200","whiteAlpha.300")(r),wordWrap:"break-word"}})};e.Z=o},93025:function(){},27277:function(r,e,t){"use strict";function n(r){var e=null==r?0:r.length;return e?r[e-1]:void 0}function o(r,e){return[...r,e]}function a(r,e){return r.filter((r=>r!==e))}function i(r,e,t,n){if(null==e)return n;if(!n)return r.find((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));var o,a=r.filter((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));return a.length>0?a.includes(n)?((o=a.indexOf(n)+1)===a.length&&(o=0),a[o]):(o=r.indexOf(a[0]),r[o]):n}t.d(e,{s:function(){return n},jX:function(){return o},cl:function(){return a},LP:function(){return i}})},73808:function(r,e,t){"use strict";function n(r){return"number"===typeof r}function o(r){return"number"!==typeof r||Number.isNaN(r)||!Number.isFinite(r)}function a(r){return Array.isArray(r)}function i(r){return"function"===typeof r}function s(r){return"undefined"===typeof r||void 0===r}function l(r){var e=typeof r;return null!=r&&("object"===e||"function"===e)&&!a(r)}function c(r){return l(r)&&0===Object.keys(r).length}function u(r){return"[object String]"===Object.prototype.toString.call(r)}function d(r){return/^var\(--.+\)$/.test(r)}t.d(e,{hj:function(){return n},iy:function(){return o},kJ:function(){return a},mf:function(){return i},o8:function(){return s},Kn:function(){return l},Qr:function(){return c},HD:function(){return u},FS:function(){return d},Ts:function(){return f},Ys:function(){return p},Ik:function(){return h}});var f=!1,p=!1;function h(r){return"current"in r}},88456:function(r,e,t){"use strict";t.d(e,{px:function(){return i},y:function(){return d}});var n=t(27277),o=t(73808),a=t(4651);function i(r){if(null==r)return r;var{unitless:e}=function(r){var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}}(r);return e||(0,o.hj)(r)?r+"px":r}var s=(r,e)=>parseInt(r[1],10)>parseInt(e[1],10)?1:-1,l=r=>(0,a.sq)(Object.entries(r).sort(s));function c(r){var e=l(r);return Object.assign(Object.values(e),e)}function u(r,e){var t=[];return r&&t.push("@media screen and (min-width: "+i(r)+")"),t.length>0&&e&&t.push("and"),e&&t.push("@media screen and (max-width: "+i(e)+")"),t.join(" ")}function d(r){var e;if(!r)return null;r.base=null!=(e=r.base)?e:"0px";var t=c(r),a=Object.entries(r).sort(s).map(((r,e,t)=>{var n,[a,s]=r,[,l]=null!=(n=t[e+1])?n:[];return{breakpoint:a,minW:s,maxW:l=parseFloat(l)>0?function(r){var e;if(!r)return r;var t=(r=null!=(e=i(r))?e:r).endsWith("px")?-1:-.0635;return(0,o.hj)(r)?""+(r+t):r.replace(/([0-9]+\.?[0-9]*)/,(r=>""+(parseFloat(r)+t)))}(l):void 0,maxWQuery:u(null,l),minWQuery:u(s),minMaxQuery:u(s,l)}})),d=function(r){var e=Object.keys(l(r));return new Set(e)}(r),f=Array.from(d.values());return{keys:d,normalized:t,isResponsive(r){var e=Object.keys(r);return e.length>0&&e.every((r=>d.has(r)))},asObject:l(r),asArray:c(r),details:a,media:[null,...t.map((r=>u(r))).slice(1)],toArrayValue(r){if(!(0,o.Kn)(r))throw new Error("toArrayValue: value must be an object");for(var e=f.map((e=>{var t;return null!=(t=r[e])?t:null}));null===(0,n.s)(e);)e.pop();return e},toObjectValue(r){if(!Array.isArray(r))throw new Error("toObjectValue: value must be an array");return r.reduce(((r,e,t)=>{var n=f[t];return null!=n&&null!=e&&(r[n]=e),r}),{})}}}},84461:function(r,e,t){"use strict";function n(r){var e;return r instanceof Element&&null!=(e=r.ownerDocument)?e:document}t.d(e,{lZ:function(){return n},jU:function(){return o},PB:function(){return a},Qm:function(){return i},cx:function(){return s},vY:function(){return l},r3:function(){return c},EV:function(){return u},uh:function(){return d},wN:function(){return f},dO:function(){return p}});var o=!("undefined"===typeof window||!window.document||!window.document.createElement),a=r=>r?"":void 0,i=r=>!!r||void 0,s=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")};function l(r){var e=n(r);return null==e?void 0:e.activeElement}function c(r,e){return!!r&&(r===e||r.contains(e))}function u(r,e,t,n){return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}}function d(r){var{key:e,keyCode:t}=r;return t>=37&&t<=40&&0!==e.indexOf("Arrow")?"Arrow"+e:e}function f(r){var e,t,n,o=l(null!=(e=r.target)?e:r.currentTarget),a=r.nativeEvent.explicitOriginalTarget;return null!=(t=null!=(n=r.relatedTarget)?n:a)?t:o}function p(r){return 0!==r.button}},80658:function(r,e,t){"use strict";t.d(e,{Pu:function(){return o},v0:function(){return a},ZT:function(){return s},ZK:function(){return l},A4:function(){return c},zG:function(){return u},TE:function(){return p}});var n=t(73808);function o(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];return(0,n.mf)(r)?r(...t):r}function a(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(r){e.some((e=>(null==e||e(r),null==r?void 0:r.defaultPrevented)))}}function i(r){var e;return function(){if(r){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=r.apply(this,n),r=null}return e}}var s=()=>{},l=i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.warn(t)})),c=(i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.error(t)})),n.Ys?r=>r():"function"===typeof queueMicrotask?queueMicrotask:r=>{Promise.resolve().then(r)}),u=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return r=>e.reduce(((r,e)=>e(r)),r)},d=(r,e)=>Math.abs(r-e),f=r=>"x"in r&&"y"in r;function p(r,e){if((0,n.hj)(r)&&(0,n.hj)(e))return d(r,e);if(f(r)&&f(e)){var t=d(r.x,e.x),o=d(r.y,e.y);return Math.sqrt(t**2+o**2)}return 0}},4651:function(r,e,t){"use strict";t.d(e,{CE:function(){return n},ei:function(){return o},Vl:function(){return a},Wf:function(){return i},lw:function(){return s},YU:function(){return l},Yd:function(){return c},sq:function(){return u},K1:function(){return d}});t(38554);function n(r,e){var t={};return Object.keys(r).forEach((n=>{e.includes(n)||(t[n]=r[n])})),t}function o(r,e){var t={};return e.forEach((e=>{e in r&&(t[e]=r[e])})),t}function a(r,e){var t={},n={};return Object.keys(r).forEach((o=>{e.includes(o)?t[o]=r[o]:n[o]=r[o]})),[t,n]}var i=(r=>{var e=new WeakMap;return(t,n,o,a)=>{if("undefined"===typeof t)return r(t,n,o);e.has(t)||e.set(t,new Map);var i=e.get(t);if(i.has(n))return i.get(n);var s=r(t,n,o,a);return i.set(n,s),s}})((function(r,e,t,n){var o="string"===typeof e?e.split("."):[e];for(n=0;n<o.length&&r;n+=1)r=r[o[n]];return void 0===r?t:r}));function s(r,e){var t={};return Object.keys(r).forEach((n=>{var o=r[n];e(o,n,r)&&(t[n]=o)})),t}var l=r=>s(r,(r=>null!==r&&void 0!==r)),c=r=>Object.keys(r),u=r=>r.reduce(((r,e)=>{var[t,n]=e;return r[t]=n,r}),{}),d=(r,e,t)=>{var n,o;return null!=(n=null==(o=r.__cssMap[e+"."+t])?void 0:o.varRef)?n:t}},9152:function(r,e,t){"use strict";t.d(e,{Z:function(){return er}});var n=t(11526),o=Math.abs,a=String.fromCharCode;function i(r){return r.trim()}function s(r,e,t){return r.replace(e,t)}function l(r,e){return r.indexOf(e)}function c(r,e){return 0|r.charCodeAt(e)}function u(r,e,t){return r.slice(e,t)}function d(r){return r.length}function f(r){return r.length}function p(r,e){return e.push(r),r}var h=1,b=1,g=0,m=0,v=0,y="";function x(r,e,t,n,o,a,i){return{value:r,root:e,parent:t,type:n,props:o,children:a,line:h,column:b,length:i,return:""}}function w(r,e,t){return x(r,e.root,e.parent,t,e.props,e.children,0)}function k(){return v=m>0?c(y,--m):0,b--,10===v&&(b=1,h--),v}function S(){return v=m<g?c(y,m++):0,b++,10===v&&(b=1,h++),v}function _(){return c(y,m)}function C(){return m}function A(r,e){return u(y,r,e)}function E(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(r){return h=b=1,g=d(y=r),m=0,[]}function R(r){return y="",r}function B(r){return i(A(m-1,T(91===r?r+2:40===r?r+1:r)))}function j(r){for(;(v=_())&&v<33;)S();return E(r)>2||E(v)>3?"":" "}function O(r,e){for(;--e&&S()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return A(r,C()+(e<6&&32==_()&&32==S()))}function T(r){for(;S();)switch(v){case r:return m;case 34:case 39:return T(34===r||39===r?r:v);case 40:41===r&&T(r);break;case 92:S()}return m}function F(r,e){for(;S()&&r+v!==57&&(r+v!==84||47!==_()););return"/*"+A(e,m-1)+"*"+a(47===r?r:S())}function P(r){for(;!E(_());)S();return A(r,m)}var I="-ms-",M="-moz-",D="-webkit-",W="comm",J="rule",N="decl";function H(r,e){for(var t="",n=f(r),o=0;o<n;o++)t+=e(r[o],o,r,e)||"";return t}function L(r,e,t,n){switch(r.type){case"@import":case N:return r.return=r.return||r.value;case W:return"";case J:r.value=r.props.join(",")}return d(t=H(r.children,n))?r.return=r.value+"{"+t+"}":""}function $(r,e){switch(function(r,e){return(((e<<2^c(r,0))<<2^c(r,1))<<2^c(r,2))<<2^c(r,3)}(r,e)){case 5103:return D+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return D+r+M+r+I+r+r;case 6828:case 4268:return D+r+I+r+r;case 6165:return D+r+I+"flex-"+r+r;case 5187:return D+r+s(r,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+r;case 5443:return D+r+I+"flex-item-"+s(r,/flex-|-self/,"")+r;case 4675:return D+r+I+"flex-line-pack"+s(r,/align-content|flex-|-self/,"")+r;case 5548:return D+r+I+s(r,"shrink","negative")+r;case 5292:return D+r+I+s(r,"basis","preferred-size")+r;case 6060:return D+"box-"+s(r,"-grow","")+D+r+I+s(r,"grow","positive")+r;case 4554:return D+s(r,/([^-])(transform)/g,"$1-webkit-$2")+r;case 6187:return s(s(s(r,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),r,"")+r;case 5495:case 3959:return s(r,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return s(s(r,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+r+r;case 4095:case 3583:case 4068:case 2532:return s(r,/(.+)-inline(.+)/,D+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(r)-1-e>6)switch(c(r,e+1)){case 109:if(45!==c(r,e+4))break;case 102:return s(r,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+M+(108==c(r,e+3)?"$3":"$2-$3"))+r;case 115:return~l(r,"stretch")?$(s(r,"stretch","fill-available"),e)+r:r}break;case 4949:if(115!==c(r,e+1))break;case 6444:switch(c(r,d(r)-3-(~l(r,"!important")&&10))){case 107:return s(r,":",":"+D)+r;case 101:return s(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===c(r,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+I+"$2box$3")+r}break;case 5936:switch(c(r,e+11)){case 114:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return D+r+I+r+r}return r}function Z(r){return R(V("",null,null,null,[""],r=z(r),0,[0],r))}function V(r,e,t,n,o,i,l,c,u){for(var f=0,h=0,b=l,g=0,m=0,v=0,y=1,x=1,w=1,A=0,E="",z=o,R=i,T=n,I=E;x;)switch(v=A,A=S()){case 34:case 39:case 91:case 40:I+=B(A);break;case 9:case 10:case 13:case 32:I+=j(v);break;case 92:I+=O(C()-1,7);continue;case 47:switch(_()){case 42:case 47:p(G(F(S(),C()),e,t),u);break;default:I+="/"}break;case 123*y:c[f++]=d(I)*w;case 125*y:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+h:m>0&&d(I)-b&&p(m>32?Y(I+";",n,t,b-1):Y(s(I," ","")+";",n,t,b-2),u);break;case 59:I+=";";default:if(p(T=q(I,e,t,f,h,o,c,E,z=[],R=[],b),i),123===A)if(0===h)V(I,e,T,T,z,i,b,c,R);else switch(g){case 100:case 109:case 115:V(r,T,T,n&&p(q(r,T,T,0,0,o,c,E,o,z=[],b),R),o,R,b,c,n?z:R);break;default:V(I,T,T,T,[""],R,b,c,R)}}f=h=m=0,y=w=1,E=I="",b=l;break;case 58:b=1+d(I),m=v;default:if(y<1)if(123==A)--y;else if(125==A&&0==y++&&125==k())continue;switch(I+=a(A),A*y){case 38:w=h>0?1:(I+="\f",-1);break;case 44:c[f++]=(d(I)-1)*w,w=1;break;case 64:45===_()&&(I+=B(S())),g=_(),h=d(E=I+=P(C())),A++;break;case 45:45===v&&2==d(I)&&(y=0)}}return i}function q(r,e,t,n,a,l,c,d,p,h,b){for(var g=a-1,m=0===a?l:[""],v=f(m),y=0,w=0,k=0;y<n;++y)for(var S=0,_=u(r,g+1,g=o(w=c[y])),C=r;S<v;++S)(C=i(w>0?m[S]+" "+_:s(_,/&\f/g,m[S])))&&(p[k++]=C);return x(r,e,t,0===a?J:d,p,h,b)}function G(r,e,t){return x(r,e,t,W,a(v),u(r,2,-2),0)}function Y(r,e,t,n){return x(r,e,t,N,u(r,0,n),u(r,n+1,-1),n)}var X=function(r,e){return R(function(r,e){var t=-1,n=44;do{switch(E(n)){case 0:38===n&&12===_()&&(e[t]=1),r[t]+=P(m-1);break;case 2:r[t]+=B(n);break;case 4:if(44===n){r[++t]=58===_()?"&\f":"",e[t]=r[t].length;break}default:r[t]+=a(n)}}while(n=S());return r}(z(r),e))},U=new WeakMap,K=function(r){if("rule"===r.type&&r.parent&&r.length){for(var e=r.value,t=r.parent,n=r.column===t.column&&r.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==r.props.length||58===e.charCodeAt(0)||U.get(t))&&!n){U.set(r,!0);for(var o=[],a=X(e,o),i=t.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)r.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Q=function(r){if("decl"===r.type){var e=r.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(r.return="",r.value="")}},rr=[function(r,e,t,n){if(!r.return)switch(r.type){case N:r.return=$(r.value,r.length);break;case"@keyframes":return H([w(s(r.value,"@","@"+D),r,"")],n);case J:if(r.length)return function(r,e){return r.map(e).join("")}(r.props,(function(e){switch(function(r,e){return(r=e.exec(r))?r[0]:r}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([w(s(e,/:(read-\w+)/,":-moz-$1"),r,"")],n);case"::placeholder":return H([w(s(e,/:(plac\w+)/,":-webkit-input-$1"),r,""),w(s(e,/:(plac\w+)/,":-moz-$1"),r,""),w(s(e,/:(plac\w+)/,I+"input-$1"),r,"")],n)}return""}))}}],er=function(r){var e=r.key;if("css"===e){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(r){-1!==r.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(r),r.setAttribute("data-s",""))}))}var o=r.stylisPlugins||rr;var a,i,s={},l=[];a=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(r){for(var e=r.getAttribute("data-emotion").split(" "),t=1;t<e.length;t++)s[e[t]]=!0;l.push(r)}));var c,u,d=[L,(u=function(r){c.insert(r)},function(r){r.root||(r=r.return)&&u(r)})],p=function(r){var e=f(r);return function(t,n,o,a){for(var i="",s=0;s<e;s++)i+=r[s](t,n,o,a)||"";return i}}([K,Q].concat(o,d));i=function(r,e,t,n){c=t,H(Z(r?r+"{"+e.styles+"}":e.styles),p),n&&(h.inserted[e.name]=!0)};var h={key:e,sheet:new n.m({key:e,container:a,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend}),nonce:r.nonce,inserted:s,registered:{},insert:i};return h.sheet.hydrate(l),h}},67866:function(r,e){"use strict";e.Z=function(r){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=r(t)),e[t]}}},65199:function(r,e,t){"use strict";t.d(e,{C:function(){return h},E:function(){return S},T:function(){return g},a:function(){return y},b:function(){return x},c:function(){return k},h:function(){return f},u:function(){return m},w:function(){return b}});var n=t(67294),o=t(9152);function a(){return(a=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var i=function(r){var e=new WeakMap;return function(t){if(e.has(t))return e.get(t);var n=r(t);return e.set(t,n),n}},s=t(8679),l=t.n(s),c=function(r,e){return l()(r,e)},u=t(70444),d=t(94199),f=Object.prototype.hasOwnProperty,p=(0,n.createContext)("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null),h=p.Provider,b=function(r){return(0,n.forwardRef)((function(e,t){var o=(0,n.useContext)(p);return r(e,o,t)}))},g=(0,n.createContext)({}),m=function(){return(0,n.useContext)(g)},v=i((function(r){return i((function(e){return function(r,e){return"function"===typeof e?e(r):a({},r,e)}(r,e)}))})),y=function(r){var e=(0,n.useContext)(g);return r.theme!==e&&(e=v(e)(r.theme)),(0,n.createElement)(g.Provider,{value:e},r.children)};function x(r){var e=r.displayName||r.name||"Component",t=function(e,t){var o=(0,n.useContext)(g);return(0,n.createElement)(r,a({theme:o,ref:t},e))},o=(0,n.forwardRef)(t);return o.displayName="WithTheme("+e+")",c(o,r)}var w="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",k=function(r,e){var t={};for(var n in e)f.call(e,n)&&(t[n]=e[n]);return t[w]=r,t},S=b((function(r,e,t){var o=r.css;"string"===typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var a=r[w],i=[o],s="";"string"===typeof r.className?s=(0,u.f)(e.registered,i,r.className):null!=r.className&&(s=r.className+" ");var l=(0,d.O)(i,void 0,"function"===typeof o||Array.isArray(o)?(0,n.useContext)(g):void 0);(0,u.M)(e,l,"string"===typeof a);s+=e.key+"-"+l.name;var c={};for(var p in r)f.call(r,p)&&"css"!==p&&p!==w&&(c[p]=r[p]);return c.ref=t,c.className=s,(0,n.createElement)(a,c)}))},70917:function(r,e,t){"use strict";t.r(e),t.d(e,{CacheProvider:function(){return o.C},ThemeContext:function(){return o.T},ThemeProvider:function(){return o.a},useTheme:function(){return o.u},withEmotionCache:function(){return o.w},withTheme:function(){return o.b},ClassNames:function(){return h},Global:function(){return c},createElement:function(){return l},css:function(){return u},jsx:function(){return l},keyframes:function(){return d}});var n=t(67294),o=(t(9152),t(65199)),a=(t(8679),t(70444)),i=t(94199),s=t(11526),l=function(r,e){var t=arguments;if(null==e||!o.h.call(e,"css"))return n.createElement.apply(void 0,t);var a=t.length,i=new Array(a);i[0]=o.E,i[1]=(0,o.c)(r,e);for(var s=2;s<a;s++)i[s]=t[s];return n.createElement.apply(null,i)},c=(0,o.w)((function(r,e){var t=r.styles,l=(0,i.O)([t],void 0,"function"===typeof t||Array.isArray(t)?(0,n.useContext)(o.T):void 0),c=(0,n.useRef)();return(0,n.useLayoutEffect)((function(){var r=e.key+"-global",t=new s.m({key:r,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+r+" "+l.name+'"]');return e.sheet.tags.length&&(t.before=e.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",r),t.hydrate([o])),c.current=[t,n],function(){t.flush()}}),[e]),(0,n.useLayoutEffect)((function(){var r=c.current,t=r[0];if(r[1])r[1]=!1;else{if(void 0!==l.next&&(0,a.M)(e,l.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}e.insert("",l,t,!1)}}),[e,l.name]),null}));function u(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return(0,i.O)(e)}var d=function(){var r=u.apply(void 0,arguments),e="animation-"+r.name;return{name:e,styles:"@keyframes "+e+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},f=function r(e){for(var t=e.length,n=0,o="";n<t;n++){var a=e[n];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=r(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function p(r,e,t){var n=[],o=(0,a.f)(r,n,t);return n.length<2?t:o+e(n)}var h=(0,o.w)((function(r,e){var t=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var o=(0,i.O)(t,e.registered);return(0,a.M)(e,o,!1),e.key+"-"+o.name},s={css:t,cx:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return p(e.registered,t,f(n))},theme:(0,n.useContext)(o.T)},l=r.children(s);return!0,l}))},94199:function(r,e,t){"use strict";t.d(e,{O:function(){return b}});var n=function(r){for(var e,t=0,n=0,o=r.length;o>=4;++n,o-=4)e=1540483477*(65535&(e=255&r.charCodeAt(n)|(255&r.charCodeAt(++n))<<8|(255&r.charCodeAt(++n))<<16|(255&r.charCodeAt(++n))<<24))+(59797*(e>>>16)<<16),t=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&r.charCodeAt(n+2))<<16;case 2:t^=(255&r.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&r.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=t(67866),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(r){return 45===r.charCodeAt(1)},c=function(r){return null!=r&&"boolean"!==typeof r},u=(0,a.Z)((function(r){return l(r)?r:r.replace(i,"-$&").toLowerCase()})),d=function(r,e){switch(r){case"animation":case"animationName":if("string"===typeof e)return e.replace(s,(function(r,e,t){return p={name:e,styles:t,next:p},e}))}return 1===o[r]||l(r)||"number"!==typeof e||0===e?e:e+"px"};function f(r,e,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return p={name:t.name,styles:t.styles,next:p},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return t.styles+";"}return function(r,e,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=f(r,e,t[o])+";";else for(var a in t){var i=t[a];if("object"!==typeof i)null!=e&&void 0!==e[i]?n+=a+"{"+e[i]+"}":c(i)&&(n+=u(a)+":"+d(a,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=e&&void 0!==e[i[0]]){var s=f(r,e,i);switch(a){case"animation":case"animationName":n+=u(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)c(i[l])&&(n+=u(a)+":"+d(a,i[l])+";")}return n}(r,e,t);case"function":if(void 0!==r){var o=p,a=t(r);return p=o,f(r,e,a)}break;case"string":}if(null==e)return t;var i=e[t];return void 0!==i?i:t}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var b=function(r,e,t){if(1===r.length&&"object"===typeof r[0]&&null!==r[0]&&void 0!==r[0].styles)return r[0];var o=!0,a="";p=void 0;var i=r[0];null==i||void 0===i.raw?(o=!1,a+=f(t,e,i)):a+=i[0];for(var s=1;s<r.length;s++)a+=f(t,e,r[s]),o&&(a+=i[s]);h.lastIndex=0;for(var l,c="";null!==(l=h.exec(a));)c+="-"+l[1];return{name:n(a)+c,styles:a,next:p}}},11526:function(r,e,t){"use strict";t.d(e,{m:function(){return n}});var n=function(){function r(r){var e=this;this._insertTag=function(r){var t;t=0===e.tags.length?e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(r,t),e.tags.push(r)},this.isSpeedy=void 0===r.speedy||r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.before=null}var e=r.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(r){var e=document.createElement("style");return e.setAttribute("data-emotion",r.key),void 0!==r.nonce&&e.setAttribute("nonce",r.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var t=function(r){if(r.sheet)return r.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===r)return document.styleSheets[e]}(e);try{t.insertRule(r,t.cssRules.length)}catch(n){0}}else e.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach((function(r){return r.parentNode.removeChild(r)})),this.tags=[],this.ctr=0},r}()},70444:function(r,e,t){"use strict";t.d(e,{f:function(){return n},M:function(){return o}});function n(r,e,t){var n="";return t.split(" ").forEach((function(t){void 0!==r[t]?e.push(r[t]+";"):n+=t+" "})),n}var o=function(r,e,t){var n=r.key+"-"+e.name;if(!1===t&&void 0===r.registered[n]&&(r.registered[n]=e.styles),void 0===r.inserted[e.name]){var o=e;do{r.insert(e===o?"."+n:"",o,r.sheet,!0);o=o.next}while(void 0!==o)}}},8679:function(r,e,t){"use strict";var n=t(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(r){return n.isMemo(r)?i:s[r.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;r.exports=function r(e,t,n){if("string"!==typeof t){if(h){var o=p(t);o&&o!==h&&r(e,o,n)}var i=u(t);d&&(i=i.concat(d(t)));for(var s=l(e),b=l(t),g=0;g<i.length;++g){var m=i[g];if(!a[m]&&(!n||!n[m])&&(!b||!b[m])&&(!s||!s[m])){var v=f(t,m);try{c(e,m,v)}catch(y){}}}}return e}},96103:function(r,e){"use strict";var t="function"===typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function w(r){if("object"===typeof r&&null!==r){var e=r.$$typeof;switch(e){case n:switch(r=r.type){case u:case d:case a:case s:case i:case p:return r;default:switch(r=r&&r.$$typeof){case c:case f:case g:case b:case l:return r;default:return e}}case o:return e}}}function k(r){return w(r)===d}e.AsyncMode=u,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=l,e.Element=n,e.ForwardRef=f,e.Fragment=a,e.Lazy=g,e.Memo=b,e.Portal=o,e.Profiler=s,e.StrictMode=i,e.Suspense=p,e.isAsyncMode=function(r){return k(r)||w(r)===u},e.isConcurrentMode=k,e.isContextConsumer=function(r){return w(r)===c},e.isContextProvider=function(r){return w(r)===l},e.isElement=function(r){return"object"===typeof r&&null!==r&&r.$$typeof===n},e.isForwardRef=function(r){return w(r)===f},e.isFragment=function(r){return w(r)===a},e.isLazy=function(r){return w(r)===g},e.isMemo=function(r){return w(r)===b},e.isPortal=function(r){return w(r)===o},e.isProfiler=function(r){return w(r)===s},e.isStrictMode=function(r){return w(r)===i},e.isSuspense=function(r){return w(r)===p},e.isValidElementType=function(r){return"string"===typeof r||"function"===typeof r||r===a||r===d||r===s||r===i||r===p||r===h||"object"===typeof r&&null!==r&&(r.$$typeof===g||r.$$typeof===b||r.$$typeof===l||r.$$typeof===c||r.$$typeof===f||r.$$typeof===v||r.$$typeof===y||r.$$typeof===x||r.$$typeof===m)},e.typeOf=w},21296:function(r,e,t){"use strict";r.exports=t(96103)},38554:function(r,e,t){r=t.nmd(r);var n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[a]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[i]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),h=e&&!e.nodeType&&e,b=h&&r&&!r.nodeType&&r,g=b&&b.exports===h,m=g&&d.process,v=function(){try{var r=b&&b.require&&b.require("util").types;return r||m&&m.binding&&m.binding("util")}catch(e){}}(),y=v&&v.isTypedArray;function x(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}var w,k,S=Array.prototype,_=Function.prototype,C=Object.prototype,A=p["__core-js_shared__"],E=_.toString,z=C.hasOwnProperty,R=function(){var r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),B=C.toString,j=E.call(Object),O=RegExp("^"+E.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=g?p.Buffer:void 0,F=p.Symbol,P=p.Uint8Array,I=T?T.allocUnsafe:void 0,M=(w=Object.getPrototypeOf,k=Object,function(r){return w(k(r))}),D=Object.create,W=C.propertyIsEnumerable,J=S.splice,N=F?F.toStringTag:void 0,H=function(){try{var r=pr(Object,"defineProperty");return r({},"",{}),r}catch(e){}}(),L=T?T.isBuffer:void 0,$=Math.max,Z=Date.now,V=pr(p,"Map"),q=pr(Object,"create"),G=function(){function r(){}return function(e){if(!Cr(e))return{};if(D)return D(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function Y(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}function X(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}function U(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}function K(r){var e=this.__data__=new X(r);this.size=e.size}function Q(r,e){var t=xr(r),n=!t&&yr(r),o=!t&&!n&&kr(r),a=!t&&!n&&!o&&Er(r),i=t||n||o||a,s=i?function(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}(r.length,String):[],l=s.length;for(var c in r)!e&&!z.call(r,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||hr(c,l))||s.push(c);return s}function rr(r,e,t){(void 0!==t&&!vr(r[e],t)||void 0===t&&!(e in r))&&nr(r,e,t)}function er(r,e,t){var n=r[e];z.call(r,e)&&vr(n,t)&&(void 0!==t||e in r)||nr(r,e,t)}function tr(r,e){for(var t=r.length;t--;)if(vr(r[t][0],e))return t;return-1}function nr(r,e,t){"__proto__"==e&&H?H(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Y.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},Y.prototype.delete=function(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e},Y.prototype.get=function(r){var e=this.__data__;if(q){var t=e[r];return t===n?void 0:t}return z.call(e,r)?e[r]:void 0},Y.prototype.has=function(r){var e=this.__data__;return q?void 0!==e[r]:z.call(e,r)},Y.prototype.set=function(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=q&&void 0===e?n:e,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(r){var e=this.__data__,t=tr(e,r);return!(t<0)&&(t==e.length-1?e.pop():J.call(e,t,1),--this.size,!0)},X.prototype.get=function(r){var e=this.__data__,t=tr(e,r);return t<0?void 0:e[t][1]},X.prototype.has=function(r){return tr(this.__data__,r)>-1},X.prototype.set=function(r,e){var t=this.__data__,n=tr(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this},U.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(V||X),string:new Y}},U.prototype.delete=function(r){var e=fr(this,r).delete(r);return this.size-=e?1:0,e},U.prototype.get=function(r){return fr(this,r).get(r)},U.prototype.has=function(r){return fr(this,r).has(r)},U.prototype.set=function(r,e){var t=fr(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t},K.prototype.get=function(r){return this.__data__.get(r)},K.prototype.has=function(r){return this.__data__.has(r)},K.prototype.set=function(r,e){var t=this.__data__;if(t instanceof X){var n=t.__data__;if(!V||n.length<199)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new U(n)}return t.set(r,e),this.size=t.size,this};var or,ar=function(r,e,t){for(var n=-1,o=Object(r),a=t(r),i=a.length;i--;){var s=a[or?i:++n];if(!1===e(o[s],s,o))break}return r};function ir(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":N&&N in Object(r)?function(r){var e=z.call(r,N),t=r[N];try{r[N]=void 0;var n=!0}catch(a){}var o=B.call(r);n&&(e?r[N]=t:delete r[N]);return o}(r):function(r){return B.call(r)}(r)}function sr(r){return Ar(r)&&ir(r)==a}function lr(r){return!(!Cr(r)||function(r){return!!R&&R in r}(r))&&(Sr(r)?O:l).test(function(r){if(null!=r){try{return E.call(r)}catch(e){}try{return r+""}catch(e){}}return""}(r))}function cr(r){if(!Cr(r))return function(r){var e=[];if(null!=r)for(var t in Object(r))e.push(t);return e}(r);var e=br(r),t=[];for(var n in r)("constructor"!=n||!e&&z.call(r,n))&&t.push(n);return t}function ur(r,e,t,n,o){r!==e&&ar(e,(function(a,i){if(o||(o=new K),Cr(a))!function(r,e,t,n,o,a,i){var l=gr(r,t),c=gr(e,t),u=i.get(c);if(u)return void rr(r,t,u);var d=a?a(l,c,t+"",r,e,i):void 0,f=void 0===d;if(f){var p=xr(c),h=!p&&kr(c),b=!p&&!h&&Er(c);d=c,p||h||b?xr(l)?d=l:Ar(g=l)&&wr(g)?d=function(r,e){var t=-1,n=r.length;e||(e=Array(n));for(;++t<n;)e[t]=r[t];return e}(l):h?(f=!1,d=function(r,e){if(e)return r.slice();var t=r.length,n=I?I(t):new r.constructor(t);return r.copy(n),n}(c,!0)):b?(f=!1,d=function(r,e){var t=e?function(r){var e=new r.constructor(r.byteLength);return new P(e).set(new P(r)),e}(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}(c,!0)):d=[]:function(r){if(!Ar(r)||ir(r)!=s)return!1;var e=M(r);if(null===e)return!0;var t=z.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&E.call(t)==j}(c)||yr(c)?(d=l,yr(l)?d=function(r){return function(r,e,t,n){var o=!t;t||(t={});var a=-1,i=e.length;for(;++a<i;){var s=e[a],l=n?n(t[s],r[s],s,t,r):void 0;void 0===l&&(l=r[s]),o?nr(t,s,l):er(t,s,l)}return t}(r,zr(r))}(l):Cr(l)&&!Sr(l)||(d=function(r){return"function"!=typeof r.constructor||br(r)?{}:G(M(r))}(c))):f=!1}var g;f&&(i.set(c,d),o(d,c,n,a,i),i.delete(c));rr(r,t,d)}(r,e,i,t,ur,n,o);else{var l=n?n(gr(r,i),a,i+"",r,e,o):void 0;void 0===l&&(l=a),rr(r,i,l)}}),zr)}function dr(r,e){return mr(function(r,e,t){return e=$(void 0===e?r.length-1:e,0),function(){for(var n=arguments,o=-1,a=$(n.length-e,0),i=Array(a);++o<a;)i[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=t(i),x(r,this,s)}}(r,e,jr),r+"")}function fr(r,e){var t=r.__data__;return function(r){var e=typeof r;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r}(e)?t["string"==typeof e?"string":"hash"]:t.map}function pr(r,e){var t=function(r,e){return null==r?void 0:r[e]}(r,e);return lr(t)?t:void 0}function hr(r,e){var t=typeof r;return!!(e=null==e?o:e)&&("number"==t||"symbol"!=t&&c.test(r))&&r>-1&&r%1==0&&r<e}function br(r){var e=r&&r.constructor;return r===("function"==typeof e&&e.prototype||C)}function gr(r,e){if(("constructor"!==e||"function"!==typeof r[e])&&"__proto__"!=e)return r[e]}var mr=function(r){var e=0,t=0;return function(){var n=Z(),o=16-(n-t);if(t=n,o>0){if(++e>=800)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}(H?function(r,e){return H(r,"toString",{configurable:!0,enumerable:!1,value:(t=e,function(){return t}),writable:!0});var t}:jr);function vr(r,e){return r===e||r!==r&&e!==e}var yr=sr(function(){return arguments}())?sr:function(r){return Ar(r)&&z.call(r,"callee")&&!W.call(r,"callee")},xr=Array.isArray;function wr(r){return null!=r&&_r(r.length)&&!Sr(r)}var kr=L||function(){return!1};function Sr(r){if(!Cr(r))return!1;var e=ir(r);return e==i||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function _r(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=o}function Cr(r){var e=typeof r;return null!=r&&("object"==e||"function"==e)}function Ar(r){return null!=r&&"object"==typeof r}var Er=y?function(r){return function(e){return r(e)}}(y):function(r){return Ar(r)&&_r(r.length)&&!!u[ir(r)]};function zr(r){return wr(r)?Q(r,!0):cr(r)}var Rr,Br=(Rr=function(r,e,t,n){ur(r,e,t,n)},dr((function(r,e){var t=-1,n=e.length,o=n>1?e[n-1]:void 0,a=n>2?e[2]:void 0;for(o=Rr.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(r,e,t){if(!Cr(t))return!1;var n=typeof e;return!!("number"==n?wr(t)&&hr(e,t.length):"string"==n&&e in t)&&vr(t[e],r)}(e[0],e[1],a)&&(o=n<3?void 0:o,n=1),r=Object(r);++t<n;){var i=e[t];i&&Rr(r,i,t,o)}return r})));function jr(r){return r}r.exports=Br},29200:function(r,e,t){"use strict";t.r(e),t.d(e,{default:function(){return F}});var n=t(96156),o=t(85893),a=(t(82702),t(84806)),i=t(73808),s=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function l(r){return!!(0,i.Kn)(r)&&s.every((e=>Object.prototype.hasOwnProperty.call(r,e)))}var c=t(80658),u=t(38554),d=t.n(u);function f(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return d()({},...e,p)}function p(r,e,t,n){if(((0,i.mf)(r)||(0,i.mf)(e))&&Object.prototype.hasOwnProperty.call(n,t))return function(){var t=(0,i.mf)(r)?r(...arguments):r,n=(0,i.mf)(e)?e(...arguments):e;return d()({},t,n,p)}}var h=t(70917),b=t(67294),g=()=>b.createElement(h.Global,{styles:'\n      html {\n        line-height: 1.5;\n        -webkit-text-size-adjust: 100%;\n        font-family: system-ui, sans-serif;\n        -webkit-font-smoothing: antialiased;\n        text-rendering: optimizeLegibility;      \n        -moz-osx-font-smoothing: grayscale; \n        touch-action: manipulation; \n      }\n\n      body {\n        position: relative;\n        min-height: 100%;\n        font-feature-settings: \'kern\';\n      }\n\n      *,\n      *::before,\n      *::after {\n        border-width: 0;\n        border-style: solid;\n        box-sizing: border-box;\n      }\n\n      main {\n        display: block;\n      }\n\n      hr {\n        border-top-width: 1px;\n        box-sizing: content-box;\n        height: 0;\n        overflow: visible;\n      }\n\n      pre,\n      code,\n      kbd,\n      samp {\n        font-family: SFMono-Regular,  Menlo, Monaco, Consolas, monospace;\n        font-size: 1em;\n      }\n\n      a {\n        background-color: transparent;\n        color: inherit;\n        text-decoration: inherit;\n      }\n\n      abbr[title] {\n        border-bottom: none;\n        text-decoration: underline;\n        -webkit-text-decoration: underline dotted;\n        text-decoration: underline dotted;\n      }\n\n      b,\n      strong {\n        font-weight: bold;\n      }\n\n      small {\n        font-size: 80%;\n      }\n\n      sub,\n      sup {\n        font-size: 75%;\n        line-height: 0;\n        position: relative;\n        vertical-align: baseline;\n      }\n\n      sub {\n        bottom: -0.25em;\n      }\n\n      sup {\n        top: -0.5em;\n      }\n\n      img {\n        border-style: none;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        font-family: inherit;\n        font-size: 100%;\n        line-height: 1.15;\n        margin: 0;\n      }\n\n      button,\n      input {\n        overflow: visible;\n      }\n\n      button,\n      select {\n        text-transform: none;\n      }\n\n      button::-moz-focus-inner,\n      [type="button"]::-moz-focus-inner,\n      [type="reset"]::-moz-focus-inner,\n      [type="submit"]::-moz-focus-inner {\n        border-style: none;\n        padding: 0;\n      }\n\n      fieldset {\n        padding: 0.35em 0.75em 0.625em;\n      }\n\n      legend {\n        box-sizing: border-box;\n        color: inherit;\n        display: table;\n        max-width: 100%;\n        padding: 0;\n        white-space: normal;\n      }\n\n      progress {\n        vertical-align: baseline;\n      }\n\n      textarea {\n        overflow: auto;\n      }\n\n      [type="checkbox"],\n      [type="radio"] {\n        box-sizing: border-box;\n        padding: 0;\n      }\n\n      [type="number"]::-webkit-inner-spin-button,\n      [type="number"]::-webkit-outer-spin-button {\n        -webkit-appearance: none !important;\n      }\n\n      input[type="number"] {\n        -moz-appearance: textfield;\n      }\n\n      [type="search"] {\n        -webkit-appearance: textfield;\n        outline-offset: -2px;\n      }\n\n      [type="search"]::-webkit-search-decoration {\n        -webkit-appearance: none !important;\n      }\n\n      ::-webkit-file-upload-button {\n        -webkit-appearance: button;\n        font: inherit;\n      }\n\n      details {\n        display: block;\n      }\n\n      summary {\n        display: list-item;\n      }\n\n      template {\n        display: none;\n      }\n\n      [hidden] {\n        display: none !important;\n      }\n\n      body,\n      blockquote,\n      dl,\n      dd,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6,\n      hr,\n      figure,\n      p,\n      pre {\n        margin: 0;\n      }\n\n      button {\n        background: transparent;\n        padding: 0;\n      }\n\n      fieldset {\n        margin: 0;\n        padding: 0;\n      }\n\n      ol,\n      ul {\n        margin: 0;\n        padding: 0;\n      }\n\n      textarea {\n        resize: vertical;\n      }\n\n      button,\n      [role="button"] {\n        cursor: pointer;\n      }\n\n      button::-moz-focus-inner {\n        border: 0 !important;\n      }\n\n      table {\n        border-collapse: collapse;\n      }\n\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6 {\n        font-size: inherit;\n        font-weight: inherit;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        padding: 0;\n        line-height: inherit;\n        color: inherit;\n      }\n\n      img,\n      svg,\n      video,\n      canvas,\n      audio,\n      iframe,\n      embed,\n      object {\n        display: block;\n        vertical-align: middle;\n      }\n\n      img,\n      video {\n        max-width: 100%;\n        height: auto;\n      }\n\n      [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n        outline: none;\n        box-shadow: none;\n      }\n\n      select::-ms-expand {\n        display: none;\n      }\n    '}),m=t(34288),v=t(29676),y=t(24738),x=t(84461),w={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},k=()=>{},S={window:{document:w,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:k,removeEventListener:k,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:k,removeListener:k}),requestAnimationFrame:r=>"undefined"===typeof setTimeout?(r(),null):setTimeout(r,0),cancelAnimationFrame(r){"undefined"!==typeof setTimeout&&clearTimeout(r)},setTimeout:()=>0,clearTimeout:k,setInterval:()=>0,clearInterval:k},document:w},_=x.jU?{window:window,document:document}:S,C=(0,b.createContext)(_);function A(r){var{children:e,environment:t}=r,[n,o]=(0,b.useState)(null),a=(0,b.useMemo)((()=>{var r,e=null==n?void 0:n.ownerDocument,o=null==n?void 0:n.ownerDocument.defaultView;return null!=(r=null!=t?t:e?{document:e,window:o}:void 0)?r:_}),[n,t]),i=!n&&!t;return b.createElement(C.Provider,{value:a},e,i&&b.createElement("span",{ref:r=>{r&&o(r)}}))}i.Ts&&(C.displayName="EnvironmentContext"),i.Ts&&(A.displayName="EnvironmentProvider");var E=t(94577),z=r=>{var{children:e,colorModeManager:t,portalZIndex:n,resetCSS:o=!0,theme:i=a.Z,environment:s,cssVarsRoot:l}=r,c=b.createElement(A,{environment:s},e);return b.createElement(E.vc,null,b.createElement(v.f6,{theme:i,cssVarsRoot:l},b.createElement(y.SG,{colorModeManager:t,options:i.config},o&&b.createElement(g,null),b.createElement(v.ZL,null),n?b.createElement(m.h,{zIndex:n},c):c)))},R=t(54533),B=t(29356);function j(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function O(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?j(Object(t),!0).forEach((function(e){(0,n.Z)(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}function T(r){var e=r.children,t=(0,b.useContext)(B.N),n=t.highlightColor,s=t.emacsTheme,u=R.Z(s.base1,s.base2)(.2),d="purple.500"===n?s.violet+"aa":"pink.500"===n?s.magenta+"aa":"blue.500"===n?s.blue+"aa":"cyan.500"===n?s.cyan+"aa":"green.500"===n?s.green+"aa":"yellow.500"===n?s.yellow+"aa":"orange.500"===n?s.orange+"aa":"red.500"===n?s.red+"aa":void 0,p=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=[...e],o=e[e.length-1];return l(o)&&n.length>1?n=n.slice(0,n.length-1):o=a.Z,(0,c.zG)(...n.map((r=>e=>(0,i.mf)(r)?r(e):f(e,r))))(o)}((0,b.useMemo)((function(){return{colors:{white:s.bg,black:s.fg,gray:{100:s.base1,200:u,300:s.base2,400:s.base3,500:s.base4,600:s.base5,700:s.base6,800:s.base7,900:s.base8},blue:{500:s.blue},teal:{500:s.blue},yellow:{500:s.yellow},orange:{500:s.orange},red:{500:s.red},green:{500:s.green},purple:{500:s.violet},pink:{500:s.magenta},cyan:{500:s.cyan},alt:{100:s["bg-alt"],900:s["fg-alt"]}},shadows:{outline:"0 0 0 3px "+d},components:{Button:{variants:{outline:{border:"2px solid",borderColor:n,color:n},ghost:{color:n,_hover:{bg:"inherit",border:"1px solid",borderColor:n},_active:{color:"inherit",bg:n}}}},Accordion:{baseStyle:{container:{marginTop:"10px",borderWidth:"0px",_last:{borderWidth:"0px"}},panel:{marginRight:"10px"}}},Slider:{baseStyle:function(r){return{thumb:{backgroundColor:n},filledTrack:{backgroundColor:"gray.200"}}}}}}}),[n,JSON.stringify(s)]),function(r){var{colorScheme:e,components:t}=r;return r=>{var n=Object.keys(r.components||{});return Array.isArray(t)?n=t:(0,i.Kn)(t)&&(n=Object.keys(t)),f(r,{components:Object.fromEntries(n.map((r=>[r,{defaultProps:{colorScheme:e}}])))})}}({colorScheme:n.split(".")[0]}));return(0,o.jsx)(z,{theme:p,children:e})}var F=function(r){var e=r.Component,t=r.pageProps,n={base1:"#1c1f24",base2:"#21272d",base3:"#23272e",base4:"#484854",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#242730","bg-alt":"#2a2e38",blue:"#51afef",cyan:"#5cEfFF","dark-blue":"#1f5582","dark-cyan":"#6A8FBF",fg:"#bbc2cf","fg-alt":"#5D656B",green:"#7bc275",grey:"#484854",magenta:"#C57BDB",orange:"#e69055",red:"#ff665c",teal:"#4db5bd",violet:"#a991f1",yellow:"#FCCE7B"},a=(0,b.useState)(!1),i=a[0],s=a[1],l=(0,b.useState)(n),c=l[0],u=l[1],d=(0,b.useState)("purple.500"),f=d[0],p=d[1];(0,b.useEffect)((function(){i&&localStorage.setItem("theme",JSON.stringify(c))}),[c]),(0,b.useEffect)((function(){i&&localStorage.setItem("highlightColor",JSON.stringify(f))}),[f]),(0,b.useEffect)((function(){var r,e,t,o;u(null!==(r=JSON.parse(null!==(e=localStorage.getItem("theme"))&&void 0!==e?e:JSON.stringify(n)))&&void 0!==r?r:n),p(null!==(t=JSON.parse(null!==(o=localStorage.getItem("highlightColor"))&&void 0!==o?o:JSON.stringify(f)))&&void 0!==t?t:f),s(!0)}),[]);var h={emacsTheme:c,setEmacsTheme:u,highlightColor:f,setHighlightColor:p};return(0,o.jsx)(B.N.Provider,{value:h,children:(0,o.jsx)(T,{children:(0,o.jsx)(e,O({},t))})})}},29356:function(r,e,t){"use strict";t.d(e,{N:function(){return n}});var n=(0,t(67294).createContext)({emacsTheme:{base1:"#1c1f24",base2:"#21272d",base3:"#23272e",base4:"#484854",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#242730","bg-alt":"#2a2e38",blue:"#51afef",cyan:"#5cEfFF","dark-blue":"#1f5582","dark-cyan":"#6A8FBF",fg:"#bbc2cf","fg-alt":"#5D656B",green:"#7bc275",grey:"#484854",magenta:"#C57BDB",orange:"#e69055",red:"#ff665c",teal:"#4db5bd",violet:"#a991f1",yellow:"#FCCE7B"},setEmacsTheme:null,highlightColor:"purple",setHighlightColor:null})},76374:function(r,e,t){"use strict";function n(r,e,t){r.prototype=e.prototype=t,t.constructor=r}function o(r,e){var t=Object.create(r.prototype);for(var n in e)t[n]=e[n];return t}function a(){}t.d(e,{ZP:function(){return w},B8:function(){return C}});var i=.7,s=1/i,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),b=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function w(r){var e,t;return r=(r+"").trim().toLowerCase(),(e=d.exec(r))?(t=e[1].length,e=parseInt(e[1],16),6===t?k(e):3===t?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===t?S(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===t?S(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(r))?new A(e[1],e[2],e[3],1):(e=p.exec(r))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(r))?S(e[1],e[2],e[3],e[4]):(e=b.exec(r))?S(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(r))?B(e[1],e[2]/100,e[3]/100,1):(e=m.exec(r))?B(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(r)?k(v[r]):"transparent"===r?new A(NaN,NaN,NaN,0):null}function k(r){return new A(r>>16&255,r>>8&255,255&r,1)}function S(r,e,t,n){return n<=0&&(r=e=t=NaN),new A(r,e,t,n)}function _(r){return r instanceof a||(r=w(r)),r?new A((r=r.rgb()).r,r.g,r.b,r.opacity):new A}function C(r,e,t,n){return 1===arguments.length?_(r):new A(r,e,t,null==n?1:n)}function A(r,e,t,n){this.r=+r,this.g=+e,this.b=+t,this.opacity=+n}function E(){return"#"+R(this.r)+R(this.g)+R(this.b)}function z(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}function R(r){return((r=Math.max(0,Math.min(255,Math.round(r)||0)))<16?"0":"")+r.toString(16)}function B(r,e,t,n){return n<=0?r=e=t=NaN:t<=0||t>=1?r=e=NaN:e<=0&&(r=NaN),new O(r,e,t,n)}function j(r){if(r instanceof O)return new O(r.h,r.s,r.l,r.opacity);if(r instanceof a||(r=w(r)),!r)return new O;if(r instanceof O)return r;var e=(r=r.rgb()).r/255,t=r.g/255,n=r.b/255,o=Math.min(e,t,n),i=Math.max(e,t,n),s=NaN,l=i-o,c=(i+o)/2;return l?(s=e===i?(t-n)/l+6*(t<n):t===i?(n-e)/l+2:(e-t)/l+4,l/=c<.5?i+o:2-i-o,s*=60):l=c>0&&c<1?0:s,new O(s,l,c,r.opacity)}function O(r,e,t,n){this.h=+r,this.s=+e,this.l=+t,this.opacity=+n}function T(r,e,t){return 255*(r<60?e+(t-e)*r/60:r<180?t:r<240?e+(t-e)*(240-r)/60:e)}n(a,w,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return j(this).formatHsl()},formatRgb:x,toString:x}),n(A,C,o(a,{brighter:function(r){return r=null==r?s:Math.pow(s,r),new A(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?i:Math.pow(i,r),new A(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:z,toString:z})),n(O,(function(r,e,t,n){return 1===arguments.length?j(r):new O(r,e,t,null==n?1:n)}),o(a,{brighter:function(r){return r=null==r?s:Math.pow(s,r),new O(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?i:Math.pow(i,r),new O(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*e,o=2*t-n;return new A(T(r>=240?r-240:r+120,o,n),T(r,o,n),T(r<120?r+240:r-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}))},62210:function(r,e){"use strict";e.Z=function(r){return function(){return r}}},16033:function(r,e,t){"use strict";function n(r,e){return r=+r,e=+e,function(t){return r*(1-t)+e*t}}t.d(e,{Z:function(){return n}})},73028:function(r,e,t){"use strict";t.d(e,{ZP:function(){return c}});var n=t(76374);function o(r,e,t,n,o){var a=r*r,i=a*r;return((1-3*r+3*a-i)*e+(4-6*a+3*i)*t+(1+3*r+3*a-3*i)*n+i*o)/6}var a=t(62210);function i(r,e){return function(t){return r+t*e}}function s(r){return 1===(r=+r)?l:function(e,t){return t-e?function(r,e,t){return r=Math.pow(r,t),e=Math.pow(e,t)-r,t=1/t,function(n){return Math.pow(r+n*e,t)}}(e,t,r):(0,a.Z)(isNaN(e)?t:e)}}function l(r,e){var t=e-r;return t?i(r,t):(0,a.Z)(isNaN(r)?e:r)}var c=function r(e){var t=s(e);function o(r,e){var o=t((r=(0,n.B8)(r)).r,(e=(0,n.B8)(e)).r),a=t(r.g,e.g),i=t(r.b,e.b),s=l(r.opacity,e.opacity);return function(e){return r.r=o(e),r.g=a(e),r.b=i(e),r.opacity=s(e),r+""}}return o.gamma=r,o}(1);function u(r){return function(e){var t,o,a=e.length,i=new Array(a),s=new Array(a),l=new Array(a);for(t=0;t<a;++t)o=(0,n.B8)(e[t]),i[t]=o.r||0,s[t]=o.g||0,l[t]=o.b||0;return i=r(i),s=r(s),l=r(l),o.opacity=1,function(r){return o.r=i(r),o.g=s(r),o.b=l(r),o+""}}}u((function(r){var e=r.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,e-1):Math.floor(t*e),a=r[n],i=r[n+1],s=n>0?r[n-1]:2*a-i,l=n<e-1?r[n+2]:2*i-a;return o((t-n/e)*e,s,a,i,l)}})),u((function(r){var e=r.length;return function(t){var n=Math.floor(((t%=1)<0?++t:t)*e),a=r[(n+e-1)%e],i=r[n%e],s=r[(n+1)%e],l=r[(n+2)%e];return o((t-n/e)*e,a,i,s,l)}}))},10370:function(r,e,t){"use strict";t.d(e,{Z:function(){return i}});var n=t(16033),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(o.source,"g");function i(r,e){var t,i,s,l=o.lastIndex=a.lastIndex=0,c=-1,u=[],d=[];for(r+="",e+="";(t=o.exec(r))&&(i=a.exec(e));)(s=i.index)>l&&(s=e.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(t=t[0])===(i=i[0])?u[c]?u[c]+=i:u[++c]=i:(u[++c]=null,d.push({i:c,x:(0,n.Z)(t,i)})),l=a.lastIndex;return l<e.length&&(s=e.slice(l),u[c]?u[c]+=s:u[++c]=s),u.length<2?d[0]?function(r){return function(e){return r(e)+""}}(d[0].x):function(r){return function(){return r}}(e):(e=d.length,function(r){for(var t,n=0;n<e;++n)u[(t=d[n]).i]=t.x(r);return u.join("")})}},54533:function(r,e,t){"use strict";t.d(e,{Z:function(){return f}});var n=t(76374),o=t(73028);function a(r,e){var t,n=e?e.length:0,o=r?Math.min(n,r.length):0,a=new Array(o),i=new Array(n);for(t=0;t<o;++t)a[t]=f(r[t],e[t]);for(;t<n;++t)i[t]=e[t];return function(r){for(t=0;t<o;++t)i[t]=a[t](r);return i}}function i(r,e){var t=new Date;return r=+r,e=+e,function(n){return t.setTime(r*(1-n)+e*n),t}}var s=t(16033);function l(r,e){var t,n={},o={};for(t in null!==r&&"object"===typeof r||(r={}),null!==e&&"object"===typeof e||(e={}),e)t in r?n[t]=f(r[t],e[t]):o[t]=e[t];return function(r){for(t in n)o[t]=n[t](r);return o}}var c=t(10370),u=t(62210);function d(r,e){e||(e=[]);var t,n=r?Math.min(e.length,r.length):0,o=e.slice();return function(a){for(t=0;t<n;++t)o[t]=r[t]*(1-a)+e[t]*a;return o}}function f(r,e){var t,f,p=typeof e;return null==e||"boolean"===p?(0,u.Z)(e):("number"===p?s.Z:"string"===p?(t=(0,n.ZP)(e))?(e=t,o.ZP):c.Z:e instanceof n.ZP?o.ZP:e instanceof Date?i:(f=e,!ArrayBuffer.isView(f)||f instanceof DataView?Array.isArray(e)?a:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?l:s.Z:d))(r,e)}},76363:function(r,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return t(29200)}])},82702:function(){},17621:function(r,e,t){var n;!function(o){var a=/^\s+/,i=/\s+$/,s=0,l=o.round,c=o.min,u=o.max,d=o.random;function f(r,e){if(e=e||{},(r=r||"")instanceof f)return r;if(!(this instanceof f))return new f(r,e);var t=function(r){var e={r:0,g:0,b:0},t=1,n=null,s=null,l=null,d=!1,f=!1;"string"==typeof r&&(r=function(r){r=r.replace(a,"").replace(i,"").toLowerCase();var e,t=!1;if(B[r])r=B[r],t=!0;else if("transparent"==r)return{r:0,g:0,b:0,a:0,format:"name"};if(e=J.rgb.exec(r))return{r:e[1],g:e[2],b:e[3]};if(e=J.rgba.exec(r))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=J.hsl.exec(r))return{h:e[1],s:e[2],l:e[3]};if(e=J.hsla.exec(r))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=J.hsv.exec(r))return{h:e[1],s:e[2],v:e[3]};if(e=J.hsva.exec(r))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=J.hex8.exec(r))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:W(e[4]),format:t?"name":"hex8"};if(e=J.hex6.exec(r))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:t?"name":"hex"};if(e=J.hex4.exec(r))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:W(e[4]+""+e[4]),format:t?"name":"hex8"};if(e=J.hex3.exec(r))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),format:t?"name":"hex"};return!1}(r));"object"==typeof r&&(N(r.r)&&N(r.g)&&N(r.b)?(p=r.r,h=r.g,b=r.b,e={r:255*T(p,255),g:255*T(h,255),b:255*T(b,255)},d=!0,f="%"===String(r.r).substr(-1)?"prgb":"rgb"):N(r.h)&&N(r.s)&&N(r.v)?(n=M(r.s),s=M(r.v),e=function(r,e,t){r=6*T(r,360),e=T(e,100),t=T(t,100);var n=o.floor(r),a=r-n,i=t*(1-e),s=t*(1-a*e),l=t*(1-(1-a)*e),c=n%6;return{r:255*[t,s,i,i,l,t][c],g:255*[l,t,t,s,i,i][c],b:255*[i,i,l,t,t,s][c]}}(r.h,n,s),d=!0,f="hsv"):N(r.h)&&N(r.s)&&N(r.l)&&(n=M(r.s),l=M(r.l),e=function(r,e,t){var n,o,a;function i(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+6*(e-r)*t:t<.5?e:t<2/3?r+(e-r)*(2/3-t)*6:r}if(r=T(r,360),e=T(e,100),t=T(t,100),0===e)n=o=a=t;else{var s=t<.5?t*(1+e):t+e-t*e,l=2*t-s;n=i(l,s,r+1/3),o=i(l,s,r),a=i(l,s,r-1/3)}return{r:255*n,g:255*o,b:255*a}}(r.h,n,l),d=!0,f="hsl"),r.hasOwnProperty("a")&&(t=r.a));var p,h,b;return t=O(t),{ok:d,format:r.format||f,r:c(255,u(e.r,0)),g:c(255,u(e.g,0)),b:c(255,u(e.b,0)),a:t}}(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=l(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=t.ok,this._tc_id=s++}function p(r,e,t){r=T(r,255),e=T(e,255),t=T(t,255);var n,o,a=u(r,e,t),i=c(r,e,t),s=(a+i)/2;if(a==i)n=o=0;else{var l=a-i;switch(o=s>.5?l/(2-a-i):l/(a+i),a){case r:n=(e-t)/l+(e<t?6:0);break;case e:n=(t-r)/l+2;break;case t:n=(r-e)/l+4}n/=6}return{h:n,s:o,l:s}}function h(r,e,t){r=T(r,255),e=T(e,255),t=T(t,255);var n,o,a=u(r,e,t),i=c(r,e,t),s=a,l=a-i;if(o=0===a?0:l/a,a==i)n=0;else{switch(a){case r:n=(e-t)/l+(e<t?6:0);break;case e:n=(t-r)/l+2;break;case t:n=(r-e)/l+4}n/=6}return{h:n,s:o,v:s}}function b(r,e,t,n){var o=[I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function g(r,e,t,n){return[I(D(n)),I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16))].join("")}function m(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.s-=e/100,t.s=F(t.s),f(t)}function v(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.s+=e/100,t.s=F(t.s),f(t)}function y(r){return f(r).desaturate(100)}function x(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.l+=e/100,t.l=F(t.l),f(t)}function w(r,e){e=0===e?0:e||10;var t=f(r).toRgb();return t.r=u(0,c(255,t.r-l(-e/100*255))),t.g=u(0,c(255,t.g-l(-e/100*255))),t.b=u(0,c(255,t.b-l(-e/100*255))),f(t)}function k(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.l-=e/100,t.l=F(t.l),f(t)}function S(r,e){var t=f(r).toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,f(t)}function _(r){var e=f(r).toHsl();return e.h=(e.h+180)%360,f(e)}function C(r){var e=f(r).toHsl(),t=e.h;return[f(r),f({h:(t+120)%360,s:e.s,l:e.l}),f({h:(t+240)%360,s:e.s,l:e.l})]}function A(r){var e=f(r).toHsl(),t=e.h;return[f(r),f({h:(t+90)%360,s:e.s,l:e.l}),f({h:(t+180)%360,s:e.s,l:e.l}),f({h:(t+270)%360,s:e.s,l:e.l})]}function E(r){var e=f(r).toHsl(),t=e.h;return[f(r),f({h:(t+72)%360,s:e.s,l:e.l}),f({h:(t+216)%360,s:e.s,l:e.l})]}function z(r,e,t){e=e||6,t=t||30;var n=f(r).toHsl(),o=360/t,a=[f(r)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(f(n));return a}function R(r,e){e=e||6;for(var t=f(r).toHsv(),n=t.h,o=t.s,a=t.v,i=[],s=1/e;e--;)i.push(f({h:n,s:o,v:a})),a=(a+s)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},getLuminance:function(){var r,e,t,n=this.toRgb();return r=n.r/255,e=n.g/255,t=n.b/255,.2126*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))},setAlpha:function(r){return this._a=O(r),this._roundA=l(100*this._a)/100,this},toHsv:function(){var r=h(this._r,this._g,this._b);return{h:360*r.h,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=h(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.v);return 1==this._a?"hsv("+e+", "+t+"%, "+n+"%)":"hsva("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var r=p(this._r,this._g,this._b);return{h:360*r.h,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=p(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.l);return 1==this._a?"hsl("+e+", "+t+"%, "+n+"%)":"hsla("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(r){return b(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return function(r,e,t,n,o){var a=[I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16)),I(D(n))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*T(this._r,255))+"%",g:l(100*T(this._g,255))+"%",b:l(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%)":"rgba("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(r){var e="#"+g(this._r,this._g,this._b,this._a),t=e,n=this._gradientType?"GradientType = 1, ":"";if(r){var o=f(r);t="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+t+")"},toString:function(r){var e=!!r;r=r||this._format;var t=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==r&&"hex6"!==r&&"hex3"!==r&&"hex4"!==r&&"hex8"!==r&&"name"!==r?("rgb"===r&&(t=this.toRgbString()),"prgb"===r&&(t=this.toPercentageRgbString()),"hex"!==r&&"hex6"!==r||(t=this.toHexString()),"hex3"===r&&(t=this.toHexString(!0)),"hex4"===r&&(t=this.toHex8String(!0)),"hex8"===r&&(t=this.toHex8String()),"name"===r&&(t=this.toName()),"hsl"===r&&(t=this.toHslString()),"hsv"===r&&(t=this.toHsvString()),t||this.toHexString()):"name"===r&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(r,e){var t=r.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(r,e){if("object"==typeof r){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[n]="a"===n?r[n]:M(r[n]));r=t}return f(r,e)},f.equals=function(r,e){return!(!r||!e)&&f(r).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(r,e,t){t=0===t?0:t||50;var n=f(r).toRgb(),o=f(e).toRgb(),a=t/100;return f({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},f.readability=function(r,e){var t=f(r),n=f(e);return(o.max(t.getLuminance(),n.getLuminance())+.05)/(o.min(t.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(r,e,t){var n,o,a=f.readability(r,e);switch(o=!1,(n=function(r){var e,t;e=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==t&&"large"!==t&&(t="small");return{level:e,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(r,e,t){var n,o,a,i,s=null,l=0;o=(t=t||{}).includeFallbackColors,a=t.level,i=t.size;for(var c=0;c<e.length;c++)(n=f.readability(r,e[c]))>l&&(l=n,s=f(e[c]));return f.isReadable(r,s,{level:a,size:i})||!o?s:(t.includeFallbackColors=!1,f.mostReadable(r,["#fff","#000"],t))};var B=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=f.hexNames=function(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}(B);function O(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function T(r,e){(function(r){return"string"==typeof r&&-1!=r.indexOf(".")&&1===parseFloat(r)})(r)&&(r="100%");var t=function(r){return"string"===typeof r&&-1!=r.indexOf("%")}(r);return r=c(e,u(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),o.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function F(r){return c(1,u(0,r))}function P(r){return parseInt(r,16)}function I(r){return 1==r.length?"0"+r:""+r}function M(r){return r<=1&&(r=100*r+"%"),r}function D(r){return o.round(255*parseFloat(r)).toString(16)}function W(r){return P(r)/255}var J=function(){var r="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",t="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+t),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function N(r){return!!J.CSS_UNIT.exec(r)}r.exports?r.exports=f:void 0===(n=function(){return f}.call(e,t,e,r))||(r.exports=n)}(Math)}},function(r){var e=function(e){return r(r.s=e)};r.O(0,[774,179],(function(){return e(76363),e(34651)}));var t=r.O();_N_E=t}]);
\ No newline at end of file
diff --git a/out/_next/static/chunks/pages/_app-aa36b0112675ea597c0c.js b/out/_next/static/chunks/pages/_app-aa36b0112675ea597c0c.js
deleted file mode 100644
index 64ac575..0000000
--- a/out/_next/static/chunks/pages/_app-aa36b0112675ea597c0c.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{96156:function(r,e,t){"use strict";function n(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}t.d(e,{Z:function(){return n}})},24738:function(r,e,t){"use strict";t.d(e,{SG:function(){return x},If:function(){return y}});var n=t(73808),o=t(84461),a=t(80658),i=t(67294),s="chakra-ui-light",l="chakra-ui-dark",c={classList:{add:a.ZT,remove:a.ZT}};function u(r){var e=o.jU?document.body:c;e.classList.add(r?l:s),e.classList.remove(r?s:l)}var d="(prefers-color-scheme: dark)";function f(r){var e;return(null!=(e=function(r){var e=null==window.matchMedia?void 0:window.matchMedia(r);if(e)return!!e.media===e.matches}(d))?e:"dark"===r)?"dark":"light"}var p=()=>document.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),h=r=>{o.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",r)},b=()=>"undefined"!==typeof Storage,g="chakra-ui-color-mode",m={get(r){if(!b())return r;try{var e=localStorage.getItem(g);return null!=e?e:r}catch(t){return n.Ts&&console.log(t),r}},set(r){if(b())try{localStorage.setItem(g,r)}catch(e){n.Ts&&console.log(e)}},type:"localStorage"};var v=i.createContext({});n.Ts&&(v.displayName="ColorModeContext");var y=()=>{var r=i.useContext(v);if(void 0===r)throw new Error("useColorMode must be used within a ColorModeProvider");return r};function x(r){var{value:e,children:t,options:{useSystemColorMode:n,initialColorMode:s},colorModeManager:l=m}=r,[c,b]=i.useState("cookie"===l.type?l.get(s):s);i.useEffect((()=>{if(o.jU&&"localStorage"===l.type){var r=n?f(s):p()||l.get();r&&b(r)}}),[l,n,s]),i.useEffect((()=>{var r="dark"===c;u(r),h(r?"dark":"light")}),[c]);var g=i.useCallback((r=>{l.set(r),b(r)}),[l]),y=i.useCallback((()=>{g("light"===c?"dark":"light")}),[c,g]);i.useEffect((()=>{var r;return n&&(r=function(r){if(!("matchMedia"in window))return a.ZT;var e=window.matchMedia(d),t=()=>{r(e.matches?"dark":"light")};return t(),e.addListener(t),()=>{e.removeListener(t)}}(g)),()=>{r&&n&&r()}}),[g,n]);var x=i.useMemo((()=>({colorMode:null!=e?e:c,toggleColorMode:e?a.ZT:y,setColorMode:e?a.ZT:g})),[c,g,y,e]);return i.createElement(v.Provider,{value:x},t)}n.Ts&&(x.displayName="ColorModeProvider");n.Ts;n.Ts},94577:function(r,e,t){"use strict";t.d(e,{vc:function(){return i},Me:function(){return s},ZS:function(){return l}});var n=t(67294),o={prefix:Math.round(1e10*Math.random()),current:0},a=n.createContext(o),i=n.memo((r=>{var{children:e}=r,t=n.useContext(a),i=t===o,s=n.useMemo((()=>({prefix:i?0:++t.prefix,current:0})),[i,t]);return n.createElement(a.Provider,{value:s},e)}));function s(r,e){var t=n.useContext(a);return n.useMemo((()=>r||[e,t.prefix,++t.current].filter(Boolean).join("-")),[r,e])}function l(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];var a=s(r);return n.useMemo((()=>t.map((r=>r+"-"+a))),[a,t])}},34288:function(r,e,t){"use strict";t.d(e,{L:function(){return s},h:function(){return l}});var n=t(73808),o=t(28500),a=t(67294),[i,s]=(0,o.k)({strict:!1,name:"PortalManagerContext"});function l(r){var{children:e,zIndex:t}=r;return a.createElement(i,{value:{zIndex:t}},e)}n.Ts&&(l.displayName="PortalManager")},28500:function(r,e,t){"use strict";t.d(e,{k:function(){return o}});var n=t(67294);function o(r){void 0===r&&(r={});var{strict:e=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=r,a=n.createContext(void 0);return a.displayName=o,[a.Provider,function r(){var o=n.useContext(a);if(!o&&e){var i=new Error(t);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,r),i}return o},a]}},13205:function(r,e,t){"use strict";t.d(e,{Oq:function(){return B},Cg:function(){return j},$_:function(){return O},cE:function(){return T},hX:function(){return F},GQ:function(){return P},eC:function(){return I},Mw:function(){return M},bK:function(){return D},pb:function(){return W},o_:function(){return $},FK:function(){return Z},v_:function(){return V},Dh:function(){return q},QX:function(){return G},vs:function(){return Y},eR:function(){return X},cp:function(){return U}});var n=t(73808);function o(r){var{scale:e,transform:t,compose:o}=r;return(r,a)=>{var i,s=((r,e)=>t=>{var o=String(e),a=r?r+"."+o:o;return(0,n.Kn)(t.__cssMap)&&a in t.__cssMap?t.__cssMap[a].varRef:e})(e,r)(a),l=null!=(i=null==t?void 0:t(s,a))?i:s;return o&&(l=o(l,a)),l}}function a(r,e){return t=>{var n={property:t,scale:r};return n.transform=o({scale:r,transform:e}),n}}var i=r=>{var{rtl:e,ltr:t}=r;return r=>"rtl"===r.direction?e:t};var s=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var l={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},c={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var u={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},d="& > :not(style) ~ :not(style)",f={[d]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},p={[d]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}};function h(r,e){h=function(r,e){return new a(r,void 0,e)};var t=g(RegExp),n=RegExp.prototype,o=new WeakMap;function a(r,e,n){var a=t.call(this,r,e);return o.set(a,n||o.get(r)),a}function i(r,e){var t=o.get(e);return Object.keys(t).reduce((function(e,n){return e[n]=r[t[n]],e}),Object.create(null))}return b(a,t),a.prototype.exec=function(r){var e=n.exec.call(this,r);return e&&(e.groups=i(e,this)),e},a.prototype[Symbol.replace]=function(r,e){if("string"===typeof e){var t=o.get(this);return n[Symbol.replace].call(this,r,e.replace(/\$<([^>]+)>/g,(function(r,e){return"$"+t[e]})))}if("function"===typeof e){var a=this;return n[Symbol.replace].call(this,r,(function(){var r=[];return r.push.apply(r,arguments),"object"!==typeof r[r.length-1]&&r.push(i(r,a)),e.apply(this,r)}))}return n[Symbol.replace].call(this,r,e)},h.apply(this,arguments)}function b(r,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&y(r,e)}function g(r){var e="function"===typeof Map?new Map:void 0;return(g=function(r){if(null===r||(t=r,-1===Function.toString.call(t).indexOf("[native code]")))return r;var t;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return m(r,arguments,x(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,r)})(r)}function m(r,e,t){return(m=v()?Reflect.construct:function(r,e,t){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(r,n));return t&&y(o,t.prototype),o}).apply(null,arguments)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function y(r,e){return(y=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function x(r){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}var w={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},S=new Set(Object.values(w)),k=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),_=r=>r.trim();var C=r=>e=>r+"("+e+")",A={filter:r=>"auto"!==r?r:l,backdropFilter:r=>"auto"!==r?r:c,ring:r=>function(r){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":r,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(A.px(r)),bgClip:r=>"text"===r?{color:"transparent",backgroundClip:"text"}:{backgroundClip:r},transform:r=>"auto"===r?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s].join(" "):"auto-gpu"===r?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s].join(" "):r,px(r){if(null==r)return r;var{unitless:e}=(r=>{var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}})(r);return e||(0,n.hj)(r)?r+"px":r},fraction:r=>!(0,n.hj)(r)||r>1?r:100*r+"%",float:(r,e)=>"rtl"===e.direction?{left:"right",right:"left"}[r]:r,degree(r){if((0,n.FS)(r)||null==r)return r;var e=(0,n.HD)(r)&&!r.endsWith("deg");return(0,n.hj)(r)||e?r+"deg":r},gradient:(r,e)=>function(r,e){var t,n;if(null==r||k.has(r))return r;var o=h(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:a,values:i}=null!=(t=null==(n=o.exec(r))?void 0:n.groups)?t:{};if(!a||!i)return r;var s=a.includes("-gradient")?a:a+"-gradient",[l,...c]=i.split(",").map(_).filter(Boolean);if(0===(null==c?void 0:c.length))return r;var u=l in w?w[l]:l;return c.unshift(u),s+"("+c.map((r=>{if(S.has(r))return r;var[t,n]=r.split(" "),o="colors."+t,a=o in e.__cssMap?e.__cssMap[o].varRef:t;return n?[a,n].join(" "):a})).join(", ")+")"}(r,null!=e?e:{}),blur:C("blur"),opacity:C("opacity"),brightness:C("brightness"),contrast:C("contrast"),dropShadow:C("drop-shadow"),grayscale:C("grayscale"),hueRotate:C("hue-rotate"),invert:C("invert"),saturate:C("saturate"),sepia:C("sepia"),bgImage:r=>null==r||E(r)||k.has(r)?r:"url("+r+")",outline(r){var e="0"===String(r)||"none"===String(r);return null!==r&&e?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:r}},flexDirection(r){var e,{space:t,divide:n}=null!=(e=u[r])?e:{},o={flexDirection:r};return t&&(o[t]=1),n&&(o[n]=1),o}},E=r=>(0,n.HD)(r)&&r.includes("(")&&r.includes(")");function z(){return(z=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var R={borderWidths:a("borderWidths"),borderStyles:a("borderStyles"),colors:a("colors"),borders:a("borders"),radii:a("radii",A.px),space:a("space",A.px),spaceT:a("space",A.px),degreeT:r=>({property:r,transform:A.degree}),prop:(r,e,t)=>z({property:r,scale:e},e&&{transform:o({scale:e,transform:t})}),propT:(r,e)=>({property:r,transform:e}),sizes:a("sizes",A.px),sizesT:a("sizes",A.fraction),shadows:a("shadows"),logical:function(r){var{property:e,scale:t,transform:n}=r;return{scale:t,property:i(e),transform:t?o({scale:t,compose:n}):n}},blur:a("blur",A.blur)},B={background:R.colors("background"),backgroundColor:R.colors("backgroundColor"),backgroundImage:R.propT("backgroundImage",A.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:R.prop("backgroundSize"),bgPosition:R.prop("backgroundPosition"),bg:R.colors("background"),bgColor:R.colors("backgroundColor"),bgPos:R.prop("backgroundPosition"),bgRepeat:R.prop("backgroundRepeat"),bgAttachment:R.prop("backgroundAttachment"),bgGradient:R.propT("backgroundImage",A.gradient),bgClip:{transform:A.bgClip}};Object.assign(B,{bgImage:B.backgroundImage,bgImg:B.backgroundImage});var j={border:R.borders("border"),borderWidth:R.borderWidths("borderWidth"),borderStyle:R.borderStyles("borderStyle"),borderColor:R.colors("borderColor"),borderRadius:R.radii("borderRadius"),borderTop:R.borders("borderTop"),borderBlockStart:R.borders("borderBlockStart"),borderTopLeftRadius:R.radii("borderTopLeftRadius"),borderStartStartRadius:R.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:R.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:R.radii("borderTopRightRadius"),borderStartEndRadius:R.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:R.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:R.borders("borderRight"),borderInlineEnd:R.borders("borderInlineEnd"),borderBottom:R.borders("borderBottom"),borderBlockEnd:R.borders("borderBlockEnd"),borderBottomLeftRadius:R.radii("borderBottomLeftRadius"),borderBottomRightRadius:R.radii("borderBottomRightRadius"),borderLeft:R.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:R.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:R.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:R.borders(["borderLeft","borderRight"]),borderInline:R.borders("borderInline"),borderY:R.borders(["borderTop","borderBottom"]),borderBlock:R.borders("borderBlock"),borderTopWidth:R.borderWidths("borderTopWidth"),borderBlockStartWidth:R.borderWidths("borderBlockStartWidth"),borderTopColor:R.colors("borderTopColor"),borderBlockStartColor:R.colors("borderBlockStartColor"),borderTopStyle:R.borderStyles("borderTopStyle"),borderBlockStartStyle:R.borderStyles("borderBlockStartStyle"),borderBottomWidth:R.borderWidths("borderBottomWidth"),borderBlockEndWidth:R.borderWidths("borderBlockEndWidth"),borderBottomColor:R.colors("borderBottomColor"),borderBlockEndColor:R.colors("borderBlockEndColor"),borderBottomStyle:R.borderStyles("borderBottomStyle"),borderBlockEndStyle:R.borderStyles("borderBlockEndStyle"),borderLeftWidth:R.borderWidths("borderLeftWidth"),borderInlineStartWidth:R.borderWidths("borderInlineStartWidth"),borderLeftColor:R.colors("borderLeftColor"),borderInlineStartColor:R.colors("borderInlineStartColor"),borderLeftStyle:R.borderStyles("borderLeftStyle"),borderInlineStartStyle:R.borderStyles("borderInlineStartStyle"),borderRightWidth:R.borderWidths("borderRightWidth"),borderInlineEndWidth:R.borderWidths("borderInlineEndWidth"),borderRightColor:R.colors("borderRightColor"),borderInlineEndColor:R.colors("borderInlineEndColor"),borderRightStyle:R.borderStyles("borderRightStyle"),borderInlineEndStyle:R.borderStyles("borderInlineEndStyle"),borderTopRadius:R.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:R.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:R.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:R.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(j,{rounded:j.borderRadius,roundedTop:j.borderTopRadius,roundedTopLeft:j.borderTopLeftRadius,roundedTopRight:j.borderTopRightRadius,roundedTopStart:j.borderStartStartRadius,roundedTopEnd:j.borderStartEndRadius,roundedBottom:j.borderBottomRadius,roundedBottomLeft:j.borderBottomLeftRadius,roundedBottomRight:j.borderBottomRightRadius,roundedBottomStart:j.borderEndStartRadius,roundedBottomEnd:j.borderEndEndRadius,roundedLeft:j.borderLeftRadius,roundedRight:j.borderRightRadius,roundedStart:j.borderInlineStartRadius,roundedEnd:j.borderInlineEndRadius,borderStart:j.borderInlineStart,borderEnd:j.borderInlineEnd,borderTopStartRadius:j.borderStartStartRadius,borderTopEndRadius:j.borderStartEndRadius,borderBottomStartRadius:j.borderEndStartRadius,borderBottomEndRadius:j.borderEndEndRadius,borderStartRadius:j.borderInlineStartRadius,borderEndRadius:j.borderInlineEndRadius,borderStartWidth:j.borderInlineStartWidth,borderEndWidth:j.borderInlineEndWidth,borderStartColor:j.borderInlineStartColor,borderEndColor:j.borderInlineEndColor,borderStartStyle:j.borderInlineStartStyle,borderEndStyle:j.borderInlineEndStyle});var O={color:R.colors("color"),textColor:R.colors("color"),fill:R.colors("fill"),stroke:R.colors("stroke")},T={boxShadow:R.shadows("boxShadow"),mixBlendMode:!0,blendMode:R.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:R.prop("backgroundBlendMode"),opacity:!0};Object.assign(T,{shadow:T.boxShadow});var F={filter:{transform:A.filter},blur:R.blur("--chakra-blur"),brightness:R.propT("--chakra-brightness",A.brightness),contrast:R.propT("--chakra-contrast",A.contrast),hueRotate:R.degreeT("--chakra-hue-rotate"),invert:R.propT("--chakra-invert",A.invert),saturate:R.propT("--chakra-saturate",A.saturate),dropShadow:R.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:R.blur("--chakra-backdrop-blur"),backdropBrightness:R.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:R.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:R.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:R.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:R.propT("--chakra-backdrop-saturate",A.saturate)},P={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},experimental_spaceX:{static:f,transform:o({scale:"space",transform:r=>null!==r?{"--chakra-space-x":r}:null})},experimental_spaceY:{static:p,transform:o({scale:"space",transform:r=>null!=r?{"--chakra-space-y":r}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:R.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(P,{flexDir:P.flexDirection});var I={gridGap:R.space("gridGap"),gridColumnGap:R.space("gridColumnGap"),gridRowGap:R.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},M={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:R.colors("outlineColor")},D={width:R.sizesT("width"),inlineSize:R.sizesT("inlineSize"),height:R.sizes("height"),blockSize:R.sizes("blockSize"),boxSize:R.sizes(["width","height"]),minWidth:R.sizes("minWidth"),minInlineSize:R.sizes("minInlineSize"),minHeight:R.sizes("minHeight"),minBlockSize:R.sizes("minBlockSize"),maxWidth:R.sizes("maxWidth"),maxInlineSize:R.sizes("maxInlineSize"),maxHeight:R.sizes("maxHeight"),maxBlockSize:R.sizes("maxBlockSize"),d:R.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:R.propT("float",A.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(D,{w:D.width,h:D.height,minW:D.minWidth,maxW:D.maxWidth,minH:D.minHeight,maxH:D.maxHeight,overscroll:D.overscrollBehavior,overscrollX:D.overscrollBehaviorX,overscrollY:D.overscrollBehaviorY});var W={listStyleType:!0,listStylePosition:!0,listStylePos:R.prop("listStylePosition"),listStyleImage:!0,listStyleImg:R.prop("listStyleImage")},J=t(4651),N={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},L=(r,e,t)=>{var n={},o=(0,J.Wf)(r,e,{});for(var a in o){a in t&&null!=t[a]||(n[a]=o[a])}return n},$={srOnly:{transform:r=>!0===r?N:"focusable"===r?H:{}},layerStyle:{processResult:!0,transform:(r,e,t)=>L(e,"layerStyles."+r,t)},textStyle:{processResult:!0,transform:(r,e,t)=>L(e,"textStyles."+r,t)},apply:{processResult:!0,transform:(r,e,t)=>L(e,r,t)}},Z={position:!0,pos:R.prop("position"),zIndex:R.prop("zIndex","zIndices"),inset:R.spaceT(["top","right","bottom","left"]),insetX:R.spaceT(["left","right"]),insetInline:R.spaceT("insetInline"),insetY:R.spaceT(["top","bottom"]),insetBlock:R.spaceT("insetBlock"),top:R.spaceT("top"),insetBlockStart:R.spaceT("insetBlockStart"),bottom:R.spaceT("bottom"),insetBlockEnd:R.spaceT("insetBlockEnd"),left:R.spaceT("left"),insetInlineStart:R.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:R.spaceT("right"),insetInlineEnd:R.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var V={ring:{transform:A.ring},ringColor:R.colors("--chakra-ring-color"),ringOffset:R.prop("--chakra-ring-offset-width"),ringOffsetColor:R.colors("--chakra-ring-offset-color"),ringInset:R.prop("--chakra-ring-inset")},q={margin:R.spaceT("margin"),marginTop:R.spaceT("marginTop"),marginBlockStart:R.spaceT("marginBlockStart"),marginRight:R.spaceT("marginRight"),marginInlineEnd:R.spaceT("marginInlineEnd"),marginBottom:R.spaceT("marginBottom"),marginBlockEnd:R.spaceT("marginBlockEnd"),marginLeft:R.spaceT("marginLeft"),marginInlineStart:R.spaceT("marginInlineStart"),marginX:R.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:R.spaceT("marginInline"),marginY:R.spaceT(["marginTop","marginBottom"]),marginBlock:R.spaceT("marginBlock"),padding:R.space("padding"),paddingTop:R.space("paddingTop"),paddingBlockStart:R.space("paddingBlockStart"),paddingRight:R.space("paddingRight"),paddingBottom:R.space("paddingBottom"),paddingBlockEnd:R.space("paddingBlockEnd"),paddingLeft:R.space("paddingLeft"),paddingInlineStart:R.space("paddingInlineStart"),paddingInlineEnd:R.space("paddingInlineEnd"),paddingX:R.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:R.space("paddingInline"),paddingY:R.space(["paddingTop","paddingBottom"]),paddingBlock:R.space("paddingBlock")};Object.assign(q,{m:q.margin,mt:q.marginTop,mr:q.marginRight,me:q.marginInlineEnd,marginEnd:q.marginInlineEnd,mb:q.marginBottom,ml:q.marginLeft,ms:q.marginInlineStart,marginStart:q.marginInlineStart,mx:q.marginX,my:q.marginY,p:q.padding,pt:q.paddingTop,py:q.paddingY,px:q.paddingX,pb:q.paddingBottom,pl:q.paddingLeft,ps:q.paddingInlineStart,paddingStart:q.paddingInlineStart,pr:q.paddingRight,pe:q.paddingInlineEnd,paddingEnd:q.paddingInlineEnd});var G={textDecorationColor:R.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:R.shadows("textShadow")},Y={clipPath:!0,transform:R.propT("transform",A.transform),transformOrigin:!0,translateX:R.spaceT("--chakra-translate-x"),translateY:R.spaceT("--chakra-translate-y"),skewX:R.degreeT("--chakra-skew-x"),skewY:R.degreeT("--chakra-skew-y"),scaleX:R.prop("--chakra-scale-x"),scaleY:R.prop("--chakra-scale-y"),scale:R.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:R.degreeT("--chakra-rotate")},X={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:R.prop("transitionDuration","transition.duration"),transitionProperty:R.prop("transitionProperty","transition.property"),transitionTimingFunction:R.prop("transitionTimingFunction","transition.easing")},U={fontFamily:R.prop("fontFamily","fonts"),fontSize:R.prop("fontSize","fontSizes",A.px),fontWeight:R.prop("fontWeight","fontWeights"),lineHeight:R.prop("lineHeight","lineHeights"),letterSpacing:R.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform(r){if(!0===r)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}}},55608:function(r,e,t){"use strict";t.d(e,{c0:function(){return C}});var n=t(73808);function o(r){return(0,n.Kn)(r)&&r.reference?r.reference:String(r)}var a=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.map(o).join(" "+r+" ").replace(/calc/g,"")},i=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("+",...e)+")"},s=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("-",...e)+")"},l=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("*",...e)+")"},c=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return"calc("+a("/",...e)+")"},u=r=>{var e=o(r);return null==e||Number.isNaN(parseFloat(e))?l(e,-1):String(e).startsWith("-")?String(e).slice(1):"-"+e},d=Object.assign((r=>({add:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(i(r,...t))},subtract:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(s(r,...t))},multiply:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(l(r,...t))},divide:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(c(r,...t))},negate:()=>d(u(r)),toString:()=>r.toString()})),{add:i,subtract:s,multiply:l,divide:c,negate:u}),f=t(88456);function p(r){var e=function(r,e){return void 0===e&&(e="-"),r.replace(/\s+/g,e)}(r.toString());return e.includes("\\.")?r:!Number.isInteger(parseFloat(r.toString()))?e.replace(".","\\."):r}function h(r,e){return"var("+p(r)+(e?", "+e:"")+")"}function b(r,e){return void 0===e&&(e=""),"--"+function(r,e){return void 0===e&&(e=""),[e,p(r)].filter(Boolean).join("-")}(r,e)}function g(r,e,t){var n=b(r,t);return{variable:n,reference:h(n,e)}}function m(){return(m=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function v(r,e){var t={cssMap:{},cssVars:{}};return function(r,e){(function r(t,o){return void 0===o&&(o=[]),(0,n.kJ)(t)?t.map(((e,t)=>r(e,[...o,String(t)]))):(0,n.Kn)(t)?Object.fromEntries(Object.entries(t).map((e=>{var[t,n]=e;return[t,r(n,[...o,t])]}))):e(t,o)})(r)}(r,((r,n)=>{var o,[a]=n,i=null!=(o=y[a])?o:y.defaultHandler,{cssVars:s,cssMap:l}=i(n,r,e);Object.assign(t.cssVars,s),Object.assign(t.cssMap,l)})),t}var y={space:(r,e,t)=>{var n=y.defaultHandler(r,e,t),[o,...a]=r,i=o+".-"+a.join("."),s=r.join("-"),{variable:l,reference:c}=g(s,void 0,t.cssVarPrefix),u=d.negate(e),f=d.negate(c);return{cssVars:n.cssVars,cssMap:m({},n.cssMap,{[i]:{value:""+u,var:""+l,varRef:f}})}},defaultHandler:(r,e,t)=>{var n=r.join("."),o=r.join("-"),{variable:a,reference:i}=g(o,void 0,t.cssVarPrefix);return{cssVars:{[a]:e},cssMap:{[n]:{value:e,var:a,varRef:i}}}}},x=t(4651);var w=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function S(r){var e=w;return(0,x.ei)(r,e)}function k(r){return function(r,e){if(null==r)return{};var t,n,o={},a=Object.keys(r);for(n=0;n<a.length;n++)t=a[n],e.indexOf(t)>=0||(o[t]=r[t]);return o}(r,["__cssMap","__cssVars","__breakpoints"])}function _(){return(_=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function C(r){var e,t=k(r),n=S(t),o=null==(e=t.config)?void 0:e.cssVarPrefix,{cssMap:a,cssVars:i}=v(n,{cssVarPrefix:o});return Object.assign(t,{__cssVars:_({},{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},i),__cssMap:a,__breakpoints:(0,f.y)(t.breakpoints)}),t}},33565:function(r,e,t){"use strict";t.d(e,{i:function(){return f}});var n=t(73808),o=t(80658),a=t(38554),i=t.n(a),s=t(28680),l=t(25503),c=(r,e)=>r.startsWith("--")&&(0,n.HD)(e)&&!(0,n.FS)(e),u=(r,e)=>{var t,n;if(null==e)return e;var o=e=>{var t,n;return null==(t=r.__cssMap)||null==(n=t[e])?void 0:n.varRef},a=r=>{var e;return null!=(e=o(r))?e:r},i=e.split(",").map((r=>r.trim())),[s,l]=i;return e=null!=(t=null!=(n=o(s))?n:a(l))?t:a(e)};function d(r){var{configs:e={},pseudos:t={},theme:a}=r;return function r(s,l){void 0===l&&(l=!1);var d=(0,o.Pu)(s,a),f=(r=>e=>{if(!e.__breakpoints)return r;var{isResponsive:t,toArrayValue:a,media:i}=e.__breakpoints,s={};for(var l in r){var c=(0,o.Pu)(r[l],e);if(null!=c)if(c=(0,n.Kn)(c)&&t(c)?a(c):c,Array.isArray(c))for(var u=c.slice(0,i.length).length,d=0;d<u;d+=1){var f=null==i?void 0:i[d];f?(s[f]=s[f]||{},null!=c[d]&&(s[f][l]=c[d])):s[l]=c[d]}else s[l]=c}return s})(d)(a),p={};for(var h in f){var b,g,m,v,y,x=f[h],w=(0,o.Pu)(x,a);h in t&&(h=t[h]),c(h,w)&&(w=u(a,w));var S=e[h];if(!0===S&&(S={property:h}),(0,n.Kn)(w)){var k;p[h]=null!=(k=p[h])?k:{},p[h]=i()({},p[h],r(w,!0))}else{var _=null!=(b=null==(g=S)||null==g.transform?void 0:g.transform(w,a,d))?b:w;_=null!=(m=S)&&m.processResult?r(_,!0):_;var C=(0,o.Pu)(null==(v=S)?void 0:v.property,a);if(!l&&null!=(y=S)&&y.static){var A=(0,o.Pu)(S.static,a);p=i()({},p,A)}if(C&&Array.isArray(C))for(var E of C)p[E]=_;else C?"&"===C&&(0,n.Kn)(_)?p=i()({},p,_):p[C]=_:(0,n.Kn)(_)?p=i()({},p,_):p[h]=_}}return p}}var f=r=>e=>d({theme:e,pseudos:s.v,configs:l.Ul})(r)},9421:function(r,e,t){"use strict";t.d(e,{iv:function(){return n.i},isStyleProp:function(){return i.ZR},layoutPropNames:function(){return i.oE},propNames:function(){return i.cC},toCSSVar:function(){return s.c0}});t(13205);var n=t(33565),o=t(41664);t.o(o,"isStyleProp")&&t.d(e,{isStyleProp:function(){return o.isStyleProp}}),t.o(o,"layoutPropNames")&&t.d(e,{layoutPropNames:function(){return o.layoutPropNames}}),t.o(o,"propNames")&&t.d(e,{propNames:function(){return o.propNames}}),t.o(o,"toCSSVar")&&t.d(e,{toCSSVar:function(){return o.toCSSVar}}),t.o(o,"useTheme")&&t.d(e,{useTheme:function(){return o.useTheme}});var a=t(87759);t.o(a,"isStyleProp")&&t.d(e,{isStyleProp:function(){return a.isStyleProp}}),t.o(a,"layoutPropNames")&&t.d(e,{layoutPropNames:function(){return a.layoutPropNames}}),t.o(a,"propNames")&&t.d(e,{propNames:function(){return a.propNames}}),t.o(a,"toCSSVar")&&t.d(e,{toCSSVar:function(){return a.toCSSVar}}),t.o(a,"useTheme")&&t.d(e,{useTheme:function(){return a.useTheme}});var i=t(25503),s=t(55608)},28680:function(r,e,t){"use strict";t.d(e,{v:function(){return d},_:function(){return f}});var n=t(4651),o=r=>r+":focus &, "+r+"[data-focus] &",a=r=>r+":active &, "+r+"[data-active] &",i=r=>r+":disabled &, "+r+"[data-disabled] &",s=r=>r+":invalid &, "+r+"[data-invalid] &",l=r=>r+":checked &, "+r+"[data-checked] &",c=r=>u(r,"[role=group]","[data-group]",".group"),u=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.map(r).join(", ")},d={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:c((r=>r+":hover &, "+r+"[data-hover] &")),_groupFocus:c(o),_groupActive:c(a),_groupDisabled:c(i),_groupInvalid:c(s),_groupChecked:c(l),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},f=(0,n.Yd)(d)},25503:function(r,e,t){"use strict";t.d(e,{Ul:function(){return c},oE:function(){return d},cC:function(){return f},ZR:function(){return h}});var n=t(38554),o=t.n(n),a=t(4651),i=t(13205),s=t(28680);function l(){return(l=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var c=o()({},i.Oq,i.Cg,i.$_,i.GQ,i.bK,i.hX,i.v_,i.Mw,i.eC,i.o_,i.FK,i.cE,i.Dh,i.cp,i.QX,i.vs,i.pb,i.eR),u=Object.assign({},i.Dh,i.bK,i.GQ,i.eC,i.FK),d=(0,a.Yd)(u),f=[...(0,a.Yd)(c),...s._],p=l({},c,s.v),h=r=>r in p},41664:function(){},87759:function(){},29676:function(r,e,t){"use strict";t.d(e,{f6:function(){return d},Fg:function(){return f},Fo:function(){return p},yK:function(){return h},ZL:function(){return b}});var n=t(24738),o=t(9421),a=t(4651),i=t(80658),s=t(28500),l=t(65199),c=t(70917),u=t(67294),d=r=>{var{cssVarsRoot:e=":host, :root",theme:t,children:n}=r,a=u.useMemo((()=>(0,o.toCSSVar)(t)),[t]);return u.createElement(l.a,{theme:a},u.createElement(c.Global,{styles:r=>({[e]:r.__cssVars})}),n)};function f(){var r=u.useContext(l.T);if(!r)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return r}var[p,h]=(0,s.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),b=()=>{var{colorMode:r}=(0,n.If)();return u.createElement(c.Global,{styles:e=>{var t=(0,a.Wf)(e,"styles.global"),n=(0,i.Pu)(t,{theme:e,colorMode:r});if(n)return(0,o.iv)(n)(e)}})}},63108:function(r,e,t){"use strict";function n(r,e){return t=>"dark"===t.colorMode?e:r}function o(r){var{orientation:e,vertical:t,horizontal:n}=r;return e?"vertical"===e?t:n:{}}t.d(e,{xJ:function(){return n},fL:function(){return o}})},83035:function(r,e,t){"use strict";t.d(e,{Z:function(){return Be}});var n={parts:["container","button","panel","icon"],baseStyle:{container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}}},o=t(17621),a=t.n(o),i=t(4651),s=t(73808),l=(r,e,t)=>{var n=(0,i.Wf)(r,"colors."+e,e);return a()(n).isValid()?n:t},c=r=>e=>{var t=l(e,r);return a()(t).isDark()?"dark":"light"},u=(r,e)=>t=>{var n=l(t,r);return a()(n).setAlpha(e).toRgbString()};function d(r,e){return void 0===r&&(r="1rem"),void 0===e&&(e="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n    45deg,\n    "+e+" 25%,\n    transparent 25%,\n    transparent 50%,\n    "+e+" 50%,\n    "+e+" 75%,\n    transparent 75%,\n    transparent\n  )",backgroundSize:r+" "+r}}function f(r){var e=a().random().toHexString();return!r||(0,s.Qr)(r)?e:r.string&&r.colors?function(r,e){var t=0;if(0===r.length)return e[0];for(var n=0;n<r.length;n+=1)t=r.charCodeAt(n)+((t<<5)-t),t&=t;return t=(t%e.length+e.length)%e.length,e[t]}(r.string,r.colors):r.string&&!r.colors?function(r){var e=0;if(0===r.length)return e.toString();for(var t=0;t<r.length;t+=1)e=r.charCodeAt(t)+((e<<5)-e),e&=e;for(var n="#",o=0;o<3;o+=1){n+=("00"+(e>>8*o&255).toString(16)).substr(-2)}return n}(r.string):r.colors&&!r.string?function(r){return r[Math.floor(Math.random()*r.length)]}(r.colors):e}var p=t(63108);function h(r){var{theme:e,colorScheme:t}=r,n=l(e,t+".100",t),o=u(t+".200",.16)(e);return(0,p.xJ)(n,o)(r)}var b={parts:["container","title","description","icon"],baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:{subtle:function(r){var{colorScheme:e}=r;return{container:{bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},"left-accent":function(r){var{colorScheme:e}=r;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:(0,p.xJ)(e+".500",e+".200")(r),bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},"top-accent":function(r){var{colorScheme:e}=r;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:(0,p.xJ)(e+".500",e+".200")(r),bg:h(r)},icon:{color:(0,p.xJ)(e+".500",e+".200")(r)}}},solid:function(r){var{colorScheme:e}=r;return{container:{bg:(0,p.xJ)(e+".500",e+".200")(r),color:(0,p.xJ)("white","gray.900")(r)}}}},defaultProps:{variant:"subtle",colorScheme:"blue"}},g=t(54681);function m(r){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:(0,p.xJ)("white","gray.800")(r)}}function v(r){return{bg:(0,p.xJ)("gray.200","whiteAlpha.400")(r)}}function y(r){var{name:e,theme:t}=r,n=e?f({string:e}):"gray.400",o=(r=>e=>"dark"===c(r)(e))(n)(t),a="white";return o||(a="gray.800"),{bg:n,color:a,borderColor:(0,p.xJ)("white","gray.800")(r),verticalAlign:"top"}}function x(r){var e=g.Z[r];return{container:{width:r,height:r,fontSize:"calc("+(null!=e?e:r)+" / 2.5)"},excessLabel:{width:r,height:r},label:{fontSize:"calc("+(null!=e?e:r)+" / 2.5)",lineHeight:"100%"!==r?null!=e?e:r:void 0}}}var w={parts:["container","excessLabel","badge","label"],baseStyle:r=>({badge:m(r),excessLabel:v(r),container:y(r)}),sizes:{"2xs":x("4"),xs:x("6"),sm:x("8"),md:x("12"),lg:x("16"),xl:x("24"),"2xl":x("32"),full:x("100%")},defaultProps:{size:"md"}};var S={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".500",.6)(t);return{bg:(0,p.xJ)(e+".500",n)(r),color:(0,p.xJ)("white","whiteAlpha.800")(r)}},subtle:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".200",.16)(t);return{bg:(0,p.xJ)(e+".100",n)(r),color:(0,p.xJ)(e+".800",e+".200")(r)}},outline:function(r){var{colorScheme:e,theme:t}=r,n=u(e+".200",.8)(t),o=l(t,e+".500"),a=(0,p.xJ)(o,n)(r);return{color:a,boxShadow:"inset 0 0 0px 1px "+a}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},k={parts:["container","item","link","separator"],baseStyle:{link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}}};function _(){return(_=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function C(r){var{colorScheme:e,theme:t}=r;if("gray"===e)return{color:(0,p.xJ)("inherit","whiteAlpha.900")(r),_hover:{bg:(0,p.xJ)("gray.100","whiteAlpha.200")(r)},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r)}};var n=u(e+".200",.12)(t),o=u(e+".200",.24)(t);return{color:(0,p.xJ)(e+".600",e+".200")(r),bg:"transparent",_hover:{bg:(0,p.xJ)(e+".50",n)(r)},_active:{bg:(0,p.xJ)(e+".100",o)(r)}}}var A={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}};var E={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:C,outline:function(r){var{colorScheme:e}=r,t=(0,p.xJ)("gray.200","whiteAlpha.300")(r);return _({border:"1px solid",borderColor:"gray"===e?t:"currentColor"},C(r))},solid:function(r){var{colorScheme:e}=r;if("gray"===e){var t=(0,p.xJ)("gray.100","whiteAlpha.200")(r);return{bg:t,_hover:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r),_disabled:{bg:t}},_active:{bg:(0,p.xJ)("gray.300","whiteAlpha.400")(r)}}}var{bg:n=e+".500",color:o="white",hoverBg:a=e+".600",activeBg:i=e+".700"}=A[e]||{},s=(0,p.xJ)(n,e+".200")(r);return{bg:s,color:(0,p.xJ)(o,"gray.800")(r),_hover:{bg:(0,p.xJ)(a,e+".300")(r),_disabled:{bg:s}},_active:{bg:(0,p.xJ)(i,e+".400")(r)}}},link:function(r){var{colorScheme:e}=r;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:(0,p.xJ)(e+".500",e+".200")(r),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:(0,p.xJ)(e+".700",e+".500")(r)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:0,p:0}},sizes:{lg:{h:12,minW:12,fontSize:"lg",px:6},md:{h:10,minW:10,fontSize:"md",px:4},sm:{h:8,minW:8,fontSize:"sm",px:3},xs:{h:6,minW:6,fontSize:"xs",px:2}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}};function z(r){var{colorScheme:e}=r;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:(0,p.xJ)(e+".500",e+".200")(r),borderColor:(0,p.xJ)(e+".500",e+".200")(r),color:(0,p.xJ)("white","gray.900")(r),_hover:{bg:(0,p.xJ)(e+".600",e+".300")(r),borderColor:(0,p.xJ)(e+".600",e+".300")(r)},_disabled:{borderColor:(0,p.xJ)("gray.200","transparent")(r),bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r),color:(0,p.xJ)("gray.500","whiteAlpha.500")(r)}},_indeterminate:{bg:(0,p.xJ)(e+".500",e+".200")(r),borderColor:(0,p.xJ)(e+".500",e+".200")(r),color:(0,p.xJ)("white","gray.900")(r)},_disabled:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r),borderColor:(0,p.xJ)("gray.100","transparent")(r)},_focus:{boxShadow:"outline"},_invalid:{borderColor:(0,p.xJ)("red.500","red.300")(r)}}}var R={userSelect:"none",_disabled:{opacity:.4}},B={transitionProperty:"transform",transitionDuration:"normal"},j={parts:["container","control","label","icon"],baseStyle:r=>({icon:B,control:z(r),label:R}),sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};var O={baseStyle:function(r){return{borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:(0,p.xJ)("blackAlpha.100","whiteAlpha.100")(r)},_active:{bg:(0,p.xJ)("blackAlpha.200","whiteAlpha.200")(r)},_focus:{boxShadow:"outline"}}},sizes:{lg:{w:"40px",h:"40px",fontSize:"16px"},md:{w:"32px",h:"32px",fontSize:"12px"},sm:{w:"24px",h:"24px",fontSize:"10px"}},defaultProps:{size:"md"}},{variants:T,defaultProps:F}=S,P={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:T,defaultProps:F},I={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},M={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},D={bg:"blackAlpha.600",zIndex:"modal"};function W(r){var{isCentered:e,scrollBehavior:t}=r;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e?"center":"flex-start",overflow:"inside"===t?"hidden":"auto"}}function J(r){var{scrollBehavior:e}=r;return{borderRadius:"md",bg:(0,p.xJ)("white","gray.700")(r),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===e?"calc(100% - 7.5rem)":void 0,boxShadow:(0,p.xJ)("lg","dark-lg")(r)}}var N={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},H={position:"absolute",top:2,insetEnd:3};function L(r){var{scrollBehavior:e}=r;return{px:6,py:2,flex:1,overflow:"inside"===e?"auto":void 0}}var $={px:6,py:4};function Z(r){return"full"===r?{dialog:{maxW:"100vw",minH:"100vh"}}:{dialog:{maxW:r}}}var V={parts:["overlay","dialogContainer","dialog","header","closeButton","body","footer"],baseStyle:r=>({overlay:D,dialogContainer:W(r),dialog:J(r),header:N,closeButton:H,body:L(r),footer:$}),sizes:{xs:Z("xs"),sm:Z("sm"),md:Z("md"),lg:Z("lg"),xl:Z("xl"),"2xl":Z("2xl"),"3xl":Z("3xl"),"4xl":Z("4xl"),"5xl":Z("5xl"),"6xl":Z("6xl"),full:Z("full")},defaultProps:{size:"md"}};function q(){return(q=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function G(r){return"full"===r?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:r}}}var Y={bg:"blackAlpha.600",zIndex:"overlay"},X={display:"flex",zIndex:"modal",justifyContent:"center"};function U(r){var{isFullHeight:e}=r;return q({},e&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:(0,p.xJ)("white","gray.700")(r),color:"inherit",boxShadow:(0,p.xJ)("lg","dark-lg")(r)})}var K={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},Q={position:"absolute",top:2,insetEnd:3},rr={px:6,py:2,flex:1,overflow:"auto"},er={px:6,py:4},tr={parts:V.parts,baseStyle:r=>({overlay:Y,dialogContainer:X,dialog:U(r),header:K,closeButton:Q,body:rr,footer:er}),sizes:{xs:G("xs"),sm:G("md"),md:G("lg"),lg:G("2xl"),xl:G("4xl"),full:G("full")},defaultProps:{size:"xs"}},nr={parts:["preview","input"],baseStyle:{preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}}};function or(r){return{marginStart:1,color:(0,p.xJ)("red.500","red.300")(r)}}function ar(r){return{mt:2,color:(0,p.xJ)("gray.500","whiteAlpha.600")(r),lineHeight:"normal",fontSize:"sm"}}var ir={parts:["requiredIndicator","helperText"],baseStyle:r=>({requiredIndicator:or(r),helperText:ar(r)})},sr={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},lr={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},cr={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}};function ur(r){var{focusBorderColor:e,errorBorderColor:t}=r;return{focusBorderColor:e||(0,p.xJ)("blue.500","blue.300")(r),errorBorderColor:t||(0,p.xJ)("red.500","red.300")(r)}}var dr={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:cr.lg,addon:cr.lg},md:{field:cr.md,addon:cr.md},sm:{field:cr.sm,addon:cr.sm},xs:{field:cr.xs,addon:cr.xs}},variants:{outline:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,p.xJ)("gray.300","whiteAlpha.400")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(e,n),boxShadow:"0 0 0 1px "+l(e,n)},_focus:{zIndex:1,borderColor:l(e,t),boxShadow:"0 0 0 1px "+l(e,t)}},addon:{border:"1px solid",borderColor:(0,p.xJ)("inherit","whiteAlpha.50")(r),bg:(0,p.xJ)("gray.100","whiteAlpha.300")(r)}}},filled:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,p.xJ)("gray.100","whiteAlpha.50")(r),_hover:{bg:(0,p.xJ)("gray.200","whiteAlpha.100")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:l(e,n)},_focus:{bg:"transparent",borderColor:l(e,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,p.xJ)("gray.100","whiteAlpha.50")(r)}}},flushed:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=ur(r);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:l(e,n),boxShadow:"0px 1px 0px 0px "+l(e,n)},_focus:{borderColor:l(e,t),boxShadow:"0px 1px 0px 0px "+l(e,t)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},defaultProps:{size:"md",variant:"outline"}};var fr={baseStyle:function(r){return{bg:(0,p.xJ)("gray.100","whiteAlpha")(r),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},pr={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},hr={parts:["container","item","icon"],baseStyle:{container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}}};function br(r){return{bg:(0,p.xJ)("#fff","gray.700")(r),boxShadow:(0,p.xJ)("sm","dark-lg")(r),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}}function gr(r){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r)},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.200")(r)},_expanded:{bg:(0,p.xJ)("gray.100","whiteAlpha.100")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}var mr,vr={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},yr={opacity:.6},xr={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},wr={transitionProperty:"common",transitionDuration:"normal"},Sr={parts:["item","command","list","button","groupTitle","divider"],baseStyle:r=>({button:wr,list:br(r),item:gr(r),groupTitle:vr,command:yr,divider:xr})},kr=t(35268);function _r(){return(_r=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var{variants:Cr,defaultProps:Ar}=dr,Er={"--number-input-stepper-width":"24px","--number-input-field-padding":"calc(var(--number-input-stepper-width) + 0.5rem)"},zr=null==(mr=dr.baseStyle)?void 0:mr.field,Rr={width:"var(--number-input-stepper-width)"};function Br(r){return{borderStart:"1px solid",borderStartColor:(0,p.xJ)("inherit","whiteAlpha.300")(r),color:(0,p.xJ)("inherit","whiteAlpha.800")(r),_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}function jr(r){var e=dr.sizes[r],t={lg:"md",md:"md",sm:"sm",xs:"sm"},n=kr.Z.fontSizes[e.field.fontSize];return{field:_r({},e.field,{paddingInlineEnd:"var(--number-input-field-padding)",verticalAlign:"top"}),stepper:{fontSize:"calc("+n+" * 0.75)",_first:{borderTopEndRadius:t[r]},_last:{borderBottomEndRadius:t[r],mt:"-1px",borderTopWidth:1}}}}var Or={parts:["root","field","stepper","stepperGroup"],baseStyle:r=>({root:Er,field:zr,stepperGroup:Rr,stepper:Br(r)}),sizes:{xs:jr("xs"),sm:jr("sm"),md:jr("md"),lg:jr("lg")},variants:Cr,defaultProps:Ar};function Tr(){return(Tr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var Fr={baseStyle:Tr({},dr.baseStyle.field,{textAlign:"center"}),sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:r=>dr.variants.outline(r).field,flushed:r=>dr.variants.flushed(r).field,filled:r=>dr.variants.filled(r).field,unstyled:dr.variants.unstyled.field},defaultProps:dr.defaultProps},Pr={zIndex:10};function Ir(r){return{"--popover-bg":"colors."+(0,p.xJ)("white","gray.700")(r),bg:"var(--popover-bg)","--popper-arrow-bg":"var(--popover-bg)","--popper-arrow-shadow-color":"colors."+(0,p.xJ)("gray.200","whiteAlpha.300")(r),width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}}var Mr={px:3,py:2,borderBottomWidth:"1px"},Dr={px:3,py:2},Wr={px:3,py:2,borderTopWidth:"1px"},Jr={parts:["popper","content","header","body","footer","arrow"],baseStyle:r=>({popper:Pr,content:Ir(r),header:Mr,body:Dr,footer:Wr,arrow:{}})};function Nr(){return(Nr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var Hr={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"};function Lr(r){return{bg:(0,p.xJ)("gray.100","whiteAlpha.300")(r)}}function $r(r){return Nr({transitionProperty:"common",transitionDuration:"slow"},function(r){var{colorScheme:e,theme:t,isIndeterminate:n,hasStripe:o}=r,a=(0,p.xJ)(d(),d("1rem","rgba(0,0,0,0.1)"))(r),i=(0,p.xJ)(e+".500",e+".200")(r),s="linear-gradient(\n    to right,\n    transparent 0%,\n    "+l(t,i)+" 50%,\n    transparent 100%\n  )";return Nr({},!n&&o&&a,n?{bgImage:s}:{bgColor:i})}(r))}var Zr={parts:["track","filledTrack","label"],sizes:{xs:{track:{h:"0.25rem"}},sm:{track:{h:"0.5rem"}},md:{track:{h:"0.75rem"}},lg:{track:{h:"1rem"}}},baseStyle:r=>({label:Hr,filledTrack:$r(r),track:Lr(r)}),defaultProps:{size:"md",colorScheme:"blue"}};function Vr(){return(Vr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function qr(r){var{control:e}=j.baseStyle(r);return Vr({},e,{borderRadius:"full",_checked:Vr({},e._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})}var Gr={parts:["container","control","label"],baseStyle:r=>({label:j.baseStyle(r).label,control:qr(r)}),sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Yr=t(38554);function Xr(){return(Xr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function Ur(r){return Xr({},dr.baseStyle.field,{appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:(0,p.xJ)("white","gray.700")(r)}})}var Kr={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Qr={parts:["field","icon"],baseStyle:r=>({field:Ur(r),icon:Kr}),sizes:t.n(Yr)()({},dr.sizes,{xs:{icon:{insetEnd:"0.25rem"}}}),variants:dr.variants,defaultProps:dr.defaultProps},re=t(70917),ee=(r,e)=>(0,re.keyframes)({from:{borderColor:r,background:r},to:{borderColor:e,background:e}}),te={baseStyle:r=>{var e=(0,p.xJ)("gray.100","gray.800")(r),t=(0,p.xJ)("gray.400","gray.600")(r),{startColor:n=e,endColor:o=t,speed:a,theme:i}=r,s=l(i,n),c=l(i,o);return{opacity:.7,borderRadius:"2px",borderColor:s,background:c,animation:a+"s linear infinite alternate "+ee(s,c)}}},ne={baseStyle:r=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:(0,p.xJ)("white","gray.700")(r)}})};function oe(){return(oe=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var ae=r=>{var{orientation:e}=r;return oe({_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},(0,p.fL)({orientation:e,vertical:{h:"100%"},horizontal:{w:"100%"}}))};function ie(r){return{borderRadius:"sm",bg:(0,p.xJ)("gray.200","whiteAlpha.200")(r),_disabled:{bg:(0,p.xJ)("gray.300","whiteAlpha.300")(r)}}}function se(r){return oe({zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(r){return(0,p.fL)({orientation:r.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(r))}function le(r){var{colorScheme:e}=r;return{bg:(0,p.xJ)(e+".500",e+".200")(r)}}var ce={parts:["container","thumb","track","filledTrack"],sizes:{lg:function(r){return{thumb:{w:"16px",h:"16px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(r){return{thumb:{w:"14px",h:"14px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(r){return{thumb:{w:"10px",h:"10px"},track:(0,p.fL)({orientation:r.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},baseStyle:r=>({container:ae(r),track:ie(r),thumb:se(r),filledTrack:le(r)}),defaultProps:{size:"md",colorScheme:"blue"}},ue={baseStyle:{width:"var(--spinner-size)",height:"var(--spinner-size)"},sizes:{xs:{"--spinner-size":"0.75rem"},sm:{"--spinner-size":"1rem"},md:{"--spinner-size":"1.5rem"},lg:{"--spinner-size":"2rem"},xl:{"--spinner-size":"3rem"}},defaultProps:{size:"md"}},de={parts:["label","number","icon","helpText"],baseStyle:{label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}};function fe(r){var{colorScheme:e}=r;return{borderRadius:"full",p:"2px",width:"var(--slider-track-width)",height:"var(--slider-track-height)",transitionProperty:"common",transitionDuration:"fast",bg:(0,p.xJ)("gray.300","whiteAlpha.400")(r),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:(0,p.xJ)(e+".500",e+".200")(r)}}}var pe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:"var(--slider-track-height)",height:"var(--slider-track-height)",_checked:{transform:"translateX(var(--slider-thumb-x))"}},he={parts:["container","track","thumb"],baseStyle:r=>({container:{"--slider-track-diff":"calc(var(--slider-track-width) - var(--slider-track-height))","--slider-thumb-x":"var(--slider-track-diff)",_rtl:{"--slider-thumb-x":"calc(-1 * var(--slider-track-diff))"}},track:fe(r),thumb:pe}),sizes:{sm:{container:{"--slider-track-width":"1.375rem","--slider-track-height":"0.75rem"}},md:{container:{"--slider-track-width":"1.875rem","--slider-track-height":"1rem"}},lg:{container:{"--slider-track-width":"2.875rem","--slider-track-height":"1.5rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};function be(){return(be=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var ge={"&[data-is-numeric=true]":{textAlign:"end"}},me={parts:["table","thead","tbody","tr","th","td","caption"],baseStyle:{table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},variants:{simple:r=>{var{colorScheme:e}=r;return{th:be({color:(0,p.xJ)("gray.600","gray.400")(r),borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),td:be({borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),caption:{color:(0,p.xJ)("gray.600","gray.100")(r)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:r=>{var{colorScheme:e}=r;return{th:be({color:(0,p.xJ)("gray.600","gray.400")(r),borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),td:be({borderBottom:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},ge),caption:{color:(0,p.xJ)("gray.600","gray.100")(r)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,p.xJ)(e+".100",e+".700")(r)},td:{background:(0,p.xJ)(e+".100",e+".700")(r)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}};function ve(r){var{orientation:e}=r;return{display:"vertical"===e?"flex":"block"}}function ye(r){var{isFitted:e}=r;return{flex:e?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function xe(r){var{align:e="start",orientation:t}=r;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[e],flexDirection:"vertical"===t?"column":"row"}}var we={p:4};var Se={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:r=>({root:ve(r),tab:ye(r),tablist:xe(r),tabpanel:we}),sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:{line:function(r){var{colorScheme:e,orientation:t}=r,n="vertical"===t?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",["vertical"===t?"marginStart":"marginBottom"]:"-2px",_selected:{color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"currentColor"},_active:{bg:(0,p.xJ)("gray.200","whiteAlpha.300")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(r){var{colorScheme:e}=r;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"inherit",borderBottomColor:(0,p.xJ)("white","gray.800")(r)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(r){var{colorScheme:e}=r;return{tab:{border:"1px solid",borderColor:"inherit",bg:(0,p.xJ)("gray.50","whiteAlpha.50")(r),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:(0,p.xJ)("#fff","gray.800")(r),color:(0,p.xJ)(e+".600",e+".300")(r),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(r){var{colorScheme:e,theme:t}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:l(t,e+".700"),bg:l(t,e+".100")}}}},"solid-rounded":function(r){var{colorScheme:e}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:(0,p.xJ)("gray.600","inherit")(r),_selected:{color:(0,p.xJ)("#fff","gray.800")(r),bg:(0,p.xJ)(e+".600",e+".300")(r)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},ke={parts:["container","label","closeButton"],variants:{subtle:r=>({container:S.variants.subtle(r)}),solid:r=>({container:S.variants.solid(r)}),outline:r=>({container:S.variants.outline(r)})},baseStyle:{container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}};function _e(){return(_e=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var Ce=_e({},dr.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Ae={outline:r=>dr.variants.outline(r).field,flushed:r=>dr.variants.flushed(r).field,filled:r=>dr.variants.filled(r).field,unstyled:dr.variants.unstyled.field},Ee={xs:dr.sizes.xs.field,sm:dr.sizes.sm.field,md:dr.sizes.md.field,lg:dr.sizes.lg.field};function ze(r){return{color:(0,p.xJ)("red.500","red.300")(r),mt:2,fontSize:"sm"}}function Re(r){return{marginEnd:"0.5em",color:(0,p.xJ)("red.500","red.300")(r)}}var Be={Accordion:n,Alert:b,Avatar:w,Badge:S,Breadcrumb:k,Button:E,Checkbox:j,CloseButton:O,Code:P,Container:I,Divider:M,Drawer:tr,Editable:nr,Form:ir,FormLabel:sr,Heading:lr,Input:dr,Kbd:fr,Link:pr,List:hr,Menu:Sr,Modal:V,NumberInput:Or,PinInput:Fr,Popover:Jr,Progress:Zr,Radio:Gr,Select:Qr,Skeleton:te,SkipLink:ne,Slider:ce,Spinner:ue,Stat:de,Switch:he,Table:me,Tabs:Se,Tag:ke,Textarea:{baseStyle:Ce,sizes:Ee,variants:Ae,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:function(r){return{"--tooltip-bg":"colors."+(0,p.xJ)("gray.700","gray.300")(r),px:"8px",py:"2px",bg:"var(--tooltip-bg)","--popper-arrow-bg":"var(--tooltip-bg)",color:(0,p.xJ)("whiteAlpha.900","gray.900")(r),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}}},FormError:{parts:["text","icon"],baseStyle:r=>({text:ze(r),icon:Re(r)})}}},42009:function(r,e,t){"use strict";t.d(e,{Z:function(){return b}});var n={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},o=t(80658);function a(){return(a=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var i,s=(i={sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},(0,o.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),a({base:"0em"},i)),l={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},c={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},u={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},d=t(54681),f=t(54514),p={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}};function h(){return(h=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var b=h({breakpoints:s,zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:c,blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:l},t(35268).Z,{sizes:d.Z,shadows:u,space:f.W,borders:n,transition:p})},54681:function(r,e,t){"use strict";function n(){return(n=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var o=n({},t(54514).W,{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem"},{container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}});e.Z=o},54514:function(r,e,t){"use strict";t.d(e,{W:function(){return n}});var n={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"}},35268:function(r,e){"use strict";e.Z={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}}},84806:function(r,e,t){"use strict";var n=t(83035),o=t(42009),a=t(41926),i=t(93025);function s(){return(s=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}t.o(i,"useTheme")&&t.d(e,{useTheme:function(){return i.useTheme}});var l=s({direction:"ltr"},o.Z,{components:n.Z,styles:a.Z,config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}});e.Z=l},41926:function(r,e,t){"use strict";var n=t(63108),o={global:r=>({body:{fontFamily:"body",color:(0,n.xJ)("gray.800","whiteAlpha.900")(r),bg:(0,n.xJ)("white","gray.800")(r),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:(0,n.xJ)("gray.400","whiteAlpha.400")(r)},"*, *::before, &::after":{borderColor:(0,n.xJ)("gray.200","whiteAlpha.300")(r),wordWrap:"break-word"}})};e.Z=o},93025:function(){},27277:function(r,e,t){"use strict";function n(r){var e=null==r?0:r.length;return e?r[e-1]:void 0}function o(r,e){return[...r,e]}function a(r,e){return r.filter((r=>r!==e))}function i(r,e,t,n){if(null==e)return n;if(!n)return r.find((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));var o,a=r.filter((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));return a.length>0?a.includes(n)?((o=a.indexOf(n)+1)===a.length&&(o=0),a[o]):(o=r.indexOf(a[0]),r[o]):n}t.d(e,{s:function(){return n},jX:function(){return o},cl:function(){return a},LP:function(){return i}})},73808:function(r,e,t){"use strict";function n(r){return"number"===typeof r}function o(r){return"number"!==typeof r||Number.isNaN(r)||!Number.isFinite(r)}function a(r){return Array.isArray(r)}function i(r){return"function"===typeof r}function s(r){return"undefined"===typeof r||void 0===r}function l(r){var e=typeof r;return null!=r&&("object"===e||"function"===e)&&!a(r)}function c(r){return l(r)&&0===Object.keys(r).length}function u(r){return"[object String]"===Object.prototype.toString.call(r)}function d(r){return/^var\(--.+\)$/.test(r)}t.d(e,{hj:function(){return n},iy:function(){return o},kJ:function(){return a},mf:function(){return i},o8:function(){return s},Kn:function(){return l},Qr:function(){return c},HD:function(){return u},FS:function(){return d},Ts:function(){return f},Ys:function(){return p}});var f=!1,p=!1},88456:function(r,e,t){"use strict";t.d(e,{px:function(){return i},y:function(){return d}});var n=t(27277),o=t(73808),a=t(4651);function i(r){if(null==r)return r;var{unitless:e}=function(r){var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}}(r);return e||(0,o.hj)(r)?r+"px":r}var s=(r,e)=>parseInt(r[1],10)>parseInt(e[1],10)?1:-1,l=r=>(0,a.sq)(Object.entries(r).sort(s));function c(r){var e=l(r);return Object.assign(Object.values(e),e)}function u(r,e){var t=[];return r&&t.push("@media screen and (min-width: "+i(r)+")"),t.length>0&&e&&t.push("and"),e&&t.push("@media screen and (max-width: "+i(e)+")"),t.join(" ")}function d(r){var e;if(!r)return null;r.base=null!=(e=r.base)?e:"0px";var t=c(r),a=Object.entries(r).sort(s).map(((r,e,t)=>{var n,[a,s]=r,[,l]=null!=(n=t[e+1])?n:[];return{breakpoint:a,minW:s,maxW:l=parseFloat(l)>0?function(r){var e;if(!r)return r;var t=(r=null!=(e=i(r))?e:r).endsWith("px")?-1:-.0635;return(0,o.hj)(r)?""+(r+t):r.replace(/([0-9]+\.?[0-9]*)/,(r=>""+(parseFloat(r)+t)))}(l):void 0,maxWQuery:u(null,l),minWQuery:u(s),minMaxQuery:u(s,l)}})),d=function(r){var e=Object.keys(l(r));return new Set(e)}(r),f=Array.from(d.values());return{keys:d,normalized:t,isResponsive(r){var e=Object.keys(r);return e.length>0&&e.every((r=>d.has(r)))},asObject:l(r),asArray:c(r),details:a,media:[null,...t.map((r=>u(r))).slice(1)],toArrayValue(r){if(!(0,o.Kn)(r))throw new Error("toArrayValue: value must be an object");for(var e=f.map((e=>{var t;return null!=(t=r[e])?t:null}));null===(0,n.s)(e);)e.pop();return e},toObjectValue(r){if(!Array.isArray(r))throw new Error("toObjectValue: value must be an array");return r.reduce(((r,e,t)=>{var n=f[t];return null!=n&&null!=e&&(r[n]=e),r}),{})}}}},84461:function(r,e,t){"use strict";function n(r){var e;return r instanceof Element&&null!=(e=r.ownerDocument)?e:document}t.d(e,{lZ:function(){return n},jU:function(){return o},PB:function(){return a},Qm:function(){return i},cx:function(){return s},vY:function(){return l},r3:function(){return c},EV:function(){return u},uh:function(){return d},dO:function(){return f}});var o=!("undefined"===typeof window||!window.document||!window.document.createElement),a=r=>r?"":void 0,i=r=>!!r||void 0,s=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")};function l(r){var e=n(r);return null==e?void 0:e.activeElement}function c(r,e){return!!r&&(r===e||r.contains(e))}function u(r,e,t,n){return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}}function d(r){var{key:e,keyCode:t}=r;return t>=37&&t<=40&&0!==e.indexOf("Arrow")?"Arrow"+e:e}function f(r){return 0!==r.button}},80658:function(r,e,t){"use strict";t.d(e,{Pu:function(){return o},v0:function(){return a},ZT:function(){return s},ZK:function(){return l},A4:function(){return c},zG:function(){return u},TE:function(){return p}});var n=t(73808);function o(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];return(0,n.mf)(r)?r(...t):r}function a(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(r){e.some((e=>(null==e||e(r),null==r?void 0:r.defaultPrevented)))}}function i(r){var e;return function(){if(r){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=r.apply(this,n),r=null}return e}}var s=()=>{},l=i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.warn(t)})),c=(i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.error(t)})),n.Ys?r=>r():"function"===typeof queueMicrotask?queueMicrotask:r=>{Promise.resolve().then(r)}),u=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return r=>e.reduce(((r,e)=>e(r)),r)},d=(r,e)=>Math.abs(r-e),f=r=>"x"in r&&"y"in r;function p(r,e){if((0,n.hj)(r)&&(0,n.hj)(e))return d(r,e);if(f(r)&&f(e)){var t=d(r.x,e.x),o=d(r.y,e.y);return Math.sqrt(t**2+o**2)}return 0}},4651:function(r,e,t){"use strict";t.d(e,{CE:function(){return n},ei:function(){return o},Vl:function(){return a},Wf:function(){return i},lw:function(){return s},YU:function(){return l},Yd:function(){return c},sq:function(){return u},K1:function(){return d}});t(38554);function n(r,e){var t={};return Object.keys(r).forEach((n=>{e.includes(n)||(t[n]=r[n])})),t}function o(r,e){var t={};return e.forEach((e=>{e in r&&(t[e]=r[e])})),t}function a(r,e){var t={},n={};return Object.keys(r).forEach((o=>{e.includes(o)?t[o]=r[o]:n[o]=r[o]})),[t,n]}var i=(r=>{var e=new WeakMap;return(t,n,o,a)=>{if("undefined"===typeof t)return r(t,n,o);e.has(t)||e.set(t,new Map);var i=e.get(t);if(i.has(n))return i.get(n);var s=r(t,n,o,a);return i.set(n,s),s}})((function(r,e,t,n){var o="string"===typeof e?e.split("."):[e];for(n=0;n<o.length&&r;n+=1)r=r[o[n]];return void 0===r?t:r}));function s(r,e){var t={};return Object.keys(r).forEach((n=>{var o=r[n];e(o,n,r)&&(t[n]=o)})),t}var l=r=>s(r,(r=>null!==r&&void 0!==r)),c=r=>Object.keys(r),u=r=>r.reduce(((r,e)=>{var[t,n]=e;return r[t]=n,r}),{}),d=(r,e,t)=>{var n,o;return null!=(n=null==(o=r.__cssMap[e+"."+t])?void 0:o.varRef)?n:t}},9152:function(r,e,t){"use strict";t.d(e,{Z:function(){return er}});var n=t(11526),o=Math.abs,a=String.fromCharCode;function i(r){return r.trim()}function s(r,e,t){return r.replace(e,t)}function l(r,e){return r.indexOf(e)}function c(r,e){return 0|r.charCodeAt(e)}function u(r,e,t){return r.slice(e,t)}function d(r){return r.length}function f(r){return r.length}function p(r,e){return e.push(r),r}var h=1,b=1,g=0,m=0,v=0,y="";function x(r,e,t,n,o,a,i){return{value:r,root:e,parent:t,type:n,props:o,children:a,line:h,column:b,length:i,return:""}}function w(r,e,t){return x(r,e.root,e.parent,t,e.props,e.children,0)}function S(){return v=m>0?c(y,--m):0,b--,10===v&&(b=1,h--),v}function k(){return v=m<g?c(y,m++):0,b++,10===v&&(b=1,h++),v}function _(){return c(y,m)}function C(){return m}function A(r,e){return u(y,r,e)}function E(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(r){return h=b=1,g=d(y=r),m=0,[]}function R(r){return y="",r}function B(r){return i(A(m-1,T(91===r?r+2:40===r?r+1:r)))}function j(r){for(;(v=_())&&v<33;)k();return E(r)>2||E(v)>3?"":" "}function O(r,e){for(;--e&&k()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return A(r,C()+(e<6&&32==_()&&32==k()))}function T(r){for(;k();)switch(v){case r:return m;case 34:case 39:return T(34===r||39===r?r:v);case 40:41===r&&T(r);break;case 92:k()}return m}function F(r,e){for(;k()&&r+v!==57&&(r+v!==84||47!==_()););return"/*"+A(e,m-1)+"*"+a(47===r?r:k())}function P(r){for(;!E(_());)k();return A(r,m)}var I="-ms-",M="-moz-",D="-webkit-",W="comm",J="rule",N="decl";function H(r,e){for(var t="",n=f(r),o=0;o<n;o++)t+=e(r[o],o,r,e)||"";return t}function L(r,e,t,n){switch(r.type){case"@import":case N:return r.return=r.return||r.value;case W:return"";case J:r.value=r.props.join(",")}return d(t=H(r.children,n))?r.return=r.value+"{"+t+"}":""}function $(r,e){switch(function(r,e){return(((e<<2^c(r,0))<<2^c(r,1))<<2^c(r,2))<<2^c(r,3)}(r,e)){case 5103:return D+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return D+r+M+r+I+r+r;case 6828:case 4268:return D+r+I+r+r;case 6165:return D+r+I+"flex-"+r+r;case 5187:return D+r+s(r,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+r;case 5443:return D+r+I+"flex-item-"+s(r,/flex-|-self/,"")+r;case 4675:return D+r+I+"flex-line-pack"+s(r,/align-content|flex-|-self/,"")+r;case 5548:return D+r+I+s(r,"shrink","negative")+r;case 5292:return D+r+I+s(r,"basis","preferred-size")+r;case 6060:return D+"box-"+s(r,"-grow","")+D+r+I+s(r,"grow","positive")+r;case 4554:return D+s(r,/([^-])(transform)/g,"$1-webkit-$2")+r;case 6187:return s(s(s(r,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),r,"")+r;case 5495:case 3959:return s(r,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return s(s(r,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+r+r;case 4095:case 3583:case 4068:case 2532:return s(r,/(.+)-inline(.+)/,D+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(r)-1-e>6)switch(c(r,e+1)){case 109:if(45!==c(r,e+4))break;case 102:return s(r,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+M+(108==c(r,e+3)?"$3":"$2-$3"))+r;case 115:return~l(r,"stretch")?$(s(r,"stretch","fill-available"),e)+r:r}break;case 4949:if(115!==c(r,e+1))break;case 6444:switch(c(r,d(r)-3-(~l(r,"!important")&&10))){case 107:return s(r,":",":"+D)+r;case 101:return s(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===c(r,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+I+"$2box$3")+r}break;case 5936:switch(c(r,e+11)){case 114:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return D+r+I+s(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return D+r+I+r+r}return r}function Z(r){return R(V("",null,null,null,[""],r=z(r),0,[0],r))}function V(r,e,t,n,o,i,l,c,u){for(var f=0,h=0,b=l,g=0,m=0,v=0,y=1,x=1,w=1,A=0,E="",z=o,R=i,T=n,I=E;x;)switch(v=A,A=k()){case 34:case 39:case 91:case 40:I+=B(A);break;case 9:case 10:case 13:case 32:I+=j(v);break;case 92:I+=O(C()-1,7);continue;case 47:switch(_()){case 42:case 47:p(G(F(k(),C()),e,t),u);break;default:I+="/"}break;case 123*y:c[f++]=d(I)*w;case 125*y:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+h:m>0&&d(I)-b&&p(m>32?Y(I+";",n,t,b-1):Y(s(I," ","")+";",n,t,b-2),u);break;case 59:I+=";";default:if(p(T=q(I,e,t,f,h,o,c,E,z=[],R=[],b),i),123===A)if(0===h)V(I,e,T,T,z,i,b,c,R);else switch(g){case 100:case 109:case 115:V(r,T,T,n&&p(q(r,T,T,0,0,o,c,E,o,z=[],b),R),o,R,b,c,n?z:R);break;default:V(I,T,T,T,[""],R,b,c,R)}}f=h=m=0,y=w=1,E=I="",b=l;break;case 58:b=1+d(I),m=v;default:if(y<1)if(123==A)--y;else if(125==A&&0==y++&&125==S())continue;switch(I+=a(A),A*y){case 38:w=h>0?1:(I+="\f",-1);break;case 44:c[f++]=(d(I)-1)*w,w=1;break;case 64:45===_()&&(I+=B(k())),g=_(),h=d(E=I+=P(C())),A++;break;case 45:45===v&&2==d(I)&&(y=0)}}return i}function q(r,e,t,n,a,l,c,d,p,h,b){for(var g=a-1,m=0===a?l:[""],v=f(m),y=0,w=0,S=0;y<n;++y)for(var k=0,_=u(r,g+1,g=o(w=c[y])),C=r;k<v;++k)(C=i(w>0?m[k]+" "+_:s(_,/&\f/g,m[k])))&&(p[S++]=C);return x(r,e,t,0===a?J:d,p,h,b)}function G(r,e,t){return x(r,e,t,W,a(v),u(r,2,-2),0)}function Y(r,e,t,n){return x(r,e,t,N,u(r,0,n),u(r,n+1,-1),n)}var X=function(r,e){return R(function(r,e){var t=-1,n=44;do{switch(E(n)){case 0:38===n&&12===_()&&(e[t]=1),r[t]+=P(m-1);break;case 2:r[t]+=B(n);break;case 4:if(44===n){r[++t]=58===_()?"&\f":"",e[t]=r[t].length;break}default:r[t]+=a(n)}}while(n=k());return r}(z(r),e))},U=new WeakMap,K=function(r){if("rule"===r.type&&r.parent&&r.length){for(var e=r.value,t=r.parent,n=r.column===t.column&&r.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==r.props.length||58===e.charCodeAt(0)||U.get(t))&&!n){U.set(r,!0);for(var o=[],a=X(e,o),i=t.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)r.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Q=function(r){if("decl"===r.type){var e=r.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(r.return="",r.value="")}},rr=[function(r,e,t,n){if(!r.return)switch(r.type){case N:r.return=$(r.value,r.length);break;case"@keyframes":return H([w(s(r.value,"@","@"+D),r,"")],n);case J:if(r.length)return function(r,e){return r.map(e).join("")}(r.props,(function(e){switch(function(r,e){return(r=e.exec(r))?r[0]:r}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([w(s(e,/:(read-\w+)/,":-moz-$1"),r,"")],n);case"::placeholder":return H([w(s(e,/:(plac\w+)/,":-webkit-input-$1"),r,""),w(s(e,/:(plac\w+)/,":-moz-$1"),r,""),w(s(e,/:(plac\w+)/,I+"input-$1"),r,"")],n)}return""}))}}],er=function(r){var e=r.key;if("css"===e){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(r){-1!==r.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(r),r.setAttribute("data-s",""))}))}var o=r.stylisPlugins||rr;var a,i,s={},l=[];a=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(r){for(var e=r.getAttribute("data-emotion").split(" "),t=1;t<e.length;t++)s[e[t]]=!0;l.push(r)}));var c,u,d=[L,(u=function(r){c.insert(r)},function(r){r.root||(r=r.return)&&u(r)})],p=function(r){var e=f(r);return function(t,n,o,a){for(var i="",s=0;s<e;s++)i+=r[s](t,n,o,a)||"";return i}}([K,Q].concat(o,d));i=function(r,e,t,n){c=t,H(Z(r?r+"{"+e.styles+"}":e.styles),p),n&&(h.inserted[e.name]=!0)};var h={key:e,sheet:new n.m({key:e,container:a,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend}),nonce:r.nonce,inserted:s,registered:{},insert:i};return h.sheet.hydrate(l),h}},67866:function(r,e){"use strict";e.Z=function(r){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=r(t)),e[t]}}},65199:function(r,e,t){"use strict";t.d(e,{C:function(){return h},E:function(){return k},T:function(){return g},a:function(){return y},b:function(){return x},c:function(){return S},h:function(){return f},u:function(){return m},w:function(){return b}});var n=t(67294),o=t(9152);function a(){return(a=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var i=function(r){var e=new WeakMap;return function(t){if(e.has(t))return e.get(t);var n=r(t);return e.set(t,n),n}},s=t(8679),l=t.n(s),c=function(r,e){return l()(r,e)},u=t(70444),d=t(94199),f=Object.prototype.hasOwnProperty,p=(0,n.createContext)("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null),h=p.Provider,b=function(r){return(0,n.forwardRef)((function(e,t){var o=(0,n.useContext)(p);return r(e,o,t)}))},g=(0,n.createContext)({}),m=function(){return(0,n.useContext)(g)},v=i((function(r){return i((function(e){return function(r,e){return"function"===typeof e?e(r):a({},r,e)}(r,e)}))})),y=function(r){var e=(0,n.useContext)(g);return r.theme!==e&&(e=v(e)(r.theme)),(0,n.createElement)(g.Provider,{value:e},r.children)};function x(r){var e=r.displayName||r.name||"Component",t=function(e,t){var o=(0,n.useContext)(g);return(0,n.createElement)(r,a({theme:o,ref:t},e))},o=(0,n.forwardRef)(t);return o.displayName="WithTheme("+e+")",c(o,r)}var w="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",S=function(r,e){var t={};for(var n in e)f.call(e,n)&&(t[n]=e[n]);return t[w]=r,t},k=b((function(r,e,t){var o=r.css;"string"===typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var a=r[w],i=[o],s="";"string"===typeof r.className?s=(0,u.f)(e.registered,i,r.className):null!=r.className&&(s=r.className+" ");var l=(0,d.O)(i,void 0,"function"===typeof o||Array.isArray(o)?(0,n.useContext)(g):void 0);(0,u.M)(e,l,"string"===typeof a);s+=e.key+"-"+l.name;var c={};for(var p in r)f.call(r,p)&&"css"!==p&&p!==w&&(c[p]=r[p]);return c.ref=t,c.className=s,(0,n.createElement)(a,c)}))},70917:function(r,e,t){"use strict";t.r(e),t.d(e,{CacheProvider:function(){return o.C},ThemeContext:function(){return o.T},ThemeProvider:function(){return o.a},useTheme:function(){return o.u},withEmotionCache:function(){return o.w},withTheme:function(){return o.b},ClassNames:function(){return h},Global:function(){return c},createElement:function(){return l},css:function(){return u},jsx:function(){return l},keyframes:function(){return d}});var n=t(67294),o=(t(9152),t(65199)),a=(t(8679),t(70444)),i=t(94199),s=t(11526),l=function(r,e){var t=arguments;if(null==e||!o.h.call(e,"css"))return n.createElement.apply(void 0,t);var a=t.length,i=new Array(a);i[0]=o.E,i[1]=(0,o.c)(r,e);for(var s=2;s<a;s++)i[s]=t[s];return n.createElement.apply(null,i)},c=(0,o.w)((function(r,e){var t=r.styles,l=(0,i.O)([t],void 0,"function"===typeof t||Array.isArray(t)?(0,n.useContext)(o.T):void 0),c=(0,n.useRef)();return(0,n.useLayoutEffect)((function(){var r=e.key+"-global",t=new s.m({key:r,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+r+" "+l.name+'"]');return e.sheet.tags.length&&(t.before=e.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",r),t.hydrate([o])),c.current=[t,n],function(){t.flush()}}),[e]),(0,n.useLayoutEffect)((function(){var r=c.current,t=r[0];if(r[1])r[1]=!1;else{if(void 0!==l.next&&(0,a.M)(e,l.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}e.insert("",l,t,!1)}}),[e,l.name]),null}));function u(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return(0,i.O)(e)}var d=function(){var r=u.apply(void 0,arguments),e="animation-"+r.name;return{name:e,styles:"@keyframes "+e+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},f=function r(e){for(var t=e.length,n=0,o="";n<t;n++){var a=e[n];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=r(a);else for(var s in i="",a)a[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function p(r,e,t){var n=[],o=(0,a.f)(r,n,t);return n.length<2?t:o+e(n)}var h=(0,o.w)((function(r,e){var t=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var o=(0,i.O)(t,e.registered);return(0,a.M)(e,o,!1),e.key+"-"+o.name},s={css:t,cx:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return p(e.registered,t,f(n))},theme:(0,n.useContext)(o.T)},l=r.children(s);return!0,l}))},94199:function(r,e,t){"use strict";t.d(e,{O:function(){return b}});var n=function(r){for(var e,t=0,n=0,o=r.length;o>=4;++n,o-=4)e=1540483477*(65535&(e=255&r.charCodeAt(n)|(255&r.charCodeAt(++n))<<8|(255&r.charCodeAt(++n))<<16|(255&r.charCodeAt(++n))<<24))+(59797*(e>>>16)<<16),t=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&r.charCodeAt(n+2))<<16;case 2:t^=(255&r.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&r.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=t(67866),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(r){return 45===r.charCodeAt(1)},c=function(r){return null!=r&&"boolean"!==typeof r},u=(0,a.Z)((function(r){return l(r)?r:r.replace(i,"-$&").toLowerCase()})),d=function(r,e){switch(r){case"animation":case"animationName":if("string"===typeof e)return e.replace(s,(function(r,e,t){return p={name:e,styles:t,next:p},e}))}return 1===o[r]||l(r)||"number"!==typeof e||0===e?e:e+"px"};function f(r,e,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return p={name:t.name,styles:t.styles,next:p},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return t.styles+";"}return function(r,e,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=f(r,e,t[o])+";";else for(var a in t){var i=t[a];if("object"!==typeof i)null!=e&&void 0!==e[i]?n+=a+"{"+e[i]+"}":c(i)&&(n+=u(a)+":"+d(a,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=e&&void 0!==e[i[0]]){var s=f(r,e,i);switch(a){case"animation":case"animationName":n+=u(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)c(i[l])&&(n+=u(a)+":"+d(a,i[l])+";")}return n}(r,e,t);case"function":if(void 0!==r){var o=p,a=t(r);return p=o,f(r,e,a)}break;case"string":}if(null==e)return t;var i=e[t];return void 0!==i?i:t}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var b=function(r,e,t){if(1===r.length&&"object"===typeof r[0]&&null!==r[0]&&void 0!==r[0].styles)return r[0];var o=!0,a="";p=void 0;var i=r[0];null==i||void 0===i.raw?(o=!1,a+=f(t,e,i)):a+=i[0];for(var s=1;s<r.length;s++)a+=f(t,e,r[s]),o&&(a+=i[s]);h.lastIndex=0;for(var l,c="";null!==(l=h.exec(a));)c+="-"+l[1];return{name:n(a)+c,styles:a,next:p}}},11526:function(r,e,t){"use strict";t.d(e,{m:function(){return n}});var n=function(){function r(r){var e=this;this._insertTag=function(r){var t;t=0===e.tags.length?e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(r,t),e.tags.push(r)},this.isSpeedy=void 0===r.speedy||r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.before=null}var e=r.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(r){var e=document.createElement("style");return e.setAttribute("data-emotion",r.key),void 0!==r.nonce&&e.setAttribute("nonce",r.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var t=function(r){if(r.sheet)return r.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===r)return document.styleSheets[e]}(e);try{t.insertRule(r,t.cssRules.length)}catch(n){0}}else e.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach((function(r){return r.parentNode.removeChild(r)})),this.tags=[],this.ctr=0},r}()},70444:function(r,e,t){"use strict";t.d(e,{f:function(){return n},M:function(){return o}});function n(r,e,t){var n="";return t.split(" ").forEach((function(t){void 0!==r[t]?e.push(r[t]+";"):n+=t+" "})),n}var o=function(r,e,t){var n=r.key+"-"+e.name;if(!1===t&&void 0===r.registered[n]&&(r.registered[n]=e.styles),void 0===r.inserted[e.name]){var o=e;do{r.insert(e===o?"."+n:"",o,r.sheet,!0);o=o.next}while(void 0!==o)}}},8679:function(r,e,t){"use strict";var n=t(21296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(r){return n.isMemo(r)?i:s[r.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;r.exports=function r(e,t,n){if("string"!==typeof t){if(h){var o=p(t);o&&o!==h&&r(e,o,n)}var i=u(t);d&&(i=i.concat(d(t)));for(var s=l(e),b=l(t),g=0;g<i.length;++g){var m=i[g];if(!a[m]&&(!n||!n[m])&&(!b||!b[m])&&(!s||!s[m])){var v=f(t,m);try{c(e,m,v)}catch(y){}}}}return e}},96103:function(r,e){"use strict";var t="function"===typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function w(r){if("object"===typeof r&&null!==r){var e=r.$$typeof;switch(e){case n:switch(r=r.type){case u:case d:case a:case s:case i:case p:return r;default:switch(r=r&&r.$$typeof){case c:case f:case g:case b:case l:return r;default:return e}}case o:return e}}}function S(r){return w(r)===d}e.AsyncMode=u,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=l,e.Element=n,e.ForwardRef=f,e.Fragment=a,e.Lazy=g,e.Memo=b,e.Portal=o,e.Profiler=s,e.StrictMode=i,e.Suspense=p,e.isAsyncMode=function(r){return S(r)||w(r)===u},e.isConcurrentMode=S,e.isContextConsumer=function(r){return w(r)===c},e.isContextProvider=function(r){return w(r)===l},e.isElement=function(r){return"object"===typeof r&&null!==r&&r.$$typeof===n},e.isForwardRef=function(r){return w(r)===f},e.isFragment=function(r){return w(r)===a},e.isLazy=function(r){return w(r)===g},e.isMemo=function(r){return w(r)===b},e.isPortal=function(r){return w(r)===o},e.isProfiler=function(r){return w(r)===s},e.isStrictMode=function(r){return w(r)===i},e.isSuspense=function(r){return w(r)===p},e.isValidElementType=function(r){return"string"===typeof r||"function"===typeof r||r===a||r===d||r===s||r===i||r===p||r===h||"object"===typeof r&&null!==r&&(r.$$typeof===g||r.$$typeof===b||r.$$typeof===l||r.$$typeof===c||r.$$typeof===f||r.$$typeof===v||r.$$typeof===y||r.$$typeof===x||r.$$typeof===m)},e.typeOf=w},21296:function(r,e,t){"use strict";r.exports=t(96103)},38554:function(r,e,t){r=t.nmd(r);var n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[a]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[i]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),h=e&&!e.nodeType&&e,b=h&&r&&!r.nodeType&&r,g=b&&b.exports===h,m=g&&d.process,v=function(){try{var r=b&&b.require&&b.require("util").types;return r||m&&m.binding&&m.binding("util")}catch(e){}}(),y=v&&v.isTypedArray;function x(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}var w,S,k=Array.prototype,_=Function.prototype,C=Object.prototype,A=p["__core-js_shared__"],E=_.toString,z=C.hasOwnProperty,R=function(){var r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),B=C.toString,j=E.call(Object),O=RegExp("^"+E.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=g?p.Buffer:void 0,F=p.Symbol,P=p.Uint8Array,I=T?T.allocUnsafe:void 0,M=(w=Object.getPrototypeOf,S=Object,function(r){return w(S(r))}),D=Object.create,W=C.propertyIsEnumerable,J=k.splice,N=F?F.toStringTag:void 0,H=function(){try{var r=pr(Object,"defineProperty");return r({},"",{}),r}catch(e){}}(),L=T?T.isBuffer:void 0,$=Math.max,Z=Date.now,V=pr(p,"Map"),q=pr(Object,"create"),G=function(){function r(){}return function(e){if(!Cr(e))return{};if(D)return D(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function Y(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}function X(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}function U(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}function K(r){var e=this.__data__=new X(r);this.size=e.size}function Q(r,e){var t=xr(r),n=!t&&yr(r),o=!t&&!n&&Sr(r),a=!t&&!n&&!o&&Er(r),i=t||n||o||a,s=i?function(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}(r.length,String):[],l=s.length;for(var c in r)!e&&!z.call(r,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||hr(c,l))||s.push(c);return s}function rr(r,e,t){(void 0!==t&&!vr(r[e],t)||void 0===t&&!(e in r))&&nr(r,e,t)}function er(r,e,t){var n=r[e];z.call(r,e)&&vr(n,t)&&(void 0!==t||e in r)||nr(r,e,t)}function tr(r,e){for(var t=r.length;t--;)if(vr(r[t][0],e))return t;return-1}function nr(r,e,t){"__proto__"==e&&H?H(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Y.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},Y.prototype.delete=function(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e},Y.prototype.get=function(r){var e=this.__data__;if(q){var t=e[r];return t===n?void 0:t}return z.call(e,r)?e[r]:void 0},Y.prototype.has=function(r){var e=this.__data__;return q?void 0!==e[r]:z.call(e,r)},Y.prototype.set=function(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=q&&void 0===e?n:e,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(r){var e=this.__data__,t=tr(e,r);return!(t<0)&&(t==e.length-1?e.pop():J.call(e,t,1),--this.size,!0)},X.prototype.get=function(r){var e=this.__data__,t=tr(e,r);return t<0?void 0:e[t][1]},X.prototype.has=function(r){return tr(this.__data__,r)>-1},X.prototype.set=function(r,e){var t=this.__data__,n=tr(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this},U.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(V||X),string:new Y}},U.prototype.delete=function(r){var e=fr(this,r).delete(r);return this.size-=e?1:0,e},U.prototype.get=function(r){return fr(this,r).get(r)},U.prototype.has=function(r){return fr(this,r).has(r)},U.prototype.set=function(r,e){var t=fr(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this},K.prototype.clear=function(){this.__data__=new X,this.size=0},K.prototype.delete=function(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t},K.prototype.get=function(r){return this.__data__.get(r)},K.prototype.has=function(r){return this.__data__.has(r)},K.prototype.set=function(r,e){var t=this.__data__;if(t instanceof X){var n=t.__data__;if(!V||n.length<199)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new U(n)}return t.set(r,e),this.size=t.size,this};var or,ar=function(r,e,t){for(var n=-1,o=Object(r),a=t(r),i=a.length;i--;){var s=a[or?i:++n];if(!1===e(o[s],s,o))break}return r};function ir(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":N&&N in Object(r)?function(r){var e=z.call(r,N),t=r[N];try{r[N]=void 0;var n=!0}catch(a){}var o=B.call(r);n&&(e?r[N]=t:delete r[N]);return o}(r):function(r){return B.call(r)}(r)}function sr(r){return Ar(r)&&ir(r)==a}function lr(r){return!(!Cr(r)||function(r){return!!R&&R in r}(r))&&(kr(r)?O:l).test(function(r){if(null!=r){try{return E.call(r)}catch(e){}try{return r+""}catch(e){}}return""}(r))}function cr(r){if(!Cr(r))return function(r){var e=[];if(null!=r)for(var t in Object(r))e.push(t);return e}(r);var e=br(r),t=[];for(var n in r)("constructor"!=n||!e&&z.call(r,n))&&t.push(n);return t}function ur(r,e,t,n,o){r!==e&&ar(e,(function(a,i){if(o||(o=new K),Cr(a))!function(r,e,t,n,o,a,i){var l=gr(r,t),c=gr(e,t),u=i.get(c);if(u)return void rr(r,t,u);var d=a?a(l,c,t+"",r,e,i):void 0,f=void 0===d;if(f){var p=xr(c),h=!p&&Sr(c),b=!p&&!h&&Er(c);d=c,p||h||b?xr(l)?d=l:Ar(g=l)&&wr(g)?d=function(r,e){var t=-1,n=r.length;e||(e=Array(n));for(;++t<n;)e[t]=r[t];return e}(l):h?(f=!1,d=function(r,e){if(e)return r.slice();var t=r.length,n=I?I(t):new r.constructor(t);return r.copy(n),n}(c,!0)):b?(f=!1,d=function(r,e){var t=e?function(r){var e=new r.constructor(r.byteLength);return new P(e).set(new P(r)),e}(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}(c,!0)):d=[]:function(r){if(!Ar(r)||ir(r)!=s)return!1;var e=M(r);if(null===e)return!0;var t=z.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&E.call(t)==j}(c)||yr(c)?(d=l,yr(l)?d=function(r){return function(r,e,t,n){var o=!t;t||(t={});var a=-1,i=e.length;for(;++a<i;){var s=e[a],l=n?n(t[s],r[s],s,t,r):void 0;void 0===l&&(l=r[s]),o?nr(t,s,l):er(t,s,l)}return t}(r,zr(r))}(l):Cr(l)&&!kr(l)||(d=function(r){return"function"!=typeof r.constructor||br(r)?{}:G(M(r))}(c))):f=!1}var g;f&&(i.set(c,d),o(d,c,n,a,i),i.delete(c));rr(r,t,d)}(r,e,i,t,ur,n,o);else{var l=n?n(gr(r,i),a,i+"",r,e,o):void 0;void 0===l&&(l=a),rr(r,i,l)}}),zr)}function dr(r,e){return mr(function(r,e,t){return e=$(void 0===e?r.length-1:e,0),function(){for(var n=arguments,o=-1,a=$(n.length-e,0),i=Array(a);++o<a;)i[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=t(i),x(r,this,s)}}(r,e,jr),r+"")}function fr(r,e){var t=r.__data__;return function(r){var e=typeof r;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r}(e)?t["string"==typeof e?"string":"hash"]:t.map}function pr(r,e){var t=function(r,e){return null==r?void 0:r[e]}(r,e);return lr(t)?t:void 0}function hr(r,e){var t=typeof r;return!!(e=null==e?o:e)&&("number"==t||"symbol"!=t&&c.test(r))&&r>-1&&r%1==0&&r<e}function br(r){var e=r&&r.constructor;return r===("function"==typeof e&&e.prototype||C)}function gr(r,e){if(("constructor"!==e||"function"!==typeof r[e])&&"__proto__"!=e)return r[e]}var mr=function(r){var e=0,t=0;return function(){var n=Z(),o=16-(n-t);if(t=n,o>0){if(++e>=800)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}(H?function(r,e){return H(r,"toString",{configurable:!0,enumerable:!1,value:(t=e,function(){return t}),writable:!0});var t}:jr);function vr(r,e){return r===e||r!==r&&e!==e}var yr=sr(function(){return arguments}())?sr:function(r){return Ar(r)&&z.call(r,"callee")&&!W.call(r,"callee")},xr=Array.isArray;function wr(r){return null!=r&&_r(r.length)&&!kr(r)}var Sr=L||function(){return!1};function kr(r){if(!Cr(r))return!1;var e=ir(r);return e==i||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function _r(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=o}function Cr(r){var e=typeof r;return null!=r&&("object"==e||"function"==e)}function Ar(r){return null!=r&&"object"==typeof r}var Er=y?function(r){return function(e){return r(e)}}(y):function(r){return Ar(r)&&_r(r.length)&&!!u[ir(r)]};function zr(r){return wr(r)?Q(r,!0):cr(r)}var Rr,Br=(Rr=function(r,e,t,n){ur(r,e,t,n)},dr((function(r,e){var t=-1,n=e.length,o=n>1?e[n-1]:void 0,a=n>2?e[2]:void 0;for(o=Rr.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(r,e,t){if(!Cr(t))return!1;var n=typeof e;return!!("number"==n?wr(t)&&hr(e,t.length):"string"==n&&e in t)&&vr(t[e],r)}(e[0],e[1],a)&&(o=n<3?void 0:o,n=1),r=Object(r);++t<n;){var i=e[t];i&&Rr(r,i,t,o)}return r})));function jr(r){return r}r.exports=Br},29200:function(r,e,t){"use strict";t.r(e),t.d(e,{default:function(){return F}});var n=t(96156),o=t(85893),a=(t(82702),t(84806)),i=t(73808),s=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function l(r){return!!(0,i.Kn)(r)&&s.every((e=>Object.prototype.hasOwnProperty.call(r,e)))}var c=t(80658),u=t(38554),d=t.n(u);function f(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return d()({},...e,p)}function p(r,e,t,n){if(((0,i.mf)(r)||(0,i.mf)(e))&&Object.prototype.hasOwnProperty.call(n,t))return function(){var t=(0,i.mf)(r)?r(...arguments):r,n=(0,i.mf)(e)?e(...arguments):e;return d()({},t,n,p)}}var h=t(70917),b=t(67294),g=()=>b.createElement(h.Global,{styles:'\n      html {\n        line-height: 1.5;\n        -webkit-text-size-adjust: 100%;\n        font-family: system-ui, sans-serif;\n        -webkit-font-smoothing: antialiased;\n        text-rendering: optimizeLegibility;      \n        -moz-osx-font-smoothing: grayscale; \n        touch-action: manipulation; \n      }\n\n      body {\n        position: relative;\n        min-height: 100%;\n        font-feature-settings: \'kern\';\n      }\n\n      *,\n      *::before,\n      *::after {\n        border-width: 0;\n        border-style: solid;\n        box-sizing: border-box;\n      }\n\n      main {\n        display: block;\n      }\n\n      hr {\n        border-top-width: 1px;\n        box-sizing: content-box;\n        height: 0;\n        overflow: visible;\n      }\n\n      pre,\n      code,\n      kbd,\n      samp {\n        font-family: SFMono-Regular,  Menlo, Monaco, Consolas, monospace;\n        font-size: 1em;\n      }\n\n      a {\n        background-color: transparent;\n        color: inherit;\n        text-decoration: inherit;\n      }\n\n      abbr[title] {\n        border-bottom: none;\n        text-decoration: underline;\n        -webkit-text-decoration: underline dotted;\n        text-decoration: underline dotted;\n      }\n\n      b,\n      strong {\n        font-weight: bold;\n      }\n\n      small {\n        font-size: 80%;\n      }\n\n      sub,\n      sup {\n        font-size: 75%;\n        line-height: 0;\n        position: relative;\n        vertical-align: baseline;\n      }\n\n      sub {\n        bottom: -0.25em;\n      }\n\n      sup {\n        top: -0.5em;\n      }\n\n      img {\n        border-style: none;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        font-family: inherit;\n        font-size: 100%;\n        line-height: 1.15;\n        margin: 0;\n      }\n\n      button,\n      input {\n        overflow: visible;\n      }\n\n      button,\n      select {\n        text-transform: none;\n      }\n\n      button::-moz-focus-inner,\n      [type="button"]::-moz-focus-inner,\n      [type="reset"]::-moz-focus-inner,\n      [type="submit"]::-moz-focus-inner {\n        border-style: none;\n        padding: 0;\n      }\n\n      fieldset {\n        padding: 0.35em 0.75em 0.625em;\n      }\n\n      legend {\n        box-sizing: border-box;\n        color: inherit;\n        display: table;\n        max-width: 100%;\n        padding: 0;\n        white-space: normal;\n      }\n\n      progress {\n        vertical-align: baseline;\n      }\n\n      textarea {\n        overflow: auto;\n      }\n\n      [type="checkbox"],\n      [type="radio"] {\n        box-sizing: border-box;\n        padding: 0;\n      }\n\n      [type="number"]::-webkit-inner-spin-button,\n      [type="number"]::-webkit-outer-spin-button {\n        -webkit-appearance: none !important;\n      }\n\n      input[type="number"] {\n        -moz-appearance: textfield;\n      }\n\n      [type="search"] {\n        -webkit-appearance: textfield;\n        outline-offset: -2px;\n      }\n\n      [type="search"]::-webkit-search-decoration {\n        -webkit-appearance: none !important;\n      }\n\n      ::-webkit-file-upload-button {\n        -webkit-appearance: button;\n        font: inherit;\n      }\n\n      details {\n        display: block;\n      }\n\n      summary {\n        display: list-item;\n      }\n\n      template {\n        display: none;\n      }\n\n      [hidden] {\n        display: none !important;\n      }\n\n      body,\n      blockquote,\n      dl,\n      dd,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6,\n      hr,\n      figure,\n      p,\n      pre {\n        margin: 0;\n      }\n\n      button {\n        background: transparent;\n        padding: 0;\n      }\n\n      fieldset {\n        margin: 0;\n        padding: 0;\n      }\n\n      ol,\n      ul {\n        margin: 0;\n        padding: 0;\n      }\n\n      textarea {\n        resize: vertical;\n      }\n\n      button,\n      [role="button"] {\n        cursor: pointer;\n      }\n\n      button::-moz-focus-inner {\n        border: 0 !important;\n      }\n\n      table {\n        border-collapse: collapse;\n      }\n\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6 {\n        font-size: inherit;\n        font-weight: inherit;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        padding: 0;\n        line-height: inherit;\n        color: inherit;\n      }\n\n      img,\n      svg,\n      video,\n      canvas,\n      audio,\n      iframe,\n      embed,\n      object {\n        display: block;\n        vertical-align: middle;\n      }\n\n      img,\n      video {\n        max-width: 100%;\n        height: auto;\n      }\n\n      [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n        outline: none;\n        box-shadow: none;\n      }\n\n      select::-ms-expand {\n        display: none;\n      }\n    '}),m=t(34288),v=t(29676),y=t(24738),x=t(84461),w={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},S=()=>{},k={window:{document:w,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:S,removeEventListener:S,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:S,removeListener:S}),requestAnimationFrame:r=>"undefined"===typeof setTimeout?(r(),null):setTimeout(r,0),cancelAnimationFrame(r){"undefined"!==typeof setTimeout&&clearTimeout(r)},setTimeout:()=>0,clearTimeout:S,setInterval:()=>0,clearInterval:S},document:w},_=x.jU?{window:window,document:document}:k,C=(0,b.createContext)(_);function A(r){var{children:e,environment:t}=r,[n,o]=(0,b.useState)(null),a=(0,b.useMemo)((()=>{var r,e=null==n?void 0:n.ownerDocument,o=null==n?void 0:n.ownerDocument.defaultView;return null!=(r=null!=t?t:e?{document:e,window:o}:void 0)?r:_}),[n,t]),i=!n&&!t;return b.createElement(C.Provider,{value:a},e,i&&b.createElement("span",{ref:r=>{r&&o(r)}}))}i.Ts&&(C.displayName="EnvironmentContext"),i.Ts&&(A.displayName="EnvironmentProvider");var E=t(94577),z=r=>{var{children:e,colorModeManager:t,portalZIndex:n,resetCSS:o=!0,theme:i=a.Z,environment:s,cssVarsRoot:l}=r,c=b.createElement(A,{environment:s},e);return b.createElement(E.vc,null,b.createElement(v.f6,{theme:i,cssVarsRoot:l},b.createElement(y.SG,{colorModeManager:t,options:i.config},o&&b.createElement(g,null),b.createElement(v.ZL,null),n?b.createElement(m.h,{zIndex:n},c):c)))},R=t(54533),B=t(29356);function j(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function O(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?j(Object(t),!0).forEach((function(e){(0,n.Z)(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}function T(r){var e=r.children,t=(0,b.useContext)(B.N),n=t.highlightColor,s=t.emacsTheme,u=R.Z(s.base1,s.base2)(.2),d="purple.500"===n?s.violet+"aa":"pink.500"===n?s.magenta+"aa":"blue.500"===n?s.blue+"aa":"cyan.500"===n?s.cyan+"aa":"green.500"===n?s.green+"aa":"yellow.500"===n?s.yellow+"aa":"orange.500"===n?s.orange+"aa":"red.500"===n?s.red+"aa":void 0,p=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=[...e],o=e[e.length-1];return l(o)&&n.length>1?n=n.slice(0,n.length-1):o=a.Z,(0,c.zG)(...n.map((r=>e=>(0,i.mf)(r)?r(e):f(e,r))))(o)}((0,b.useMemo)((function(){return{colors:{white:s.bg,black:s.fg,gray:{100:s.base1,200:u,300:s.base2,400:s.base3,500:s.base4,600:s.base5,700:s.base6,800:s.base7,900:s.base8},blue:{500:s.blue},teal:{500:s.blue},yellow:{500:s.yellow},orange:{500:s.orange},red:{500:s.red},green:{500:s.green},purple:{500:s.violet},pink:{500:s.magenta},cyan:{500:s.cyan},alt:{100:s["bg-alt"],900:s["fg-alt"]}},shadows:{outline:"0 0 0 3px "+d},components:{Button:{variants:{outline:{border:"2px solid",borderColor:n,color:n},ghost:{color:n,_hover:{bg:"inherit",border:"1px solid",borderColor:n},_active:{color:"inherit",bg:n}}}},Accordion:{baseStyle:{container:{marginTop:"10px",borderWidth:"0px",_last:{borderWidth:"0px"}},panel:{marginRight:"10px"}}},Slider:{baseStyle:function(r){return{thumb:{backgroundColor:n},filledTrack:{backgroundColor:"gray.200"}}}}}}}),[n,JSON.stringify(s)]),function(r){var{colorScheme:e,components:t}=r;return r=>{var n=Object.keys(r.components||{});return Array.isArray(t)?n=t:(0,i.Kn)(t)&&(n=Object.keys(t)),f(r,{components:Object.fromEntries(n.map((r=>[r,{defaultProps:{colorScheme:e}}])))})}}({colorScheme:n.split(".")[0]}));return(0,o.jsx)(z,{theme:p,children:e})}var F=function(r){var e=r.Component,t=r.pageProps,n={base1:"#1c1f24",base2:"#21272d",base3:"#23272e",base4:"#484854",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#242730","bg-alt":"#2a2e38",blue:"#51afef",cyan:"#5cEfFF","dark-blue":"#1f5582","dark-cyan":"#6A8FBF",fg:"#bbc2cf","fg-alt":"#5D656B",green:"#7bc275",grey:"#484854",magenta:"#C57BDB",orange:"#e69055",red:"#ff665c",teal:"#4db5bd",violet:"#a991f1",yellow:"#FCCE7B"},a=(0,b.useState)(!1),i=a[0],s=a[1],l=(0,b.useState)(n),c=l[0],u=l[1],d=(0,b.useState)("purple.500"),f=d[0],p=d[1];(0,b.useEffect)((function(){i&&localStorage.setItem("theme",JSON.stringify(c))}),[c]),(0,b.useEffect)((function(){i&&localStorage.setItem("highlightColor",JSON.stringify(f))}),[f]),(0,b.useEffect)((function(){var r,e,t,o;u(null!==(r=JSON.parse(null!==(e=localStorage.getItem("theme"))&&void 0!==e?e:JSON.stringify(n)))&&void 0!==r?r:n),p(null!==(t=JSON.parse(null!==(o=localStorage.getItem("highlightColor"))&&void 0!==o?o:JSON.stringify(f)))&&void 0!==t?t:f),s(!0)}),[]);var h={emacsTheme:c,setEmacsTheme:u,highlightColor:f,setHighlightColor:p};return(0,o.jsx)(B.N.Provider,{value:h,children:(0,o.jsx)(T,{children:(0,o.jsx)(e,O({},t))})})}},29356:function(r,e,t){"use strict";t.d(e,{N:function(){return n}});var n=(0,t(67294).createContext)({emacsTheme:{base1:"#1c1f24",base2:"#21272d",base3:"#23272e",base4:"#484854",base5:"#62686E",base6:"#757B80",base7:"#9ca0a4",base8:"#DFDFDF",bg:"#242730","bg-alt":"#2a2e38",blue:"#51afef",cyan:"#5cEfFF","dark-blue":"#1f5582","dark-cyan":"#6A8FBF",fg:"#bbc2cf","fg-alt":"#5D656B",green:"#7bc275",grey:"#484854",magenta:"#C57BDB",orange:"#e69055",red:"#ff665c",teal:"#4db5bd",violet:"#a991f1",yellow:"#FCCE7B"},setEmacsTheme:null,highlightColor:"purple",setHighlightColor:null})},76374:function(r,e,t){"use strict";function n(r,e,t){r.prototype=e.prototype=t,t.constructor=r}function o(r,e){var t=Object.create(r.prototype);for(var n in e)t[n]=e[n];return t}function a(){}t.d(e,{ZP:function(){return w},B8:function(){return C}});var i=.7,s=1/i,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),b=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),g=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),m=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function w(r){var e,t;return r=(r+"").trim().toLowerCase(),(e=d.exec(r))?(t=e[1].length,e=parseInt(e[1],16),6===t?S(e):3===t?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===t?k(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===t?k(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(r))?new A(e[1],e[2],e[3],1):(e=p.exec(r))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(r))?k(e[1],e[2],e[3],e[4]):(e=b.exec(r))?k(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(r))?B(e[1],e[2]/100,e[3]/100,1):(e=m.exec(r))?B(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(r)?S(v[r]):"transparent"===r?new A(NaN,NaN,NaN,0):null}function S(r){return new A(r>>16&255,r>>8&255,255&r,1)}function k(r,e,t,n){return n<=0&&(r=e=t=NaN),new A(r,e,t,n)}function _(r){return r instanceof a||(r=w(r)),r?new A((r=r.rgb()).r,r.g,r.b,r.opacity):new A}function C(r,e,t,n){return 1===arguments.length?_(r):new A(r,e,t,null==n?1:n)}function A(r,e,t,n){this.r=+r,this.g=+e,this.b=+t,this.opacity=+n}function E(){return"#"+R(this.r)+R(this.g)+R(this.b)}function z(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}function R(r){return((r=Math.max(0,Math.min(255,Math.round(r)||0)))<16?"0":"")+r.toString(16)}function B(r,e,t,n){return n<=0?r=e=t=NaN:t<=0||t>=1?r=e=NaN:e<=0&&(r=NaN),new O(r,e,t,n)}function j(r){if(r instanceof O)return new O(r.h,r.s,r.l,r.opacity);if(r instanceof a||(r=w(r)),!r)return new O;if(r instanceof O)return r;var e=(r=r.rgb()).r/255,t=r.g/255,n=r.b/255,o=Math.min(e,t,n),i=Math.max(e,t,n),s=NaN,l=i-o,c=(i+o)/2;return l?(s=e===i?(t-n)/l+6*(t<n):t===i?(n-e)/l+2:(e-t)/l+4,l/=c<.5?i+o:2-i-o,s*=60):l=c>0&&c<1?0:s,new O(s,l,c,r.opacity)}function O(r,e,t,n){this.h=+r,this.s=+e,this.l=+t,this.opacity=+n}function T(r,e,t){return 255*(r<60?e+(t-e)*r/60:r<180?t:r<240?e+(t-e)*(240-r)/60:e)}n(a,w,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return j(this).formatHsl()},formatRgb:x,toString:x}),n(A,C,o(a,{brighter:function(r){return r=null==r?s:Math.pow(s,r),new A(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?i:Math.pow(i,r),new A(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:z,toString:z})),n(O,(function(r,e,t,n){return 1===arguments.length?j(r):new O(r,e,t,null==n?1:n)}),o(a,{brighter:function(r){return r=null==r?s:Math.pow(s,r),new O(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?i:Math.pow(i,r),new O(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*e,o=2*t-n;return new A(T(r>=240?r-240:r+120,o,n),T(r,o,n),T(r<120?r+240:r-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}))},62210:function(r,e){"use strict";e.Z=function(r){return function(){return r}}},16033:function(r,e,t){"use strict";function n(r,e){return r=+r,e=+e,function(t){return r*(1-t)+e*t}}t.d(e,{Z:function(){return n}})},73028:function(r,e,t){"use strict";t.d(e,{ZP:function(){return c}});var n=t(76374);function o(r,e,t,n,o){var a=r*r,i=a*r;return((1-3*r+3*a-i)*e+(4-6*a+3*i)*t+(1+3*r+3*a-3*i)*n+i*o)/6}var a=t(62210);function i(r,e){return function(t){return r+t*e}}function s(r){return 1===(r=+r)?l:function(e,t){return t-e?function(r,e,t){return r=Math.pow(r,t),e=Math.pow(e,t)-r,t=1/t,function(n){return Math.pow(r+n*e,t)}}(e,t,r):(0,a.Z)(isNaN(e)?t:e)}}function l(r,e){var t=e-r;return t?i(r,t):(0,a.Z)(isNaN(r)?e:r)}var c=function r(e){var t=s(e);function o(r,e){var o=t((r=(0,n.B8)(r)).r,(e=(0,n.B8)(e)).r),a=t(r.g,e.g),i=t(r.b,e.b),s=l(r.opacity,e.opacity);return function(e){return r.r=o(e),r.g=a(e),r.b=i(e),r.opacity=s(e),r+""}}return o.gamma=r,o}(1);function u(r){return function(e){var t,o,a=e.length,i=new Array(a),s=new Array(a),l=new Array(a);for(t=0;t<a;++t)o=(0,n.B8)(e[t]),i[t]=o.r||0,s[t]=o.g||0,l[t]=o.b||0;return i=r(i),s=r(s),l=r(l),o.opacity=1,function(r){return o.r=i(r),o.g=s(r),o.b=l(r),o+""}}}u((function(r){var e=r.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,e-1):Math.floor(t*e),a=r[n],i=r[n+1],s=n>0?r[n-1]:2*a-i,l=n<e-1?r[n+2]:2*i-a;return o((t-n/e)*e,s,a,i,l)}})),u((function(r){var e=r.length;return function(t){var n=Math.floor(((t%=1)<0?++t:t)*e),a=r[(n+e-1)%e],i=r[n%e],s=r[(n+1)%e],l=r[(n+2)%e];return o((t-n/e)*e,a,i,s,l)}}))},10370:function(r,e,t){"use strict";t.d(e,{Z:function(){return i}});var n=t(16033),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(o.source,"g");function i(r,e){var t,i,s,l=o.lastIndex=a.lastIndex=0,c=-1,u=[],d=[];for(r+="",e+="";(t=o.exec(r))&&(i=a.exec(e));)(s=i.index)>l&&(s=e.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(t=t[0])===(i=i[0])?u[c]?u[c]+=i:u[++c]=i:(u[++c]=null,d.push({i:c,x:(0,n.Z)(t,i)})),l=a.lastIndex;return l<e.length&&(s=e.slice(l),u[c]?u[c]+=s:u[++c]=s),u.length<2?d[0]?function(r){return function(e){return r(e)+""}}(d[0].x):function(r){return function(){return r}}(e):(e=d.length,function(r){for(var t,n=0;n<e;++n)u[(t=d[n]).i]=t.x(r);return u.join("")})}},54533:function(r,e,t){"use strict";t.d(e,{Z:function(){return f}});var n=t(76374),o=t(73028);function a(r,e){var t,n=e?e.length:0,o=r?Math.min(n,r.length):0,a=new Array(o),i=new Array(n);for(t=0;t<o;++t)a[t]=f(r[t],e[t]);for(;t<n;++t)i[t]=e[t];return function(r){for(t=0;t<o;++t)i[t]=a[t](r);return i}}function i(r,e){var t=new Date;return r=+r,e=+e,function(n){return t.setTime(r*(1-n)+e*n),t}}var s=t(16033);function l(r,e){var t,n={},o={};for(t in null!==r&&"object"===typeof r||(r={}),null!==e&&"object"===typeof e||(e={}),e)t in r?n[t]=f(r[t],e[t]):o[t]=e[t];return function(r){for(t in n)o[t]=n[t](r);return o}}var c=t(10370),u=t(62210);function d(r,e){e||(e=[]);var t,n=r?Math.min(e.length,r.length):0,o=e.slice();return function(a){for(t=0;t<n;++t)o[t]=r[t]*(1-a)+e[t]*a;return o}}function f(r,e){var t,f,p=typeof e;return null==e||"boolean"===p?(0,u.Z)(e):("number"===p?s.Z:"string"===p?(t=(0,n.ZP)(e))?(e=t,o.ZP):c.Z:e instanceof n.ZP?o.ZP:e instanceof Date?i:(f=e,!ArrayBuffer.isView(f)||f instanceof DataView?Array.isArray(e)?a:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?l:s.Z:d))(r,e)}},76363:function(r,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return t(29200)}])},82702:function(){},17621:function(r,e,t){var n;!function(o){var a=/^\s+/,i=/\s+$/,s=0,l=o.round,c=o.min,u=o.max,d=o.random;function f(r,e){if(e=e||{},(r=r||"")instanceof f)return r;if(!(this instanceof f))return new f(r,e);var t=function(r){var e={r:0,g:0,b:0},t=1,n=null,s=null,l=null,d=!1,f=!1;"string"==typeof r&&(r=function(r){r=r.replace(a,"").replace(i,"").toLowerCase();var e,t=!1;if(B[r])r=B[r],t=!0;else if("transparent"==r)return{r:0,g:0,b:0,a:0,format:"name"};if(e=J.rgb.exec(r))return{r:e[1],g:e[2],b:e[3]};if(e=J.rgba.exec(r))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=J.hsl.exec(r))return{h:e[1],s:e[2],l:e[3]};if(e=J.hsla.exec(r))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=J.hsv.exec(r))return{h:e[1],s:e[2],v:e[3]};if(e=J.hsva.exec(r))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=J.hex8.exec(r))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:W(e[4]),format:t?"name":"hex8"};if(e=J.hex6.exec(r))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:t?"name":"hex"};if(e=J.hex4.exec(r))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:W(e[4]+""+e[4]),format:t?"name":"hex8"};if(e=J.hex3.exec(r))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),format:t?"name":"hex"};return!1}(r));"object"==typeof r&&(N(r.r)&&N(r.g)&&N(r.b)?(p=r.r,h=r.g,b=r.b,e={r:255*T(p,255),g:255*T(h,255),b:255*T(b,255)},d=!0,f="%"===String(r.r).substr(-1)?"prgb":"rgb"):N(r.h)&&N(r.s)&&N(r.v)?(n=M(r.s),s=M(r.v),e=function(r,e,t){r=6*T(r,360),e=T(e,100),t=T(t,100);var n=o.floor(r),a=r-n,i=t*(1-e),s=t*(1-a*e),l=t*(1-(1-a)*e),c=n%6;return{r:255*[t,s,i,i,l,t][c],g:255*[l,t,t,s,i,i][c],b:255*[i,i,l,t,t,s][c]}}(r.h,n,s),d=!0,f="hsv"):N(r.h)&&N(r.s)&&N(r.l)&&(n=M(r.s),l=M(r.l),e=function(r,e,t){var n,o,a;function i(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+6*(e-r)*t:t<.5?e:t<2/3?r+(e-r)*(2/3-t)*6:r}if(r=T(r,360),e=T(e,100),t=T(t,100),0===e)n=o=a=t;else{var s=t<.5?t*(1+e):t+e-t*e,l=2*t-s;n=i(l,s,r+1/3),o=i(l,s,r),a=i(l,s,r-1/3)}return{r:255*n,g:255*o,b:255*a}}(r.h,n,l),d=!0,f="hsl"),r.hasOwnProperty("a")&&(t=r.a));var p,h,b;return t=O(t),{ok:d,format:r.format||f,r:c(255,u(e.r,0)),g:c(255,u(e.g,0)),b:c(255,u(e.b,0)),a:t}}(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=l(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=t.ok,this._tc_id=s++}function p(r,e,t){r=T(r,255),e=T(e,255),t=T(t,255);var n,o,a=u(r,e,t),i=c(r,e,t),s=(a+i)/2;if(a==i)n=o=0;else{var l=a-i;switch(o=s>.5?l/(2-a-i):l/(a+i),a){case r:n=(e-t)/l+(e<t?6:0);break;case e:n=(t-r)/l+2;break;case t:n=(r-e)/l+4}n/=6}return{h:n,s:o,l:s}}function h(r,e,t){r=T(r,255),e=T(e,255),t=T(t,255);var n,o,a=u(r,e,t),i=c(r,e,t),s=a,l=a-i;if(o=0===a?0:l/a,a==i)n=0;else{switch(a){case r:n=(e-t)/l+(e<t?6:0);break;case e:n=(t-r)/l+2;break;case t:n=(r-e)/l+4}n/=6}return{h:n,s:o,v:s}}function b(r,e,t,n){var o=[I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function g(r,e,t,n){return[I(D(n)),I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16))].join("")}function m(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.s-=e/100,t.s=F(t.s),f(t)}function v(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.s+=e/100,t.s=F(t.s),f(t)}function y(r){return f(r).desaturate(100)}function x(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.l+=e/100,t.l=F(t.l),f(t)}function w(r,e){e=0===e?0:e||10;var t=f(r).toRgb();return t.r=u(0,c(255,t.r-l(-e/100*255))),t.g=u(0,c(255,t.g-l(-e/100*255))),t.b=u(0,c(255,t.b-l(-e/100*255))),f(t)}function S(r,e){e=0===e?0:e||10;var t=f(r).toHsl();return t.l-=e/100,t.l=F(t.l),f(t)}function k(r,e){var t=f(r).toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,f(t)}function _(r){var e=f(r).toHsl();return e.h=(e.h+180)%360,f(e)}function C(r){var e=f(r).toHsl(),t=e.h;return[f(r),f({h:(t+120)%360,s:e.s,l:e.l}),f({h:(t+240)%360,s:e.s,l:e.l})]}function A(r){var e=f(r).toHsl(),t=e.h;return[f(r),f({h:(t+90)%360,s:e.s,l:e.l}),f({h:(t+180)%360,s:e.s,l:e.l}),f({h:(t+270)%360,s:e.s,l:e.l})]}function E(r){var e=f(r).toHsl(),t=e.h;return[f(r),f({h:(t+72)%360,s:e.s,l:e.l}),f({h:(t+216)%360,s:e.s,l:e.l})]}function z(r,e,t){e=e||6,t=t||30;var n=f(r).toHsl(),o=360/t,a=[f(r)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(f(n));return a}function R(r,e){e=e||6;for(var t=f(r).toHsv(),n=t.h,o=t.s,a=t.v,i=[],s=1/e;e--;)i.push(f({h:n,s:o,v:a})),a=(a+s)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},getLuminance:function(){var r,e,t,n=this.toRgb();return r=n.r/255,e=n.g/255,t=n.b/255,.2126*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))},setAlpha:function(r){return this._a=O(r),this._roundA=l(100*this._a)/100,this},toHsv:function(){var r=h(this._r,this._g,this._b);return{h:360*r.h,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=h(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.v);return 1==this._a?"hsv("+e+", "+t+"%, "+n+"%)":"hsva("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var r=p(this._r,this._g,this._b);return{h:360*r.h,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=p(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.l);return 1==this._a?"hsl("+e+", "+t+"%, "+n+"%)":"hsla("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(r){return b(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return function(r,e,t,n,o){var a=[I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16)),I(D(n))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*T(this._r,255))+"%",g:l(100*T(this._g,255))+"%",b:l(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%)":"rgba("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(r){var e="#"+g(this._r,this._g,this._b,this._a),t=e,n=this._gradientType?"GradientType = 1, ":"";if(r){var o=f(r);t="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+t+")"},toString:function(r){var e=!!r;r=r||this._format;var t=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==r&&"hex6"!==r&&"hex3"!==r&&"hex4"!==r&&"hex8"!==r&&"name"!==r?("rgb"===r&&(t=this.toRgbString()),"prgb"===r&&(t=this.toPercentageRgbString()),"hex"!==r&&"hex6"!==r||(t=this.toHexString()),"hex3"===r&&(t=this.toHexString(!0)),"hex4"===r&&(t=this.toHex8String(!0)),"hex8"===r&&(t=this.toHex8String()),"name"===r&&(t=this.toName()),"hsl"===r&&(t=this.toHslString()),"hsv"===r&&(t=this.toHsvString()),t||this.toHexString()):"name"===r&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(r,e){var t=r.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(E,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(r,e){if("object"==typeof r){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[n]="a"===n?r[n]:M(r[n]));r=t}return f(r,e)},f.equals=function(r,e){return!(!r||!e)&&f(r).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(r,e,t){t=0===t?0:t||50;var n=f(r).toRgb(),o=f(e).toRgb(),a=t/100;return f({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},f.readability=function(r,e){var t=f(r),n=f(e);return(o.max(t.getLuminance(),n.getLuminance())+.05)/(o.min(t.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(r,e,t){var n,o,a=f.readability(r,e);switch(o=!1,(n=function(r){var e,t;e=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==t&&"large"!==t&&(t="small");return{level:e,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(r,e,t){var n,o,a,i,s=null,l=0;o=(t=t||{}).includeFallbackColors,a=t.level,i=t.size;for(var c=0;c<e.length;c++)(n=f.readability(r,e[c]))>l&&(l=n,s=f(e[c]));return f.isReadable(r,s,{level:a,size:i})||!o?s:(t.includeFallbackColors=!1,f.mostReadable(r,["#fff","#000"],t))};var B=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=f.hexNames=function(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}(B);function O(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function T(r,e){(function(r){return"string"==typeof r&&-1!=r.indexOf(".")&&1===parseFloat(r)})(r)&&(r="100%");var t=function(r){return"string"===typeof r&&-1!=r.indexOf("%")}(r);return r=c(e,u(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),o.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function F(r){return c(1,u(0,r))}function P(r){return parseInt(r,16)}function I(r){return 1==r.length?"0"+r:""+r}function M(r){return r<=1&&(r=100*r+"%"),r}function D(r){return o.round(255*parseFloat(r)).toString(16)}function W(r){return P(r)/255}var J=function(){var r="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",t="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+t),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function N(r){return!!J.CSS_UNIT.exec(r)}r.exports?r.exports=f:void 0===(n=function(){return f}.call(e,t,e,r))||(r.exports=n)}(Math)}},function(r){var e=function(e){return r(r.s=e)};r.O(0,[774,179],(function(){return e(76363),e(34651)}));var t=r.O();_N_E=t}]);
\ No newline at end of file
diff --git a/out/_next/static/chunks/pages/index-9ae71dd6e842cb285888.js b/out/_next/static/chunks/pages/index-9ae71dd6e842cb285888.js
deleted file mode 100644
index b92046b..0000000
--- a/out/_next/static/chunks/pages/index-9ae71dd6e842cb285888.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{78922:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return Dn},GraphPage:function(){return In},default:function(){return Ln}});var r=t(87757),i=t.n(r),o=t(92137),l=t(85893),s=t(87329),a=t(96156),c=t(34699),u=t(67294);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function g(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=f(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?h(h({},n),o):l;s!==o&&i.update(s);var a=(0,u.useState)(s),c=a[0],d=a[1];(0,u.useEffect)((function(){c!==s&&d(s)}),[e]);var g=function(e){e instanceof Function?d((function(n){var t=e(n);return i.update(t),t})):(d(e),i.update(e))};return[c,g]}function f(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var p=t(54533),x=t(81253),j=t(18835),b=t.n(j),m=t(13816),v=t.n(m),y=t(42728),C=t.n(y),O=t(71167),k=t.n(O),w=t(27431),S=t.n(w),P=function(e){var n=e.orgText,t=b()().use(v()).use(C()).use(k()).use(S(),{createElement:u.createElement});return console.log(t.processSync(n)),(0,l.jsxs)("div",{children:[" ",t.processSync(n).result]})},L=t(25715),I=t(94096),D=t(48420),z=t(48017),N=t(336),E=t(72026),T=t(86658),Z=t(56884),R=t(29356);function F(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?F(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(e){var n=e.isOpen,t=e.onClose,r=e.previewNode,i=e.orgText,o=(0,u.useContext)(R.N).highlightColor,s=(0,u.useState)(),a=s[0],c=s[1];return(0,u.useEffect)((function(){r&&c(r)}),[r]),(0,l.jsx)(L.M,{direction:"right",in:n,style:{zIndex:200,width:500},unmountOnExit:!0,children:(0,l.jsxs)(I.k,{flexDirection:"row",height:"100%",children:[(0,l.jsx)(D.h,{icon:(0,l.jsx)(Z.X,{height:30}),colorScheme:"white","aria-label":"Close file-viewer",height:100,variant:"ghost",marginRight:-2,bg:"alt.100",onClick:t,marginTop:20}),(0,l.jsxs)(z.xu,{color:"gray.800",bg:"alt.100",boxShadow:"xl",w:500,height:"98%",position:"relative",zIndex:"overlay",marginTop:10,paddingBottom:15,borderRadius:"xl",right:-2,children:[(0,l.jsx)(I.k,{justifyContent:"space-between",padding:4,paddingTop:10,paddingLeft:10,width:"80%",alignItems:"center",color:"black",children:(0,l.jsx)(N.X,{size:"md",children:a})}),(0,l.jsx)(T.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,x.Z)(e,["style"]);return(0,l.jsx)(z.xu,A(A({},t),{},{style:A(A({},n),{},{borderRadius:10}),bg:o}))},children:(0,l.jsx)(E.gC,{alignItems:"left",bg:"alt.100",paddingLeft:10,paddingRight:10,children:(0,l.jsx)(z.xu,{className:"org",sx:{h1:{display:"none"},h2:{fontSize:"20",fontWeight:"bold !important",marginBottom:"1em",color:"black"},h3:{fontSize:"18",fontWeight:"600 !important",marginBottom:".5em"},h4:{fontSize:"16",fontWeight:"500 !important",marginBottom:".25em",fontStyle:"italic"},a:{color:o,pointerEvents:"none"},ol:{paddingLeft:"5"},ul:{paddingLeft:"5"},p:{paddingBottom:".5em"},".katex-html":{visibility:"hidden",width:"0px",position:"absolute"},"#content":{textAlign:"justify"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".todo":{fontFamily:"monospace",color:"red"},".equationContainer":{display:"table",textAlign:"center",width:"100%"},".equation":{verticalAlign:"middle"},".equation-label":{display:"tableCell",textAlign:"right",verticalAlign:"middle"},".inlinetask":{padding:"10px",border:"2px solid gray",margin:"10px",background:"#ffffcc"},"#org-div-home-and-up":{textAlign:"right",fontSize:"70 % ",whiteSpace:"nowrap"},textarea:{overflowX:"auto"},".linenr":{fontSize:"smaller"},".code-highlighted":{backgroundColor:"#ffff00"},".org-info-js_info-navigation":{borderStyle:"none"},"#org-info-js_console-label":{fontSize:"10px",fontWeight:"bold",whiteSpace:"nowrap"},".org-info-js_search-highlight":{backgroundColor:"#ffff00",color:"#000000",fontWeight:"bold"},".org-svg":{width:"90%"},".done":{fontFamily:"monospace",color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"#eee",fontFamily:"monospace",padding:"2px",fontSize:"80%",fontWeight:"normal"},".timestamp":{color:"#bebebe"},".timestamp-kwd":{color:"#5f9ea0"},".org-right":{marginLeft:"auto",marginRight:"0px",textAlign:"right"},".org-left":{marginLeft:"0px",marginRight:"auto",textAlign:"left"},".org-center":{marginLeft:"auto",marginRight:"auto",textAlign:"center"},".underline":{textDecoration:"underline"},"#postamble p":{fontSize:"90%",margin:".2em"},"#preamble p":{fontSize:"90%",margin:".2em"},"p.verse":{marginLeft:"3%"},pre:{border:"1px solid #e6e6e6",borderRadius:"3px",backgroundColor:"#f2f2f2",padding:"8pt",fontFamily:"monospace",overflow:"auto",margin:"1.2em"},"pre.src":{position:"relative",overflow:"auto"},"pre.src:before":{display:"none",position:"absolute",top:"-8px",right:"12px",padding:"3px",color:"#555",backgroundColor:"#f2f2f299"},"caption.t-above":{captionSide:"top"},"caption.t-bottom":{captionSide:"bottom"},"th.org-right":{textAlign:"center"},"th.org-left":{textAlign:"center"},"th.org-center":{textAlign:"center"},"td.org-right":{textAlign:"right"},"td.org-left":{textAlign:"left"},"td.org-center":{textAlign:"center"},".footpara":{display:"inline"},".footdef":{marginBottom:"1em"},".figure":{padding:"1em"},".figure p":{textAlign:"center"}},children:(0,l.jsx)(P,{orgText:i})})})})]})]})})},B=t(54309),V=t(32351),W=t(40980),M=t(74860),X=t(36194),_=[],q={};for(var Q in X.oY)for(var G in X.oY[Q]){var K=Q+G;"LinearNone"===K&&(K="Linear"),_.push(K),q[K]=X.oY[Q][G]}var U=q,J={enabled:!0,charge:-700,collision:!0,collisionStrength:20,centering:!0,centeringStrength:.2,linkStrength:.3,linkIts:1,alphaDecay:.05,alphaTarget:0,alphaMin:0,velocityDecay:.25,gravity:.3,gravityOn:!0,gravityLocal:!1},Y={orphans:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],bad:!0,nodes:[],links:[],date:[]},$={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:4,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:13,labelLength:40,labelWordWrap:25,labelLineSpace:1,highlight:!0,highlightNodeSize:2,highlightLinkSize:2,highlightFade:.8,highlightAnim:!0,animationSpeed:420,algorithmOptions:_,algorithmName:"SinusoidalOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"gray.900",labelBackgroundColor:"",labelBackgroundOpacity:.7,citeDashes:!0,citeDashLength:35,citeGapLength:15,citeLinkColor:"gray.700",citeLinkHighlightColor:"",citeNodeColor:"black",refDashes:!0,refDashLength:35,refGapLength:15,refLinkColor:"gray.700",refLinkHighlightColor:"",refNodeColor:"black",nodeSizeLinks:.5,nodeZoomSize:1.3},ee={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},ne={highlight:"hover",local:"click",follow:"double",context:"right"},te=["red.500","orange.500","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","white","gray.100","gray.200","gray.300","gray.400","gray.500","gray.600","gray.700","gray.800","gray.900","black"],re=t(93924),ie=t(83986),oe=t(48931),le=t(96699),se=t(40155),ae=t(56769),ce=t(6569),ue=t(64115),de=t(48235),he=t(67273),ge=t(88134),fe=t(47647);function pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var je=function(e){var n=e.filter,t=e.setFilter,r=e.tags,i=e.highlightColor,o=e.mode,s=r.map((function(e){return{value:e,label:e}})),c="blacklist"===o?"tagsBlacklist":"tagsWhitelist",d=(0,u.useState)(n[c].map((function(e){return{value:e,label:e}}))),h=d[0],g=d[1];return(0,l.jsx)(fe.CUIAutoComplete,{items:s,label:"Add tag to "+o,placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:h,onSelectedItemsChange:function(e){e.selectedItems&&(g(e.selectedItems),t(xe(xe({},n),{},(0,a.Z)({},c,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}})},be=t(2827);function me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?me(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ye=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,o=e.tags.map((function(e){return{value:e,label:e}})),s=(0,u.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],d=s[1];return(0,l.jsxs)(z.xu,{children:[(0,l.jsx)(fe.CUIAutoComplete,{items:o,label:"Add tag to filter",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(d(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,l.jsx)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,l.jsx)(z.xu,{width:"100%",children:(0,l.jsx)(ue.x,{fontWeight:"bold",children:e})}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,colorScheme:"",color:"black",children:(0,l.jsx)(z.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsx)(de.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,l.jsx)(de.sN,{onClick:function(){return r(ve(ve({},t),{},(0,a.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(z.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})]})]}),(0,l.jsx)(D.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,l.jsx)(be.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),d(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})};function Ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke=function(e){var n=e.filter,t=e.setFilter,r=e.tagColors,i=e.setTagColors,o=e.highlightColor,s=e.colorList,a=e.tags;return(0,l.jsxs)(z.xu,{children:[(0,l.jsxs)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Link children to..."}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,rightIcon:(0,l.jsx)(ce.v,{}),colorScheme:"",color:"black",children:function(){switch(n.parent){case"parent":return(0,l.jsx)(ue.x,{children:"File"});case"heading":return(0,l.jsx)(ue.x,{children:"Heading"});default:return(0,l.jsx)(ue.x,{children:"Nothing"})}}()}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(de.sN,{onClick:function(){return t((function(e){return Oe(Oe({},e),{},{parent:""})}))},children:"Nothing"}),(0,l.jsx)(de.sN,{onClick:function(){return t((function(e){return Oe(Oe({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,l.jsx)(de.sN,{onClick:function(){return t((function(e){return Oe(Oe({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})]})]})]}),(0,l.jsxs)(I.k,{justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Orphans"}),(0,l.jsx)(ge.r,{onChange:function(){t((function(e){return Oe(Oe({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,l.jsxs)(I.k,{justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Citations without note files"}),(0,l.jsx)(ge.r,{onChange:function(){t(Oe(Oe({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,l.jsxs)(I.k,{justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Non-existant nodes"}),(0,l.jsx)(ge.r,{onChange:function(){i(Oe(Oe({},r),{},{bad:"white"})),t(Oe(Oe({},n),{},{bad:!n.bad}))},isChecked:n.bad})]})]}),(0,l.jsxs)(ae.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,l.jsxs)(ae.Qd,{children:[(0,l.jsxs)(ae.KF,{children:["Tag filters",(0,l.jsx)(ae.XE,{})]}),(0,l.jsxs)(ae.Hk,{pr:0,mr:0,children:[(0,l.jsx)(je,{highlightColor:o,filter:n,setFilter:t,tags:a,mode:"blacklist"}),(0,l.jsx)(je,{highlightColor:o,filter:n,setFilter:t,tags:a,mode:"whitelist"})]})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsxs)(ae.KF,{children:["Tag Colors",(0,l.jsx)(ae.XE,{})]}),(0,l.jsx)(ae.Hk,{pr:0,mr:0,children:(0,l.jsx)(ye,{tags:a,colorList:s,tagColors:r,setTagColors:i,highlightColor:o})})]})]})]})},we=t(15267),Se=t(24189),Pe=function(e){var n=e.infoText;return(0,l.jsx)(z.xu,{paddingLeft:"1",children:(0,l.jsx)(le.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,l.jsx)(Se.h,{})})})},Le=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,l.jsxs)(z.xu,{paddingTop:2,children:[(0,l.jsxs)(z.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,l.jsxs)(z.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(ue.x,{children:r}),i&&(0,l.jsx)(Pe,{infoText:i})]}),(0,l.jsx)(ge.r,{isChecked:!!n,onChange:t})]}),(0,l.jsx)(we.U,{in:!!n,animateOpacity:!0,children:(0,l.jsx)(z.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]},r)},Ie=t(95818),De=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,s=void 0===o?.1:o,a=e.value,c=void 0===a?1:a,d=(0,x.Z)(e,["min","max","step","value"]),h=d.onChange,g=d.label,f=d.infoText,p=(0,u.useContext)(R.N).highlightColor;return(0,l.jsxs)(z.xu,{children:[(0,l.jsxs)(z.xu,{display:"flex",alignItems:"flex-end",children:[(0,l.jsx)(ue.x,{children:g}),f&&(0,l.jsx)(Pe,{infoText:f})]}),(0,l.jsxs)(Ie.iR,{value:c,onChange:h,min:t,max:i,step:s,children:[(0,l.jsx)(Ie.Uj,{children:(0,l.jsx)(Ie.Ms,{})}),(0,l.jsx)(le.u,{bg:p,label:c.toFixed(1),children:(0,l.jsx)(Ie.gs,{bg:"white"})})]})]},g)};function ze(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ze(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ze(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ee=function(e){var n=e.physics,t=e.setPhysics,r=(0,u.useCallback)((function(e,n,r){t((function(t){return Ne(Ne({},t),{},(0,a.Z)({},n,e/r))}))}),[]);return(0,l.jsxs)(z.xu,{children:[(0,l.jsxs)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(Le,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(Ne(Ne({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,l.jsxs)(I.k,{justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Also in local"}),(0,l.jsx)(ge.r,{onChange:function(){t((function(e){return Ne(Ne({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,l.jsx)(De,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,l.jsx)(De,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,l.jsx)(Le,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(Ne(Ne({},n),{},{collision:!n.collision}))},children:(0,l.jsx)(De,{value:n.collisionStrength/5,onChange:function(e){return r(e,"collisionStrength",.2)},label:"Collision Radius",infoText:"Easy with this one, high values can lead to a real jiggly mess"})}),(0,l.jsx)(De,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,l.jsx)(De,{label:"Link Iterations",value:n.linkIts,onChange:function(e){return r(e,"linkIts",1)},min:0,max:6,step:1,infoText:"How many links down the line the physics of a single node affects (Slow)"}),(0,l.jsx)(De,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}})]}),(0,l.jsx)(z.xu,{children:(0,l.jsx)(ae.UQ,{paddingLeft:3,allowToggle:!0,children:(0,l.jsxs)(ae.Qd,{children:[(0,l.jsxs)(ae.KF,{children:[(0,l.jsx)(ue.x,{children:"Advanced"}),(0,l.jsx)(ae.XE,{marginRight:2})]}),(0,l.jsx)(ae.Hk,{children:(0,l.jsxs)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,l.jsx)(De,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}}),(0,l.jsx)(Le,{label:"Center nodes",value:n.centering,onChange:function(){return t(Ne(Ne({},n),{},{centering:!n.centering}))},infoText:"Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.",children:(0,l.jsx)(De,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})},Te=t(46049);function Ze(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ze(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Fe=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsx)(z.xu,{children:(0,l.jsx)(Le,{label:"Highlight",onChange:function(){return t((function(e){return Re(Re({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,l.jsxs)(E.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,l.jsx)(De,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return Re(Re({},n),{},{highlightLinkSize:e})}))}}),(0,l.jsx)(De,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return Re(Re({},n),{},{highlightNodeSize:e})}))}}),(0,l.jsx)(De,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return Re(Re({},n),{},{highlightFade:e})}))}}),(0,l.jsxs)(Le,{label:"Highlight Animation",onChange:function(){t((function(e){return Re(Re({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,l.jsx)(De,{label:"Animation speed",onChange:function(e){return t((function(n){return Re(Re({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,l.jsx)(Te.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return Re(Re({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,l.jsx)("option",{value:e,children:e},e)}))})]})]})})})})},Ae=t(67546),He=t(93441);function Be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Be(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var We=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visValue,o=e.setVisuals,s=(0,u.useCallback)((function(e){return o((function(n){return Ve(Ve({},n),{},(0,a.Z)({},r,e))}))}),[]);return(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:n}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(ce.v,{}),children:(0,l.jsx)(z.xu,{bgColor:i,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(de.sN,{onClick:function(){return s("")},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(z.xu,{height:6,width:6})}),t.map((function(e){return(0,l.jsx)(de.sN,{onClick:function(){return s(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(z.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]})};function Me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Me(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _e=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,i=e.setHighlightColor;return(0,l.jsx)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(z.xu,{children:[(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Nodes"}),(0,l.jsx)(le.u,{label:"Shuffle node colors",children:(0,l.jsx)(D.h,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,l.jsx)(Ae.n,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(Xe(Xe({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,c.Z)(e,1)[0]-(0,c.Z)(n,1)[0]})).map((function(e){var n=(0,c.Z)(e,2);n[0];return n[1]}))}))}})}),(0,l.jsx)(le.u,{label:"Cycle node colors",children:(0,l.jsx)(D.h,{"aria-label":"Shift node colors",icon:(0,l.jsx)(He.L,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(Xe(Xe({},n),{},{nodeColorScheme:[].concat((0,s.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,l.jsx)(de.j2,{width:20,as:se.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(ce.v,{}),children:(0,l.jsx)(I.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(z.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsx)(de.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,l.jsx)(de.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(Xe(Xe({},n),{},{nodeColorScheme:e}))},children:te.map((function(e){return(0,l.jsx)(de.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,l.jsx)(z.xu,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(z.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Links"}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(ce.v,{}),children:(0,l.jsx)(z.xu,{children:n.linkColorScheme?(0,l.jsx)(z.xu,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,l.jsx)(I.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(z.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(de.sN,{onClick:function(){return t(Xe(Xe({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(I.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,l.jsx)(z.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),te.map((function(e){return(0,l.jsx)(de.sN,{onClick:function(){return t(Xe(Xe({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(z.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Accent"}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(ce.v,{}),children:(0,l.jsx)(z.xu,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsx)(de.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:te.map((function(e){return(0,l.jsx)(de.sN,{onClick:function(){return i(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,l.jsx)(z.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,l.jsx)(We,{colorList:te,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,l.jsx)(We,{colorList:te,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,l.jsx)(We,{colorList:te,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,l.jsx)(We,{colorList:te,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function qe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qe(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ge=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,l.jsx)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(z.xu,{children:[(0,l.jsx)(De,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Qe(Qe({},n),{},{nodeRel:e}))}}),(0,l.jsx)(De,{label:"Node connections size scale",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Qe(Qe({},n),{},{nodeSizeLinks:e}))}}),(0,l.jsx)(De,{label:"Node zoom invariance",value:n.nodeZoomSize,min:0,max:2,infoText:"How much the graph will try to keep the nodesize consistent across zoom scales. 0 is no consistency, node will always be their true size, 1 is linear, 2 is quadratic.",onChange:function(e){return t((function(n){return Qe(Qe({},n),{},{nodeZoomSize:e})}))}}),r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(De,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Qe(Qe({},n),{},{nodeOpacity:e}))}}),(0,l.jsx)(De,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Qe(Qe({},n),{},{nodeResolution:e}))}})]}),(0,l.jsx)(De,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Qe(Qe({},n),{},{linkWidth:e}))}}),r&&(0,l.jsx)(De,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Qe(Qe({},n),{},{linkOpacity:e}))}}),(0,l.jsxs)(Le,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Qe(Qe({},n),{},{arrows:!n.arrows}))},children:[(0,l.jsx)(De,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Qe(Qe({},n),{},{arrowsLength:10*e}))}}),(0,l.jsx)(De,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Qe(Qe({},n),{},{arrowsPos:e}))}}),(0,l.jsx)(We,{colorList:te,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,l.jsxs)(Le,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Qe(Qe({},n),{},{particles:!n.particles}))},children:[(0,l.jsx)(De,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Qe(Qe({},n),{},{particlesNumber:e}))}}),(0,l.jsx)(De,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Qe(Qe({},n),{},{particlesWidth:e}))}})]})]})})};function Ke(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ue(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ke(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ke(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Je=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(z.xu,{children:[(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Show labels"}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,colorScheme:"",color:"black",rightIcon:(0,l.jsx)(ce.v,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(de.sN,{onClick:function(){return t(Ue(Ue({},n),{},{labels:0}))},children:"Never"}),(0,l.jsx)(de.sN,{onClick:function(){return t(Ue(Ue({},n),{},{labels:1}))},children:"On Highlight"}),(0,l.jsx)(de.sN,{onClick:function(){return t(Ue(Ue({},n),{},{labels:2}))},children:"Always"}),(0,l.jsx)(de.sN,{onClick:function(){return t(Ue(Ue({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,l.jsxs)(E.gC,{spacing:1,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:2,color:"gray.800",children:[(0,l.jsx)(De,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Ue(Ue({},n),{},{labelFontSize:e}))}}),(0,l.jsx)(De,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Ue(Ue({},n),{},{labelLength:e}))}}),(0,l.jsx)(De,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Ue(Ue({},n),{},{labelWordWrap:e}))}}),(0,l.jsx)(De,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Ue(Ue({},n),{},{labelLineSpace:e}))}}),(0,l.jsx)(We,{colorList:te,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,l.jsx)(We,{colorList:te,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,l.jsx)(we.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,l.jsx)(z.xu,{paddingTop:2,children:(0,l.jsx)(De,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Ue(Ue({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})}),(0,l.jsx)(we.U,{in:n.labels>1,animateOpacity:!0,children:(0,l.jsx)(z.xu,{paddingTop:2,children:(0,l.jsx)(De,{label:"Label Appearance Scale",value:5*n.labelScale,onChange:function(e){return t(Ue(Ue({},n),{},{labelScale:e/5}))}})})})]})]})})};function Ye(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $e(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ye(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var en=function(e){var n=e.visuals,t=e.setVisuals;return(0,l.jsx)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,l.jsxs)(z.xu,{children:[(0,l.jsxs)(Le,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t($e($e({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,l.jsx)(De,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t($e($e({},n),{},{citeDashLength:10*e}))}}),(0,l.jsx)(De,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t($e($e({},n),{},{citeGapLength:5*e}))}})]}),(0,l.jsx)(We,{colorList:te,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,l.jsx)(We,{colorList:te,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,l.jsx)(We,{colorList:te,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,l.jsxs)(Le,{label:"Dash ref links",infoText:"Add dashes to citation links, whose target has a note, made with org-roam-bibtex",value:n.refDashes,onChange:function(){return t($e($e({},n),{},{refDashes:!n.refDashes}))},children:[(0,l.jsx)(De,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t($e($e({},n),{},{refDashLength:10*e}))}}),(0,l.jsx)(De,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t($e($e({},n),{},{refGapLength:5*e}))}})]}),(0,l.jsx)(We,{colorList:te,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,l.jsx)(We,{colorList:te,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,l.jsx)(We,{colorList:te,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})},nn=function(e){var n=e.visuals,t=e.setVisuals,r=e.highlightColor,i=e.setHighlightColor,o=e.threeDim,s=(0,u.useCallback)((function(e){return t(e)}),[]);return(0,l.jsx)(E.gC,{justifyContent:"flex-start",align:"stretch",children:(0,l.jsxs)(ae.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,l.jsxs)(ae.Qd,{children:[(0,l.jsx)(ae.KF,{children:(0,l.jsxs)(I.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(ue.x,{children:"Colors"}),(0,l.jsx)(ae.XE,{marginRight:2})]})}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(_e,{visuals:n,setVisualsCallback:s,highlightColor:r,setHighlightColor:i})})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsx)(ae.KF,{children:(0,l.jsxs)(I.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(ue.x,{children:"Nodes & Links"}),(0,l.jsx)(ae.XE,{marginRight:2})]})}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(Ge,{visuals:n,setVisuals:s,threeDim:o})})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsx)(ae.KF,{children:(0,l.jsxs)(I.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(ue.x,{children:"Labels"}),(0,l.jsx)(ae.XE,{marginRight:2})]})}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(Je,{visuals:n,setVisuals:s})})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsx)(ae.KF,{children:(0,l.jsxs)(I.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(ue.x,{children:"Highlighting"}),(0,l.jsx)(ae.XE,{marginRight:2})]})}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(Fe,{visuals:n,setVisuals:s})})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsx)(ae.KF,{children:(0,l.jsxs)(I.k,{justifyContent:"space-between",w:"100%",children:[(0,l.jsx)(ue.x,{children:"Citations"}),(0,l.jsx)(ae.XE,{marginRight:2})]})}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(en,{visuals:n,setVisuals:s})})]})]})})};function tn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function rn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?tn(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var on=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,i=e.setMouse;return(0,l.jsxs)(E.gC,{spacing:2,justifyContent:"flex-start",divider:(0,l.jsx)(E.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(I.k,{children:[(0,l.jsx)(ue.x,{children:"Expand Node"}),(0,l.jsx)(Pe,{infoText:"View only the node and its direct neighbors"})]}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,rightIcon:(0,l.jsx)(ce.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(ue.x,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{local:""}))},children:"Never"}),(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{local:"click"}))},children:"Click"}),(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{local:"double"}))},children:"Double Click"}),(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Open in Emacs"}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,rightIcon:(0,l.jsx)(ce.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(ue.x,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{follow:""}))},children:"Never"}),(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{follow:"click"}))},children:"Click"}),(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{follow:"double"}))},children:"Double Click"}),(0,l.jsx)(de.sN,{onClick:function(){return i(rn(rn({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsx)(ue.x,{children:"Follow Emacs by..."}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,rightIcon:(0,l.jsx)(ce.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(ue.x,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(de.sN,{onClick:function(){return t(rn(rn({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,l.jsx)(de.sN,{onClick:function(){return t(rn(rn({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,l.jsx)(de.sN,{onClick:function(){return t(rn(rn({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,l.jsxs)(I.k,{alignItems:"center",justifyContent:"space-between",children:[(0,l.jsxs)(I.k,{children:[(0,l.jsx)(ue.x,{children:"Local graph"}),(0,l.jsx)(Pe,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,l.jsxs)(de.v2,{isLazy:!0,placement:"right",children:[(0,l.jsx)(de.j2,{as:se.z,rightIcon:(0,l.jsx)(ce.v,{}),colorScheme:"",color:"black",children:(0,l.jsx)(ue.x,{children:"add"===n.localSame?"Add":"Replace"})}),(0,l.jsxs)(he.h,{children:[" ",(0,l.jsxs)(de.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,l.jsx)(de.sN,{onClick:function(){return t(rn(rn({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,l.jsx)(de.sN,{onClick:function(){return t(rn(rn({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,l.jsx)(De,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(rn(rn({},n),{},{zoomSpeed:e}))}}),(0,l.jsx)(De,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(rn(rn({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})};function ln(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function sn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ln(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var an=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,i=e.setThreeDim,o=e.filter,s=e.setFilter,a=e.visuals,d=e.setVisuals,h=e.mouse,f=e.setMouse,p=e.behavior,j=e.setBehavior,b=e.tags,m=e.tagColors,v=e.setTagColors,y=g("showTweaks",!1),C=(0,c.Z)(y,2),O=C[0],k=C[1],w=(0,u.useContext)(R.N),S=w.highlightColor,P=w.setHighlightColor;return O?(0,l.jsxs)(z.xu,{bg:"alt.100",w:"xs",marginTop:10,marginLeft:10,borderRadius:"xl",paddingBottom:5,zIndex:300,position:"relative",boxShadow:"xl",maxH:.92*globalThis.innerHeight,marginBottom:10,children:[(0,l.jsxs)(z.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,l.jsx)(le.u,{label:"2D",children:(0,l.jsx)(se.z,{onClick:function(){return i(!r)},variant:"ghost",zIndex:"overlay",children:r?"3D":"2D"})}),(0,l.jsxs)(z.xu,{display:"flex",alignItems:"center",children:[(0,l.jsx)(le.u,{label:"Reset settings to defaults",children:(0,l.jsx)(D.h,{"aria-label":"Reset Defaults",icon:(0,l.jsx)(ie.A,{}),onClick:function(){d($),s(Y),f(ne),t(J),j(ee)},variant:"none",size:"sm"})}),(0,l.jsx)(D.h,{size:"sm",icon:(0,l.jsx)(oe.T,{}),"aria-label":"Close Tweak Panel",variant:"ghost",onClick:function(){return k(!1)}})]})]}),(0,l.jsx)(T.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,x.Z)(e,["style"]);return(0,l.jsx)(z.xu,sn(sn({},t),{},{style:sn(sn({},n),{},{borderRadius:10}),bg:S}))},children:(0,l.jsxs)(ae.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,l.jsxs)(ae.Qd,{children:[(0,l.jsxs)(ae.KF,{children:[(0,l.jsx)(ae.XE,{marginRight:2}),(0,l.jsx)(N.X,{size:"sm",children:"Filter"})]}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(ke,{filter:o,setFilter:s,tagColors:m,setTagColors:v,highlightColor:S,colorList:te,tags:b})})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsx)(ae.KF,{display:"flex",justifyContent:"space-between",children:(0,l.jsxs)(z.xu,{display:"flex",children:[(0,l.jsx)(ae.XE,{marginRight:2}),(0,l.jsx)(N.X,{size:"sm",children:"Physics"})]})}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(Ee,{physics:n,setPhysics:t})})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsxs)(ae.KF,{children:[(0,l.jsx)(ae.XE,{marginRight:2}),(0,l.jsx)(N.X,{size:"sm",children:"Visual"})]}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(nn,{visuals:a,setVisuals:d,highlightColor:S,setHighlightColor:P,threeDim:r})})]}),(0,l.jsxs)(ae.Qd,{children:[(0,l.jsxs)(ae.KF,{children:[(0,l.jsx)(ae.XE,{marginRight:2}),(0,l.jsx)(N.X,{size:"sm",children:"Behavior"})]}),(0,l.jsx)(ae.Hk,{children:(0,l.jsx)(on,{behavior:p,setBehavior:j,mouse:h,setMouse:f})})]})]})})]}):(0,l.jsx)(z.xu,{position:"absolute",zIndex:"overlay",marginTop:10,marginLeft:10,display:O?"none":"block",children:(0,l.jsx)(D.h,{variant:"ghost","aria-label":"Settings",icon:(0,l.jsx)(re.e,{}),onClick:function(){return k(!0)}})})},cn=t(30410),un=t(94030),dn=t(55830),hn=t(46617),gn=t(50862),fn=t(68928);function pn(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function xn(e,n){pn("open",{id:e.id},n)}var jn=function(e){e.background;var n=e.node,t=(e.nodeType,e.coordinates),r=e.handleLocal,i=e.menuClose,o=e.scope,s=e.webSocket,a=e.setPreviewNode,c=(0,M.q)(),d=c.isOpen,h=c.onOpen,g=c.onClose;(0,u.useRef)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(z.xu,{position:"absolute",zIndex:"overlay",left:t[0]+10,top:t[1]-10,padding:5,children:(0,l.jsx)(de.v2,{closeOnBlur:!1,defaultIsOpen:!0,onClose:function(){return i()},children:(0,l.jsxs)(de.qy,{zIndex:"overlay",bgColor:"alt.100",borderColor:"gray.500",maxWidth:"xs",children:[n&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N.X,{size:"sm",isTruncated:!0,px:3,py:1,children:n.title}),(0,l.jsx)(de.R,{borderColor:"gray.500"})]}),0!==o.nodeIds.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(de.sN,{onClick:function(){return r(n,"add")},icon:(0,l.jsx)(un.I,{}),children:"Expand local graph at node"}),(0,l.jsx)(de.sN,{onClick:function(){return r(n,"replace")},icon:(0,l.jsx)(dn.O,{}),children:"Open local graph for this node"})]}),null!==n&&void 0!==n&&n.properties.FILELESS?(0,l.jsx)(de.sN,{icon:(0,l.jsx)(gn.d,{}),onClick:function(){return function(e,n){pn("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(n,s)},children:"Create node"}):(0,l.jsx)(de.sN,{icon:(0,l.jsx)(hn.d,{}),onClick:function(){return xn(n,s)},children:"Open in Emacs"}),(null===n||void 0===n?void 0:n.properties.ROAM_REFS)&&(0,l.jsx)(de.sN,{icon:(0,l.jsx)(fn.h,{}),children:"Open in Zotero"}),0===o.nodeIds.length&&(0,l.jsx)(de.sN,{icon:(0,l.jsx)(dn.O,{}),onClick:function(){return r(n,"replace")},children:"Open local graph"}),0===(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(de.sN,{closeOnSelect:!1,icon:(0,l.jsx)(be.p,{color:"red.500"}),color:"red.500",onClick:h,children:"Permenantly delete note"}),(0,l.jsx)(de.sN,{onClick:function(){!function(e,n){pn("getText",{id:e.id},n)}(n,s),a(n)},children:"Preview"})]})})}),(0,l.jsxs)(cn.u_,{isCentered:!0,isOpen:d,onClose:g,children:[(0,l.jsx)(cn.ZA,{}),(0,l.jsxs)(cn.hz,{zIndex:"popover",children:[(0,l.jsx)(cn.xB,{children:"Delete node?"}),(0,l.jsx)(cn.ol,{}),(0,l.jsx)(cn.fe,{children:(0,l.jsxs)(E.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,l.jsx)(ue.x,{children:"This will permanently delete your note:"}),(0,l.jsx)(ue.x,{fontWeight:"bold",children:null===n||void 0===n?void 0:n.title}),0!==(null===n||void 0===n?void 0:n.level)&&(0,l.jsx)(ue.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,l.jsx)(ue.x,{children:"Are you sure you want to do continue?"})]})}),(0,l.jsxs)(cn.mz,{children:[(0,l.jsx)(se.z,{mr:3,onClick:function(){console.log("closing"),g(),i()},children:"Cancel"}),(0,l.jsx)(se.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&pn("delete",{id:e.id,file:e.file},n)}(n,s),g(),i()},children:"Delete node"})]})]})]})]})},bn=t(31122),mn=t(22663),vn=t.n(mn),yn=t(22003),Cn=t(35255);function On(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function kn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?On(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):On(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var wn=t.e(4).then(t.bind(t,57004)),Sn=t.g.window?t(61957).f$:null,Pn=t.g.window?t(61957).s6:null;function Ln(){var e=(0,u.useState)(!1),n=e[0],t=e[1];return(0,u.useEffect)((function(){t(!0)}),[]),n?(0,l.jsx)(In,{}):null}function In(){var e=g("3d",!1),n=(0,c.Z)(e,2),t=n[0],r=n[1],i=g("tagCols",{}),o=(0,c.Z)(i,2),d=o[0],h=o[1],f=(0,u.useState)({nodeIds:[]}),p=f[0],x=f[1],j=g("physics",J),b=(0,c.Z)(j,2),m=b[0],v=b[1],y=g("filter",Y),C=(0,c.Z)(y,2),O=C[0],k=C[1],w=g("visuals",$),S=(0,c.Z)(w,2),P=S[0],L=S[1],N=(0,u.useState)(null),E=N[0],T=N[1],Z=(0,u.useState)(null),F=Z[0],A=Z[1],B=g("behavior",ee),V=(0,c.Z)(B,2),W=V[0],X=V[1],_=g("mouse",ne),q=(0,c.Z)(_,2),Q=q[0],G=q[1],K=(0,u.useState)(""),U=K[0],te=K[1],re=(0,u.useState)({}),ie=re[0],oe=re[1],le=(0,M.q)(),se=le.isOpen,ae=le.onOpen,ce=le.onClose,ue=(0,u.useRef)({}),de=(0,u.useRef)({}),he=(0,u.useRef)([]),ge=(0,u.useRef)(null),fe=(0,u.useRef)({nodes:[],links:[]});(0,u.useEffect)((function(){E&&(fe.current=E)}),[E]);var pe=(0,u.useContext)(R.N).setEmacsTheme,xe=(0,u.useRef)({nodeIds:[]}),je=(0,u.useRef)(ee);je.current=W;var be=(0,u.useRef)(null);xe.current=p;var me=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var o=ge.current,l=xe.current,a=je.current,c=null!==(t=de.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,s.Z)(c.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return l.nodeIds.length&&x({nodeIds:[]}),void setTimeout((function(){return o.zoomToFit(r,i,(function(e){return u[e.id]}))}),50);if(!l.nodeIds.length)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if("add"!==a.localSame)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if(!l.nodeIds.includes(n)||!l.nodeIds.some((function(e){return u[e]})))return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);x((function(e){return kn(kn({},e),{},{nodeIds:[].concat((0,s.Z)(e.nodeIds),[n])})})),setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50)}};return(0,u.useEffect)((function(){be.current=new yn.Z("ws://localhost:35903"),be.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),be.current.addEventListener("message",(function(e){var n=je.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,i=ue.current;he.current=null!==(n=e.tags)&&void 0!==n?n:[];var o=null!==(t=e.nodes)&&void 0!==t?t:[],l=null!==(r=e.links)&&void 0!==r?r:[],u=o.reduce((function(e,n){var t;return kn(kn({},e),{},(0,a.Z)({},n.file,[].concat((0,s.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(n.title))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));ue.current=Object.fromEntries(o.map((function(e){return[e.id,e]})));var g=[].concat((0,s.Z)(l),(0,s.Z)(d),(0,s.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return ue.current[n]?ue.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),kn(kn({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),kn(kn({},e),{},{type:"bad"}))}));ue.current=kn(kn({},ue.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),de.current=p.reduce((function(e,n){var t,r,i;return kn(kn({},e),{},(i={},(0,a.Z)(i,n.source,[].concat((0,s.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,a.Z)(i,n.target,[].concat((0,s.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),i))}),{});var x={nodes:[].concat((0,s.Z)(o),f),links:p},j=fe.current;if(0===j.nodes.length){var b=JSON.parse(JSON.stringify(x));return fe.current=b,void T(b)}var m=[].concat((0,s.Z)(j.nodes.flatMap((function(e){var n,t=null!==(n=ue.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[kn(kn({},e),t)]:[]}))),(0,s.Z)(Object.keys(ue.current).filter((function(e){return!i[e]})).map((function(e){return ue.current[e]})))),v=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return kn(kn({},e),{},(0,a.Z)({},r,t))}),{}),y=p.map((function(e){var n=Nn(e),t=(0,c.Z)(n,2),r=t[0],i=t[1];return kn(kn({},e),{},{source:m[v[r]],target:m[v[i]]})}));T({nodes:m,links:y})}(t.data);case"orgText":return te(t.data);case"theme":return pe(t.data);case"command":switch(t.data.commandName){case"local":var r=W.zoomSpeed,i=W.zoomPadding;me("local",t.data.id,r,i),A(t.data.id);break;case"zoom":var o,l,u=(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.padding)||n.zoomPadding;me("zoom",t.data.id,u,d),A(t.data.id);break;case"follow":me(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),A(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,u.useEffect)((function(){var e=ge.current;!e||p.nodeIds.length>1||(p.nodeIds.length||!m.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[p.nodeIds]),E?(0,l.jsxs)(z.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100%",overflow:"hidden",children:[(0,l.jsxs)(z.xu,{display:"flex",justifyContent:"space-between",flexDirection:"row",height:"100%",width:"100%",children:[(0,l.jsx)(H,kn({},{isOpen:se,onClose:ce,previewNode:ie,orgText:U})),(0,l.jsx)(an,kn(kn({},{physics:m,setPhysics:v,threeDim:t,setThreeDim:r,filter:O,setFilter:k,visuals:P,setVisuals:L,mouse:Q,setMouse:G,behavior:W,setBehavior:X,tagColors:d,setTagColors:h}),{},{tags:he.current})),(0,l.jsx)(I.k,{height:"100%",flexDirection:"column",marginLeft:"auto",children:!se&&(0,l.jsx)(D.h,{icon:(0,l.jsx)(Cn.w,{}),height:100,"aria-label":"Open org-viewer",position:"relative",zIndex:"overlay",colorScheme:"purple",onClick:ae,variant:"ghost",marginTop:10})})]}),(0,l.jsx)(z.xu,{position:"absolute",alignItems:"top",overflow:"hidden",children:(0,l.jsx)(Dn,kn({ref:ge,nodeById:ue.current,linksByNodeId:de.current,webSocket:be.current},{physics:m,graphData:E,threeDim:t,emacsNodeId:F,filter:O,visuals:P,behavior:W,mouse:Q,scope:p,setScope:x,tagColors:d,setPreviewNode:oe}))})]}):null}var Dn=(0,u.forwardRef)((function(e,n){var t=e.physics,r=e.graphData,d=e.threeDim,h=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,x=e.nodeById,j=e.visuals,b=e.behavior,m=e.mouse,v=e.scope,y=e.setScope,C=e.webSocket,O=e.tagColors,k=e.setPreviewNode,w=(0,B.iP)(),S=(0,c.Z)(w,2),P=S[0],L=S[1],I=(0,u.useState)(null),D=I[0],N=I[1],E=(0,u.useState)(null),T=E[0],Z=E[1],F=(0,u.useState)([0,0]),A=F[0],H=F[1],X=(0,W.useTheme)(),_=(0,u.useContext)(R.N).emacsTheme,q=function(e,n){"replace"!==n?v.nodeIds.includes(e.id)||y((function(n){return kn(kn({},n),{},{nodeIds:[].concat((0,s.Z)(n.nodeIds),[e.id])})})):y({nodeIds:[e.id]})},Q=(0,M.q)(),G=function(e,n,t){switch(e){case m.local:q(n,b.localSame);break;case m.follow:xn(n,C);break;case m.context:!function(e,n){H([n.pageX,n.pageY]),Z(e),Q.onOpen()}(n,t)}},K=(0,u.useRef)(null);(0,u.useEffect)((function(){f&&N(x[f])}),[f]);var J=(0,u.useRef)({}),Y=(0,u.useRef)({}),$=(0,u.useMemo)((function(){var e;Y.current={};var n=null===r||void 0===r||null===(e=r.nodes)||void 0===e?void 0:e.filter((function(e){var n=e;return g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){return n.tags.indexOf(e)>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){return n.tags.indexOf(e)>-1}))||g.filelessCites&&n.properties.FILELESS?(Y.current=kn(kn({},Y.current),{},(0,a.Z)({},n.id,n)),!1):!g.bad||!n.properties.bad||(Y.current=kn(kn({},Y.current),{},(0,a.Z)({},n.id,n)),!1)})).filter((function(e){var n,t=(null!==(n=h[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!Y.current[e.source]&&!Y.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),i=r.links.filter((function(e){var n=Nn(e),r=(0,c.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var l=e;return g.parent?"heading"===g.parent?"parent"!==l.type:"heading"!==l.type:!["parent","heading"].includes(l.type)}));return J.current=i.reduce((function(e,n){var t,r,i,o=n,l=Nn(o),u=(0,c.Z)(l,2),d=u[0],h=u[1];return kn(kn({},e),{},(i={},(0,a.Z)(i,d,[].concat((0,s.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[o])),(0,a.Z)(i,h,[].concat((0,s.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[o])),i))}),{}),{nodes:n,links:i}}),[g,r]),ee=(0,u.useState)({nodes:[],links:[]}),ne=ee[0],re=ee[1];(0,u.useEffect)((function(){if(v.nodeIds.length){var e=v.nodeIds.length>1?ne.nodes:[],n=e.map((function(e){return e.id})),t=function(e,n){var t=[e[0]],r=[],i=[e[0]];return Array.from({length:n},(function(){t.forEach((function(e){var n;(null!==(n=J.current[e])&&void 0!==n?n:[]).forEach((function(e){var n=Nn(e),t=(0,c.Z)(n,2),o=t[0],l=t[1];i.includes(o)?i.includes(l)||r.push(l):r.push(o)}))})),t=r,r.forEach((function(e){return e&&i.push(e)})),r=[]})),i}(v.nodeIds,1),r=$.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=J.current[r.id])&&void 0!==i?i:[]).some((function(e){return v.nodeIds.includes(e.source)||v.nodeIds.includes(e.target)})):t.includes(r.id)})).map((function(e){return kn(kn({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,s.Z)(e),(0,s.Z)(r)),o=i.map((function(e){return e.id})),l=v.nodeIds.length>1?ne.links:[],a=$.links.filter((function(e){var t=Nn(e),r=(0,c.Z)(t,2),i=r[0],s=r[1];return!(l.length&&n.includes(s)&&n.includes(i))&&(o.includes(i)&&o.includes(s))})).map((function(e){var n=Nn(e),t=(0,c.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,s.Z)(l),(0,s.Z)(a));re({nodes:i,links:u})}}),[g,v,r]),K.current=D;var ie=(0,u.useMemo)((function(){if(!K.current)return{};var e=J.current[K.current.id];return e?Object.fromEntries([K.current.id].concat((0,s.Z)(e.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(K.current),JSON.stringify(J.current)]);(0,u.useEffect)((function(){(0,o.Z)(i().mark((function e(){var r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,wn;case 3:o=e.sent,!t.gravityOn||v.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),d&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),d&&r.d3Force("z",o.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",o.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,d,v]),(0,u.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,v.nodeIds.length]);var oe=(0,u.useRef)(0),le=(0,u.useState)(1),se=le[0],ae=le[1],ce=(0,V._7)((function(e){return ae(e)}),{duration:j.animationSpeed,algorithm:U[j.algorithmName]}),ue=(0,c.Z)(ce,2),de=ue[0],he=ue[1],ge=(0,V._7)((function(e){return ae(Math.min(se,-1*(e-1)))}),{duration:j.animationSpeed,algorithm:U[j.algorithmName]}),fe=(0,c.Z)(ge,2),pe=fe[0],xe=fe[1],je=(0,u.useRef)(null);(0,u.useEffect)((function(){if(D&&(je.current=D),!j.highlightAnim)return ae(D?1:0);D?de():(he(),se>.5?pe():ae(0))}),[D]);var be=function(e){if(X)return e.split(".").reduce((function(e,n){return e[n]}),X.colors)},me=(0,u.useMemo)((function(){return Object.fromEntries(te.map((function(e){var n=be(e),t=te.map((function(e){return[e,p.Z(n,be(e))]}));return[e,Object.fromEntries(t)]})))}),[_]),ve=(0,u.useMemo)((function(){var e,n,t,r=null!==(e=J.current[null===(n=je.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=je.current)||void 0===t?void 0:t.id].concat((0,s.Z)(r.flatMap((function(e){return Nn(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(D),je.current,J.current]),ye=function(e){var n,t,r,i,o,l=null!==(n=null===(t=J.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return j.nodeColorScheme[(r=l,i=0,o=j.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]},Ce=function(e,n){return J.current[e].length>J.current[n].length?ye(e):ye(n)},Oe=(0,u.useMemo)((function(){return be(j.labelTextColor)}),[j.labelTextColor,_]),ke=(0,u.useMemo)((function(){return be(j.labelBackgroundColor)}),[j.labelBackgroundColor,_]),we=function(e){var n,t=null!==(n=J.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*j.nodeSizeLinks-(g.parent?0:r);return 1===j.highlightNodeSize?i:i*(ie[e.id]||ve[e.id]?1+se*(j.highlightNodeSize-1):1)},Se=(0,u.useState)(!1),Pe=Se[0],Le=Se[1],Ie=(0,u.useState)(1),De=Ie[0],ze=Ie[1],Ne={graphData:v.nodeIds.length?ne:$,width:P,height:L,backgroundColor:X.colors.gray[j.backgroundColor],warmupTicks:1===v.nodeIds.length?100:v.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return ze(n)},nodeLabel:function(e){return e.title},nodeColor:function(e){return function(e){var n=ie[e.id]||ve[e.id];if(j.emacsNodeColor&&e.id===f)return be(j.emacsNodeColor);if(O&&e.tags.some((function(e){return O[e]}))){var t=O[e.tags.filter((function(e){return O[e]}))[0]];return me[t][j.backgroundColor](j.highlightFade*se)}return j.citeNodeColor&&e.properties.ROAM_REFS&&e.properties.FILELESS?n?be(j.citeNodeColor):me[j.citeNodeColor][j.backgroundColor](j.highlightFade*se):j.refNodeColor&&e.properties.ROAM_REFS?n?be(j.refNodeColor):me[j.refNodeColor][j.backgroundColor](j.highlightFade*se):n?j.nodeHighlight?me[ye(e.id)][j.nodeHighlight](se):be(ye(e.id)):me[ye(e.id)][j.backgroundColor](j.highlightFade*se)}(e)},nodeRelSize:j.nodeRel,nodeVal:function(e){return we(e)/Math.pow(De,j.nodeZoomSize)},nodeCanvasObject:function(e,n,t){if(e&&!Pe&&j.labels){var r=ve[e.id];if(!(t<=j.labelScale||1===j.labels)||ie[e.id]||r){var i=e.title,o=i.substring(0,j.labelLength),l=j.labelFontSize/(.75*Math.min(Math.max(.5,t),3)),a=[1.1*n.measureText(o).width,l].map((function(e){return e+.5*l})),c=Math.min(3*(t-j.labelScale)/j.labelScale,1),u=function(){return 1===j.labels||t<=j.labelScale?se:ie[e.id]||ve[e.id]?Math.max(c,se):1*c*(-1*(j.highlightFade*se-1))},d=8*Math.cbrt(we(e)*j.nodeRel);if(j.labelBackgroundColor&&j.labelBackgroundOpacity){var h=u()*j.labelBackgroundOpacity,g=En(ke,h);n.fillStyle=g,n.fillRect.apply(n,[e.x-a[0]/2,e.y-a[1]/2+d].concat((0,s.Z)(a)))}var f=u();n.textAlign="center",n.textBaseline="middle";var p=En(Oe,f);n.fillStyle=p,n.font="".concat(l,"px Sans-Serif");var x=vn()(o,{width:j.labelWordWrap}).split("\n");(i.length>j.labelLength?[].concat((0,s.Z)(x.slice(0,-1)),["".concat(x.slice(-1),"...")]):x).forEach((function(t,r){n.fillText(t,e.x,e.y+d+j.labelLineSpace*l*r)}))}}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:j.particles?j.particlesNumber:void 0,linkDirectionalArrowLength:j.arrows?j.arrowsLength:void 0,linkDirectionalArrowRelPos:j.arrowsPos,linkDirectionalArrowColor:j.arrowsColor?function(){return be(j.arrowsColor)}:void 0,linkColor:function(e){var n,t="object"===typeof e.source?e.source.id:e.source,r="object"===typeof e.target?e.target.id:e.target,i=zn(e,K.current),o=zn(e,je.current),l=i||o,s=e;return j.refLinkColor&&"ref"===s.type?l&&(j.refLinkHighlightColor||j.linkHighlight)?me[j.refLinkColor][j.refLinkHighlightColor||j.linkHighlight](se):me[j.refLinkColor][j.backgroundColor](j.highlightFade*se):j.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(j.citeLinkHighlightColor||j.linkHighlight)?me[j.citeLinkColor][j.citeLinkHighlightColor||j.linkHighlight](se):me[j.citeLinkColor][j.backgroundColor](j.highlightFade*se):function(e,n,t){if(!j.linkHighlight&&!j.linkColorScheme&&!t){var r=Ce(e,n);return be(r)}if(!t&&!j.linkColorScheme){var i=Ce(e,n);return me[i][j.backgroundColor](j.highlightFade*se)}if(!t)return me[j.linkColorScheme][j.backgroundColor](j.highlightFade*se);if(!j.linkHighlight&&!j.linkColorScheme){var o=Ce(e,n);return be(o)}return j.linkHighlight?j.linkColorScheme?me[j.linkColorScheme][j.linkHighlight](se):me[Ce(e,n)][j.linkHighlight](se):be(j.linkColorScheme)}(t,r,l)},linkWidth:function(e){if(1===j.highlightLinkSize)return j.linkWidth;var n=zn(e,K.current),t=zn(e,je.current);return n||t?j.linkWidth*(1+se*(j.highlightLinkSize-1)):j.linkWidth},linkDirectionalParticleWidth:j.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e;Q.onClose();var r=n.timeStamp-oe.current<200;if(oe.current=n.timeStamp,r)return G("double",t,n);var i=oe.current;return setTimeout((function(){if(oe.current===i)return G("click",t,n)}),200)},onBackgroundClick:function(){Q.onClose(),N(null),0!==v.nodeIds.length&&y((function(e){return kn(kn({},e),{},{nodeIds:[]})}))},onNodeHover:function(e){j.highlight&&(D||(xe(),ae(0)),N(e))},onNodeRightClick:function(e,n){G("right",e,n)},onNodeDrag:function(e){Q.onClose(),N(e),Le(!0)},onNodeDragEnd:function(){N(null),Le(!1)}};return(0,l.jsxs)(z.xu,{overflow:"hidden",children:[Q.isOpen&&(0,l.jsx)(jn,{scope:v,node:T,nodeType:null===T||void 0===T?void 0:T.id,background:!1,coordinates:A,handleLocal:q,menuClose:Q.onClose.bind(Q),webSocket:C,setPreviewNode:k}),d?(0,l.jsx)(Pn,kn(kn({ref:n},Ne),{},{nodeThreeObjectExtend:!0,backgroundColor:X.colors.white,nodeOpacity:j.nodeOpacity,nodeResolution:j.nodeResolution,linkOpacity:j.linkOpacity,nodeThreeObject:function(e){if(j.labels&&(!(j.labels<3)||ie[e.id])){var n=new bn.Z(e.title.substring(0,40));return n.color=be(j.labelTextColor),n.backgroundColor=be(j.labelBackgroundColor),n.padding=2,n.textHeight=8,n}}})):(0,l.jsx)(Sn,kn(kn({ref:n},Ne),{},{linkLineDash:function(e){var n,t=e;return j.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[j.citeDashLength,j.citeGapLength]:j.refDashes&&"ref"==t.type?[j.refDashLength,j.refGapLength]:null}}))]})}));function zn(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function Nn(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function En(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(78922)}])}},function(e){e.O(0,[774,737,573,446,750,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
\ No newline at end of file
diff --git a/out/_next/static/chunks/pages/index-ae5392593603a38d540f.js b/out/_next/static/chunks/pages/index-ae5392593603a38d540f.js
new file mode 100644
index 0000000..0701528
--- /dev/null
+++ b/out/_next/static/chunks/pages/index-ae5392593603a38d540f.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{70843:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return et},GraphPage:function(){return $n},default:function(){return Yn},getThemeColor:function(){return rt},hexToRGBA:function(){return it},normalizeLinkEnds:function(){return tt}});var r=t(87757),i=t.n(r),o=t(92137),l=t(87329),s=t(96156),c=t(34699),a=t(85893),u=t(67294),d=t(9008);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function f(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=p(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?g(g({},n),o):l;s!==o&&i.update(s);var c=(0,u.useState)(s),a=c[0],d=c[1];(0,u.useEffect)((function(){a!==s&&d(s)}),[e]);var h=function(e){e instanceof Function?d((function(n){var t=e(n);return i.update(t),t})):(d(e),i.update(e))};return[a,h]}function p(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var x=t(54533),j=t(81253),b=t(94096),v=t(48420),y=t(47516),m=t(35255),C=t(56884),O=function(e){var n=e.setJustification,t=e.setIndent,r=e.setFont,i=e.justification;return(0,a.jsxs)(b.k,{py:3,alignItems:"center",justifyContent:"space-between",pr:4,children:[(0,a.jsxs)(b.k,{children:[(0,a.jsx)(v.h,{variant:"ghost",icon:(0,a.jsx)(m.w,{}),"aria-label":"Previous node"}),(0,a.jsx)(v.h,{variant:"ghost",icon:(0,a.jsx)(C.X,{}),"aria-label":"Previous node"})]}),(0,a.jsxs)(b.k,{children:[(0,a.jsx)(v.h,{variant:"ghost","aria-label":"Justify content",icon:[(0,a.jsx)(y.v9V,{},"justify"),(0,a.jsx)(y.YSr,{},"left"),(0,a.jsx)(y.RXA,{},"right"),(0,a.jsx)(y.tr_,{},"center")][i],onClick:function(){return n((function(e){return(e+1)%4}))}}),(0,a.jsx)(v.h,{variant:"ghost","aria-label":"Indent Text",icon:(0,a.jsx)(y.WHD,{}),onClick:function(){t((function(e){return e?0:1}))}}),(0,a.jsx)(v.h,{variant:"ghost","aria-label":"Change font",icon:(0,a.jsx)(y.TlM,{}),onClick:function(){r((function(e){return"sans serif"===e?"serif":"sans serif"}))}})]})]})},w=t(48017),k=t(18835),S=t.n(k),P=t(13816),N=t.n(P),I=t(42728),L=t.n(I),D=t(77890),z=t.n(D),E=t(94986),Z=t.n(E),T=t(88541),B=t.n(T),R=t(71167),F=t.n(R),H=(t(74477),t(27431)),A=t.n(H),V=t(40980),W=t(64115),M=t(45170),X=t(67273),_=t(29356),q={".katex":{overflowX:"scroll"},h1:{color:"black",lineHeight:"1.2",fontSize:"20",fontWeight:"bold",marginBottom:3},h2:{fontSize:"18",marginBottom:2,color:"black"},h3:{fontSize:"16",fontWeight:"600 !important",marginBottom:".5em",color:"black"},h4:{fontSize:"14",fontWeight:"500 !important",marginBottom:".25em",fontStyle:"italic",color:"black"},ol:{paddingLeft:"5"},ul:{paddingLeft:"5"},p:{fontSize:"14",fontWeight:"500 !important",paddingBottom:".5em"},div:{hyphens:"auto !important"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".todo":{fontFamily:"monospace",color:"red"},".equationContainer":{display:"table",textAlign:"center",width:"100%"},".equation":{verticalAlign:"middle"},".equation-label":{display:"tableCell",textAlign:"right",verticalAlign:"middle"},".inlinetask":{padding:"10px",border:"2px solid gray",margin:"10px",background:"#ffffcc"},"#org-div-home-and-up":{textAlign:"right",fontSize:"70 % ",whiteSpace:"nowrap"},textarea:{overflowX:"auto"},".linenr":{fontSize:"smaller"},".code-highlighted":{backgroundColor:"#ffff00"},".org-info-js_info-navigation":{borderStyle:"none"},"#org-info-js_console-label":{fontSize:"10px",fontWeight:"bold",whiteSpace:"nowrap"},".org-info-js_search-highlight":{backgroundColor:"#ffff00",color:"#000000",fontWeight:"bold"},".org-svg":{width:"90%"},".done":{fontFamily:"monospace",color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"#eee",fontFamily:"monospace",padding:"2px",fontSize:"80%",fontWeight:"normal"},".timestamp":{color:"#bebebe"},".timestamp-kwd":{color:"#5f9ea0"},".org-right":{marginLeft:"auto",marginRight:"0px",textAlign:"right"},".org-left":{marginLeft:"0px",marginRight:"auto",textAlign:"left"},".org-center":{marginLeft:"auto",marginRight:"auto",textAlign:"center"},".underline":{textDecoration:"underline"},"#postamble p":{fontSize:"90%",margin:".2em"},"#preamble p":{fontSize:"90%",margin:".2em"},"p.verse":{marginLeft:"3%"},pre:{border:"1px solid #e6e6e6",borderRadius:"3px",backgroundColor:"#f2f2f2",padding:"8pt",fontFamily:"monospace",overflow:"auto",margin:"1.2em"},"pre.src":{position:"relative",overflow:"auto"},"pre.src:before":{display:"none",position:"absolute",top:"-8px",right:"12px",padding:"3px",color:"#555",backgroundColor:"#f2f2f299"},"caption.t-above":{captionSide:"top"},"caption.t-bottom":{captionSide:"bottom"},"th.org-right":{textAlign:"center"},"th.org-left":{textAlign:"center"},"th.org-center":{textAlign:"center"},"td.org-right":{textAlign:"right"},"td.org-left":{textAlign:"left"},"td.org-center":{textAlign:"center"},".footpara":{display:"inline"},".footdef":{marginBottom:"1em"},".figure":{padding:"1em"},".figure p":{textAlign:"center"}},U=q;function Q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var J=function(e){var n=e.setSidebarHighlightedNode,t=e.setPreviewNode,r=e.nodeById,i=e.href,o=e.children,s=(0,u.useContext)(_.N).highlightColor,d=rt(s,(0,V.useTheme)()),h=(0,c.Z)((0,l.Z)(i.matchAll(/(.*?)\:(.*)/g))[0],3),g=(h[0],h[1],h[2]);return(0,a.jsx)(W.x,{onMouseEnter:function(){return n(r[g])},onMouseLeave:function(){return n({})},tabIndex:0,display:"inline",overflow:"hidden",fontWeight:500,color:s,textDecoration:"underline",onClick:function(){return t(r[g])},_hover:{textDecoration:"none",cursor:"pointer",bgColor:d+"22"},_focus:{outlineColor:s},children:o})},K=function(e){var n,t,r,i,o,s=e.href,d=e.children,h=e.nodeById,g=e.setSidebarHighlightedNode,f=(e.previewNode,e.setPreviewNode),p=e.nodeByCite,x=(0,u.useState)(),j=x[0],b=x[1],v=(0,c.Z)((0,l.Z)(s.matchAll(/(.*?)\:(.*)/g))[0],3),y=(v[0],function(e,n){if("id"===e)return n;if(e.includes("cite")){var t,r=null!==(t=p[n])&&void 0!==t&&t;return r?null!==r&&void 0!==r&&r.properties.FILELESS?"":null===r||void 0===r?void 0:r.id:""}return""}(v[1],v[2])),m=S()().use(N()).use(L()).use(F()).use(A(),{createElement:u.createElement,components:{a:function(e){var n=e.children,t=e.href;return(0,a.jsx)(J,G({setSidebarHighlightedNode:g,nodeById:h,nodeByCite:p,setPreviewNode:f},{children:n,href:t}))}}}),C=encodeURIComponent(null===(n=h[y])||void 0===n?void 0:n.file);return(0,u.useMemo)((function(){!function(){var e;console.log(null===(e=h[y])||void 0===e?void 0:e.title),fetch("api/notes/".concat(C)).then((function(e){return e.text()})).then((function(e){if("error"===e);else{var n=m.processSync(e).result;b(n)}})).catch((function(e){return console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}()}),[y]),y?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(M.J2,{gutter:12,trigger:"hover",placement:"top-start",children:[(0,a.jsx)(M.xo,{children:(0,a.jsx)(w.xu,{display:"inline",children:(0,a.jsx)(J,G({},{setSidebarHighlightedNode:g,setPreviewNode:f,nodeById:h,href:s,children:d,nodeByCite:p}),null!==(t=null===(r=h[y])||void 0===r?void 0:r.title)&&void 0!==t?t:y)})}),(0,a.jsx)(X.h,{children:(0,a.jsxs)(M.yk,{boxShadow:"xl",position:"relative",zIndex:"tooltip",onMouseEnter:function(){var e;return g(null!==(e=h[y])&&void 0!==e?e:{})},onMouseLeave:function(){return g({})},children:[(0,a.jsx)(M.QH,{}),(0,a.jsx)(M.b,{pb:5,fontSize:"xs",px:5,position:"relative",zIndex:"tooltip",maxHeight:300,overflow:"scroll",children:(0,a.jsx)(w.xu,{sx:U,children:j})})]},null!==(i=null===(o=h[y])||void 0===o?void 0:o.title)&&void 0!==i?i:y)})]})}):(0,a.jsx)(W.x,{display:"inline",color:"base.700",cursor:"not-allowed",children:d})},Y=function(e){var n=e.nodeById,t=e.setSidebarHighlightedNode,r=e.setPreviewNode,i=e.previewText,o=e.nodeByCite,l=S()().use(N()).use(Z()).use(B()).use(z()).use(L()).use(F()).use(A(),{createElement:u.createElement,components:{a:function(e){var i=e.children,l=e.href;return(0,a.jsx)(K,{nodeByCite:o,setSidebarHighlightedNode:t,href:"".concat(l),nodeById:n,setPreviewNode:r,children:"string"===typeof i?i:null})}}}),s=(0,u.useMemo)((function(){return l.processSync(i).result}),[i]);return(0,a.jsx)(a.Fragment,{children:s})};function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=function(e){var n=e.setSidebarHighlightedNode,t=e.nodeById,r=e.nodeByCite,i=e.previewNode,o=e.setPreviewNode,l=(0,u.useState)(""),s=l[0],c=l[1],d=encodeURIComponent(i.file);return(0,u.useEffect)((function(){fetch("api/notes/".concat(d)).then((function(e){return e.text()})).then((function(e){"error"!==e&&c(e)})).catch((function(e){return console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[i.id]),(0,u.useEffect)((function(){return console.log("mount"),function(){return console.log("unmount")}}),[]),(0,a.jsx)(a.Fragment,{children:(null===i||void 0===i?void 0:i.id)&&(0,a.jsx)(Y,ee({},{nodeById:t,previewNode:i,setPreviewNode:o,previewText:s,nodeByCite:r,setSidebarHighlightedNode:n}))})},te=t(336),re=t(72026),ie=function(e){var n,t=e.previewNode,r=e.setPreviewNode,i=e.setSidebarHighlightedNode,o=e.nodeById,l=e.linksByNodeId,s=e.nodeByCite,u=(null!==(n=l[null===t||void 0===t?void 0:t.id])&&void 0!==n?n:[]).filter((function(e){var n=tt(e),r=(0,c.Z)(n,2),i=r[0];r[1];return i!==(null===t||void 0===t?void 0:t.id)})).map((function(e){return e.source}));return(0,a.jsxs)(w.xu,{children:[(0,a.jsx)(te.X,{pt:4,children:"Backlinks (".concat(u.length,")")}),(0,a.jsx)(re.gC,{pt:2,spacing:3,alignItems:"start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(null===t||void 0===t?void 0:t.id)&&u.map((function(e){var n,t,l;n=null===(t=o[e])||void 0===t?void 0:t.title;return(0,a.jsx)(w.xu,{overflow:"hidden",p:3,bg:"gray.300",width:"100%",children:(0,a.jsx)(K,{nodeByCite:s,setSidebarHighlightedNode:i,href:"id:".concat(e),nodeById:o,setPreviewNode:r,children:null===(l=o[e])||void 0===l?void 0:l.title})},e)}))})]})};function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var se=function(e){var n=e.setPreviewNode,t=e.justificationList,r=e.justification,i=e.previewNode,o=e.nodeById,l=e.nodeByCite,s=e.setSidebarHighlightedNode,c=e.linksByNodeId;return(0,a.jsx)(w.xu,{pr:8,overflow:"scroll",height:"85%",className:"org",sx:le(le({},q),{},{textAlign:t[r]}),children:(null===i||void 0===i?void 0:i.id)&&(0,a.jsxs)(b.k,{height:"100%",flexDirection:"column",justifyContent:"space-between",children:[(0,a.jsx)(ne,le({},{setPreviewNode:n,previewNode:i,nodeById:o,nodeByCite:l,setSidebarHighlightedNode:s})),(0,a.jsx)(ie,le({},{setPreviewNode:n,previewNode:i,nodeById:o,linksByNodeId:c,nodeByCite:l,setSidebarHighlightedNode:s}))]})})},ce=t(25715),ae=t(86658),ue=t(61475);function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ge=function(e){var n=e.isOpen,t=e.onOpen,r=e.onClose,i=e.previewNode,o=e.setPreviewNode,l=e.nodeById,s=e.linksByNodeId,c=e.nodeByCite,d=e.setSidebarHighlightedNode,h=(0,u.useContext)(_.N).highlightColor,g=(0,u.useState)(),f=g[0],p=g[1];(0,u.useEffect)((function(){null!==i&&void 0!==i&&i.id?(t(),p(i)):r()}),[null===i||void 0===i?void 0:i.id]);var x=(0,u.useState)(1),m=x[0],C=x[1],k=(0,u.useState)("sans serif"),S=(k[0],k[1]),P=(0,u.useState)(0),N=(P[0],P[1]);return(0,a.jsx)(ce.M,{direction:"right",in:n,style:{width:"clamp(400px, 30%, 500px)"},unmountOnExit:!0,children:(0,a.jsx)(b.k,{flexDirection:"row",height:"100%",children:(0,a.jsxs)(w.xu,{pl:2,color:"black",bg:"alt.100",w:"100%",paddingBottom:15,children:[(0,a.jsxs)(b.k,{justifyContent:"space-between",paddingTop:4,pl:4,pb:5,pr:3,alignItems:"top",color:"black",children:[(0,a.jsxs)(b.k,{alignItems:"center",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:[(0,a.jsx)(y.UY3,{}),(0,a.jsx)(te.X,{pl:2,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:1,size:"sm",fontWeight:600,color:"gray.800",children:null===f||void 0===f?void 0:f.title})]}),(0,a.jsx)(v.h,{icon:(0,a.jsx)(ue.U,{}),"aria-label":"Close file-viewer",variant:"link",onClick:r})]}),(0,a.jsx)(O,he({},{setJustification:C,setIndent:N,setFont:S,justification:m})),(0,a.jsx)(ae.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,j.Z)(e,["style"]);return(0,a.jsx)(w.xu,he({style:he(he({},n),{},{borderRadius:10,backgroundColor:h}),color:"black"},t))},children:(0,a.jsx)(re.gC,{height:"100%",alignItems:"left",bg:"alt.100",paddingLeft:4,children:(0,a.jsx)(se,he({},{setPreviewNode:o,previewNode:i,nodeById:l,nodeByCite:c,setSidebarHighlightedNode:d,justification:m,justificationList:["justify","start","end","center"],linksByNodeId:s}))})})]})})})},fe=t(54309),pe=t(32351),xe=t(74860),je=t(36194),be=[],ve={};for(var ye in je.oY)for(var me in je.oY[ye]){var Ce=ye+me;"LinearNone"===Ce&&(Ce="Linear"),be.push(Ce),ve[Ce]=je.oY[ye][me]}var Oe=ve,we={enabled:!0,charge:-700,collision:!0,collisionStrength:20,centering:!0,centeringStrength:.2,linkStrength:.3,linkIts:1,alphaDecay:.05,alphaTarget:0,alphaMin:0,velocityDecay:.25,gravity:.3,gravityOn:!0,gravityLocal:!1},ke={orphans:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],bad:!0,nodes:[],links:[],date:[]},Se={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:4,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:13,labelLength:40,labelWordWrap:25,labelLineSpace:1,highlight:!0,highlightNodeSize:2,highlightLinkSize:2,highlightFade:.8,highlightAnim:!0,animationSpeed:420,algorithmOptions:be,algorithmName:"SinusoidalOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"gray.900",labelBackgroundColor:"",labelBackgroundOpacity:.7,citeDashes:!0,citeDashLength:35,citeGapLength:15,citeLinkColor:"gray.700",citeLinkHighlightColor:"",citeNodeColor:"black",refDashes:!0,refDashLength:35,refGapLength:15,refLinkColor:"gray.700",refLinkHighlightColor:"",refNodeColor:"black",nodeSizeLinks:.5,nodeZoomSize:1.3},Pe={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},Ne={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click"},Ie=["red.500","orange.500","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","white","gray.100","gray.200","gray.300","gray.400","gray.500","gray.600","gray.700","gray.800","gray.900","black"],Le=t(93924),De=t(83986),ze=t(48931),Ee=t(96699),Ze=t(40155),Te=t(56769),Be=t(6569),Re=t(67897),Fe=t(88134),He=t(47647);function Ae(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ae(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ae(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var We=function(e){var n=e.filter,t=e.setFilter,r=e.tags,i=e.highlightColor,o=e.mode,l=r.map((function(e){return{value:e,label:e}})),c="blacklist"===o?"tagsBlacklist":"tagsWhitelist",d=(0,u.useState)(n[c].map((function(e){return{value:e,label:e}}))),h=d[0],g=d[1];return(0,a.jsx)(He.CUIAutoComplete,{items:l,label:"Add tag to "+o,placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:h,onSelectedItemsChange:function(e){e.selectedItems&&(g(e.selectedItems),t(Ve(Ve({},n),{},(0,s.Z)({},c,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}})},Me=t(2827);function Xe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _e(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xe(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var qe=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,o=e.tags.map((function(e){return{value:e,label:e}})),l=(0,u.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=l[0],d=l[1];return(0,a.jsxs)(w.xu,{children:[(0,a.jsx)(He.CUIAutoComplete,{items:o,label:"Add tag to filter",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(d(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{focusBorderColor:i,color:"gray.800",borderColor:"gray.600"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,a.jsx)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,a.jsx)(w.xu,{width:"100%",children:(0,a.jsx)(W.x,{fontWeight:"bold",children:e})}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,colorScheme:"",color:"black",children:(0,a.jsx)(w.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsx)(Re.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,a.jsx)(Re.sN,{onClick:function(){return r(_e(_e({},t),{},(0,s.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,a.jsx)(w.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})]})]}),(0,a.jsx)(v.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,a.jsx)(Me.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),d(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})};function Ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ue(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ge=function(e){var n=e.filter,t=e.setFilter,r=e.tagColors,i=e.setTagColors,o=e.highlightColor,l=e.colorList,s=e.tags;return(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Link children to..."}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,rightIcon:(0,a.jsx)(Be.v,{}),colorScheme:"",color:"black",children:function(){switch(n.parent){case"parent":return(0,a.jsx)(W.x,{children:"File"});case"heading":return(0,a.jsx)(W.x,{children:"Heading"});default:return(0,a.jsx)(W.x,{children:"Nothing"})}}()}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,a.jsx)(Re.sN,{onClick:function(){return t((function(e){return Qe(Qe({},e),{},{parent:""})}))},children:"Nothing"}),(0,a.jsx)(Re.sN,{onClick:function(){return t((function(e){return Qe(Qe({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,a.jsx)(Re.sN,{onClick:function(){return t((function(e){return Qe(Qe({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})]})]})]}),(0,a.jsxs)(b.k,{justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Orphans"}),(0,a.jsx)(Fe.r,{onChange:function(){t((function(e){return Qe(Qe({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,a.jsxs)(b.k,{justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Citations without note files"}),(0,a.jsx)(Fe.r,{onChange:function(){t(Qe(Qe({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,a.jsxs)(b.k,{justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Non-existant nodes"}),(0,a.jsx)(Fe.r,{onChange:function(){i(Qe(Qe({},r),{},{bad:"white"})),t(Qe(Qe({},n),{},{bad:!n.bad}))},isChecked:n.bad})]})]}),(0,a.jsxs)(Te.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,a.jsxs)(Te.Qd,{children:[(0,a.jsxs)(Te.KF,{children:["Tag filters",(0,a.jsx)(Te.XE,{})]}),(0,a.jsxs)(Te.Hk,{pr:0,mr:0,children:[(0,a.jsx)(We,{highlightColor:o,filter:n,setFilter:t,tags:s,mode:"blacklist"}),(0,a.jsx)(We,{highlightColor:o,filter:n,setFilter:t,tags:s,mode:"whitelist"})]})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsxs)(Te.KF,{children:["Tag Colors",(0,a.jsx)(Te.XE,{})]}),(0,a.jsx)(Te.Hk,{pr:0,mr:0,children:(0,a.jsx)(qe,{tags:s,colorList:l,tagColors:r,setTagColors:i,highlightColor:o})})]})]})]})},Je=t(15267),Ke=t(24189),Ye=function(e){var n=e.infoText;return(0,a.jsx)(w.xu,{paddingLeft:"1",children:(0,a.jsx)(Ee.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,a.jsx)(Ke.h,{})})})},$e=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,a.jsxs)(w.xu,{paddingTop:2,children:[(0,a.jsxs)(w.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,a.jsxs)(w.xu,{display:"flex",alignItems:"center",children:[(0,a.jsx)(W.x,{children:r}),i&&(0,a.jsx)(Ye,{infoText:i})]}),(0,a.jsx)(Fe.r,{isChecked:!!n,onChange:t})]}),(0,a.jsx)(Je.U,{in:!!n,animateOpacity:!0,children:(0,a.jsx)(w.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]},r)},en=t(24682),nn=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,l=void 0===o?.1:o,s=e.value,c=void 0===s?1:s,d=(0,j.Z)(e,["min","max","step","value"]),h=d.onChange,g=d.label,f=d.infoText,p=(0,u.useContext)(_.N).highlightColor;return(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)(w.xu,{display:"flex",alignItems:"flex-end",children:[(0,a.jsx)(W.x,{children:g}),f&&(0,a.jsx)(Ye,{infoText:f})]}),(0,a.jsxs)(en.iR,{value:c,onChange:h,min:t,max:i,step:l,children:[(0,a.jsx)(en.Uj,{children:(0,a.jsx)(en.Ms,{})}),(0,a.jsx)(Ee.u,{bg:p,label:c.toFixed(1),children:(0,a.jsx)(en.gs,{bg:"white"})})]})]},g)};function tn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function rn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?tn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var on=function(e){var n=e.physics,t=e.setPhysics,r=(0,u.useCallback)((function(e,n,r){t((function(t){return rn(rn({},t),{},(0,s.Z)({},n,e/r))}))}),[]);return(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,a.jsxs)($e,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(rn(rn({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,a.jsxs)(b.k,{justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Also in local"}),(0,a.jsx)(Fe.r,{onChange:function(){t((function(e){return rn(rn({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,a.jsx)(nn,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,a.jsx)(nn,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,a.jsx)($e,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(rn(rn({},n),{},{collision:!n.collision}))},children:(0,a.jsx)(nn,{value:n.collisionStrength/5,onChange:function(e){return r(e,"collisionStrength",.2)},label:"Collision Radius",infoText:"Easy with this one, high values can lead to a real jiggly mess"})}),(0,a.jsx)(nn,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,a.jsx)(nn,{label:"Link Iterations",value:n.linkIts,onChange:function(e){return r(e,"linkIts",1)},min:0,max:6,step:1,infoText:"How many links down the line the physics of a single node affects (Slow)"}),(0,a.jsx)(nn,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}})]}),(0,a.jsx)(w.xu,{children:(0,a.jsx)(Te.UQ,{paddingLeft:3,allowToggle:!0,children:(0,a.jsxs)(Te.Qd,{children:[(0,a.jsxs)(Te.KF,{children:[(0,a.jsx)(W.x,{children:"Advanced"}),(0,a.jsx)(Te.XE,{marginRight:2})]}),(0,a.jsx)(Te.Hk,{children:(0,a.jsxs)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,a.jsx)(nn,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}}),(0,a.jsx)($e,{label:"Center nodes",value:n.centering,onChange:function(){return t(rn(rn({},n),{},{centering:!n.centering}))},infoText:"Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.",children:(0,a.jsx)(nn,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})},ln=t(46049);function sn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function cn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?sn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):sn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var an=function(e){var n=e.visuals,t=e.setVisuals;return(0,a.jsx)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,a.jsx)(w.xu,{children:(0,a.jsx)($e,{label:"Highlight",onChange:function(){return t((function(e){return cn(cn({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,a.jsxs)(re.gC,{spacing:1,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,a.jsx)(nn,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return cn(cn({},n),{},{highlightLinkSize:e})}))}}),(0,a.jsx)(nn,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return cn(cn({},n),{},{highlightNodeSize:e})}))}}),(0,a.jsx)(nn,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return cn(cn({},n),{},{highlightFade:e})}))}}),(0,a.jsxs)($e,{label:"Highlight Animation",onChange:function(){t((function(e){return cn(cn({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,a.jsx)(nn,{label:"Animation speed",onChange:function(e){return t((function(n){return cn(cn({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,a.jsx)(ln.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return cn(cn({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,a.jsx)("option",{value:e,children:e},e)}))})]})]})})})})},un=t(67546),dn=t(93441);function hn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function gn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?hn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):hn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var fn=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visValue,o=e.setVisuals,l=(0,u.useCallback)((function(e){return o((function(n){return gn(gn({},n),{},(0,s.Z)({},r,e))}))}),[]);return(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:n}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,colorScheme:"",color:"black",rightIcon:(0,a.jsx)(Be.v,{}),children:(0,a.jsx)(w.xu,{bgColor:i,borderRadius:"sm",height:6,width:6})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,a.jsx)(Re.sN,{onClick:function(){return l("")},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,a.jsx)(w.xu,{height:6,width:6})}),t.map((function(e){return(0,a.jsx)(Re.sN,{onClick:function(){return l(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,a.jsx)(w.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]})};function pn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jn=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,i=e.setHighlightColor;return(0,a.jsx)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Nodes"}),(0,a.jsx)(Ee.u,{label:"Shuffle node colors",children:(0,a.jsx)(v.h,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,a.jsx)(un.n,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(xn(xn({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,c.Z)(e,1)[0]-(0,c.Z)(n,1)[0]})).map((function(e){var n=(0,c.Z)(e,2);n[0];return n[1]}))}))}})}),(0,a.jsx)(Ee.u,{label:"Cycle node colors",children:(0,a.jsx)(v.h,{"aria-label":"Shift node colors",icon:(0,a.jsx)(dn.L,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(xn(xn({},n),{},{nodeColorScheme:[].concat((0,l.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,a.jsx)(Re.j2,{width:20,as:Ze.z,colorScheme:"",color:"black",rightIcon:(0,a.jsx)(Be.v,{}),children:(0,a.jsx)(b.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,a.jsx)(w.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsx)(Re.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,a.jsx)(Re.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(xn(xn({},n),{},{nodeColorScheme:e}))},children:Ie.map((function(e){return(0,a.jsx)(Re.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,a.jsx)(w.xu,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,a.jsx)(w.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Links"}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,colorScheme:"",color:"black",rightIcon:(0,a.jsx)(Be.v,{}),children:(0,a.jsx)(w.xu,{children:n.linkColorScheme?(0,a.jsx)(w.xu,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,a.jsx)(b.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,a.jsx)(w.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,a.jsx)(Re.sN,{onClick:function(){return t(xn(xn({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,a.jsx)(b.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,a.jsx)(w.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),Ie.map((function(e){return(0,a.jsx)(Re.sN,{onClick:function(){return t(xn(xn({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,a.jsx)(w.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Accent"}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,colorScheme:"",color:"black",rightIcon:(0,a.jsx)(Be.v,{}),children:(0,a.jsx)(w.xu,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsx)(Re.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:Ie.map((function(e){return(0,a.jsx)(Re.sN,{onClick:function(){return i(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,a.jsx)(w.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,a.jsx)(fn,{colorList:Ie,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,a.jsx)(fn,{colorList:Ie,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,a.jsx)(fn,{colorList:Ie,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,a.jsx)(fn,{colorList:Ie,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function bn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?bn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):bn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var yn=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,a.jsx)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,a.jsxs)(w.xu,{children:[(0,a.jsx)(nn,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(vn(vn({},n),{},{nodeRel:e}))}}),(0,a.jsx)(nn,{label:"Node connections size scale",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(vn(vn({},n),{},{nodeSizeLinks:e}))}}),(0,a.jsx)(nn,{label:"Node zoom invariance",value:n.nodeZoomSize,min:0,max:2,infoText:"How much the graph will try to keep the nodesize consistent across zoom scales. 0 is no consistency, node will always be their true size, 1 is linear, 2 is quadratic.",onChange:function(e){return t((function(n){return vn(vn({},n),{},{nodeZoomSize:e})}))}}),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nn,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(vn(vn({},n),{},{nodeOpacity:e}))}}),(0,a.jsx)(nn,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(vn(vn({},n),{},{nodeResolution:e}))}})]}),(0,a.jsx)(nn,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(vn(vn({},n),{},{linkWidth:e}))}}),r&&(0,a.jsx)(nn,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(vn(vn({},n),{},{linkOpacity:e}))}}),(0,a.jsxs)($e,{label:"Link arrows",value:n.arrows,onChange:function(){return t(vn(vn({},n),{},{arrows:!n.arrows}))},children:[(0,a.jsx)(nn,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(vn(vn({},n),{},{arrowsLength:10*e}))}}),(0,a.jsx)(nn,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(vn(vn({},n),{},{arrowsPos:e}))}}),(0,a.jsx)(fn,{colorList:Ie,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,a.jsxs)($e,{label:"Directional Particles",value:n.particles,onChange:function(){return t(vn(vn({},n),{},{particles:!n.particles}))},children:[(0,a.jsx)(nn,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(vn(vn({},n),{},{particlesNumber:e}))}}),(0,a.jsx)(nn,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(vn(vn({},n),{},{particlesWidth:e}))}})]})]})})};function mn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Cn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?mn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var On=function(e){var n=e.visuals,t=e.setVisuals;return(0,a.jsx)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Show labels"}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,colorScheme:"",color:"black",rightIcon:(0,a.jsx)(Be.v,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,a.jsx)(Re.sN,{onClick:function(){return t(Cn(Cn({},n),{},{labels:0}))},children:"Never"}),(0,a.jsx)(Re.sN,{onClick:function(){return t(Cn(Cn({},n),{},{labels:1}))},children:"On Highlight"}),(0,a.jsx)(Re.sN,{onClick:function(){return t(Cn(Cn({},n),{},{labels:2}))},children:"Always"}),(0,a.jsx)(Re.sN,{onClick:function(){return t(Cn(Cn({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,a.jsxs)(re.gC,{spacing:1,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:2,color:"gray.800",children:[(0,a.jsx)(nn,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Cn(Cn({},n),{},{labelFontSize:e}))}}),(0,a.jsx)(nn,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Cn(Cn({},n),{},{labelLength:e}))}}),(0,a.jsx)(nn,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Cn(Cn({},n),{},{labelWordWrap:e}))}}),(0,a.jsx)(nn,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Cn(Cn({},n),{},{labelLineSpace:e}))}}),(0,a.jsx)(fn,{colorList:Ie,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,a.jsx)(fn,{colorList:Ie,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,a.jsx)(Je.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,a.jsx)(w.xu,{paddingTop:2,children:(0,a.jsx)(nn,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Cn(Cn({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})}),(0,a.jsx)(Je.U,{in:n.labels>1,animateOpacity:!0,children:(0,a.jsx)(w.xu,{paddingTop:2,children:(0,a.jsx)(nn,{label:"Label Appearance Scale",value:5*n.labelScale,onChange:function(e){return t(Cn(Cn({},n),{},{labelScale:e/5}))}})})})]})]})})};function wn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function kn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Sn=function(e){var n=e.visuals,t=e.setVisuals;return(0,a.jsx)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,a.jsxs)(w.xu,{children:[(0,a.jsxs)($e,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(kn(kn({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,a.jsx)(nn,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(kn(kn({},n),{},{citeDashLength:10*e}))}}),(0,a.jsx)(nn,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(kn(kn({},n),{},{citeGapLength:5*e}))}})]}),(0,a.jsx)(fn,{colorList:Ie,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,a.jsx)(fn,{colorList:Ie,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,a.jsx)(fn,{colorList:Ie,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,a.jsxs)($e,{label:"Dash ref links",infoText:"Add dashes to citation links, whose target has a note, made with org-roam-bibtex",value:n.refDashes,onChange:function(){return t(kn(kn({},n),{},{refDashes:!n.refDashes}))},children:[(0,a.jsx)(nn,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(kn(kn({},n),{},{refDashLength:10*e}))}}),(0,a.jsx)(nn,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(kn(kn({},n),{},{refGapLength:5*e}))}})]}),(0,a.jsx)(fn,{colorList:Ie,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,a.jsx)(fn,{colorList:Ie,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,a.jsx)(fn,{colorList:Ie,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})},Pn=function(e){var n=e.visuals,t=e.setVisuals,r=e.highlightColor,i=e.setHighlightColor,o=e.threeDim,l=(0,u.useCallback)((function(e){return t(e)}),[]);return(0,a.jsx)(re.gC,{justifyContent:"flex-start",align:"stretch",children:(0,a.jsxs)(Te.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,a.jsxs)(Te.Qd,{children:[(0,a.jsx)(Te.KF,{children:(0,a.jsxs)(b.k,{justifyContent:"space-between",w:"100%",children:[(0,a.jsx)(W.x,{children:"Colors"}),(0,a.jsx)(Te.XE,{marginRight:2})]})}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(jn,{visuals:n,setVisualsCallback:l,highlightColor:r,setHighlightColor:i})})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsx)(Te.KF,{children:(0,a.jsxs)(b.k,{justifyContent:"space-between",w:"100%",children:[(0,a.jsx)(W.x,{children:"Nodes & Links"}),(0,a.jsx)(Te.XE,{marginRight:2})]})}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(yn,{visuals:n,setVisuals:l,threeDim:o})})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsx)(Te.KF,{children:(0,a.jsxs)(b.k,{justifyContent:"space-between",w:"100%",children:[(0,a.jsx)(W.x,{children:"Labels"}),(0,a.jsx)(Te.XE,{marginRight:2})]})}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(On,{visuals:n,setVisuals:l})})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsx)(Te.KF,{children:(0,a.jsxs)(b.k,{justifyContent:"space-between",w:"100%",children:[(0,a.jsx)(W.x,{children:"Highlighting"}),(0,a.jsx)(Te.XE,{marginRight:2})]})}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(an,{visuals:n,setVisuals:l})})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsx)(Te.KF,{children:(0,a.jsxs)(b.k,{justifyContent:"space-between",w:"100%",children:[(0,a.jsx)(W.x,{children:"Citations"}),(0,a.jsx)(Te.XE,{marginRight:2})]})}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(Sn,{visuals:n,setVisuals:l})})]})]})})};function Nn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function In(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Nn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ln=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,i=e.setMouse;return(0,a.jsxs)(re.gC,{spacing:2,justifyContent:"flex-start",divider:(0,a.jsx)(re.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Preview node"}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,rightIcon:(0,a.jsx)(Be.v,{}),colorScheme:"",color:"black",children:(0,a.jsx)(W.x,{children:r.preview?r.preview[0].toUpperCase()+r.preview.slice(1):"Never"})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{preview:""}))},children:"Never"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{preview:"click"}))},children:"Click"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{preview:"double"}))},children:"Double Click"})]})]})]})]}),(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsxs)(b.k,{children:[(0,a.jsx)(W.x,{children:"Expand Node"}),(0,a.jsx)(Ye,{infoText:"View only the node and its direct neighbors"})]}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,rightIcon:(0,a.jsx)(Be.v,{}),colorScheme:"",color:"black",children:(0,a.jsx)(W.x,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{local:""}))},children:"Never"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{local:"click"}))},children:"Click"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{local:"double"}))},children:"Double Click"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Open in Emacs"}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,rightIcon:(0,a.jsx)(Be.v,{}),colorScheme:"",color:"black",children:(0,a.jsx)(W.x,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{follow:""}))},children:"Never"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{follow:"click"}))},children:"Click"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{follow:"double"}))},children:"Double Click"}),(0,a.jsx)(Re.sN,{onClick:function(){return i(In(In({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsx)(W.x,{children:"Follow Emacs by..."}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,rightIcon:(0,a.jsx)(Be.v,{}),colorScheme:"",color:"black",children:(0,a.jsx)(W.x,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,a.jsx)(Re.sN,{onClick:function(){return t(In(In({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,a.jsx)(Re.sN,{onClick:function(){return t(In(In({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,a.jsx)(Re.sN,{onClick:function(){return t(In(In({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,a.jsxs)(b.k,{alignItems:"center",justifyContent:"space-between",children:[(0,a.jsxs)(b.k,{children:[(0,a.jsx)(W.x,{children:"Local graph"}),(0,a.jsx)(Ye,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,a.jsxs)(Re.v2,{isLazy:!0,placement:"right",children:[(0,a.jsx)(Re.j2,{as:Ze.z,rightIcon:(0,a.jsx)(Be.v,{}),colorScheme:"",color:"black",children:(0,a.jsx)(W.x,{children:"add"===n.localSame?"Add":"Replace"})}),(0,a.jsxs)(X.h,{children:[" ",(0,a.jsxs)(Re.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,a.jsx)(Re.sN,{onClick:function(){return t(In(In({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,a.jsx)(Re.sN,{onClick:function(){return t(In(In({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,a.jsx)(nn,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(In(In({},n),{},{zoomSpeed:e}))}}),(0,a.jsx)(nn,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(In(In({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})};function Dn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function zn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Dn(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var En=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,i=e.setThreeDim,o=e.filter,l=e.setFilter,s=e.visuals,d=e.setVisuals,h=e.mouse,g=e.setMouse,p=e.behavior,x=e.setBehavior,b=e.tags,y=e.tagColors,m=e.setTagColors,C=f("showTweaks",!1),O=(0,c.Z)(C,2),k=O[0],S=O[1],P=(0,u.useContext)(_.N),N=P.highlightColor,I=P.setHighlightColor;return k?(0,a.jsxs)(w.xu,{bg:"alt.100",w:"xs",marginTop:10,marginLeft:10,borderRadius:"xl",paddingBottom:5,zIndex:300,position:"relative",boxShadow:"xl",maxH:.92*globalThis.innerHeight,marginBottom:10,children:[(0,a.jsxs)(w.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,a.jsx)(Ee.u,{label:"2D",children:(0,a.jsx)(Ze.z,{onClick:function(){return i(!r)},variant:"ghost",zIndex:"overlay",children:r?"3D":"2D"})}),(0,a.jsxs)(w.xu,{display:"flex",alignItems:"center",children:[(0,a.jsx)(Ee.u,{label:"Reset settings to defaults",children:(0,a.jsx)(v.h,{"aria-label":"Reset Defaults",icon:(0,a.jsx)(De.A,{}),onClick:function(){d(Se),l(ke),g(Ne),t(we),x(Pe)},variant:"none",size:"sm"})}),(0,a.jsx)(v.h,{size:"sm",icon:(0,a.jsx)(ze.T,{}),"aria-label":"Close Tweak Panel",variant:"ghost",onClick:function(){return S(!1)}})]})]}),(0,a.jsx)(ae.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,j.Z)(e,["style"]);return(0,a.jsx)(w.xu,zn(zn({},t),{},{style:zn(zn({},n),{},{borderRadius:10}),bg:N}))},children:(0,a.jsxs)(Te.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,a.jsxs)(Te.Qd,{children:[(0,a.jsxs)(Te.KF,{children:[(0,a.jsx)(Te.XE,{marginRight:2}),(0,a.jsx)(te.X,{size:"sm",children:"Filter"})]}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(Ge,{filter:o,setFilter:l,tagColors:y,setTagColors:m,highlightColor:N,colorList:Ie,tags:b})})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsx)(Te.KF,{display:"flex",justifyContent:"space-between",children:(0,a.jsxs)(w.xu,{display:"flex",children:[(0,a.jsx)(Te.XE,{marginRight:2}),(0,a.jsx)(te.X,{size:"sm",children:"Physics"})]})}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(on,{physics:n,setPhysics:t})})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsxs)(Te.KF,{children:[(0,a.jsx)(Te.XE,{marginRight:2}),(0,a.jsx)(te.X,{size:"sm",children:"Visual"})]}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(Pn,{visuals:s,setVisuals:d,highlightColor:N,setHighlightColor:I,threeDim:r})})]}),(0,a.jsxs)(Te.Qd,{children:[(0,a.jsxs)(Te.KF,{children:[(0,a.jsx)(Te.XE,{marginRight:2}),(0,a.jsx)(te.X,{size:"sm",children:"Behavior"})]}),(0,a.jsx)(Te.Hk,{children:(0,a.jsx)(Ln,{behavior:p,setBehavior:x,mouse:h,setMouse:g})})]})]})})]}):(0,a.jsx)(w.xu,{position:"absolute",zIndex:"overlay",marginTop:10,marginLeft:10,display:k?"none":"block",children:(0,a.jsx)(v.h,{variant:"ghost","aria-label":"Settings",icon:(0,a.jsx)(Le.e,{}),onClick:function(){return S(!0)}})})},Zn=t(34552),Tn=t(94030),Bn=t(55830),Rn=t(46617),Fn=t(50862),Hn=t(68928);function An(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function Vn(e,n){An("open",{id:e.id},n)}var Wn=function(e){e.background;var n=e.node,t=(e.nodeType,e.coordinates),r=e.handleLocal,i=e.menuClose,o=e.scope,l=e.webSocket,s=e.setPreviewNode,c=(0,xe.q)(),d=c.isOpen,h=c.onOpen,g=c.onClose;(0,u.useRef)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.xu,{position:"absolute",zIndex:"overlay",left:t[0]+10,top:t[1]-10,padding:5,children:(0,a.jsx)(Re.v2,{closeOnBlur:!1,defaultIsOpen:!0,onClose:function(){return i()},children:(0,a.jsxs)(Re.qy,{zIndex:"overlay",bgColor:"alt.100",borderColor:"gray.500",maxWidth:"xs",children:[n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(te.X,{size:"sm",isTruncated:!0,px:3,py:1,children:n.title}),(0,a.jsx)(Re.R,{borderColor:"gray.500"})]}),0!==o.nodeIds.length&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Re.sN,{onClick:function(){return r(n,"add")},icon:(0,a.jsx)(Tn.I,{}),children:"Expand local graph at node"}),(0,a.jsx)(Re.sN,{onClick:function(){return r(n,"replace")},icon:(0,a.jsx)(Bn.O,{}),children:"Open local graph for this node"})]}),null!==n&&void 0!==n&&n.properties.FILELESS?(0,a.jsx)(Re.sN,{icon:(0,a.jsx)(Fn.d,{}),onClick:function(){return function(e,n){An("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(n,l)},children:"Create node"}):(0,a.jsx)(Re.sN,{icon:(0,a.jsx)(Rn.d,{}),onClick:function(){return Vn(n,l)},children:"Open in Emacs"}),(null===n||void 0===n?void 0:n.properties.ROAM_REFS)&&(0,a.jsx)(Re.sN,{icon:(0,a.jsx)(Hn.h,{}),children:"Open in Zotero"}),0===o.nodeIds.length&&(0,a.jsx)(Re.sN,{icon:(0,a.jsx)(y.DvO,{}),onClick:function(){return r(n,"replace")},children:"Open local graph"}),(0,a.jsx)(Re.sN,{icon:(0,a.jsx)(Bn.O,{}),onClick:function(){s(n)},children:"Preview"}),0===(null===n||void 0===n?void 0:n.level)&&(0,a.jsx)(Re.sN,{closeOnSelect:!1,icon:(0,a.jsx)(Me.p,{color:"red.500"}),color:"red.500",onClick:h,children:"Permenantly delete note"})]})})}),(0,a.jsxs)(Zn.u_,{isCentered:!0,isOpen:d,onClose:g,children:[(0,a.jsx)(Zn.ZA,{}),(0,a.jsxs)(Zn.hz,{zIndex:"popover",children:[(0,a.jsx)(Zn.xB,{children:"Delete node?"}),(0,a.jsx)(Zn.ol,{}),(0,a.jsx)(Zn.fe,{children:(0,a.jsxs)(re.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,a.jsx)(W.x,{children:"This will permanently delete your note:"}),(0,a.jsx)(W.x,{fontWeight:"bold",children:null===n||void 0===n?void 0:n.title}),0!==(null===n||void 0===n?void 0:n.level)&&(0,a.jsx)(W.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,a.jsx)(W.x,{children:"Are you sure you want to do continue?"})]})}),(0,a.jsxs)(Zn.mz,{children:[(0,a.jsx)(Ze.z,{mr:3,onClick:function(){console.log("closing"),g(),i()},children:"Cancel"}),(0,a.jsx)(Ze.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&An("delete",{id:e.id,file:e.file},n)}(n,l),g(),i()},children:"Delete node"})]})]})]})]})},Mn=t(31122),Xn=t(22663),_n=t.n(Xn),qn=t(22003);function Un(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Qn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Un(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Un(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Gn=t.e(4).then(t.bind(t,57004)),Jn=t.g.window?t(61957).f$:null,Kn=t.g.window?t(61957).s6:null;function Yn(){var e=(0,u.useState)(!1),n=e[0],t=e[1];return(0,u.useEffect)((function(){t(!0)}),[]),n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.default,{children:(0,a.jsx)("title",{children:"ORUI"})}),(0,a.jsx)($n,{})]}):null}function $n(){var e=f("3d",!1),n=(0,c.Z)(e,2),t=n[0],r=n[1],i=f("tagCols",{}),o=(0,c.Z)(i,2),d=o[0],h=o[1],g=(0,u.useState)({nodeIds:[]}),p=g[0],x=g[1],j=f("physics",we),y=(0,c.Z)(j,2),m=y[0],C=y[1],O=f("filter",ke),k=(0,c.Z)(O,2),S=k[0],P=k[1],N=f("visuals",Se),I=(0,c.Z)(N,2),L=I[0],D=I[1],z=(0,u.useState)(null),E=z[0],Z=z[1],T=(0,u.useState)(null),B=T[0],R=T[1],F=f("behavior",Pe),H=(0,c.Z)(F,2),A=H[0],V=H[1],W=f("mouse",Ne),M=(0,c.Z)(W,2),X=M[0],q=M[1],U=(0,u.useState)({}),Q=U[0],G=U[1],J=(0,u.useState)(null),K=J[0],Y=J[1],$=(0,xe.q)(),ee=$.isOpen,ne=$.onOpen,te=$.onClose,re=(0,u.useRef)({}),ie=(0,u.useRef)({}),oe=(0,u.useRef)({}),le=(0,u.useRef)([]),se=(0,u.useRef)(null),ce=(0,u.useRef)({nodes:[],links:[]});(0,u.useEffect)((function(){E&&(ce.current=E)}),[E]);var ae=(0,u.useContext)(_.N).setEmacsTheme,de=(0,u.useRef)({nodeIds:[]}),he=(0,u.useRef)(Pe);he.current=A;var fe=(0,u.useRef)(null);de.current=p;var pe=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var o=se.current,s=de.current,c=he.current,a=null!==(t=ie.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,l.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&x({nodeIds:[]}),void setTimeout((function(){return o.zoomToFit(r,i,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if("add"!==c.localSame)return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return x({nodeIds:[n]}),void setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50);x((function(e){return Qn(Qn({},e),{},{nodeIds:[].concat((0,l.Z)(e.nodeIds),[n])})})),setTimeout((function(){o.centerAt(0,0,10),o.zoomToFit(1,i)}),50)}};return(0,u.useEffect)((function(){fe.current=new qn.Z("ws://localhost:35903"),fe.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),fe.current.addEventListener("message",(function(e){var n=he.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,i=re.current;le.current=null!==(n=e.tags)&&void 0!==n?n:[];var o=null!==(t=e.nodes)&&void 0!==t?t:[],a=null!==(r=e.links)&&void 0!==r?r:[],u=o.reduce((function(e,n){var t;return Qn(Qn({},e),{},(0,s.Z)({},n.file,[].concat((0,l.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(n.title))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));re.current=Object.fromEntries(o.map((function(e){return[e.id,e]})));var g=[].concat((0,l.Z)(a),(0,l.Z)(d),(0,l.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return re.current[n]?re.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Qn(Qn({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Qn(Qn({},e),{},{type:"bad"}))}));re.current=Qn(Qn({},re.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),ie.current=p.reduce((function(e,n){var t,r,i;return Qn(Qn({},e),{},(i={},(0,s.Z)(i,n.source,[].concat((0,l.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,s.Z)(i,n.target,[].concat((0,l.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),i))}),{});var x=[].concat((0,l.Z)(o),f);oe.current=x.reduce((function(e,n){var t,r=null===(t=n.properties)||void 0===t?void 0:t.ROAM_REFS;if(null===r||void 0===r||!r.includes("cite"))return e;var i=r.replaceAll(/cite:(.*)/g,"$1");return i?Qn(Qn({},e),{},(0,s.Z)({},i,n)):e}),{});var j={nodes:x,links:p},b=ce.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return ce.current=v,void Z(v)}var y=[].concat((0,l.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=re.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Qn(Qn({},e),t)]:[]}))),(0,l.Z)(Object.keys(re.current).filter((function(e){return!i[e]})).map((function(e){return re.current[e]})))),m=y.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Qn(Qn({},e),{},(0,s.Z)({},r,t))}),{}),C=p.map((function(e){var n=tt(e),t=(0,c.Z)(n,2),r=t[0],i=t[1];return Qn(Qn({},e),{},{source:y[m[r]],target:y[m[i]]})}));Z({nodes:y,links:C})}(t.data);case"theme":return ae(t.data);case"command":switch(t.data.commandName){case"local":var r=A.zoomSpeed,i=A.zoomPadding;pe("local",t.data.id,r,i),R(t.data.id);break;case"zoom":var o,a,u=(null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;pe("zoom",t.data.id,u,d),R(t.data.id);break;case"follow":pe(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),R(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,u.useEffect)((function(){var e=se.current;!e||p.nodeIds.length>1||(p.nodeIds.length||!m.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[p.nodeIds]),E?(0,a.jsxs)(w.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100%",overflow:"hidden",children:[(0,a.jsxs)(w.xu,{display:"flex",justifyContent:"space-between",flexDirection:"row",height:"100%",width:"100%",children:[(0,a.jsx)(En,Qn(Qn({},{physics:m,setPhysics:C,threeDim:t,setThreeDim:r,filter:S,setFilter:P,visuals:L,setVisuals:D,mouse:X,setMouse:q,behavior:A,setBehavior:V,tagColors:d,setTagColors:h}),{},{tags:le.current})),(0,a.jsx)(b.k,{height:"100%",flexDirection:"column",marginLeft:"auto",children:!ee&&(0,a.jsx)(v.h,{icon:(0,a.jsx)(ue.U,{}),"aria-label":"Open org-viewer",zIndex:2,onClick:ne,variant:"ghost",marginTop:10,mr:8})})]}),(0,a.jsxs)(b.k,{position:"absolute",alignItems:"top",overflow:"hidden",children:[(0,a.jsx)(et,Qn({ref:se,nodeById:re.current,linksByNodeId:ie.current,webSocket:fe.current},{physics:m,graphData:E,threeDim:t,emacsNodeId:B,filter:S,visuals:L,behavior:A,mouse:X,scope:p,setScope:x,tagColors:d,setPreviewNode:G,sidebarHighlightedNode:K})),(0,a.jsx)(ge,Qn(Qn({},{isOpen:ee,onOpen:ne,onClose:te,previewNode:Q,setPreviewNode:G,setSidebarHighlightedNode:Y}),{},{nodeById:re.current,linksByNodeId:ie.current,nodeByCite:oe.current}))]})]}):null}var et=(0,u.forwardRef)((function(e,n){var t=e.physics,r=e.graphData,d=e.threeDim,h=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,p=e.nodeById,j=e.visuals,b=e.behavior,v=e.mouse,y=e.scope,m=e.setScope,C=e.webSocket,O=e.tagColors,k=e.setPreviewNode,S=e.sidebarHighlightedNode,P=(0,fe.iP)(),N=(0,c.Z)(P,2),I=(N[0],N[1]),L=(0,u.useState)(null),D=L[0],z=L[1],E=(0,u.useState)(null),Z=E[0],T=E[1],B=(0,u.useState)([0,0]),R=B[0],F=B[1],H=(0,V.useTheme)(),A=(0,u.useContext)(_.N).emacsTheme,W=function(e,n){"replace"!==n?y.nodeIds.includes(e.id)||m((function(n){return Qn(Qn({},n),{},{nodeIds:[].concat((0,l.Z)(n.nodeIds),[e.id])})})):m({nodeIds:[e.id]})},M=(0,xe.q)(),X=function(e,n,t){switch(e){case v.local:W(n,b.localSame);break;case v.follow:Vn(n,C);break;case v.context:!function(e,n){F([n.pageX,n.pageY]),T(e),M.onOpen()}(n,t);case v.preview:k(n)}},q=(0,u.useRef)(null);(0,u.useEffect)((function(){f&&z(p[f])}),[f]);var U=(0,u.useRef)({}),Q=(0,u.useRef)({}),G=(0,u.useMemo)((function(){var e;Q.current={};var n=null===r||void 0===r||null===(e=r.nodes)||void 0===e?void 0:e.filter((function(e){var n=e;return g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){return n.tags.indexOf(e)>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){return n.tags.indexOf(e)>-1}))||g.filelessCites&&n.properties.FILELESS?(Q.current=Qn(Qn({},Q.current),{},(0,s.Z)({},n.id,n)),!1):!g.bad||!n.properties.bad||(Q.current=Qn(Qn({},Q.current),{},(0,s.Z)({},n.id,n)),!1)})).filter((function(e){var n,t=(null!==(n=h[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!Q.current[e.source]&&!Q.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),i=r.links.filter((function(e){var n=tt(e),r=(0,c.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var l=e;return g.parent?"heading"===g.parent?"parent"!==l.type:"heading"!==l.type:!["parent","heading"].includes(l.type)}));return U.current=i.reduce((function(e,n){var t,r,i,o=n,a=tt(o),u=(0,c.Z)(a,2),d=u[0],h=u[1];return Qn(Qn({},e),{},(i={},(0,s.Z)(i,d,[].concat((0,l.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[o])),(0,s.Z)(i,h,[].concat((0,l.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[o])),i))}),{}),{nodes:n,links:i}}),[g,r]),J=(0,u.useState)({nodes:[],links:[]}),K=J[0],Y=J[1];(0,u.useEffect)((function(){if(y.nodeIds.length){var e=y.nodeIds.length>1?K.nodes:[],n=e.map((function(e){return e.id})),t=function(e,n){var t=[e[0]],r=[],i=[e[0]];return Array.from({length:n},(function(){t.forEach((function(e){var n;(null!==(n=U.current[e])&&void 0!==n?n:[]).forEach((function(e){var n=tt(e),t=(0,c.Z)(n,2),o=t[0],l=t[1];i.includes(o)?i.includes(l)||r.push(l):r.push(o)}))})),t=r,r.forEach((function(e){return e&&i.push(e)})),r=[]})),i}(y.nodeIds,1),r=G.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=U.current[r.id])&&void 0!==i?i:[]).some((function(e){return y.nodeIds.includes(e.source)||y.nodeIds.includes(e.target)})):t.includes(r.id)})).map((function(e){return Qn(Qn({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,l.Z)(e),(0,l.Z)(r)),o=i.map((function(e){return e.id})),s=y.nodeIds.length>1?K.links:[],a=G.links.filter((function(e){var t=tt(e),r=(0,c.Z)(t,2),i=r[0],l=r[1];return!(s.length&&n.includes(l)&&n.includes(i))&&(o.includes(i)&&o.includes(l))})).map((function(e){var n=tt(e),t=(0,c.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,l.Z)(s),(0,l.Z)(a));Y({nodes:i,links:u})}}),[g,y,r]),(0,u.useEffect)((function(){(0,o.Z)(i().mark((function e(){var r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Gn;case 3:o=e.sent,!t.gravityOn||y.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),d&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),d&&r.d3Force("z",o.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",o.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,d,y]),(0,u.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,y.nodeIds.length]);var $=(0,u.useRef)(0),ee=(0,u.useState)(1),ne=ee[0],te=ee[1],re=(0,pe._7)((function(e){return te(e)}),{duration:j.animationSpeed,algorithm:Oe[j.algorithmName]}),ie=(0,c.Z)(re,2),oe=ie[0],le=ie[1],se=(0,pe._7)((function(e){return te(Math.min(ne,-1*(e-1)))}),{duration:j.animationSpeed,algorithm:Oe[j.algorithmName]}),ce=(0,c.Z)(se,2),ae=ce[0],ue=ce[1];(0,u.useEffect)((function(){console.log("aaa"),null!==S&&void 0!==S&&S.id?z(S):z(null)}),[S]);var de=(0,u.useMemo)((function(){if(!q.current)return{};var e=U.current[q.current.id];return e?Object.fromEntries([q.current.id].concat((0,l.Z)(e.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(q.current),JSON.stringify(U.current)]),he=(0,u.useRef)(null);(0,u.useEffect)((function(){if(q.current=D,D&&(he.current=D),!j.highlightAnim)return te(D?1:0);D?oe():(le(),ne>.5?ae():te(0))}),[D]);var ge=(0,u.useMemo)((function(){return Object.fromEntries(Ie.map((function(e){var n=rt(e,H),t=Ie.map((function(e){return[e,x.Z(n,rt(e,H))]}));return[e,Object.fromEntries(t)]})))}),[A]),je=(0,u.useMemo)((function(){var e,n,t,r=null!==(e=U.current[null===(n=he.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=he.current)||void 0===t?void 0:t.id].concat((0,l.Z)(r.flatMap((function(e){return tt(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(D),he.current,U.current]),be=function(e){var n,t,r,i,o,l=null!==(n=null===(t=U.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return j.nodeColorScheme[(r=l,i=0,o=j.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]},ve=function(e,n){return U.current[e].length>U.current[n].length?be(e):be(n)},ye=(0,u.useMemo)((function(){return rt(j.labelTextColor,H)}),[j.labelTextColor,A]),me=(0,u.useMemo)((function(){return rt(j.labelBackgroundColor,H)}),[j.labelBackgroundColor,A]),Ce=function(e){var n,t=null!==(n=U.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*j.nodeSizeLinks-(g.parent?0:r);return 1===j.highlightNodeSize?i:i*(de[e.id]||je[e.id]?1+ne*(j.highlightNodeSize-1):1)},we=(0,u.useState)(!1),ke=we[0],Se=we[1],Pe=(0,u.useState)(1),Ne=Pe[0],Le=Pe[1],De={graphData:y.nodeIds.length?K:G,height:I,backgroundColor:H.colors.gray[j.backgroundColor],warmupTicks:1===y.nodeIds.length?100:y.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return Le(n)},nodeLabel:function(e){return e.title},nodeColor:function(e){return function(e,n){var t=de[e.id]||je[e.id];if(j.emacsNodeColor&&e.id===f)return rt(j.emacsNodeColor,n);if(O&&e.tags.some((function(e){return O[e]}))){var r=O[e.tags.filter((function(e){return O[e]}))[0]];return ge[r][j.backgroundColor](j.highlightFade*ne)}return j.citeNodeColor&&e.properties.ROAM_REFS&&e.properties.FILELESS?t?rt(j.citeNodeColor,n):ge[j.citeNodeColor][j.backgroundColor](j.highlightFade*ne):j.refNodeColor&&e.properties.ROAM_REFS?t?rt(j.refNodeColor,n):ge[j.refNodeColor][j.backgroundColor](j.highlightFade*ne):t?j.nodeHighlight?ge[be(e.id)][j.nodeHighlight](ne):rt(be(e.id),n):ge[be(e.id)][j.backgroundColor](j.highlightFade*ne)}(e,H)},nodeRelSize:j.nodeRel,nodeVal:function(e){return Ce(e)/Math.pow(Ne,j.nodeZoomSize)},nodeCanvasObject:function(e,n,t){if(e&&!ke&&j.labels){var r=je[e.id];if(!(t<=j.labelScale||1===j.labels)||de[e.id]||r){var i=e.title,o=i.substring(0,j.labelLength),s=j.labelFontSize/(.75*Math.min(Math.max(.5,t),3)),c=[1.1*n.measureText(o).width,s].map((function(e){return e+.5*s})),a=Math.min(3*(t-j.labelScale)/j.labelScale,1),u=function(){return 1===j.labels||t<=j.labelScale?ne:de[e.id]||je[e.id]?Math.max(a,ne):1*a*(-1*(j.highlightFade*ne-1))},d=8*Math.cbrt(Ce(e)*j.nodeRel);if(j.labelBackgroundColor&&j.labelBackgroundOpacity){var h=u()*j.labelBackgroundOpacity,g=it(me,h);n.fillStyle=g,n.fillRect.apply(n,[e.x-c[0]/2,e.y-c[1]/2+d].concat((0,l.Z)(c)))}var f=u();n.textAlign="center",n.textBaseline="middle";var p=it(ye,f);n.fillStyle=p,n.font="".concat(s,"px Sans-Serif");var x=_n()(o,{width:j.labelWordWrap}).split("\n");(i.length>j.labelLength?[].concat((0,l.Z)(x.slice(0,-1)),["".concat(x.slice(-1),"...")]):x).forEach((function(t,r){n.fillText(t,e.x,e.y+d+j.labelLineSpace*s*r)}))}}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:j.particles?j.particlesNumber:void 0,linkDirectionalArrowLength:j.arrows?j.arrowsLength:void 0,linkDirectionalArrowRelPos:j.arrowsPos,linkDirectionalArrowColor:j.arrowsColor?function(){return rt(j.arrowsColor,H)}:void 0,linkColor:function(e){var n,t="object"===typeof e.source?e.source.id:e.source,r="object"===typeof e.target?e.target.id:e.target,i=nt(e,q.current),o=nt(e,he.current),l=i||o,s=e;return j.refLinkColor&&"ref"===s.type?l&&(j.refLinkHighlightColor||j.linkHighlight)?ge[j.refLinkColor][j.refLinkHighlightColor||j.linkHighlight](ne):ge[j.refLinkColor][j.backgroundColor](j.highlightFade*ne):j.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(j.citeLinkHighlightColor||j.linkHighlight)?ge[j.citeLinkColor][j.citeLinkHighlightColor||j.linkHighlight](ne):ge[j.citeLinkColor][j.backgroundColor](j.highlightFade*ne):function(e,n,t,r){if(!j.linkHighlight&&!j.linkColorScheme&&!t)return rt(ve(e,n),r);if(!t&&!j.linkColorScheme){var i=ve(e,n);return ge[i][j.backgroundColor](j.highlightFade*ne)}return t?j.linkHighlight||j.linkColorScheme?j.linkHighlight?j.linkColorScheme?ge[j.linkColorScheme][j.linkHighlight](ne):ge[ve(e,n)][j.linkHighlight](ne):rt(j.linkColorScheme,r):rt(ve(e,n),r):ge[j.linkColorScheme][j.backgroundColor](j.highlightFade*ne)}(t,r,l,H)},linkWidth:function(e){if(1===j.highlightLinkSize)return j.linkWidth;var n=nt(e,q.current),t=nt(e,he.current);return n||t?j.linkWidth*(1+ne*(j.highlightLinkSize-1)):j.linkWidth},linkDirectionalParticleWidth:j.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e;M.onClose();var r=n.timeStamp-$.current<200;if($.current=n.timeStamp,r)return X("double",t,n);var i=$.current;return setTimeout((function(){if($.current===i)return X("click",t,n)}),200)},onBackgroundClick:function(){M.onClose(),z(null),0!==y.nodeIds.length&&m((function(e){return Qn(Qn({},e),{},{nodeIds:[]})}))},onNodeHover:function(e){j.highlight&&(D||(ue(),te(0)),z(e))},onNodeRightClick:function(e,n){X("right",e,n)},onNodeDrag:function(e){M.onClose(),z(e),Se(!0)},onNodeDragEnd:function(){z(null),Se(!1)}};return(0,a.jsxs)(w.xu,{overflow:"hidden",children:[M.isOpen&&(0,a.jsx)(Wn,{scope:y,node:Z,nodeType:null===Z||void 0===Z?void 0:Z.id,background:!1,coordinates:R,handleLocal:W,menuClose:M.onClose.bind(M),webSocket:C,setPreviewNode:k}),d?(0,a.jsx)(Kn,Qn(Qn({ref:n},De),{},{nodeThreeObjectExtend:!0,backgroundColor:H.colors.white,nodeOpacity:j.nodeOpacity,nodeResolution:j.nodeResolution,linkOpacity:j.linkOpacity,nodeThreeObject:function(e){if(j.labels&&(!(j.labels<3)||de[e.id])){var n=new Mn.Z(e.title.substring(0,40));return n.color=rt(j.labelTextColor,H),n.backgroundColor=rt(j.labelBackgroundColor,H),n.padding=2,n.textHeight=8,n}}})):(0,a.jsx)(Jn,Qn(Qn({ref:n},De),{},{linkLineDash:function(e){var n,t=e;return j.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[j.citeDashLength,j.citeGapLength]:j.refDashes&&"ref"==t.type?[j.refDashLength,j.refGapLength]:null}}))]})}));function nt(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function tt(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function rt(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function it(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(70843)}])}},function(e){e.O(0,[774,737,874,573,446,599,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
\ No newline at end of file
diff --git a/out/_next/static/chunks/webpack-8a4697025057d0bb5456.js b/out/_next/static/chunks/webpack-8a4697025057d0bb5456.js
new file mode 100644
index 0000000..644df52
--- /dev/null
+++ b/out/_next/static/chunks/webpack-8a4697025057d0bb5456.js
@@ -0,0 +1 @@
+!function(){"use strict";var e={},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}},u=!0;try{e[r].call(i.exports,i,i.exports,n),u=!1}finally{u&&delete t[r]}return i.loaded=!0,i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var u=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],i=e[f][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||u>=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(a=!1,i<u&&(u=i));a&&(e.splice(f--,1),t=o())}return t}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[r,o,i]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/chunks/"+e+".c9fdfbcb8f8ce1720633.js"},n.miniCssF=function(e){return"static/css/"+{599:"9aeb688eb5e47ce218d8",888:"331301db207a91d407e5"}[e]+".css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";n.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var a,c;if(void 0!==i)for(var f=document.getElementsByTagName("script"),l=0;l<f.length;l++){var s=f[l];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==t+i){a=s;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[o];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/_next/",function(){var e={272:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(272!=t){var i=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=i);var u=n.p+n.u(t),a=new Error;n.l(u,(function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,o[1](a)}}),"chunk-"+t,t)}else e[t]=0},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,u=r[0],a=r[1],c=r[2],f=0;for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=c(n);for(t&&t(r);f<u.length;f++)i=u[f],n.o(e,i)&&e[i]&&e[i][0](),e[u[f]]=0;return n.O(l)},r=self.webpackChunk_N_E=self.webpackChunk_N_E||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}()}();
\ No newline at end of file
diff --git a/out/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js b/out/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js
deleted file mode 100644
index 8ea7cee..0000000
--- a/out/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(){"use strict";var e={},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}},u=!0;try{e[r].call(i.exports,i,i.exports,n),u=!1}finally{u&&delete t[r]}return i.loaded=!0,i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var u=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],i=e[f][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||u>=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(a=!1,i<u&&(u=i));a&&(e.splice(f--,1),t=o())}return t}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[r,o,i]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/chunks/"+e+".c9fdfbcb8f8ce1720633.js"},n.miniCssF=function(e){return"static/css/331301db207a91d407e5.css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";n.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var a,c;if(void 0!==i)for(var f=document.getElementsByTagName("script"),l=0;l<f.length;l++){var s=f[l];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==t+i){a=s;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[o];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/_next/",function(){var e={272:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(272!=t){var i=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=i);var u=n.p+n.u(t),a=new Error;n.l(u,(function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,o[1](a)}}),"chunk-"+t,t)}else e[t]=0},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,u=r[0],a=r[1],c=r[2],f=0;for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=c(n);for(t&&t(r);f<u.length;f++)i=u[f],n.o(e,i)&&e[i]&&e[i][0](),e[u[f]]=0;return n.O(l)},r=self.webpackChunk_N_E=self.webpackChunk_N_E||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}()}();
\ No newline at end of file
diff --git a/out/_next/static/css/9aeb688eb5e47ce218d8.css b/out/_next/static/css/9aeb688eb5e47ce218d8.css
new file mode 100644
index 0000000..57b2af7
--- /dev/null
+++ b/out/_next/static/css/9aeb688eb5e47ce218d8.css
@@ -0,0 +1 @@
+@font-face{font-family:KaTeX_AMS;src:url(/_next/static/media/KaTeX_AMS-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2) format("woff2"),url(/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff) format("woff"),url(/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff) format("woff"),url(/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff) format("woff"),url(/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff) format("woff"),url(/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:"KaTeX_SansSerif";src:url(/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:"KaTeX_SansSerif";src:url(/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:"KaTeX_SansSerif";src:url(/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2) format("woff2"),url(/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff) format("woff"),url(/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff) format("woff"),url(/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff) format("woff"),url(/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff) format("woff"),url(/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff) format("woff"),url(/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2) format("woff2"),url(/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff) format("woff"),url(/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.13.18"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{display:-moz-inline-box;display:inline-flex;-moz-box-orient:vertical;-moz-box-direction:normal;flex-direction:column;-moz-box-align:baseline;align-items:baseline}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:-moz-inline-box;display:inline-flex;-moz-box-orient:horizontal;-moz-box-direction:normal;flex-direction:row}.katex .thinbox{width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:0 solid;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{counter-increment:katexEqnNo;content:"(" counter(katexEqnNo) ")"}.katex .mml-eqn-num:before{counter-increment:mmlEqnNo;content:"(" counter(mmlEqnNo) ")"}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:-moz-calc(50% + .3em);right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:-moz-calc(50% + .3em);left:calc(50% + .3em);text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}
\ No newline at end of file
diff --git a/out/_next/static/media/KaTeX_AMS-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2 b/out/_next/static/media/KaTeX_AMS-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2
new file mode 100644
index 0000000..378b798
Binary files /dev/null and b/out/_next/static/media/KaTeX_AMS-Regular.0d9f7ab640a0a7ab35edc350b00674df.woff2 differ
diff --git a/out/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff b/out/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff
new file mode 100644
index 0000000..13000fc
Binary files /dev/null and b/out/_next/static/media/KaTeX_AMS-Regular.4c4ccbd9ffaa7d323d55b044e142419e.woff differ
diff --git a/out/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf b/out/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf
new file mode 100644
index 0000000..31b8d8d
Binary files /dev/null and b/out/_next/static/media/KaTeX_AMS-Regular.a47238c0c668165e9d0b1f594d84c209.ttf differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf b/out/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf
new file mode 100644
index 0000000..b3e756c
Binary files /dev/null and b/out/_next/static/media/KaTeX_Caligraphic-Bold.0926786647deaf17d76d54f52ad74657.ttf differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2 b/out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2
new file mode 100644
index 0000000..6e9d50d
Binary files /dev/null and b/out/_next/static/media/KaTeX_Caligraphic-Bold.19f570357f4fe9102516d952cef1b2ff.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff b/out/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff
new file mode 100644
index 0000000..cf82f36
Binary files /dev/null and b/out/_next/static/media/KaTeX_Caligraphic-Bold.ca08d02310fa9f19ba0299d17128e055.woff differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2 b/out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2
new file mode 100644
index 0000000..0bcce6f
Binary files /dev/null and b/out/_next/static/media/KaTeX_Caligraphic-Regular.3e19c488cac3849dd20a92525f4701cc.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff b/out/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff
new file mode 100644
index 0000000..24f3b7b
Binary files /dev/null and b/out/_next/static/media/KaTeX_Caligraphic-Regular.e37e9cd84c4964f2d9ecf563af44ccec.woff differ
diff --git a/out/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf b/out/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf
new file mode 100644
index 0000000..a8cdd0e
Binary files /dev/null and b/out/_next/static/media/KaTeX_Caligraphic-Regular.f37960f4fd4766e02ca4ee064ad5f23c.ttf differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff b/out/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff
new file mode 100644
index 0000000..56aeb69
Binary files /dev/null and b/out/_next/static/media/KaTeX_Fraktur-Bold.b956c7a12877a36343b891acffeefb5d.woff differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2 b/out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2
new file mode 100644
index 0000000..e4ad521
Binary files /dev/null and b/out/_next/static/media/KaTeX_Fraktur-Bold.bf17ccf46b827b19854aa4defe751127.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf b/out/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf
new file mode 100644
index 0000000..57cef5c
Binary files /dev/null and b/out/_next/static/media/KaTeX_Fraktur-Bold.f3050194985440e1fc6fa5963bbd5079.ttf differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf b/out/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf
new file mode 100644
index 0000000..1793994
Binary files /dev/null and b/out/_next/static/media/KaTeX_Fraktur-Regular.3298092a28560733527fd4a50510bafc.ttf differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2 b/out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2
new file mode 100644
index 0000000..f481b14
Binary files /dev/null and b/out/_next/static/media/KaTeX_Fraktur-Regular.8a8e9684ad0e83b71c0b86c79336c8ab.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff b/out/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff
new file mode 100644
index 0000000..2e15d01
Binary files /dev/null and b/out/_next/static/media/KaTeX_Fraktur-Regular.a163bcf09449ae8ed783557e7c9c9aaf.woff differ
diff --git a/out/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf b/out/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf
new file mode 100644
index 0000000..e657894
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Bold.5050a336dd1ba9fd3e21588d8360f544.ttf differ
diff --git a/out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2 b/out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2
new file mode 100644
index 0000000..cdb9ecc
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Bold.7087a6c82e23f30cdd53e29010ec6fe2.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff b/out/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff
new file mode 100644
index 0000000..495fc43
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Bold.dd7b51f1a2ca5bd9b20536cab3fa2beb.woff differ
diff --git a/out/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf b/out/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf
new file mode 100644
index 0000000..c11cde7
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-BoldItalic.4b77d71b9d3961b7c4859a08623c8579.ttf differ
diff --git a/out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2 b/out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2
new file mode 100644
index 0000000..42171ec
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-BoldItalic.5631f11cc4eb168245d4ade061ba16c3.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff b/out/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff
new file mode 100644
index 0000000..121e242
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-BoldItalic.fcff27e282d1c5cb42152024912c5e2e.woff differ
diff --git a/out/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff b/out/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff
new file mode 100644
index 0000000..c669377
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Italic.432673bb817dd78a6c12012ddc660a57.woff differ
diff --git a/out/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf b/out/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf
new file mode 100644
index 0000000..2f270de
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Italic.68ec33c535171d771861ea56e7660894.ttf differ
diff --git a/out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2 b/out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2
new file mode 100644
index 0000000..e89824d
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Italic.b3b010b2535ede725806a63aa7635e4f.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2 b/out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2
new file mode 100644
index 0000000..2aa480a
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Regular.3fd0ceb35aff44106478820d1810a919.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf b/out/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf
new file mode 100644
index 0000000..741db9c
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Regular.ce81924a0d43971b565b12e4421bc36f.ttf differ
diff --git a/out/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff b/out/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff
new file mode 100644
index 0000000..4c8de9e
Binary files /dev/null and b/out/_next/static/media/KaTeX_Main-Regular.e939c6a296ec5f785a248019e41861ba.woff differ
diff --git a/out/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff b/out/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff
new file mode 100644
index 0000000..2c47198
Binary files /dev/null and b/out/_next/static/media/KaTeX_Math-BoldItalic.4ad67686722aeefffe2dfe5b4db5a069.woff differ
diff --git a/out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2 b/out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2
new file mode 100644
index 0000000..82f609f
Binary files /dev/null and b/out/_next/static/media/KaTeX_Math-BoldItalic.85a50d0b44230b474112e56a57ea55e7.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf b/out/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf
new file mode 100644
index 0000000..c3a1c3e
Binary files /dev/null and b/out/_next/static/media/KaTeX_Math-BoldItalic.ebfa134b566c6fa6354e8f1302148135.ttf differ
diff --git a/out/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff b/out/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff
new file mode 100644
index 0000000..3ee35dc
Binary files /dev/null and b/out/_next/static/media/KaTeX_Math-Italic.962a48c9434cfdf579ba5db3185719b6.woff differ
diff --git a/out/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf b/out/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf
new file mode 100644
index 0000000..b58dc88
Binary files /dev/null and b/out/_next/static/media/KaTeX_Math-Italic.bde72b970d8e9b7c9a61b2b49dc5fb75.ttf differ
diff --git a/out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2 b/out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2
new file mode 100644
index 0000000..a2f3617
Binary files /dev/null and b/out/_next/static/media/KaTeX_Math-Italic.fc87a1cbfe0b4afce15b66f3c1e79cee.woff2 differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2 b/out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2
new file mode 100644
index 0000000..c2b93c8
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Bold.26afbcc72a29c5a65fc99d06689086bf.woff2 differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf b/out/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf
new file mode 100644
index 0000000..68d11ee
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Bold.3ac45b1695b81088d99f417b78556e1c.ttf differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff b/out/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff
new file mode 100644
index 0000000..cd6dbb1
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Bold.7227401d5436cf059385329a645d0ec3.woff differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff b/out/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff
new file mode 100644
index 0000000..d022507
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Italic.19370fb8ec09ba94c9e42255d9fbff0c.woff differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2 b/out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2
new file mode 100644
index 0000000..e890b37
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Italic.68b6c062412a84bbafdfcfb9a233c04f.woff2 differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf b/out/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf
new file mode 100644
index 0000000..2ea5de4
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Italic.a074675505eb4665feea16d12eb8a0fe.ttf differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf b/out/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf
new file mode 100644
index 0000000..c2066ca
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Regular.7b292c5b318d8c9800d02a3b3be6aee7.ttf differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2 b/out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2
new file mode 100644
index 0000000..51037b4
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Regular.abb48c18c3350196db971e54be76e5a6.woff2 differ
diff --git a/out/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff b/out/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff
new file mode 100644
index 0000000..e43b4a2
Binary files /dev/null and b/out/_next/static/media/KaTeX_SansSerif-Regular.c13f0338e43cbed1c89f6165b94e3650.woff differ
diff --git a/out/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf b/out/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf
new file mode 100644
index 0000000..1753e88
Binary files /dev/null and b/out/_next/static/media/KaTeX_Script-Regular.25b86a61b42992afecec60daddc856bb.ttf differ
diff --git a/out/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff b/out/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff
new file mode 100644
index 0000000..2f8b979
Binary files /dev/null and b/out/_next/static/media/KaTeX_Script-Regular.9ccc9adb41a39760484d6d0f1c5417e9.woff differ
diff --git a/out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2 b/out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2
new file mode 100644
index 0000000..e84ca23
Binary files /dev/null and b/out/_next/static/media/KaTeX_Script-Regular.df0c5e1ec60655a03ef19f59321c0c3c.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff b/out/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff
new file mode 100644
index 0000000..b0a7bb2
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size1-Regular.1882c67066d09e2e81ddec7c953860bc.woff differ
diff --git a/out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2 b/out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2
new file mode 100644
index 0000000..f10ebd2
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size1-Regular.21f0471311ce052c2e54af595e8421b4.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf b/out/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf
new file mode 100644
index 0000000..31f438b
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size1-Regular.6445a5c8d2057878c1abcfa23e0be18f.ttf differ
diff --git a/out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2 b/out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2
new file mode 100644
index 0000000..4cddb8b
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size2-Regular.1ae9beb4a11a89465a296fd7af735d30.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf b/out/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf
new file mode 100644
index 0000000..8a309fd
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size2-Regular.96031a0ce648a723ca5ed5b726ec3509.ttf differ
diff --git a/out/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff b/out/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff
new file mode 100644
index 0000000..79ddf33
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size2-Regular.bdc7b2d5e9f73527989af37c9cd30c8d.woff differ
diff --git a/out/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf b/out/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf
new file mode 100644
index 0000000..14fe2db
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size3-Regular.681badffdf434ad52e511cdb988232df.ttf differ
diff --git a/out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2 b/out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2
new file mode 100644
index 0000000..e89276f
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size3-Regular.c1ea72eebf23ad29466ad040a318de37.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff b/out/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff
new file mode 100644
index 0000000..1ecfff9
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size3-Regular.c383b1becf152be4fcb9de127f861535.woff differ
diff --git a/out/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff b/out/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff
new file mode 100644
index 0000000..d4223a3
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size4-Regular.70d03400f4ee016200b2b74e42906cdd.woff differ
diff --git a/out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2 b/out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2
new file mode 100644
index 0000000..93c7e82
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size4-Regular.75fe4fc7f4d626a294ae6b44d58f46f1.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf b/out/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf
new file mode 100644
index 0000000..f88f27b
Binary files /dev/null and b/out/_next/static/media/KaTeX_Size4-Regular.79503c3df0d63ffa947e21c352c4bd4c.ttf differ
diff --git a/out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2 b/out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2
new file mode 100644
index 0000000..e2ca86a
Binary files /dev/null and b/out/_next/static/media/KaTeX_Typewriter-Regular.352d267c075ec07f8670bd9fd3877675.woff2 differ
diff --git a/out/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf b/out/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf
new file mode 100644
index 0000000..15b7a74
Binary files /dev/null and b/out/_next/static/media/KaTeX_Typewriter-Regular.9120561f14585063cc9df4b7ae284aad.ttf differ
diff --git a/out/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff b/out/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff
new file mode 100644
index 0000000..d786826
Binary files /dev/null and b/out/_next/static/media/KaTeX_Typewriter-Regular.9f1a86cb45a9fd167fdd638313959329.woff differ
diff --git a/out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_buildManifest.js b/out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_buildManifest.js
new file mode 100644
index 0000000..1dbed2f
--- /dev/null
+++ b/out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_buildManifest.js
@@ -0,0 +1 @@
+self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-0d6001c72a29ebec41eb.js","static/chunks/1a48c3c1-836e56f8ef2d92f6d89b.js","static/chunks/b5f2ed29-c14b12daa385c4cc7854.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/9aeb688eb5e47ce218d8.css","static/chunks/599-110075714310a526c058.js","static/chunks/pages/index-ae5392593603a38d540f.js"],"/_error":["static/chunks/pages/_error-4a5d36cf6de80ea8be7a.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_ssgManifest.js b/out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_ssgManifest.js
new file mode 100644
index 0000000..0511aa8
--- /dev/null
+++ b/out/_next/static/uFcKrVt5XdTdJl-0JAxhH/_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/out/index.html b/out/index.html
index d54221a..4324522 100644
--- a/out/index.html
+++ b/out/index.html
@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-aa36b0112675ea597c0c.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-0d6001c72a29ebec41eb.js" defer=""></script><script src="/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/750-c7323136e055e0306399.js" defer=""></script><script src="/_next/static/chunks/pages/index-9ae71dd6e842cb285888.js" defer=""></script><script src="/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_buildManifest.js" defer=""></script><script src="/_next/static/LiCylS_Jd_Tfcv9U5eaVO/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"LiCylS_Jd_Tfcv9U5eaVO","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
\ No newline at end of file
+<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/331301db207a91d407e5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/331301db207a91d407e5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/9aeb688eb5e47ce218d8.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9aeb688eb5e47ce218d8.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"></script><script src="/_next/static/chunks/webpack-8a4697025057d0bb5456.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-18e5535ffc85f4a7d113.js" defer=""></script><script src="/_next/static/chunks/pages/_app-85bcdbfb2d764277a926.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-0d6001c72a29ebec41eb.js" defer=""></script><script src="/_next/static/chunks/1a48c3c1-836e56f8ef2d92f6d89b.js" defer=""></script><script src="/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/599-110075714310a526c058.js" defer=""></script><script src="/_next/static/chunks/pages/index-ae5392593603a38d540f.js" defer=""></script><script src="/_next/static/uFcKrVt5XdTdJl-0JAxhH/_buildManifest.js" defer=""></script><script src="/_next/static/uFcKrVt5XdTdJl-0JAxhH/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"uFcKrVt5XdTdJl-0JAxhH","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 04de502..5949467 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -25,6 +25,7 @@
         "next-pwa": "^5.2.24",
         "orgast-util-to-string": "^0.3.1",
         "orgast-util-visit-ids": "^0.3.1",
+        "path": "^0.12.7",
         "react": "17.0.2",
         "react-custom-scrollbars-2": "^4.4.0",
         "react-dom": "17.0.2",
@@ -37,6 +38,7 @@
         "rehype-katex": "^5.0.0",
         "rehype-react": "^6.2.1",
         "three-spritetext": "^1.6.2",
+        "through": "^2.3.8",
         "to-vfile": "^6.1.0",
         "unified": "^9.2.2",
         "uniorg": "^0.4.0",
@@ -8957,6 +8959,15 @@
       "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",
       "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="
     },
+    "node_modules/path": {
+      "version": "0.12.7",
+      "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz",
+      "integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=",
+      "dependencies": {
+        "process": "^0.11.1",
+        "util": "^0.10.3"
+      }
+    },
     "node_modules/path-browserify": {
       "version": "1.0.1",
       "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
@@ -9005,6 +9016,19 @@
         "node": ">=8"
       }
     },
+    "node_modules/path/node_modules/inherits": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
+      "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
+    },
+    "node_modules/path/node_modules/util": {
+      "version": "0.10.4",
+      "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz",
+      "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==",
+      "dependencies": {
+        "inherits": "2.0.3"
+      }
+    },
     "node_modules/pbkdf2": {
       "version": "3.1.2",
       "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz",
@@ -11164,6 +11188,11 @@
         "node": ">=8"
       }
     },
+    "node_modules/through": {
+      "version": "2.3.8",
+      "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+      "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="
+    },
     "node_modules/timed-out": {
       "version": "4.0.1",
       "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
@@ -19110,6 +19139,30 @@
       "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz",
       "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="
     },
+    "path": {
+      "version": "0.12.7",
+      "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz",
+      "integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=",
+      "requires": {
+        "process": "^0.11.1",
+        "util": "^0.10.3"
+      },
+      "dependencies": {
+        "inherits": {
+          "version": "2.0.3",
+          "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
+          "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
+        },
+        "util": {
+          "version": "0.10.4",
+          "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz",
+          "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==",
+          "requires": {
+            "inherits": "2.0.3"
+          }
+        }
+      }
+    },
     "path-browserify": {
       "version": "1.0.1",
       "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
@@ -20801,6 +20854,11 @@
       "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-2.3.0.tgz",
       "integrity": "sha512-H7oLPV0P7+jgvrk+6mwwwBDmxTaxnu9HMXmloNLXwnNO0ZxZ31Orah2n8lU1eMPvsaowP2CX+USCgyovXfdOFQ=="
     },
+    "through": {
+      "version": "2.3.8",
+      "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+      "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="
+    },
     "timed-out": {
       "version": "4.0.1",
       "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
diff --git a/package.json b/package.json
index 0bbb24c..c19e263 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
   "private": true,
   "scripts": {
     "dev": "next dev",
-    "build": "next build && next export",
+    "build": "next build",
+    "export": "next export",
     "start": "next start",
     "prettier": "prettier -w .",
     "lint": "tsc --noEmit && next lint && eslint \"./**/*.{ts,tsx,js}\" \"./**/.*.{ts,tsx,js}\" --fix"
@@ -27,6 +28,7 @@
     "next-pwa": "^5.2.24",
     "orgast-util-to-string": "^0.3.1",
     "orgast-util-visit-ids": "^0.3.1",
+    "path": "^0.12.7",
     "react": "17.0.2",
     "react-custom-scrollbars-2": "^4.4.0",
     "react-dom": "17.0.2",
@@ -39,6 +41,7 @@
     "rehype-katex": "^5.0.0",
     "rehype-react": "^6.2.1",
     "three-spritetext": "^1.6.2",
+    "through": "^2.3.8",
     "to-vfile": "^6.1.0",
     "unified": "^9.2.2",
     "uniorg": "^0.4.0",
diff --git a/pages/api/notes/[[...slug]].ts b/pages/api/notes/[[...slug]].ts
new file mode 100644
index 0000000..b0df82a
--- /dev/null
+++ b/pages/api/notes/[[...slug]].ts
@@ -0,0 +1,17 @@
+import fs from 'fs'
+
+export default async function handler(req: any, res: any) {
+  const { slug } = req.query
+  const stuff = slug.join('')
+  console.log(stuff)
+  const uri = decodeURIComponent(slug)
+  const prefix = uri.includes('\\') ? '' : '/'
+  const path = `${uri}`
+  try {
+    const text = fs.readFileSync(`${path}`, { encoding: 'utf-8' })
+    res.end(`${text}`)
+  } catch (e) {
+    res.end(`Oopsie Whoopsie! We did a fucky wucky!`)
+    console.log(e)
+  }
+}
diff --git a/pages/filesystemtest.tsx b/pages/filesystemtest.tsx
deleted file mode 100644
index 4cadf0e..0000000
--- a/pages/filesystemtest.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import React, { useEffect, useState } from 'react'
-import { Button } from '@chakra-ui/react'
-
-async function verifyPermission(fileHandle: any, readWrite: any) {
-  const options: any = {}
-  if (readWrite) {
-    options.mode = 'readwrite'
-  }
-  // Check if permission was already granted. If so, return true.
-  if ((await fileHandle.queryPermission(options)) === 'granted') {
-    return true
-  }
-  // Request permission. If the user grants permission, return true.
-  if ((await fileHandle.requestPermission(options)) === 'granted') {
-    return true
-  }
-  // The user didn't grant permission, so return false.
-  return false
-}
-
-export default function Testpage() {
-  const [text, setText] = useState(0)
-  const [dirHandle, setDirhandle] = useState<any>()
-  const [perm, setPerm] = useState(false)
-
-  const pick = async () => {
-    const dirHandle = await window.showDirectoryPicker()
-    console.log(dirHandle)
-    setDirhandle(dirHandle)
-  }
-
-  useEffect(() => {
-    ;(async () => {
-      console.log(dirHandle)
-      const newFileHandle = dirHandle ? await dirHandle.getFileHandle('inbox.org') : null
-      const file = await newFileHandle.getFile()
-      const ttext = await file.text()
-      setText(ttext)
-      const path = newFileHandle ? await dirHandle.resolve(newFileHandle) : null
-      console.log(path)
-    })()
-  }, [dirHandle])
-
-  return (
-    <div>
-      <Button onClick={() => pick()}> Press </Button>
-      <p>{text}</p>
-      <Button onClick={() => setPerm(verifyPermission(dirHandle, true))}>Check permission</Button>
-      <p>{perm ? '👍' : '👎'}</p>
-    </div>
-  )
-}
diff --git a/pages/index.tsx b/pages/index.tsx
index 48394c0..59fae1a 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -7,6 +7,8 @@ import React, {
   useContext,
   forwardRef,
 } from 'react'
+
+import Head from 'next/head'
 import { usePersistantState } from '../util/persistant-state'
 const d3promise = import('d3-force-3d')
 import * as d3int from 'd3-interpolate'
@@ -22,7 +24,7 @@ import Sidebar from '../components/Sidebar'
 import { useWindowSize } from '@react-hook/window-size'
 import { useAnimation } from '@lilib/hooks'
 
-import { Box, Flex, IconButton, useDisclosure, useTheme } from '@chakra-ui/react'
+import { Box, Flex, IconButton, useDisclosure, useTheme, WithCSSVar } from '@chakra-ui/react'
 
 import {
   initialPhysics,
@@ -57,6 +59,7 @@ const ForceGraph3D = (
 export type NodeById = { [nodeId: string]: OrgRoamNode | undefined }
 export type LinksByNodeId = { [nodeId: string]: OrgRoamLink[] | undefined }
 export type NodesByFile = { [file: string]: OrgRoamNode[] | undefined }
+export type NodeByCite = { [key: string]: OrgRoamNode | undefined }
 export type Tags = string[]
 export type Scope = {
   nodeIds: string[]
@@ -72,7 +75,14 @@ export default function Home() {
   if (!showPage) {
     return null
   }
-  return <GraphPage />
+  return (
+    <>
+      <Head>
+        <title>ORUI</title>
+      </Head>
+      <GraphPage />
+    </>
+  )
 }
 
 export function GraphPage() {
@@ -88,10 +98,12 @@ export function GraphPage() {
   const [behavior, setBehavior] = usePersistantState('behavior', initialBehavior)
   const [mouse, setMouse] = usePersistantState('mouse', initialMouse)
   const [previewNode, setPreviewNode] = useState<NodeObject>({})
+  const [sidebarHighlightedNode, setSidebarHighlightedNode] = useState<OrgRoamNode | null>(null)
   const { isOpen, onOpen, onClose } = useDisclosure()
 
   const nodeByIdRef = useRef<NodeById>({})
   const linksByNodeIdRef = useRef<LinksByNodeId>({})
+  const nodeByCiteRef = useRef<NodeByCite>({})
   const tagsRef = useRef<Tags>([])
   const graphRef = useRef<any>(null)
 
@@ -217,6 +229,22 @@ export function GraphPage() {
     }, {})
 
     const nodes = [...importNodes, ...nonExistantNodes]
+
+    nodeByCiteRef.current = nodes.reduce<NodeByCite>((acc, node) => {
+      const ref = node.properties?.ROAM_REFS as string
+      if (!ref?.includes('cite')) {
+        return acc
+      }
+      const key = ref.replaceAll(/cite:(.*)/g, '$1')
+      if (!key) {
+        return acc
+      }
+      return {
+        ...acc,
+        [key]: node,
+      }
+    }, {})
+
     const orgRoamGraphDataProcessed = {
       nodes,
       links,
@@ -471,6 +499,7 @@ export function GraphPage() {
             setScope,
             tagColors,
             setPreviewNode,
+            sidebarHighlightedNode,
           }}
         />
         <Sidebar
@@ -480,9 +509,11 @@ export function GraphPage() {
             onClose,
             previewNode,
             setPreviewNode,
+            setSidebarHighlightedNode,
           }}
           nodeById={nodeByIdRef.current!}
           linksByNodeId={linksByNodeIdRef.current!}
+          nodeByCite={nodeByCiteRef.current!}
         />
       </Flex>
     </Box>
@@ -505,6 +536,7 @@ export interface GraphProps {
   webSocket: any
   tagColors: { [tag: string]: string }
   setPreviewNode: any
+  sidebarHighlightedNode: OrgRoamNode | null
 }
 
 export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
@@ -524,6 +556,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     webSocket,
     tagColors,
     setPreviewNode,
+    sidebarHighlightedNode,
   } = props
 
   // react-force-graph does not track window size
@@ -763,27 +796,6 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     setScopedGraphData({ nodes: scopedNodes, links: scopedLinks })
   }, [filter, scope, graphData])
 
-  centralHighlightedNode.current = hoverNode
-  const highlightedNodes = useMemo(() => {
-    if (!centralHighlightedNode.current) {
-      return {}
-    }
-
-    const links = filteredLinksByNodeIdRef.current[centralHighlightedNode.current.id!]
-    if (!links) {
-      return {}
-    }
-    return Object.fromEntries(
-      [
-        centralHighlightedNode.current.id! as string,
-        ...links.flatMap((link) => [link.source, link.target]),
-      ].map((nodeId) => [nodeId, {}]),
-    )
-  }, [
-    JSON.stringify(centralHighlightedNode.current),
-    JSON.stringify(filteredLinksByNodeIdRef.current),
-  ])
-
   useEffect(() => {
     ;(async () => {
       const fg = graphRef.current
@@ -831,9 +843,36 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
       algorithm: algos[visuals.algorithmName],
     },
   )
+  useEffect(() => {
+    console.log('aaa')
+    if (sidebarHighlightedNode?.id) {
+      setHoverNode(sidebarHighlightedNode)
+    } else {
+      setHoverNode(null)
+    }
+  }, [sidebarHighlightedNode])
+  const highlightedNodes = useMemo(() => {
+    if (!centralHighlightedNode.current) {
+      return {}
+    }
 
+    const links = filteredLinksByNodeIdRef.current[centralHighlightedNode.current.id!]
+    if (!links) {
+      return {}
+    }
+    return Object.fromEntries(
+      [
+        centralHighlightedNode.current.id! as string,
+        ...links.flatMap((link) => [link.source, link.target]),
+      ].map((nodeId) => [nodeId, {}]),
+    )
+  }, [
+    JSON.stringify(centralHighlightedNode.current),
+    JSON.stringify(filteredLinksByNodeIdRef.current),
+  ])
   const lastHoverNode = useRef<OrgRoamNode | null>(null)
   useEffect(() => {
+    centralHighlightedNode.current = hoverNode
     if (hoverNode) {
       lastHoverNode.current = hoverNode as OrgRoamNode
     }
@@ -850,20 +889,13 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     }
   }, [hoverNode])
 
-  const getThemeColor = (name: string) => {
-    if (!theme) {
-      return
-    }
-    return name.split('.').reduce((o, i) => o[i], theme.colors)
-  }
-
   const highlightColors = useMemo(() => {
     return Object.fromEntries(
       colorList.map((color) => {
-        const color1 = getThemeColor(color)
+        const color1 = getThemeColor(color, theme)
         const crisscross = colorList.map((color2) => [
           color2,
-          d3int.interpolate(color1, getThemeColor(color2)),
+          d3int.interpolate(color1, getThemeColor(color2, theme)),
         ])
         return [color, Object.fromEntries(crisscross)]
       }),
@@ -899,10 +931,15 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
       : getNodeColorById(targetId)
   }
 
-  const getLinkColor = (sourceId: string, targetId: string, needsHighlighting: boolean) => {
+  const getLinkColor = (
+    sourceId: string,
+    targetId: string,
+    needsHighlighting: boolean,
+    theme: any,
+  ) => {
     if (!visuals.linkHighlight && !visuals.linkColorScheme && !needsHighlighting) {
       const nodeColor = getLinkNodeColor(sourceId, targetId)
-      return getThemeColor(nodeColor)
+      return getThemeColor(nodeColor, theme)
     }
 
     if (!needsHighlighting && !visuals.linkColorScheme) {
@@ -918,11 +955,11 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
 
     if (!visuals.linkHighlight && !visuals.linkColorScheme) {
       const nodeColor = getLinkNodeColor(sourceId, targetId)
-      return getThemeColor(nodeColor)
+      return getThemeColor(nodeColor, theme)
     }
 
     if (!visuals.linkHighlight) {
-      return getThemeColor(visuals.linkColorScheme)
+      return getThemeColor(visuals.linkColorScheme, theme)
     }
 
     if (!visuals.linkColorScheme) {
@@ -932,12 +969,12 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     return highlightColors[visuals.linkColorScheme][visuals.linkHighlight](opacity)
   }
 
-  const getNodeColor = (node: OrgRoamNode) => {
+  const getNodeColor = (node: OrgRoamNode, theme: any) => {
     const needsHighlighting = highlightedNodes[node.id!] || previouslyHighlightedNodes[node.id!]
     // if we are matching the node color and don't have a highlight color
     // or we don't have our own scheme and we're not being highlighted
     if (visuals.emacsNodeColor && node.id === emacsNodeId) {
-      return getThemeColor(visuals.emacsNodeColor)
+      return getThemeColor(visuals.emacsNodeColor, theme)
     }
     if (tagColors && node.tags.some((tag) => tagColors[tag])) {
       const tagColor = tagColors[node.tags.filter((tag) => tagColors[tag])[0]]
@@ -945,14 +982,14 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     }
     if (visuals.citeNodeColor && node.properties.ROAM_REFS && node.properties.FILELESS) {
       return needsHighlighting
-        ? getThemeColor(visuals.citeNodeColor)
+        ? getThemeColor(visuals.citeNodeColor, theme)
         : highlightColors[visuals.citeNodeColor][visuals.backgroundColor](
             visuals.highlightFade * opacity,
           )
     }
     if (visuals.refNodeColor && node.properties.ROAM_REFS) {
       return needsHighlighting
-        ? getThemeColor(visuals.refNodeColor)
+        ? getThemeColor(visuals.refNodeColor, theme)
         : highlightColors[visuals.refNodeColor][visuals.backgroundColor](
             visuals.highlightFade * opacity,
           )
@@ -963,18 +1000,18 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
       )
     }
     if (!visuals.nodeHighlight) {
-      return getThemeColor(getNodeColorById(node.id as string))
+      return getThemeColor(getNodeColorById(node.id as string), theme)
     }
     return highlightColors[getNodeColorById(node.id as string)][visuals.nodeHighlight](opacity)
   }
 
   const labelTextColor = useMemo(
-    () => getThemeColor(visuals.labelTextColor),
+    () => getThemeColor(visuals.labelTextColor, theme),
     [visuals.labelTextColor, emacsTheme],
   )
 
   const labelBackgroundColor = useMemo(
-    () => getThemeColor(visuals.labelBackgroundColor),
+    () => getThemeColor(visuals.labelBackgroundColor, theme),
     [visuals.labelBackgroundColor, emacsTheme],
   )
 
@@ -1005,7 +1042,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     onZoom: ({ k, x, y }) => setZoom(k),
     nodeLabel: (node) => (node as OrgRoamNode).title,
     nodeColor: (node) => {
-      return getNodeColor(node as OrgRoamNode)
+      return getNodeColor(node as OrgRoamNode, theme)
     },
     nodeRelSize: visuals.nodeRel,
     nodeVal: (node) => {
@@ -1090,7 +1127,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     linkDirectionalArrowLength: visuals.arrows ? visuals.arrowsLength : undefined,
     linkDirectionalArrowRelPos: visuals.arrowsPos,
     linkDirectionalArrowColor: visuals.arrowsColor
-      ? () => getThemeColor(visuals.arrowsColor)
+      ? () => getThemeColor(visuals.arrowsColor, theme)
       : undefined,
     linkColor: (link) => {
       const sourceId = typeof link.source === 'object' ? link.source.id! : (link.source as string)
@@ -1119,7 +1156,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
             )
       }
 
-      return getLinkColor(sourceId as string, targetId as string, needsHighlighting)
+      return getLinkColor(sourceId as string, targetId as string, needsHighlighting, theme)
     },
     linkWidth: (link) => {
       if (visuals.highlightLinkSize === 1) {
@@ -1226,8 +1263,8 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
               return
             }
             const sprite = new SpriteText(node.title.substring(0, 40))
-            sprite.color = getThemeColor(visuals.labelTextColor)
-            sprite.backgroundColor = getThemeColor(visuals.labelBackgroundColor)
+            sprite.color = getThemeColor(visuals.labelTextColor, theme)
+            sprite.backgroundColor = getThemeColor(visuals.labelBackgroundColor, theme)
             sprite.padding = 2
             sprite.textHeight = 8
 
@@ -1274,7 +1311,11 @@ export function normalizeLinkEnds(link: OrgRoamLink | LinkObject): [string, stri
   return [sourceId, targetId]
 }
 
-function hexToRGBA(hex: string, opacity: number) {
+export function getThemeColor(name: string, theme: any) {
+  return name.split('.').reduce((o, i) => o[i], theme.colors)
+}
+
+export function hexToRGBA(hex: string, opacity: number) {
   return (
     'rgba(' +
     (hex = hex.replace('#', ''))
diff --git a/util/FileSystem.tsx b/util/FileSystem.tsx
deleted file mode 100644
index e69de29..0000000
diff --git a/util/checkFileSystemCompatibility.ts b/util/checkFileSystemCompatibility.ts
deleted file mode 100644
index a96b68e..0000000
--- a/util/checkFileSystemCompatibility.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export const checkFileSystemCompatibility = () => {
-  return typeof window.showDirectoryPicker !== 'undefined'
-}
diff --git a/util/processOrg.tsx b/util/processOrg.tsx
index df6007e..a025645 100644
--- a/util/processOrg.tsx
+++ b/util/processOrg.tsx
@@ -2,45 +2,59 @@ import unified from 'unified'
 //import createStream from 'unified-stream'
 import uniorgParse from 'uniorg-parse'
 import uniorg2rehype from 'uniorg-rehype'
-//import highlight from 'rehype-highlight'
+import uniorgSlug from 'uniorg-slug'
+import extractKeywords from 'uniorg-extract-keywords'
+import attachments from 'uniorg-attach'
+// rehypeHighlight does not have any types
+// @ts-expect-error
+import highlight from 'rehype-highlight'
 import katex from 'rehype-katex'
 import 'katex/dist/katex.css'
 import rehype2react from 'rehype-react'
 
 import { PreviewLink } from '../components/Sidebar/Link'
-import { NodeById } from '../pages'
-import React from 'react'
+import { NodeByCite, NodeById } from '../pages'
+import React, { useMemo } from 'react'
 
 export interface ProcessedOrgProps {
   nodeById: NodeById
   previewNode: any
   setPreviewNode: any
-  getText: any
   previewText: any
+  nodeByCite: NodeByCite
+  setSidebarHighlightedNode: any
 }
 
 export const ProcessedOrg = (props: ProcessedOrgProps) => {
-  const { nodeById, previewNode, setPreviewNode, getText, previewText } = props
-  console.log(previewText)
+  const { nodeById, setSidebarHighlightedNode, setPreviewNode, previewText, nodeByCite } = props
+
   const processor = unified()
     .use(uniorgParse)
+    .use(extractKeywords)
+    .use(attachments)
+    .use(uniorgSlug)
     .use(uniorg2rehype)
     .use(katex)
     .use(rehype2react, {
       createElement: React.createElement,
       // eslint-disable-next-line react/display-name
       components: {
-        a: ({ props, children, href }) => (
-          <PreviewLink
-            getText={getText}
-            nodeById={nodeById}
-            previewNode={previewNode}
-            setPreviewNode={setPreviewNode}
-            {...{ children, href }}
-          />
-        ),
+        a: ({ children, href }) => {
+          return (
+            <PreviewLink
+              nodeByCite={nodeByCite}
+              setSidebarHighlightedNode={setSidebarHighlightedNode}
+              href={`${href as string}`}
+              nodeById={nodeById}
+              setPreviewNode={setPreviewNode}
+            >
+              {typeof children === 'string' ? children : null}
+            </PreviewLink>
+          )
+        },
       },
     })
 
-  return <div>{processor.processSync(previewText).result}</div>
+  const text = useMemo(() => processor.processSync(previewText).result, [previewText])
+  return <>{text}</>
 }
diff --git a/util/uniorg.tsx b/util/uniorg.tsx
index e35a021..c36f662 100644
--- a/util/uniorg.tsx
+++ b/util/uniorg.tsx
@@ -1,34 +1,57 @@
-import React, { useEffect, useState } from 'react'
-import { NodeById } from '../pages/index'
+import React, { useEffect, useMemo, useState } from 'react'
+import { OrgRoamNode } from '../api'
+import { NodeByCite, NodeById } from '../pages/index'
 import { ProcessedOrg } from './processOrg'
 
 export interface UniOrgProps {
   nodeById: NodeById
   previewNode: any
   setPreviewNode: any
-  getText: any
+  nodeByCite: NodeByCite
+  setSidebarHighlightedNode: any
 }
 
 export const UniOrg = (props: UniOrgProps) => {
-  const { nodeById, previewNode, setPreviewNode, getText } = props
+  const { setSidebarHighlightedNode, nodeById, nodeByCite, previewNode, setPreviewNode } = props
 
   const [previewText, setPreviewText] = useState('')
 
+  const file = encodeURIComponent(previewNode.file)
   useEffect(() => {
-    if (previewNode?.id) {
-      getText(previewNode?.id, setPreviewText)
-    }
-  }, [previewNode?.id])
+    fetch(`api/notes/${file}`)
+      .then((res) => {
+        return res.text()
+      })
+      .then((res) => {
+        if (res !== 'error') {
+          setPreviewText(res)
+        }
+      })
+      .catch((e) => {
+        console.log(e)
+        return 'Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it.'
+      })
+  }, [previewNode.id])
+
+  useEffect(() => {
+    console.log('mount')
+    return () => console.log('unmount')
+  }, [])
 
   return (
-    <ProcessedOrg
-      {...{
-        getText,
-        nodeById,
-        previewNode,
-        setPreviewNode,
-        previewText,
-      }}
-    />
+    <>
+      {previewNode?.id && (
+        <ProcessedOrg
+          {...{
+            nodeById,
+            previewNode,
+            setPreviewNode,
+            previewText,
+            nodeByCite,
+            setSidebarHighlightedNode,
+          }}
+        />
+      )}
+    </>
   )
 }
-- 
cgit v1.2.3


From 546a88ec37073840e98ed689f7139d04985e861c Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Mon, 11 Oct 2021 01:13:10 +0200
Subject: feat(preview): ui redo

---
 components/Sidebar/Backlinks.tsx     |   3 +
 components/Sidebar/Link.tsx          |  20 +-
 components/Sidebar/Note.tsx          |   4 +
 components/Sidebar/Toolbar.tsx       | 102 +++++-----
 components/Sidebar/index.tsx         | 109 ++++++++---
 components/Tweaks/BehaviorPanel.tsx  |   1 +
 components/Tweaks/SliderWithInfo.tsx |   2 +-
 components/Tweaks/index.tsx          |  27 +--
 components/config.ts                 |   5 +-
 components/contextmenu.tsx           | 146 +++++++-------
 package-lock.json                    |  31 +++
 package.json                         |   1 +
 pages/_app.tsx                       |   5 +
 pages/index.tsx                      | 357 ++++++++++++++++++++++-------------
 util/processOrg.tsx                  |   7 +-
 util/uniorg.tsx                      |  11 +-
 16 files changed, 532 insertions(+), 299 deletions(-)

(limited to 'components/Tweaks/BehaviorPanel.tsx')

diff --git a/components/Sidebar/Backlinks.tsx b/components/Sidebar/Backlinks.tsx
index 8c1e9bc..68ab551 100644
--- a/components/Sidebar/Backlinks.tsx
+++ b/components/Sidebar/Backlinks.tsx
@@ -14,6 +14,7 @@ export interface BacklinksProps {
   linksByNodeId: LinksByNodeId
   nodeByCite: NodeByCite
   setSidebarHighlightedNode: OrgRoamNode
+  openContextMenu: any
 }
 
 import { PreviewLink } from './Link'
@@ -27,6 +28,7 @@ export const Backlinks = (props: BacklinksProps) => {
     nodeById,
     linksByNodeId,
     nodeByCite,
+    openContextMenu,
   } = props
   const links = linksByNodeId[previewNode?.id] ?? []
 
@@ -59,6 +61,7 @@ export const Backlinks = (props: BacklinksProps) => {
                   href={`id:${link as string}`}
                   nodeById={nodeById}
                   setPreviewNode={setPreviewNode}
+                  openContextMenu={openContextMenu}
                 >
                   {nodeById[link as string]?.title}
                 </PreviewLink>
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
index 16fc2ac..49fe9cf 100644
--- a/components/Sidebar/Link.tsx
+++ b/components/Sidebar/Link.tsx
@@ -35,6 +35,7 @@ export interface LinkProps {
   setSidebarHighlightedNode: any
   nodeByCite: NodeByCite
   nodeById: NodeById
+  openContextMenu: any
 }
 
 export interface NormalLinkProps {
@@ -44,6 +45,7 @@ export interface NormalLinkProps {
   href: any
   children: any
   setSidebarHighlightedNode: any
+  openContextMenu: any
 }
 
 import { hexToRGBA, getThemeColor } from '../../pages/index'
@@ -51,7 +53,8 @@ import noteStyle from './noteStyle'
 import { OrgImage } from './OrgImage'
 
 export const NormalLink = (props: NormalLinkProps) => {
-  const { setSidebarHighlightedNode, setPreviewNode, nodeById, href, children } = props
+  const { setSidebarHighlightedNode, setPreviewNode, nodeById, openContextMenu, href, children } =
+    props
   const { highlightColor } = useContext(ThemeContext)
 
   const theme = useTheme()
@@ -67,12 +70,16 @@ export const NormalLink = (props: NormalLinkProps) => {
       fontWeight={500}
       color={highlightColor}
       textDecoration="underline"
+      onContextMenu={(e) => {
+        e.preventDefault()
+        openContextMenu(nodeById[uri], e)
+      }}
       onClick={() => setPreviewNode(nodeById[uri])}
       // TODO  don't hardcode the opacitycolor
       _hover={{ textDecoration: 'none', cursor: 'pointer', bgColor: coolHighlightColor + '22' }}
       _focus={{ outlineColor: highlightColor }}
     >
-      {nodeById[uri]?.title}
+      {children}
     </Text>
   )
 }
@@ -86,6 +93,7 @@ export const PreviewLink = (props: LinkProps) => {
     previewNode,
     setPreviewNode,
     nodeByCite,
+    openContextMenu,
   } = props
   // TODO figure out how to properly type this
   // see https://github.com/rehypejs/rehype-react/issues/25
@@ -129,8 +137,9 @@ export const PreviewLink = (props: LinkProps) => {
             href={href}
             nodeById={nodeById}
             setPreviewNode={setPreviewNode}
+            openContextMenu={openContextMenu}
           >
-            {nodeById[id as string]?.title}
+            {children}
           </PreviewLink>
         ),
         img: ({ src }) => {
@@ -186,6 +195,7 @@ export const PreviewLink = (props: LinkProps) => {
                   href,
                   children,
                   nodeByCite,
+                  openContextMenu,
                 }}
               />
             </Box>
@@ -213,7 +223,9 @@ export const PreviewLink = (props: LinkProps) => {
                 maxHeight={300}
                 overflow="scroll"
               >
-                <Box sx={noteStyle}>{orgText}</Box>
+                <Box color="black" sx={noteStyle}>
+                  {orgText}
+                </Box>
               </PopoverBody>
             </PopoverContent>
           </Portal>
diff --git a/components/Sidebar/Note.tsx b/components/Sidebar/Note.tsx
index ef2e2b2..e425559 100644
--- a/components/Sidebar/Note.tsx
+++ b/components/Sidebar/Note.tsx
@@ -16,6 +16,7 @@ export interface NoteProps {
   justification: number
   justificationList: string[]
   linksByNodeId: LinksByNodeId
+  openContextMenu: any
 }
 
 export const Note = (props: NoteProps) => {
@@ -28,6 +29,7 @@ export const Note = (props: NoteProps) => {
     nodeByCite,
     setSidebarHighlightedNode,
     linksByNodeId,
+    openContextMenu,
   } = props
   return (
     <Box
@@ -50,6 +52,7 @@ export const Note = (props: NoteProps) => {
               nodeById,
               nodeByCite,
               setSidebarHighlightedNode,
+              openContextMenu,
             }}
           />
           <Backlinks
@@ -60,6 +63,7 @@ export const Note = (props: NoteProps) => {
               linksByNodeId,
               nodeByCite,
               setSidebarHighlightedNode,
+              openContextMenu,
             }}
           />
         </Flex>
diff --git a/components/Sidebar/Toolbar.tsx b/components/Sidebar/Toolbar.tsx
index f6f1e39..8741da5 100644
--- a/components/Sidebar/Toolbar.tsx
+++ b/components/Sidebar/Toolbar.tsx
@@ -1,5 +1,5 @@
 import React from 'react'
-import { Text, Flex, IconButton } from '@chakra-ui/react'
+import { Text, Flex, IconButton, ButtonGroup, Tooltip } from '@chakra-ui/react'
 import {
   BiAlignJustify,
   BiAlignLeft,
@@ -38,53 +38,65 @@ export const Toolbar = (props: ToolbarProps) => {
     nextPreviewNode,
   } = props
   return (
-    <Flex py={3} alignItems="center" justifyContent="space-between" pr={4}>
+    <Flex pb={3} alignItems="center" justifyContent="space-between" pl={1} pr={1}>
       <Flex>
-        <IconButton
-          variant="ghost"
-          icon={<ChevronLeftIcon />}
-          aria-label="Previous node"
-          disabled={!canUndo}
-          onClick={() => previousPreviewNode()}
-        />
-        <IconButton
-          variant="ghost"
-          icon={<ChevronRightIcon />}
-          aria-label="Next node"
-          disabled={!canRedo}
-          onClick={() => nextPreviewNode()}
-        />
+        <ButtonGroup isAttached>
+          <Tooltip label="Go backward">
+            <IconButton
+              variant="subtle"
+              icon={<ChevronLeftIcon />}
+              aria-label="Previous node"
+              disabled={!canUndo}
+              onClick={() => previousPreviewNode()}
+            />
+          </Tooltip>
+          <Tooltip label="Go forward">
+            <IconButton
+              variant="subtle"
+              icon={<ChevronRightIcon />}
+              aria-label="Next node"
+              disabled={!canRedo}
+              onClick={() => nextPreviewNode()}
+            />
+          </Tooltip>
+        </ButtonGroup>
       </Flex>
       <Flex>
-        <IconButton
-          variant="ghost"
-          aria-label="Justify content"
-          icon={
-            [
-              <BiAlignJustify key="justify" />,
-              <BiAlignLeft key="left" />,
-              <BiAlignRight key="right" />,
-              <BiAlignMiddle key="center" />,
-            ][justification]
-          }
-          onClick={() => setJustification((curr: number) => (curr + 1) % 4)}
-        />
-        <IconButton
-          variant="ghost"
-          aria-label="Indent Text"
-          icon={<BiRightIndent />}
-          onClick={() => {
-            setIndent((curr: number) => (curr ? 0 : 1))
-          }}
-        />
-        <IconButton
-          variant="ghost"
-          aria-label="Change font"
-          icon={<BiFont />}
-          onClick={() => {
-            setFont((curr: string) => (curr === 'sans serif' ? 'serif' : 'sans serif'))
-          }}
-        />
+        <Tooltip label="Justify content">
+          <IconButton
+            variant="subtle"
+            aria-label="Justify content"
+            icon={
+              [
+                <BiAlignJustify key="justify" />,
+                <BiAlignLeft key="left" />,
+                <BiAlignRight key="right" />,
+                <BiAlignMiddle key="center" />,
+              ][justification]
+            }
+            onClick={() => setJustification((curr: number) => (curr + 1) % 4)}
+          />
+        </Tooltip>
+        {/* <Tooltip label="Indent trees">
+          <IconButton
+            variant="subtle"
+            aria-label="Indent Text"
+            icon={<BiRightIndent />}
+            onClick={() => {
+              setIndent((curr: number) => (curr ? 0 : 1))
+            }}
+          />
+        </Tooltip>
+        <Tooltip label="Switch betwwen sans and serif">
+          <IconButton
+            variant="subtle"
+            aria-label="Change font"
+            icon={<BiFont />}
+            onClick={() => {
+              setFont((curr: string) => (curr === 'sans serif' ? 'serif' : 'sans serif'))
+            }}
+          />
+        </Tooltip> */}
       </Flex>
     </Flex>
   )
diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx
index 2e32f4f..cbc0cc9 100644
--- a/components/Sidebar/index.tsx
+++ b/components/Sidebar/index.tsx
@@ -3,15 +3,19 @@ import React, { useContext, useEffect, useRef, useState } from 'react'
 import { Toolbar } from './Toolbar'
 import { Note } from './Note'
 
-import { Button, Slide, VStack, Flex, Heading, Box, IconButton } from '@chakra-ui/react'
+import { Button, Slide, VStack, Flex, Heading, Box, IconButton, Tooltip } from '@chakra-ui/react'
+import { Collapse } from './Collapse'
 import { Scrollbars } from 'react-custom-scrollbars-2'
-import { ChevronLeftIcon, ChevronRightIcon, HamburgerIcon } from '@chakra-ui/icons'
-import { BiFile } from 'react-icons/bi'
+import { ChevronLeftIcon, ChevronRightIcon, CloseIcon, HamburgerIcon } from '@chakra-ui/icons'
+import { BiDotsVerticalRounded, BiFile, BiNetworkChart } from 'react-icons/bi'
+import { BsReverseLayoutSidebarInsetReverse } from 'react-icons/bs'
 
 import { GraphData, NodeObject, LinkObject } from 'force-graph'
 import { OrgRoamNode } from '../../api'
 import { ThemeContext } from '../../util/themecontext'
-import { LinksByNodeId, NodeByCite, NodeById } from '../../pages/index'
+import { LinksByNodeId, NodeByCite, NodeById, Scope } from '../../pages/index'
+import { Resizable } from 're-resizable'
+import { usePersistantState } from '../../util/persistant-state'
 
 export interface SidebarProps {
   isOpen: boolean
@@ -28,6 +32,10 @@ export interface SidebarProps {
   resetPreviewNode: any
   previousPreviewNode: any
   nextPreviewNode: any
+  openContextMenu: any
+  scope: Scope
+  setScope: any
+  windowWidth: number
 }
 
 const Sidebar = (props: SidebarProps) => {
@@ -46,10 +54,15 @@ const Sidebar = (props: SidebarProps) => {
     resetPreviewNode,
     previousPreviewNode,
     nextPreviewNode,
+    openContextMenu,
+    scope,
+    setScope,
+    windowWidth,
   } = props
 
   const { highlightColor } = useContext(ThemeContext)
   const [previewRoamNode, setPreviewRoamNode] = useState<OrgRoamNode>()
+  const [sidebarWidth, setSidebarWidth] = usePersistantState<number>('sidebarWidth', 400)
 
   useEffect(() => {
     if (!previewNode?.id) {
@@ -67,25 +80,58 @@ const Sidebar = (props: SidebarProps) => {
   //maybe want to close it when clicking outside, but not sure
   //const outsideClickRef = useRef();
   return (
-    <Slide
-      direction="right"
+    <Collapse
+      animateOpacity={false}
+      dimension="width"
       in={isOpen}
-      style={{ width: 'clamp(400px, 30%, 500px)' }}
+      //style={{ position: 'relative' }}
       unmountOnExit
+      startingSize={0}
+      style={{ height: '100vh' }}
     >
-      <Flex flexDirection="row" height="100%">
-        <Box pl={2} color="black" bg="alt.100" w="100%" paddingBottom={15}>
+      <Resizable
+        size={{ height: '100%', width: sidebarWidth }}
+        onResizeStop={(e, direction, ref, d) => {
+          setSidebarWidth((curr: number) => curr + d.width)
+        }}
+        enable={{
+          top: false,
+          right: false,
+          bottom: false,
+          left: true,
+          topRight: false,
+          bottomRight: false,
+          bottomLeft: false,
+          topLeft: false,
+        }}
+        minWidth="220px"
+        maxWidth={windowWidth - 200}
+      >
+        <Box pl={2} color="black" h="100%" bg="alt.100" width="100%">
           <Flex
-            justifyContent="space-between"
-            paddingTop={4}
+            whiteSpace="nowrap"
+            overflow="hidden"
+            textOverflow="ellipsis"
             pl={4}
-            pb={5}
-            pr={3}
-            alignItems="top"
+            alignItems="center"
             color="black"
+            width="100%"
           >
-            <Flex alignItems="center" whiteSpace="nowrap" textOverflow="ellipsis" overflow="hidden">
-              <BiFile />
+            <BiFile
+              onContextMenu={(e) => {
+                e.preventDefault()
+                openContextMenu(previewNode, e)
+              }}
+            />
+            <Flex
+              whiteSpace="nowrap"
+              textOverflow="ellipsis"
+              overflow="hidden"
+              onContextMenu={(e) => {
+                e.preventDefault()
+                openContextMenu(previewNode, e)
+              }}
+            >
               <Heading
                 pl={2}
                 whiteSpace="nowrap"
@@ -99,13 +145,23 @@ const Sidebar = (props: SidebarProps) => {
                 {previewRoamNode?.title}
               </Heading>
             </Flex>
-            <IconButton
-              // eslint-disable-next-line react/jsx-no-undef
-              icon={<HamburgerIcon />}
-              aria-label="Close file-viewer"
-              variant="link"
-              onClick={onClose}
-            />
+            <Flex flexDir="row" ml="auto">
+              <IconButton
+                // eslint-disable-next-line react/jsx-no-undef
+                m={1}
+                icon={<BiDotsVerticalRounded />}
+                aria-label="Options"
+                variant="subtle"
+                onClick={(e) => {
+                  openContextMenu(previewNode, e, {
+                    left: undefined,
+                    top: 12,
+                    right: -windowWidth + 20,
+                    bottom: undefined,
+                  })
+                }}
+              />
+            </Flex>
           </Flex>
           <Toolbar
             {...{
@@ -132,7 +188,7 @@ const Sidebar = (props: SidebarProps) => {
                   borderRadius: 10,
                   backgroundColor: highlightColor,
                 }}
-                color="black"
+                color="alt.100"
                 {...props}
               />
             )}
@@ -148,13 +204,14 @@ const Sidebar = (props: SidebarProps) => {
                   justification,
                   justificationList,
                   linksByNodeId,
+                  openContextMenu,
                 }}
               />
             </VStack>
           </Scrollbars>
         </Box>
-      </Flex>
-    </Slide>
+      </Resizable>
+    </Collapse>
   )
 }
 
diff --git a/components/Tweaks/BehaviorPanel.tsx b/components/Tweaks/BehaviorPanel.tsx
index 651396d..5d61730 100644
--- a/components/Tweaks/BehaviorPanel.tsx
+++ b/components/Tweaks/BehaviorPanel.tsx
@@ -11,6 +11,7 @@ import {
   VStack,
   Text,
   Box,
+  Switch,
 } from '@chakra-ui/react'
 import React from 'react'
 import { initialBehavior, initialMouse } from '../config'
diff --git a/components/Tweaks/SliderWithInfo.tsx b/components/Tweaks/SliderWithInfo.tsx
index f70faae..9d6903a 100644
--- a/components/Tweaks/SliderWithInfo.tsx
+++ b/components/Tweaks/SliderWithInfo.tsx
@@ -30,7 +30,7 @@ export const SliderWithInfo = ({
   const { onChange, label, infoText } = rest
   const { highlightColor } = useContext(ThemeContext)
   return (
-    <Box key={label}>
+    <Box key={label} pt={1} pb={2}>
       <Box display="flex" alignItems="flex-end">
         <Text>{label}</Text>
         {infoText && <InfoTooltip infoText={infoText} />}
diff --git a/components/Tweaks/index.tsx b/components/Tweaks/index.tsx
index c60e670..33f11ee 100644
--- a/components/Tweaks/index.tsx
+++ b/components/Tweaks/index.tsx
@@ -68,6 +68,7 @@ export const Tweaks = (props: TweakProps) => {
     tagColors,
     setTagColors,
   } = props
+
   const [showTweaks, setShowTweaks] = usePersistantState('showTweaks', false)
   const { highlightColor, setHighlightColor } = useContext(ThemeContext)
 
@@ -75,12 +76,12 @@ export const Tweaks = (props: TweakProps) => {
     <Box
       position="absolute"
       zIndex="overlay"
-      marginTop={10}
-      marginLeft={10}
+      marginTop={0}
+      marginLeft={0}
       display={showTweaks ? 'none' : 'block'}
     >
       <IconButton
-        variant="ghost"
+        variant="subtle"
         aria-label="Settings"
         icon={<SettingsIcon />}
         onClick={() => setShowTweaks(true)}
@@ -88,17 +89,17 @@ export const Tweaks = (props: TweakProps) => {
     </Box>
   ) : (
     <Box
+      position="absolute"
       bg="alt.100"
       w="xs"
-      marginTop={10}
-      marginLeft={10}
-      borderRadius="xl"
+      marginTop={2}
+      marginLeft={2}
+      borderRadius="lg"
       paddingBottom={5}
-      zIndex={300}
-      position="relative"
+      zIndex="overlay"
       boxShadow="xl"
-      maxH={0.92 * globalThis.innerHeight}
-      marginBottom={10}
+      maxH={'95vh'}
+      fontSize="sm"
     >
       <Box
         display="flex"
@@ -108,7 +109,7 @@ export const Tweaks = (props: TweakProps) => {
         paddingTop={1}
       >
         <Tooltip label={'Switch to ' + threeDim ? '2D' : '3D' + ' view'}>
-          <Button onClick={() => setThreeDim(!threeDim)} variant="ghost" zIndex="overlay">
+          <Button onClick={() => setThreeDim(!threeDim)} variant="subtle" zIndex="overlay">
             {threeDim ? '3D' : '2D'}
           </Button>
         </Tooltip>
@@ -124,7 +125,7 @@ export const Tweaks = (props: TweakProps) => {
                 setPhysics(initialPhysics)
                 setBehavior(initialBehavior)
               }}
-              variant="none"
+              variant="subtle"
               size="sm"
             />
           </Tooltip>
@@ -132,7 +133,7 @@ export const Tweaks = (props: TweakProps) => {
             size="sm"
             icon={<CloseIcon />}
             aria-label="Close Tweak Panel"
-            variant="ghost"
+            variant="subtle"
             onClick={() => setShowTweaks(false)}
           />
         </Box>
diff --git a/components/config.ts b/components/config.ts
index e1923f2..fd77ba3 100644
--- a/components/config.ts
+++ b/components/config.ts
@@ -58,13 +58,13 @@ export const initialVisuals = {
   nodeOpacity: 1,
   nodeResolution: 12,
   labels: 2,
-  labelScale: 1.5,
+  labelScale: 1,
   labelFontSize: 13,
   labelLength: 40,
   labelWordWrap: 25,
   labelLineSpace: 1,
   highlight: true,
-  highlightNodeSize: 2,
+  highlightNodeSize: 1.2,
   highlightLinkSize: 2,
   highlightFade: 0.8,
   highlightAnim: true,
@@ -123,6 +123,7 @@ export const initialMouse = {
   follow: 'never',
   context: 'right',
   preview: 'click',
+  backgroundExitsLocal: false,
 }
 
 export const colorList = [
diff --git a/components/contextmenu.tsx b/components/contextmenu.tsx
index 73758a5..bff4861 100644
--- a/components/contextmenu.tsx
+++ b/components/contextmenu.tsx
@@ -48,20 +48,21 @@ import { BiNetworkChart } from 'react-icons/bi'
 
 export default interface ContextMenuProps {
   background: Boolean
-  node?: OrgRoamNode
+  target: OrgRoamNode | null
   nodeType?: string
-  coordinates: number[]
+  coordinates: { [direction: string]: number }
   handleLocal: (node: OrgRoamNode, add: string) => void
   menuClose: () => void
   scope: { nodeIds: string[] }
   webSocket: any
   setPreviewNode: any
+  contextMenuRef: any
 }
 
 export const ContextMenu = (props: ContextMenuProps) => {
   const {
     background,
-    node,
+    target,
     nodeType,
     coordinates,
     handleLocal,
@@ -69,59 +70,65 @@ export const ContextMenu = (props: ContextMenuProps) => {
     scope,
     webSocket,
     setPreviewNode,
+    contextMenuRef,
   } = props
   const { isOpen, onOpen, onClose } = useDisclosure()
   const copyRef = useRef<any>()
   return (
     <>
-      <Box
-        position="absolute"
-        zIndex="overlay"
-        left={coordinates[0] + 10}
-        top={coordinates[1] - 10}
-        padding={5}
-      >
-        <Menu closeOnBlur={false} defaultIsOpen onClose={() => menuClose()}>
-          <MenuList zIndex="overlay" bgColor="alt.100" borderColor="gray.500" maxWidth="xs">
-            {node && (
-              <>
-                <Heading size="sm" isTruncated px={3} py={1}>
-                  {node.title}
-                </Heading>
-                <MenuDivider borderColor="gray.500" />
-              </>
-            )}
-            {scope.nodeIds.length !== 0 && (
-              <>
-                <MenuItem onClick={() => handleLocal(node!, 'add')} icon={<PlusSquareIcon />}>
-                  Expand local graph at node
-                </MenuItem>
-                <MenuItem onClick={() => handleLocal(node!, 'replace')} icon={<ViewIcon />}>
-                  Open local graph for this node
-                </MenuItem>
-              </>
-            )}
-            {!node?.properties.FILELESS ? (
-              <MenuItem
-                icon={<EditIcon />}
-                onClick={() => openNodeInEmacs(node as OrgRoamNode, webSocket)}
-              >
-                Open in Emacs
+      <Menu defaultIsOpen closeOnBlur={false} onClose={() => menuClose()}>
+        <MenuList
+          zIndex="overlay"
+          bgColor="white"
+          color="black"
+          borderColor="gray.500"
+          maxWidth="xs"
+          position="absolute"
+          left={coordinates.left}
+          top={coordinates.top}
+          right={coordinates.right}
+          bottom={coordinates.bottom}
+          fontSize="xs"
+        >
+          {target && (
+            <>
+              <Heading size="xs" isTruncated px={3} py={1}>
+                {target.title}
+              </Heading>
+              <MenuDivider borderColor="gray.500" />
+            </>
+          )}
+          {scope.nodeIds.length !== 0 && (
+            <>
+              <MenuItem onClick={() => handleLocal(target!, 'add')} icon={<PlusSquareIcon />}>
+                Expand local graph at node
               </MenuItem>
-            ) : (
-              <MenuItem icon={<AddIcon />} onClick={() => createNodeInEmacs(node, webSocket)}>
-                Create node
+              <MenuItem onClick={() => handleLocal(target!, 'replace')} icon={<BiNetworkChart />}>
+                Open local graph for this node
               </MenuItem>
-            )}
-            {node?.properties.ROAM_REFS && (
-              <MenuItem icon={<ExternalLinkIcon />}>Open in Zotero</MenuItem>
-            )}
-            {scope.nodeIds.length === 0 && (
-              <MenuItem icon={<BiNetworkChart />} onClick={() => handleLocal(node!, 'replace')}>
-                Open local graph
-              </MenuItem>
-            )}
-            {/* Doesn't work at the moment
+            </>
+          )}
+          {!target?.properties?.FILELESS ? (
+            <MenuItem
+              icon={<EditIcon />}
+              onClick={() => openNodeInEmacs(target as OrgRoamNode, webSocket)}
+            >
+              Open in Emacs
+            </MenuItem>
+          ) : (
+            <MenuItem icon={<AddIcon />} onClick={() => createNodeInEmacs(target, webSocket)}>
+              Create node
+            </MenuItem>
+          )}
+          {target?.properties?.ROAM_REFS && (
+            <MenuItem icon={<ExternalLinkIcon />}>Open in Zotero</MenuItem>
+          )}
+          {scope.nodeIds.length === 0 && (
+            <MenuItem icon={<BiNetworkChart />} onClick={() => handleLocal(target!, 'replace')}>
+              Open local graph
+            </MenuItem>
+          )}
+          {/* Doesn't work at the moment
                             <MenuItem closeOnSelect={false} closeOnBlur={false}>
                             <Box _hover={{ bg: 'gray.200' }} width="100%">
                                 <Popover
@@ -151,27 +158,26 @@ export const ContextMenu = (props: ContextMenuProps) => {
                             </Box>
                         </MenuItem> */}
 
+          <MenuItem
+            icon={<ViewIcon />}
+            onClick={() => {
+              setPreviewNode(target)
+            }}
+          >
+            Preview
+          </MenuItem>
+          {target?.level === 0 && (
             <MenuItem
-              icon={<ViewIcon />}
-              onClick={() => {
-                setPreviewNode(node)
-              }}
+              closeOnSelect={false}
+              icon={<DeleteIcon color="red.500" />}
+              color="red.500"
+              onClick={onOpen}
             >
-              Preview
+              Permenantly delete note
             </MenuItem>
-            {node?.level === 0 && (
-              <MenuItem
-                closeOnSelect={false}
-                icon={<DeleteIcon color="red.500" />}
-                color="red.500"
-                onClick={onOpen}
-              >
-                Permenantly delete note
-              </MenuItem>
-            )}
-          </MenuList>
-        </Menu>
-      </Box>
+          )}
+        </MenuList>
+      </Menu>
       <Modal isCentered isOpen={isOpen} onClose={onClose}>
         <ModalOverlay />
         <ModalContent zIndex="popover">
@@ -180,8 +186,8 @@ export const ContextMenu = (props: ContextMenuProps) => {
           <ModalBody>
             <VStack spacing={4} display="flex" alignItems="flex-start">
               <Text>This will permanently delete your note:</Text>
-              <Text fontWeight="bold">{node?.title}</Text>
-              {node?.level !== 0 && (
+              <Text fontWeight="bold">{target?.title}</Text>
+              {target?.level !== 0 && (
                 <Text>
                   This will only delete the from this heading until but not including the next node.
                   Your parent file and all other nodes will not be deleted.
@@ -207,7 +213,7 @@ export const ContextMenu = (props: ContextMenuProps) => {
               ml={3}
               onClick={() => {
                 console.log('aaaaa')
-                deleteNodeInEmacs(node!, webSocket)
+                deleteNodeInEmacs(target!, webSocket)
                 onClose()
                 menuClose()
               }}
diff --git a/package-lock.json b/package-lock.json
index 1a6f57f..310c69b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -25,6 +25,7 @@
         "orgast-util-to-string": "^0.3.1",
         "orgast-util-visit-ids": "^0.3.1",
         "path": "^0.12.7",
+        "re-resizable": "^6.9.1",
         "react": "17.0.2",
         "react-custom-scrollbars-2": "^4.4.0",
         "react-dom": "17.0.2",
@@ -4813,6 +4814,11 @@
       "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
       "dev": true
     },
+    "node_modules/fast-memoize": {
+      "version": "2.5.2",
+      "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz",
+      "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw=="
+    },
     "node_modules/fast-shallow-equal": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/fast-shallow-equal/-/fast-shallow-equal-1.0.0.tgz",
@@ -7539,6 +7545,18 @@
         "node": ">=0.10.0"
       }
     },
+    "node_modules/re-resizable": {
+      "version": "6.9.1",
+      "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-6.9.1.tgz",
+      "integrity": "sha512-KRYAgr9/j1PJ3K+t+MBhlQ+qkkoLDJ1rs0z1heIWvYbCW/9Vq4djDU+QumJ3hQbwwtzXF6OInla6rOx6hhgRhQ==",
+      "dependencies": {
+        "fast-memoize": "^2.5.1"
+      },
+      "peerDependencies": {
+        "react": "^16.13.1 || ^17.0.0",
+        "react-dom": "^16.13.1 || ^17.0.0"
+      }
+    },
     "node_modules/react": {
       "version": "17.0.2",
       "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz",
@@ -13414,6 +13432,11 @@
       "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
       "dev": true
     },
+    "fast-memoize": {
+      "version": "2.5.2",
+      "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz",
+      "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw=="
+    },
     "fast-shallow-equal": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/fast-shallow-equal/-/fast-shallow-equal-1.0.0.tgz",
@@ -15572,6 +15595,14 @@
         }
       }
     },
+    "re-resizable": {
+      "version": "6.9.1",
+      "resolved": "https://registry.npmjs.org/re-resizable/-/re-resizable-6.9.1.tgz",
+      "integrity": "sha512-KRYAgr9/j1PJ3K+t+MBhlQ+qkkoLDJ1rs0z1heIWvYbCW/9Vq4djDU+QumJ3hQbwwtzXF6OInla6rOx6hhgRhQ==",
+      "requires": {
+        "fast-memoize": "^2.5.1"
+      }
+    },
     "react": {
       "version": "17.0.2",
       "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz",
diff --git a/package.json b/package.json
index a0b4777..80f47d6 100644
--- a/package.json
+++ b/package.json
@@ -28,6 +28,7 @@
     "orgast-util-to-string": "^0.3.1",
     "orgast-util-visit-ids": "^0.3.1",
     "path": "^0.12.7",
+    "re-resizable": "^6.9.1",
     "react": "17.0.2",
     "react-custom-scrollbars-2": "^4.4.0",
     "react-dom": "17.0.2",
diff --git a/pages/_app.tsx b/pages/_app.tsx
index f623786..17554b1 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -173,6 +173,11 @@ function SubApp(props: any) {
               _hover: { bg: `inherit`, border: '1px solid', borderColor: highlightColor },
               _active: { color: `inherit`, bg: highlightColor },
             },
+            subtle: {
+              color: 'gray.800',
+              _hover: { bg: `inherit`, color: highlightColor },
+              _active: { color: `inherit`, bg: borderColor },
+            },
           },
         },
         Accordion: {
diff --git a/pages/index.tsx b/pages/index.tsx
index a1df7e7..c80fc50 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -1,52 +1,59 @@
+import { HamburgerIcon } from '@chakra-ui/icons'
+import {
+  Box,
+  Flex,
+  Heading,
+  IconButton,
+  Slide,
+  Tooltip,
+  useDisclosure,
+  useOutsideClick,
+  useTheme,
+} from '@chakra-ui/react'
+import { useAnimation } from '@lilib/hooks'
+import { useWindowSize, useWindowWidth } from '@react-hook/window-size'
+import * as d3int from 'd3-interpolate'
+import { GraphData, LinkObject, NodeObject } from 'force-graph'
+import Head from 'next/head'
 import React, {
   ComponentPropsWithoutRef,
+  forwardRef,
+  useContext,
   useEffect,
+  useMemo,
   useRef,
   useState,
-  useMemo,
-  useContext,
-  forwardRef,
 } from 'react'
-
-import Head from 'next/head'
-import { usePersistantState } from '../util/persistant-state'
-const d3promise = import('d3-force-3d')
-import * as d3int from 'd3-interpolate'
-
 import type {
   ForceGraph2D as TForceGraph2D,
   ForceGraph3D as TForceGraph3D,
 } from 'react-force-graph'
+import { BiChart, BiNetworkChart } from 'react-icons/bi'
+import { BsReverseLayoutSidebarInsetReverse } from 'react-icons/bs'
+import ReconnectingWebSocket from 'reconnecting-websocket'
+import SpriteText from 'three-spritetext'
+import useUndo from 'use-undo'
+import wrap from 'word-wrap'
 import { OrgRoamGraphReponse, OrgRoamLink, OrgRoamNode } from '../api'
-import { GraphData, NodeObject, LinkObject } from 'force-graph'
-import Sidebar from '../components/Sidebar'
-
-import { useWindowSize } from '@react-hook/window-size'
-import { useAnimation } from '@lilib/hooks'
-
-import { Box, Flex, IconButton, useDisclosure, useTheme, WithCSSVar } from '@chakra-ui/react'
-
 import {
-  initialPhysics,
-  initialFilter,
-  initialVisuals,
+  algos,
+  colorList,
   initialBehavior,
+  initialFilter,
   initialMouse,
-  algos,
+  initialPhysics,
+  initialVisuals,
   TagColors,
-  colorList,
 } from '../components/config'
-import { Tweaks } from '../components/Tweaks'
 import { ContextMenu } from '../components/contextmenu'
-
+import Sidebar from '../components/Sidebar'
+import { Tweaks } from '../components/Tweaks'
+import { usePersistantState } from '../util/persistant-state'
 import { ThemeContext, ThemeContextProps } from '../util/themecontext'
-import SpriteText from 'three-spritetext'
-import wrap from 'word-wrap'
-import ReconnectingWebSocket from 'reconnecting-websocket'
+import { openNodeInEmacs } from '../util/webSocketFunctions'
+
+const d3promise = import('d3-force-3d')
 
-import { deleteNodeInEmacs, openNodeInEmacs, createNodeInEmacs } from '../util/webSocketFunctions'
-import { ChevronLeftIcon, HamburgerIcon } from '@chakra-ui/icons'
-import useUndo from 'use-undo'
 // react-force-graph fails on import when server-rendered
 // https://github.com/vasturiano/react-force-graph/issues/155
 const ForceGraph2D = (
@@ -450,53 +457,91 @@ export function GraphPage() {
     }, 50)
   }, [scope.nodeIds])
 
+  const [windowWidth, windowHeight] = useWindowSize()
+
+  const contextMenuRef = useRef<any>()
+  const [contextMenuTarget, setContextMenuTarget] = useState<OrgRoamNode | null>(null)
+  const [contextPos, setContextPos] = useState({
+    left: 0,
+    top: 0,
+    right: undefined,
+    bottom: undefined,
+  })
+
+  const contextMenu = useDisclosure()
+  useOutsideClick({
+    ref: contextMenuRef,
+    handler: () => {
+      console.log('click')
+      contextMenu.onClose()
+    },
+  })
+
+  const openContextMenu = (node: OrgRoamNode, event: any, coords?: number[]) => {
+    coords
+      ? setContextPos(coords)
+      : setContextPos({ left: event.pageX, top: event.pageY, right: undefined, bottom: undefined })
+    setContextMenuTarget(node)
+    contextMenu.onOpen()
+  }
+
+  const handleLocal = (node: OrgRoamNode, add: string) => {
+    if (add === 'replace') {
+      setScope({ nodeIds: [node.id] })
+      return
+    }
+    if (scope.nodeIds.includes(node.id as string)) {
+      return
+    }
+    setScope((currentScope: Scope) => ({
+      ...currentScope,
+      nodeIds: [...currentScope.nodeIds, node.id as string],
+    }))
+    return
+  }
+
+  const [mainItem, setMainItem] = useState({
+    type: 'Graph',
+    title: 'Graph',
+    icon: <BiNetworkChart />,
+  })
+
+  const [mainWindowWidth, setMainWindowWidth] = usePersistantState<number>(
+    'mainWindowWidth',
+    windowWidth,
+  )
   if (!graphData) {
     return null
   }
 
   return (
-    <Box display="flex" alignItems="flex-start" flexDirection="row" height="100%" overflow="hidden">
-      <Box
-        display="flex"
-        justifyContent="space-between"
-        flexDirection="row"
-        height="100%"
-        width="100%"
-      >
-        <Tweaks
-          {...{
-            physics,
-            setPhysics,
-            threeDim,
-            setThreeDim,
-            filter,
-            setFilter,
-            visuals,
-            setVisuals,
-            mouse,
-            setMouse,
-            behavior,
-            setBehavior,
-            tagColors,
-            setTagColors,
-          }}
-          tags={tagsRef.current}
-        />
-        <Flex height="100%" flexDirection="column" marginLeft="auto">
-          {!isOpen && (
-            <IconButton
-              icon={<HamburgerIcon />}
-              aria-label="Open org-viewer"
-              zIndex={2}
-              onClick={onOpen}
-              variant="ghost"
-              marginTop={10}
-              mr={8}
-            />
-          )}
-        </Flex>
-      </Box>
-      <Flex position="absolute" alignItems="top" overflow="hidden">
+    <Box
+      display="flex"
+      alignItems="flex-start"
+      flexDirection="row"
+      height="100vh"
+      overflow="hidden"
+    >
+      <Tweaks
+        {...{
+          physics,
+          setPhysics,
+          threeDim,
+          setThreeDim,
+          filter,
+          setFilter,
+          visuals,
+          setVisuals,
+          mouse,
+          setMouse,
+          behavior,
+          setBehavior,
+          tagColors,
+          setTagColors,
+        }}
+        tags={tagsRef.current}
+      />
+      <Box position="absolute">
         <Graph
           ref={graphRef}
           nodeById={nodeByIdRef.current!}
@@ -516,8 +561,58 @@ export function GraphPage() {
             tagColors,
             setPreviewNode,
             sidebarHighlightedNode,
+            windowWidth,
+            windowHeight,
+            openContextMenu,
+            contextMenu,
+            handleLocal,
+            mainWindowWidth,
+            setMainWindowWidth,
           }}
         />
+      </Box>
+      <Box position="relative" zIndex={4} width="100%">
+        <Flex className="headerBar" h={10} flexDir="column">
+          <Flex alignItems="center" h={10} justifyContent="flex-end">
+            {/* <Flex flexDir="row" alignItems="center">
+             *   <Box color="blue.500" bgColor="alt.100" h="100%" p={3} mr={4}>
+             *     {mainItem.icon}
+             *   </Box>
+             *   <Heading size="sm">{mainItem.title}</Heading>
+             * </Flex> */}
+            <Flex height="100%" flexDirection="row">
+              {scope.nodeIds.length > 0 && (
+                <Tooltip label="Return to main graph">
+                  <IconButton
+                    m={1}
+                    icon={<BiNetworkChart />}
+                    aria-label="Exit local mode"
+                    onClick={() =>
+                      setScope((currentScope: Scope) => ({
+                        ...currentScope,
+                        nodeIds: [],
+                      }))
+                    }
+                    variant="subtle"
+                  />
+                </Tooltip>
+              )}
+              <Tooltip label={isOpen ? 'Close sidebar' : 'Open sidebar'}>
+                <IconButton
+                  m={1}
+                  // eslint-disable-next-line react/jsx-no-undef
+                  icon={<BsReverseLayoutSidebarInsetReverse />}
+                  aria-label="Close file-viewer"
+                  variant="subtle"
+                  onClick={isOpen ? onClose : onOpen}
+                />
+              </Tooltip>
+            </Flex>
+          </Flex>
+        </Flex>
+      </Box>
+
+      <Box position="relative" zIndex={4}>
         <Sidebar
           {...{
             isOpen,
@@ -529,13 +624,33 @@ export function GraphPage() {
             canRedo,
             previousPreviewNode,
             nextPreviewNode,
+            resetPreviewNode,
             setSidebarHighlightedNode,
+            openContextMenu,
+            scope,
+            setScope,
+            windowWidth,
           }}
           nodeById={nodeByIdRef.current!}
           linksByNodeId={linksByNodeIdRef.current!}
           nodeByCite={nodeByCiteRef.current!}
         />
-      </Flex>
+      </Box>
+      {contextMenu.isOpen && (
+        <div ref={contextMenuRef}>
+          <ContextMenu
+            //contextMenuRef={contextMenuRef}
+            scope={scope}
+            target={contextMenuTarget}
+            background={false}
+            coordinates={contextPos}
+            handleLocal={handleLocal}
+            menuClose={contextMenu.onClose.bind(contextMenu)}
+            webSocket={WebSocketRef.current}
+            setPreviewNode={setPreviewNode}
+          />
+        </div>
+      )}
     </Box>
   )
 }
@@ -557,6 +672,14 @@ export interface GraphProps {
   tagColors: { [tag: string]: string }
   setPreviewNode: any
   sidebarHighlightedNode: OrgRoamNode | null
+  windowWidth: number
+  windowHeight: number
+  setContextMenuTarget: any
+  openContextMenu: any
+  contextMenu: any
+  handleLocal: any
+  mainWindowWidth: number
+  setMainWindowWidth: any
 }
 
 export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
@@ -577,47 +700,25 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     tagColors,
     setPreviewNode,
     sidebarHighlightedNode,
+    windowWidth,
+    windowHeight,
+    setContextMenuTarget,
+    openContextMenu,
+    contextMenu,
+    handleLocal,
   } = props
 
-  // react-force-graph does not track window size
-  // https://github.com/vasturiano/react-force-graph/issues/233
-  // does not work below a certain width
-  const [windowWidth, windowHeight] = useWindowSize()
-
   const [hoverNode, setHoverNode] = useState<NodeObject | null>(null)
 
-  const [rightClickedNode, setRightClickedNode] = useState<OrgRoamNode | null>(null)
-  const [contextPos, setContextPos] = useState([0, 0])
-
   const theme = useTheme()
 
   const { emacsTheme } = useContext<ThemeContextProps>(ThemeContext)
 
-  const handleLocal = (node: OrgRoamNode, add: string) => {
-    if (add === 'replace') {
-      setScope({ nodeIds: [node.id] })
-      return
-    }
-    if (scope.nodeIds.includes(node.id as string)) {
-      return
-    }
-    setScope((currentScope: Scope) => ({
-      ...currentScope,
-      nodeIds: [...currentScope.nodeIds, node.id as string],
-    }))
-    return
-  }
-
-  const contextMenu = useDisclosure()
-
-  const openContextMenu = (node: OrgRoamNode, event: any) => {
-    setContextPos([event.pageX, event.pageY])
-    setRightClickedNode(node)
-    contextMenu.onOpen()
-  }
-
   const handleClick = (click: string, node: OrgRoamNode, event: any) => {
     switch (click) {
+      case mouse.preview: {
+        setPreviewNode(node)
+      }
       case mouse.local: {
         handleLocal(node, behavior.localSame)
         break
@@ -629,9 +730,6 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
       case mouse.context: {
         openContextMenu(node, event)
       }
-      case mouse.preview: {
-        setPreviewNode(node)
-      }
       default:
         break
     }
@@ -1062,7 +1160,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
     backgroundColor: theme.colors.gray[visuals.backgroundColor],
     warmupTicks: scope.nodeIds.length === 1 ? 100 : scope.nodeIds.length > 1 ? 20 : 0,
     onZoom: ({ k, x, y }) => setZoom(k),
-    nodeLabel: (node) => (node as OrgRoamNode).title,
+    //nodeLabel: (node) => (node as OrgRoamNode).title,
     nodeColor: (node) => {
       return getNodeColor(node as OrgRoamNode, theme)
     },
@@ -1199,7 +1297,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
 
     onNodeClick: (nodeArg: NodeObject, event: any) => {
       const node = nodeArg as OrgRoamNode
-      contextMenu.onClose()
+      //contextMenu.onClose()
       const doubleClickTimeBuffer = 200
       const isDoubleClick = event.timeStamp - lastNodeClickRef.current < doubleClickTimeBuffer
       lastNodeClickRef.current = event.timeStamp
@@ -1215,17 +1313,19 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
         return handleClick('click', node, event)
       }, doubleClickTimeBuffer)
     },
-    onBackgroundClick: () => {
-      contextMenu.onClose()
-      setHoverNode(null)
-      if (scope.nodeIds.length === 0) {
-        return
-      }
-      setScope((currentScope: Scope) => ({
-        ...currentScope,
-        nodeIds: [],
-      }))
-    },
+    /* onBackgroundClick: () => {
+     *   contextMenu.onClose()
+     *   setHoverNode(null)
+     *   if (scope.nodeIds.length === 0) {
+     *     return
+     *   }
+     *   if (mouse.backgroundExitsLocal) {
+     *     setScope((currentScope: Scope) => ({
+     *       ...currentScope,
+     *       nodeIds: [],
+     *     }))
+     *   }
+     * }, */
     onNodeHover: (node) => {
       if (!visuals.highlight) {
         return
@@ -1243,7 +1343,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
       handleClick('right', node, event)
     },
     onNodeDrag: (node) => {
-      contextMenu.onClose()
+      //contextMenu.onClose()
       setHoverNode(node)
       setDragging(true)
     },
@@ -1254,20 +1354,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
   }
 
   return (
-    <Box overflow="hidden">
-      {contextMenu.isOpen && (
-        <ContextMenu
-          scope={scope}
-          node={rightClickedNode!}
-          nodeType={rightClickedNode?.id}
-          background={false}
-          coordinates={contextPos}
-          handleLocal={handleLocal}
-          menuClose={contextMenu.onClose.bind(contextMenu)}
-          webSocket={webSocket}
-          setPreviewNode={setPreviewNode}
-        />
-      )}
+    <Box overflow="hidden" onClick={contextMenu.onClose}>
       {threeDim ? (
         <ForceGraph3D
           ref={graphRef}
diff --git a/util/processOrg.tsx b/util/processOrg.tsx
index 1bab2cd..05142dd 100644
--- a/util/processOrg.tsx
+++ b/util/processOrg.tsx
@@ -7,7 +7,7 @@ import extractKeywords from 'uniorg-extract-keywords'
 import attachments from 'uniorg-attach'
 // rehypeHighlight does not have any types
 // @ts-expect-error
-import highlight from 'rehype-highlight'
+// import highlight from 'rehype-highlight'
 import katex from 'rehype-katex'
 import 'katex/dist/katex.css'
 import rehype2react from 'rehype-react'
@@ -24,6 +24,7 @@ export interface ProcessedOrgProps {
   previewText: any
   nodeByCite: NodeByCite
   setSidebarHighlightedNode: any
+  openContextMenu: any
 }
 
 export const ProcessedOrg = (props: ProcessedOrgProps) => {
@@ -34,6 +35,7 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
     previewText,
     nodeByCite,
     previewNode,
+    openContextMenu,
   } = props
 
   const processor = unified()
@@ -42,7 +44,7 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
     .use(attachments)
     .use(uniorgSlug)
     .use(uniorg2rehype)
-    .use(highlight)
+    // .use(highlight)
     .use(katex)
     .use(rehype2react, {
       createElement: React.createElement,
@@ -56,6 +58,7 @@ export const ProcessedOrg = (props: ProcessedOrgProps) => {
               href={`${href as string}`}
               nodeById={nodeById}
               setPreviewNode={setPreviewNode}
+              openContextMenu={openContextMenu}
             >
               {children}
             </PreviewLink>
diff --git a/util/uniorg.tsx b/util/uniorg.tsx
index 217bad1..8802dd1 100644
--- a/util/uniorg.tsx
+++ b/util/uniorg.tsx
@@ -9,10 +9,18 @@ export interface UniOrgProps {
   setPreviewNode: any
   nodeByCite: NodeByCite
   setSidebarHighlightedNode: any
+  openContextMenu: any
 }
 
 export const UniOrg = (props: UniOrgProps) => {
-  const { setSidebarHighlightedNode, nodeById, nodeByCite, previewNode, setPreviewNode } = props
+  const {
+    openContextMenu,
+    setSidebarHighlightedNode,
+    nodeById,
+    nodeByCite,
+    previewNode,
+    setPreviewNode,
+  } = props
 
   const [previewText, setPreviewText] = useState('')
 
@@ -44,6 +52,7 @@ export const UniOrg = (props: UniOrgProps) => {
             previewText,
             nodeByCite,
             setSidebarHighlightedNode,
+            openContextMenu,
           }}
         />
       )}
-- 
cgit v1.2.3

